// ha kiesett a user //if (!isset ($_SESSION['username'])) $_SESSION['sys_jog'] = 0; mb_internal_encoding("UTF-8"); @include("js_inc/header.inc.php"); $conn = pg_connect( "dbname=$dbname host=$host user=$user password=$passwordx port=$port"); $res = pg_query( $conn, "SET DATESTYLE TO 'ISO'"); // tranzakciovedelmes INS_ERT, UPD_ATE es DEL_ETE a wo_query fuggvennyel @include("js_inc/header_funx.inc.php"); // ip cim (userhez legkozelebbi meg publikus ip) @include("js_inc/ip_define.php"); //echo ''; //echo ''.$act_mess.'
'; //echo '
'; // ip tiltas ellenorzes $ip_number = sprintf("%u", ip2long($ip)); $tilt_check = pg_num_rows (pg_query ("SELECT * FROM wou_sec_tilt_tart WHERE '".$ip_number."' >= begin_num AND '".$ip_number."' <= end_num ")); if ($tilt_check > 0) { $w_date = date ("Y/m/d"); $get_tilt_hits = pg_fetch_array (pg_query ("SELECT * FROM wou_sec_tilt_tart WHERE '".$ip_number."' >= begin_num AND '".$ip_number."' <= end_num ")); $tilt_hits = $get_tilt_hits['hanyszor'] + 1; $query_params = "UPDATE wou_sec_tilt_tart SET utoljara='$w_date', hanyszor='$tilt_hits' WHERE '".$ip_number."' >= begin_num AND '".$ip_number."' <= end_num "; wo_query($query_params); pg_close ($conn); // adatbazi lezar, ures lapot kap } else { //////////////////////////////////////////////////////////////////////////////// // ide johet az extra password ellenorzes ha kell // de ki kell hagyni ha MyData password csere van !!!!!!!!!! //////////////////////////////////////////////////////////////////////////////// if ($_POST['menu_nyelv'] <> '') $_SESSION['menu_nyelv'] = $_POST['menu_nyelv']; $menu_nyelv = $_SESSION['menu_nyelv']; //ha van azonos sess ip, akkor nem indithat semilyen mas szotarat if ((($_SESSION['nyelv1'] <> $nyelv1)OR($_SESSION['nyelv2'] <> $nyelv2))AND($_SESSION['regi'] == 'igen')) { echo 'A '.$nyelv1.'-'.$nyelv2.' szótár nem tud egyidejűleg működni a böngészőben megnyitott más weboldalakkal.
'; echo 'Kérjük zárja be a nem szükséges böngésző-ablakokat, böngésző-lapokat és frisítse ezt az oldalt.'; } else { // ha valaki ottfelejti a gepet es elhal a session, akkor nem fogadja a formokat if ($_SESSION['regi'] == 'igen') { $UserRegForm = $_POST['UserRegForm']; $UserRegForm2 = $_POST['UserRegForm2']; $UserRegUpload = $_POST['UserRegUpload']; $Login = $_POST['Login']; $Dictionary = $_POST['Dictionary']; $School = $_POST['School']; $SubPage = $_POST['SubPage']; $MyData = $_POST['MyData']; $Effici = $_POST['Effici']; $Search = $_POST['Search']; $Calendar = $_POST['Calendar']; $Extra = $_POST['Extra']; $Test = $_POST['Test']; $Detailed = $_POST['Detailed']; $Detailed_rel_del = $_POST['Detailed_rel_del']; $Menutext = $_POST['Menutext']; $Menutext2 = $_POST['Menutext2']; $Lab = $_POST['Lab']; $Lab2 = $_POST['Lab2']; $Admin = $_POST['Admin']; $MyDic = $_POST['MyDic']; $Help = $_POST['Help']; $LostPass = $_POST['LostPass']; } $_SESSION['ip'] = $ip; $_SESSION['nyelv1'] = $nyelv1; $_SESSION['nyelv2'] = $nyelv2; $_SESSION['regi'] = 'igen'; //echo 'sessor:'.$_SESSION['orszag'].' '; //
echo $_SESSION['orszag']; if ((!isset($_SESSION['application']))OR($_SESSION['application'] == '_')) $_SESSION['application'] = ''.$nyelv1.'_'.$nyelv2.''; //applictaion= milyen szotarhoz vagy alkalmazashoz kotodik //$application = $_SESSION['application']; //echo 'sessapp:'.$_SESSION['application'].'
'; //echo ''; //echo 'sessapp:'.$_SESSION['application'].'
'; //echo '
'; if((!isset($_SESSION['menu_nyelv'])) OR ($_SESSION['menu_nyelv'] == '')){ @include("js_inc/language_detection.inc.php"); } if((!isset($_SESSION['orszag'])) OR ($_SESSION['orszag'] == '')){ @include("js_inc/country_detection.inc.php"); } //$bongeszo_orszag = 'ja'; @include("w_stat.php"); if(isset($Login)) { @include("Login.inc.php"); } if((isset($_POST['MyData'])) AND (isset($_POST['uj_menu_nyelv'])) AND ($_POST['uj_menu_nyelv'] != $_SESSION['menu_nyelv'])) { $_SESSION['menu_nyelv'] = $_POST['uj_menu_nyelv']; $_SESSION['ad_language'] = $_POST['uj_menu_nyelv']; $menu_nyelv = $_SESSION['menu_nyelv']; //echo 'mydatabol menu_nyelv: '.$menu_nyelv.'
'; } if((isset($_POST['uj_orszag'])) AND ($_POST['uj_orszag'] != $_SESSION['orszag']))//(isset($_POST['MyData'])) AND { $_SESSION['orszag'] = $_POST['uj_orszag']; $_SESSION['ad_country'] = $_POST['uj_orszag']; $orszag = $_SESSION['orszag']; //echo 'mydatabol menu_nyelv: '.$menu_nyelv.'
'; } if ($_SESSION['menu_nyelv'] == '') { if (($bongeszo_nyelv == $nyelv1) OR ($bongeszo_nyelv == $nyelv2)) { $_SESSION['menu_nyelv'] = $bongeszo_nyelv; } else { // japan nyelvu indexeles erdekeben !!! $_SESSION['menu_nyelv'] = $nyelv2; // de ha magyar - xnyelv szotar, akkor a kornyezo orszagoknak magyarul if (($nyelv1 == 'hu') OR ($nyelv2 == 'hu')) { if (($bongeszo_orszag == 'ro')OR($bongeszo_orszag == 'sk')OR($bongeszo_orszag == 'at')OR($bongeszo_orszag == 'si')OR($bongeszo_orszag == 'hr')OR($bongeszo_orszag == 'ua')OR($bongeszo_orszag == 'rs')OR($bongeszo_orszag == 'yu')) { $_SESSION['menu_nyelv'] = $nyelv1; } } } $menu_nyelv = $_SESSION['menu_nyelv']; //echo 'bongeszobol menu_nyelv: '.$menu_nyelv.'
'; } if (!function_exists('maszk')) { @include("js_inc/maszk.inc.php"); } //TRAP egyenkenti kereses (motor?) & xx nyelv //@include("js_inc/trap.inc.php"); //AD_STAT // redukcio reklamfeluletekre if (($_SESSION['ad_country']=='')OR($_SESSION['ad_language']=='')) { @include("js_inc/ad_country_lang_detection.inc.php"); } @include("ad_stat.php"); if(!isset($Test)) { echo ''; } echo ''; echo ''; echo ''; //echo ''; $title_inc = 'title_'.$nyelv1.'_'.$nyelv2.'_inc.php'; @include("js_inc/".$title_inc.""); echo ''; echo ''; echo ''; //echo ''; ?> '; echo ''; // }else { // uj menu if((isset($Dictionary) AND ($SubPage == 'MyDic')) OR isset($Admin) OR isset($Help))//Help ideiglenes { @include_once("js_inc/table_widget_inc.php"); } // uj menu VEGE //if(isset($Detailed)) if(isset($Dictionary) AND ($SubPage == 'Detailed')) { //echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } else { echo ''; echo ''; echo ''; echo ''; echo ''; } if(isset($UserRegForm) OR isset($MyData)) { @include("js_inc/PassConfirm.js"); } //if(isset($MyDic) OR isset($Admin) OR isset($Help))//Help ideiglenes // { //@include_once("js_inc/table_widget_inc.php"); // } } // Google Plus echo ''; echo ''; if(isset($Test)) { echo ''; }else{ echo ''; } //echo 'dic='.$Dictonary.' se='.$Search.'
'; echo ''; echo ' '; echo ' '; //echo ' '; echo ' '; if (!isset ($_SESSION['username'])) { $username = $_SESSION['username']; echo ' '; } else { echo ' '; echo '
logo
'.maszk(''.$nyelv1.'_'.$nyelv2.'_dic', $menu_nyelv).'

'.maszk(''.$nyelv1.'_'.$nyelv2.'_dic', $menu_nyelv).'

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'.maszk("--username--", $menu_nyelv).' '.maszk("--jelszo--", $menu_nyelv).''; echo '
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ' '; echo ' '; echo '
'; if ($_SESSION['neme'] == 1) echo 'user '; if ($_SESSION['neme'] == 2) echo 'user_f '; if ($_SESSION['neme'] == 0) echo 'user_m '; echo ''; echo ' '.$_SESSION['username'].' '; echo '
'; echo '
'; echo ' '; echo ' '; // '.maszk("--kilepes--", $menu_nyelv).' echo '
'; echo '
'; } echo '
'; echo ''; echo ' '; echo ''; echo ''; echo ' '; echo '
'; // menunyelv valto echo ' '; echo ' '; //echo ' '; echo ' '; echo ' '; echo ' '; echo '
'; echo '
'; if(isset($UserRegForm)) echo ''; if(isset($Dictionary)) echo ''; if(isset($MyDic)) echo ''; if(isset($Extra)) echo ''; if(isset($Lab2)) echo ''; if(isset($Calendar)) echo ''; if(isset($MyData)) echo ''; if(isset($Admin)) echo ''; if(isset($Menutext)) echo ''; if(isset($Help)) echo ''; echo ' '; echo ' '; //echo ' '; echo '
'; echo '
'; echo '
'; if(isset($UserRegForm)) echo ''; if(isset($Dictionary)) echo ''; if(isset($MyDic)) echo ''; if(isset($Extra)) echo ''; if(isset($Lab2)) echo ''; if(isset($Calendar)) echo ''; if(isset($MyData)) echo ''; if(isset($Admin)) echo ''; if(isset($Menutext)) echo ''; if(isset($Help)) echo ''; echo ' '; echo ' '; //echo ' '; echo '
'; echo '
'; // menunyelv valto VEGE echo '
'; ////////////////////////////////////////////////// // MENU ////////////////////////////////////////////////// echo ' '; echo ' '; echo ' '; //if ($_SESSION['username'] == 'somfait') //{ //echo ' '; //} //if (($_SESSION['username'] == 'somfait')OR($_SESSION['username'] == 'sipilaci')OR($_SESSION['username'] == 'somen')) //{ // NAPTAR echo ' '; //} // KULSO teszt if ( $_SESSION['application'] == 'hu_ja' ) { echo ' '; } // Extra if ( $_SESSION['application'] == 'hu_ja' ) { echo ' '; } // Extra VEGE if ( $_SESSION['sys_jog'] >= 1 ) { echo ' '; //SCHOOL //if (($_SESSION['username'] == 'somfait')OR($_SESSION['username'] == 'sipilaci')) if (($_SESSION['sys_jog'] >= 3) OR(substr($_SESSION['username'], 0, 3) == 'SCM') OR(substr($_SESSION['username'], 0, 3) == 'TEA') OR(substr($_SESSION['username'], 0, 3) == 'STU')) { echo ' '; } //SCHOOL vege //LAB if ($_SESSION['sys_jog'] >= 1) { echo ' '; } //LAB vege if ( $_SESSION['sys_jog'] >= 3 ) { echo ' '; //echo ' '; echo ' '; echo ' '; if ( $_SESSION['sys_jog'] >= 4 ) { echo ' '; echo ' '; } } //sys_jog >= 3 VEGE } else { echo ' '; echo ' '; echo ' '; } echo ' '; echo '
'; echo '
'; $MenuRollIns = ''; if(isset($Dictionary)) $MenuRollIns = 'Selected'; echo ' '; echo '
'; echo '
'; //echo '
'; //echo ' '; //$MenuRollIns = ''; //if(isset($Search)) $MenuRollIns = 'Selected'; //echo ' ';// //echo '
'; //echo '
'; echo '
'; echo ' '; $MenuRollIns = ''; if(isset($Calendar)) $MenuRollIns = 'Selected'; echo ' ';// echo '
'; echo '
'; echo '
'; echo ' '; $MenuRollIns = ''; if(isset($Test)) $MenuRollIns = 'Selected'; echo ' '; echo '
'; echo '
'; echo '
'; echo ' '; $MenuRollIns = ''; if(isset($Extra)) $MenuRollIns = 'Selected'; echo ' '; echo '
'; echo '
'; echo '
'; echo ' '; $MenuRollIns = ''; if(isset($MyData)) $MenuRollIns = 'Selected'; echo ' ';// echo '
'; echo '
'; echo '
'; echo ' '; $MenuRollIns = ''; if(isset($School)) $MenuRollIns = 'Selected'; echo ' ';// echo '
'; echo '
'; echo '
'; echo ' '; $MenuRollIns = ''; if(isset($Lab)) $MenuRollIns = 'Selected'; echo ' ';// echo '
'; echo '
|||'; //echo '
'; //echo ' '; //echo '
'; //echo '
'; echo '
'; $MenuRollIns = ''; if(isset($Admin)) $MenuRollIns = 'Selected'; echo ' '; echo '
'; echo '
'; echo '
'; $MenuRollIns = ''; if(isset($Menutext)) $MenuRollIns = 'Selected'; echo ' '; echo '
'; echo '
|V'; echo '
'; $MenuRollIns = ''; if(isset($Menutext2)) $MenuRollIns = 'Selected'; echo ' '; echo '
'; echo '
'; echo '
'; echo ' '; $MenuRollIns = ''; if(isset($UserRegForm) OR isset($UserRegForm2) OR isset($UserRegUpload)) $MenuRollIns = 'Selected'; echo ' '; //echo ' '; echo '
'; echo '
'; //FB LIKE BEGIN echo''; //FB LIKE END echo ' '; //Google Plus BEGIN echo''; //Google Plus END echo '
'; echo '
'; //echo '>>ip: '.$ip.' '; $rem_border=0; //if ($_SESSION['username'] == 'somfait') $rem_border=1; echo ''; echo ' '; echo ' '; //if ($_SESSION['sys_jog'] >= 3) //{ // if(!isset($Admin)) // { // // } //} echo ' '; }//elseif ($_SESSION['uzenet'] == 'hibas_login_mail_sent') //{ //echo '
'; //echo ' '.maszk("--hibas_azonosito_vagy_jelszo_kisbetu_nagybetu_erzekeny_probald_ujra--", $menu_nyelv).'
'; //echo '
'; //$_SESSION['uzenet'] = ''; //} elseif ($act_mess <> '') { echo '
'; if ($act_mess == 'sikeres_aktivalas'){ echo ' '.maszk("--aktivalas_sikerult_lepj_be--", $menu_nyelv).'
'; }else{ echo ' '.maszk("--sikertelen_aktivalas--", $menu_nyelv).'
'; } echo '
'; $act_mess = ''; } else { @include("js_inc/IntroMain.inc.php"); } } else { @include("Dictionary.inc.php"); //@include("js_inc/page_counter.php"); /////@include("js_inc/IntroMainUser.inc.php"); } } echo ' '; echo ' '; //if ($_SESSION['sys_jog'] >= 3) //{ // if(!isset($Admin)) // { // echo ' '; // } //} echo ' '; echo '
'; // AdsByWOU ad_a // @include("Ads/ad_a.php"); @include("Ads/ad_left.php"); echo ' '; // Content if(isset($LostPass)) { @include("LostPass_Mail.inc.php"); } elseif(isset($UserRegForm)) { @include("UserRegForm.inc.php"); } elseif(isset($UserRegForm2)) { @include("UserRegForm2.inc.php"); } elseif(isset($UserRegUpload)) { @include("UserRegUpload.inc.php"); } elseif(isset($Dictionary)) { @include("Dictionary.inc.php"); } elseif(isset($School)) { @include("School.inc.php"); } elseif(isset($MyData)) { @include("MyData.inc.php"); } elseif(isset($Menutext)) { @include("Menutext.inc.php"); } elseif(isset($Menutext2)) { @include("Menutext2.inc.php"); } elseif(isset($Test)) { @include("Test.inc.php"); } elseif(isset($Calendar)) { @include("Ads/Calendar.inc.php"); @include("js_inc/page_counter.php"); } elseif(isset($Extra)) { @include("Extra.inc.php"); } elseif(isset($Lab)) { @include("Lab.php"); } elseif(isset($Lab2)) { @include("Lab2.inc.php"); @include("js_inc/page_counter.php"); } elseif(isset($Admin)) { @include("Admin.inc.php"); } elseif(isset($MyDic)) { @include("MyDic.inc.php"); @include("js_inc/page_counter.php"); } elseif(isset($Help)) { @include("Help.inc.php"); } else { if (!isset ($_SESSION['username'])) { if ($_SESSION['uzenet'] == 'hibas_login') { echo '
'; echo ' '.maszk("--hibas_azonosito_vagy_jelszo_kisbetu_nagybetu_erzekeny_probald_ujra--", $menu_nyelv).'
'; echo '
'; $_SESSION['uzenet'] = ''; echo '
'; echo ''; echo ' '; echo ''; echo ' '; echo ''; echo ' '; echo ''; echo ' '; echo ''; echo ' '; //echo ''; echo ''; echo ' '; echo ''; //echo ' '; echo ' '; echo ''; echo ' '; echo '
 
'.maszk("--elfelejtett_jelszo--", $menu_nyelv).'
'.maszk("--ird_be_az_email_cimedet--", $menu_nyelv).'
'.maszk("--feliratkozasi_adataidat_kuldjuk--", $menu_nyelv).'
'; echo '
'; // AdsByWOU ad_a // @include("Ads/ad_a.php"); @include("Ads/ad_right.php"); echo ' '; // // AdsByWOU ad_cult // @include("Ads/ad_cult.php"); // echo '
'; } // sess_ip ellenorzes vege, tobb szotar egyideju hasznalatanak kizarasa } // if ($tilt_check > 0) vege ?>