|
From TTSO:
[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...
|