id = intval( mosGetParam( $_SESSION, 'session_user_id', '' ) ); $admin->username = strval( mosGetParam( $_SESSION, 'session_username', '' ) ); $admin->usertype = strval( mosGetParam( $_SESSION, 'session_usertype', '' ) ); $session_id = mosGetParam( $_SESSION, 'session_id', '' ); $logintime = mosGetParam( $_SESSION, 'session_logintime', '' ); // check against db record of session if ($session_id == md5( $admin->id . $admin->username . $admin->usertype . $logintime )) { $query = "SELECT *" . "\n FROM #__session" . "\n WHERE session_id = " . $database->Quote( $session_id ) . "\n AND username = " . $database->Quote( $admin->username ) . "\n AND userid = " . intval( $admin->id ) ; $database->setQuery( $query ); if (!$result = $database->query()) { echo $database->stderr(); } if ($database->getNumRows( $result ) == 1) { define( '_ADMIN_OFFLINE', 1 ); } } } } if (!defined( '_ADMIN_OFFLINE' ) || defined( '_INSTALL_CHECK' )) { @include_once ('language/' . $mosConfig_lang . '.php' ); if( $database != NULL ) { // get default frontend template $query = "SELECT template" . "\n FROM #__templates_menu" . "\n WHERE client_id = 0" . "\n AND menuid = 0" ; $database->setQuery( $query ); $cur_template = $database->loadResult(); $path = "$mosConfig_absolute_path/templates/$cur_template/index.php"; if (!file_exists( $path )) { $cur_template = 'rhuk_solarflare_ii'; } } else { $cur_template = 'rhuk_solarflare_ii'; } // needed to seperate the ISO number from the language file constant _ISO $iso = split( '=', _ISO ); // xml prolog echo ''; ?>
|
|
|
|