Community Forums Today's Posts     Member List     Archive    
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Location
    Taiwan
    Posts
    6

    [INFO] How to fix webpost 3.1.1 with php4

    The original webpost v3.1.1 wouldn't run under php4 due to php4 using HTTP_POST_VARS and HTTP_GET_VARS to retrive HTML form info, the way is different with php3. Therefore, you need to make serveral change on php code to make webpost v3.1.1 run under php4.

    Add following line in specified file's top:

    **webpost.php**
    $server_adminemail = $HTTP_POST_VARS[server_adminemail];
    $server_isplinkurl = $HTTP_POST_VARS[server_isplinkurl];
    $server_ispname = $HTTP_POST_VARS[server_ispname];
    $server_ispcountry = $HTTP_POST_VARS[server_ispcountry];
    $server_platform = $HTTP_POST_VARS[server_platform];
    $server_version_major = $HTTP_POST_VARS[server_version_major];
    $server_version_minor = $HTTP_POST_VARS[server_version_minor];
    $server_version_release = $HTTP_POST_VARS[server_version_release];
    $server_version_build = $HTTP_POST_VARS[server_version_build];
    $server_port = $HTTP_POST_VARS[server_port];
    $server_name = $HTTP_POST_VARS[server_name];
    $server_uptime = $HTTP_POST_VARS[server_uptime];
    $server_password = $HTTP_POST_VARS[server_password];
    $server_type1 = $HTTP_POST_VARS[server_type1];
    $server_type2 = $HTTP_POST_VARS[server_type2];
    $clients_current = $HTTP_POST_VARS[clients_current];
    $clients_maximum = $HTTP_POST_VARS[clients_maximum];
    $channels_current = $HTTP_POST_VARS[channels_current];
    $server_linkurl = $HTTP_POST_VARS[server_linkurl];
    $server_queryport = $HTTP_POST_VARS[server_queryport];


    **listing.php**
    $detail = $HTTP_GET_VARS[detail];
    $page = $HTTP_GET_VARS[page];
    $sort = $HTTP_GET_VARS[sort];
    $direction = $HTTP_GET_VARS[direction];
    $showgroup = $HTTP_GET_VARS[showgroup];


    **login.php**
    $detail = $HTTP_GET_VARS[detail];
    $action = $HTTP_POST_VARS[action];
    $server = $HTTP_POST_VARS[server];
    $servername = $HTTP_POST_VARS[servername];
    $nickname = $HTTP_POST_VARS[nickname];
    $savenickname = $HTTP_POST_VARS[savenickname];
    $loginname = $HTTP_POST_VARS[loginname];
    $saveloginname = $HTTP_POST_VARS[saveloginname];
    $password = $HTTP_POST_VARS[password];
    $savepassword = $HTTP_POST_VARS[savepassword];
    $channel = $HTTP_POST_VARS[channel];
    $savechannel = $HTTP_POST_VARS[savechannel];
    $channelpassword = $HTTP_POST_VARS[channelpassword];
    $savechannelpassword = $HTTP_POST_VARS[savechannelpassword];


    Than you should be able to use webpost v3.1.1 under php4 now.

    NOTE: I didn't check the reason why login window's remember setting cookie has no work yet, it might be cause by different cookie method in php4, I don't know yet. Therefore, if you like remember setting works, you have to check the login.php and someother related file by urself...

  2. #2
    Join Date
    Jun 2002
    Posts
    704
    Nice to post a fix yet there is a whole section dedicated to webpost and people will rather look for a solution there than in the windows server category. Maybe an admin can move that post?

    Another workaround would be to activate "register globals" in php as that is still possible and only since php 4.2 (or something close to that) they have changed the default value to "register globals = false". Yet registring globals can be a security risk which is why it has been deactivated by default.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can I fix these Webpost fsock problems
    By Nemhain in forum [TeamSpeak 2] Addons & Scripts
    Replies: 2
    Last Post: 24-06-2004, 20:49
  2. Webpost v4.0.2 doesn't show server (again)
    By stevil in forum [TeamSpeak 2] Addons & Scripts
    Replies: 0
    Last Post: 30-07-2003, 02:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •