= 0) { // $ol = "CNT_PROJECT"; // } else { // $ol="CNT_REG"; // } //} error_reporting(E_ALL); ini_set('display_errors', 1); if (!$lang) $lang=2; include("myportal/config.tmp"); mysql_connect($mysqlsock,$mysqluser,$mysqlpwd); mysql_select_db($mysqldtb); $text=array(); $res=mysql_query("select * from lang_text where lang=$lang"); while($sor=mysql_fetch_array($res)) { $text[$sor['valtozo']]=$sor['szoveg']; } include("session/functions.inc"); $uid=get_uid($SID); if (($SID=="") or ($SID=="NO") or ($uid<0)) { $hiba=1; if ($SID!="") echo ""; } if ($ol=="") { if ($hiba==0) { $ol="CNT_PROJECT"; } else { $ol="CNT_REG"; } } if ($hiba==0) { if ($ol==""){ $ol="CNT_REG"; //$ol="CNT_PROJECT"; } } $serverTimeZone = new DateTimeZone(date_default_timezone_get()); $serverTime = new DateTime("now", $serverTimeZone); echo'
';/*
  '; $b=0; $sel=mysql_query("select * from lang order by id"); while ($sor=mysql_fetch_array($sel)) { if ($b==1) echo ' / '; echo ''.$sor['felirat'].''; $b=1; } echo '  
*/ echo '
'; if ($uid<0) { echo '
'.$text['LICIT_szerverido'].''.date ("Y. m. d. - H:i:s").' '; if ($uid<0) echo''.$text['FEJ_regiszter'].' '; else echo''.$text['FEJ_regiszter_mod'].' '; echo' | '.$text['FEJ_emlekezteto'].' '; include('include/scroll.tmp'); echo'
'.$text['FEJ_LOGIN_cim'].' '.$text['FEJ_LOGIN_email'].'   '.$text['FEJ_LOGIN_pass'].'   
'; } else { $res=mysql_query("select kapcs from users where id=$uid"); echo '
'./*$text['FIGYELMEZTEZES']*/''.''.$text['FEJ_UDVOZLES'].' '.mysql_result($res, 0,0).'!
'.$text['FEJ_LOGOUT'].''; } echo '
'; switch ($ol) { case "CNT_REG": $oldal2="include/regiszter.tmp"; break; case "CNT_REG2": $oldal2="include/regiszter_meghiv.tmp"; break; case "CNT_REGMOD": $oldal2="include/regmod.tmp"; break; case "CNT_REMIND": $oldal2="include/emlekezteto.tmp"; break; case "CNT_OLDAL": $oldal2="include/oldal.tmp"; break; case "CNT_PROJECT": $oldal2="include/project.tmp"; break; case "CNT_PROJECT1": $oldal2="include/project1.tmp"; break; case "CNT_PROJECT2": $oldal2="include/project2.tmp"; break; case "CNT_PROJECT3": $oldal2="include/project3.tmp"; break; case "CNT_PROJECT4": $oldal2="include/project4.tmp"; break; case "CNT_PROJECT5": $oldal2="include/project5.tmp"; break; case "CNT_LICIT1": $oldal2="include/licit1.php"; break; case "CNT_LICIT2": $oldal2="include/licit2.php"; break; case "CNT_ARCHIVUM": $oldal2="include/archivum.php"; break; default: $oldal2="include/fooldal.tmp"; } include ($oldal2); echo'
'; /*echo '
'.$text['PAGE_LABLEC_1'].'
'.$text['PAGE_LABLEC_2'].'
';*/ echo '
'; ?>