rendered paste body function URLhand( $type ) { global $libsession; $URLmod = strtolower( $_GET['mod'] ); $URLsec = $_GET['sec']; if ( $type == 'admin' ) { // Manage Mod/Sec's for the AdminCP if ( $libsession->LoggedIn != 1 AND $URLmod != 'session' ) { $URLmod = 'session'; $URLsec = 1; } if ( $libsession->LoggedIn == 1 AND $URLmod == NULL ) { $URLmod = _CONFIG_FIRST_MOD; } if ( $libsession->LoggedIn == 1 AND $URLmod == 'session' AND $URLsec != '3' ) { redirect( 'index.php?mod='._CONFIG_FIRST_MOD ); } if ( $URLsec == NULL ) { $URLsec = 1; } } else { // Check if the site has been taken offline if ( _CONFIG_SITEOFFLINE == 'yes' ) { $URLmod = 'offline'; $URLsec = 1; } if ( $URLmod == NULL ) { $URLmod = _CONFIG_FIRST_MOD; } // Manage Mod/Sec's for the Main website if ( $URLsec == NULL ) { $URLsec = 1; } } define( '_URLMOD', $URLmod ); define( '_URLSEC', $URLsec ); }