|
From: FlorinCB <ory...@us...> - 2008-09-11 10:19:24
|
Update of /cvsroot/mxbb/mx_phpbb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18445 Modified Files: forum_hack.php Log Message: clean up Index: forum_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpbb/includes/forum_hack.php,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** forum_hack.php 7 Sep 2008 00:38:51 -0000 1.65 --- forum_hack.php 11 Sep 2008 10:19:16 -0000 1.66 *************** *** 435,439 **** 'cash' => $this->phpbb_config['other'], 'bin' => $this->phpbb_config['other'], - ); --- 435,438 ---- *************** *** 625,636 **** function _validate_redirection($url, $by_http_vars) { ! if (!$pos = strrpos($url, ".")) { return 'index'; } ! ! $script_name = substr($url, 0, $pos); ! $script_name = substr($script_name, strrpos($script_name, "/")); ! $script_name = str_replace("/", "", $script_name); switch ($script_name) --- 624,633 ---- function _validate_redirection($url, $by_http_vars) { ! ! if (($pos = strpos( $url, '.' )) === false) { return 'index'; } ! $script_name = substr($url, 0, $pos); switch ($script_name) *************** *** 663,667 **** return ''; } ! break; } --- 660,664 ---- return ''; } ! break; } *************** *** 819,823 **** if ( !empty($key_sql) ) { ! $auto_login_key = $mx_backend->dss_rand() . $mx_backend->dss_rand(); $current_time = time(); --- 816,820 ---- if ( !empty($key_sql) ) { ! $auto_login_key = phpBB2::dss_rand() . phpBB2::dss_rand(); $current_time = time(); *************** *** 1816,1819 **** --- 1813,1820 ---- $code = preg_replace ("/include(.*)bbcode./", "//", $code); $code = preg_replace ("/include(.*)auth./", "//", $code); + + + //Fix Login path for anonymouse users who go direct to forum + $code = str_replace('"login.', '$mx_root_path . "login.', $code); // *************** *** 1957,1960 **** --- 1958,1962 ---- // Debug main phpBB code //die(str_replace("\n", '<br>', htmlspecialchars($code))); + //die( '<pre>'.preg_replace("#\n#esi", "'<br>' . sprintf('%4d ',\$i++)", htmlspecialchars($code)) . '</pre>'); eval($code); } |