[Easymod-cvs] easymod2/mods/easymod easymod_install.php,1.1,1.2
Status: Beta
Brought to you by:
wgeric
From: Brendan K. <bk...@us...> - 2005-04-26 12:35:41
|
Update of /cvsroot/easymod/easymod2/mods/easymod In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3300/easymod Modified Files: easymod_install.php Log Message: Fixing some install errors: php5 long arrays off, MySQL 4.1.x default fix, and admin_easmod.php copy checking, after CVS updates. Index: easymod_install.php =================================================================== RCS file: /cvsroot/easymod/easymod2/mods/easymod/easymod_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** easymod_install.php 24 Apr 2005 14:59:52 -0000 1.1 --- easymod_install.php 26 Apr 2005 12:35:15 -0000 1.2 *************** *** 27,30 **** --- 27,47 ---- //// + // PHP5 with register_long_arrays off? + if (!isset($HTTP_POST_VARS) && isset($_POST)) + { + $HTTP_POST_VARS = $_POST; + $HTTP_GET_VARS = $_GET; + $HTTP_SERVER_VARS = $_SERVER; + $HTTP_COOKIE_VARS = $_COOKIE; + $HTTP_ENV_VARS = $_ENV; + $HTTP_POST_FILES = $_FILES; + + // _SESSION is the only superglobal which is conditionally set + if (isset($_SESSION)) + { + $HTTP_SESSION_VARS = $_SESSION; + } + } + include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'config.'.$phpEx); *************** *** 980,984 **** case 'mysql4': $sql[] = "CREATE TABLE " . EASYMOD_TABLE . " ( ! mod_id mediumint(8) NOT NULL DEFAULT '0' auto_increment, mod_title varchar(50) NULL DEFAULT '', mod_file varchar(255) NULL DEFAULT '', --- 997,1001 ---- case 'mysql4': $sql[] = "CREATE TABLE " . EASYMOD_TABLE . " ( ! mod_id mediumint(8) NOT NULL auto_increment, mod_title varchar(50) NULL DEFAULT '', mod_file varchar(255) NULL DEFAULT '', *************** *** 1647,1651 **** // let 'em know what we are doing ! echo '<br><br><b>' . $lang['EM_confirm_admin'] . ':</b> admin_easymod.php,v ' . $easymod_install_version . "<br>\n" ; // open admin_easymod.php for reading --- 1664,1668 ---- // let 'em know what we are doing ! echo '<br><br><b>' . $lang['EM_confirm_admin'] . ":</b> admin_easymod.php<br>\n" ; // open admin_easymod.php for reading *************** *** 1658,1662 **** // read a line and see if it contains our key $line = fgets( $fin, 4096) ; ! if (strstr($line, 'admin_easymod.php,v ' . $easymod_install_version)) { // print success and break out --- 1675,1679 ---- // read a line and see if it contains our key $line = fgets( $fin, 4096) ; ! if (strstr($line, 'admin_easymod.php')) { // print success and break out *************** *** 1671,1675 **** if (!$found) { ! $error = $lang['EM_err_find'] . ' <b>admin_easymod.php,v ' . $easymod_install_version . '</b> in [admin/admin_easymod.php].' ; display_error( $error) ; } --- 1688,1692 ---- if (!$found) { ! $error = $lang['EM_err_find'] . ' <b>admin_easymod.php</b> in [admin/admin_easymod.php].' ; display_error( $error) ; } |