DEFAULTLANG, 'os' => 'eyeOS', 'ver' => OSVERSION )); if (empty($_SESSION['usr']) && !empty ($_SESSION['sysinfo']['remotesyscall']) && isset ($_REQUEST['syscall'])) { $_REQUEST['syscall'] = '[remote]'.$_REQUEST['syscall']; include_once SYSDIR.'syscall.php'; exit; } $_SESSION['sysinfo'] = array_merge ( array ( 'lang' => DEFAULTLANG, 'os' => 'eyeOS', 'ver' => OSVERSION, 'errors' => 0 ), $_SESSION['sysinfo']); @define ('DEBUG', $_SESSION['dbg'] = !empty ($_REQUEST['dbg']) ? $_REQUEST['dbg'] : (!empty ($_SESSION['sysinfo']['dbg']) ? $_SESSION['sysinfo']['dbg'] : @$_SESSION['dbg'])); if (DEBUG & 1) { $_SESSION['sysinfo']['errors'] = 0; echo '
'; 
         print_r ($_SESSION['sysinfo']); 
         echo '
'; } error_reporting ($_SESSION['sysinfo']['errors']); $_SESSION['lang'] = empty ($_REQUEST['newlang']) ? $_SESSION['sysinfo']['lang'] : $_REQUEST['newlang']; include SYSDIR.LANGFILE; include CONFIG; $usr = cls (@$_REQUEST['usr']); if (!empty ($usr) && !empty ($_REQUEST['pwd'])) { // SECURITY check: $usr is used as a directory name if ((false !== ($_SESSION['usrinfo'] = parse_info (USRDIR."$usr/".USRINFO))) && (@$_SESSION['usrinfo']['pwd'] == md5 ($_REQUEST['pwd']))) { $_SESSION['usr'] = $usr; } if (empty ($_SESSION['usr'])) $logon_error = _L ("Your username/password cannot be found"); else $_SESSION['apps'] = array (); } else if (empty ($_REQUEST['usr']) && empty ($_REQUEST['pwd'])) { if (!isset ($_REQUEST['exit'])) foreach (explode (',', @$_SESSION['sysinfo']['autologon']) as $autolog) { $autolog = explode (':', $autolog); $usr = trim ($autolog[0]); if (($_SERVER['REMOTE_ADDR'] == trim ($autolog[1])) && (false !== ($_SESSION['usrinfo'] = parse_info (USRDIR."$usr/".USRINFO)))) { $_SESSION['usr'] = $usr; break; } } } else $logon_error = _L("Please specify a username and password"); } if (!empty ($_SESSION['usr'])) { $usr = $_SESSION['usr']; $a = @$_SESSION['usrinfo']['autorun'] .';'. @$_SESSION['sysinfo']['autorun'] . ';' . @$_SESSION['usrinfo']['run_once']; if (!empty ($_SESSION['usrinfo']['run_once'])) parse_update (USRDIR."$usr/".USRINFO, 'run_once', null); if (empty ($_REQUEST['newlang']) && !empty ($_SESSION['usrinfo']['lang'])) { $_SESSION['lang'] = $_SESSION['usrinfo']['lang']; include SYSDIR.LANGFILE; } if (!empty ($_SESSION['usrinfo']['wllp']) && !$_SESSION['fondoescollit'] = findGraphic ('wp', USRDIR."$usr/".$_SESSION['usrinfo']['wllp'])) $_SESSION['fondoescollit'] = findGraphic ('', 'eyeos.jpg'); if (false !== strpos (strtolower ($_SERVER['HTTP_USER_AGENT']), 'msie')) $_SESSION['browser_ie'] = 1; include 'desktop.php'; exit; } session_destroy (); if (empty ($logon_error)) $logon_error = ''; /* No usr : pwd or authentication has failed, construct the login screen */ if (!empty ($_SESSION['sysinfo']['hostname']) && (strtolower ($_SESSION['sysinfo']['hostname']) != 'eyeos')) $welcome = '

'._L('Welcome to %0', $_SESSION['sysinfo']['hostname'])."

". _L('running eyeOS %0', OSVERSION). '
'; else $welcome = '

'._L('Welcome to eyeOS %0', OSVERSION).'

'; $prog = array (); foreach (explode (',', APPDIRS) as $adir) { if (!is_dir ($adir)) continue; $dir = opendir ($adir); while ($pgm = readdir ($dir)) if (($pgm != '..') && ($pgm != '.') && is_dir ($adir.($pgmdir = "$pgm/")) && file_exists ($adir.$pgmdir.'ico.png') && file_exists ($adir.$pgm.'alpha.png') && file_exists ($adir.$pgm.APP_CODE)) $prog[] = $adir.$pgm; closedir ($dir); } echo " ".$_SESSION['sysinfo']['os'].' '.OSVERSION."
Make your own free website on Tripod.com
$welcome
$logon_error
"._L('User:')." 
"._L('Password:')." 
"._L('Language: '); if (sizeof($Languages) > 1) { if (!empty ($_REQUEST['newlang'])) echo " "; echo '
'; foreach ($Languages as $l) if (is_file (findGraphic('', "langs/$l.png"))) echo "$l"; else echo ""._L($l).""; } echo "
"; exit ; ?>