Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: global.php 2207 2006-09-10 01:46:13Z chris $
| * $Id: global.php 2932 2007-03-10 05:48:55Z chris $
|
*/
// Lets pretend we're a level higher
| */
// Lets pretend we're a level higher
|
Zeile 20 | Zeile 20 |
---|
$config['admin_dir'] = "admin"; }
|
$config['admin_dir'] = "admin"; }
|
require_once dirname(dirname(__FILE__))."/inc/init.php";
| require_once "../inc/init.php";
|
define('MYBB_ADMIN_DIR', MYBB_ROOT.$config['admin_dir'].'/');
| define('MYBB_ADMIN_DIR', MYBB_ROOT.$config['admin_dir'].'/');
|
Zeile 229 | Zeile 229 |
---|
if(!empty($_SERVER['QUERY_STRING'])) { $goto .= '?'.$_SERVER['QUERY_STRING'];
|
if(!empty($_SERVER['QUERY_STRING'])) { $goto .= '?'.$_SERVER['QUERY_STRING'];
|
$goto = preg_replace('#(&?|&?|\??)adminsid=([a-zA-Z0-9]{1,32})#i', '', $goto);
| if(strpos($goto, '&') !== false) { $goto = preg_replace('#(&?|&?|\??)adminsid=([a-zA-Z0-9]{1,32})(&?|&?)#i', '\\1', $goto); } else { $goto = preg_replace('#\?adminsid=([a-zA-Z0-9]{1,32})#i', '', $goto); }
|
} } else
| } } else
|