İçerik Yönetim Sistemi
process($HTTP_POST_VARS); $HTTP_GET_VARS=$xss_filter->process($HTTP_GET_VARS); $_COOKIE=$xss_filter->process($_COOKIE); /*eof security**************************************/ if(!$HTTP_POST_VARS[pass]&&!$_SESSION['oturum']){ logUserIn($HTTP_POST_VARS); //login_screen(); }else if(!$_SESSION['oturum']){ logUserIn($HTTP_POST_VARS); }else if($_SESSION[code]=="hsb23749dusljxna7639329dbfb245"){//session var require_once("mysql.php"); $sql_connection= new mysql_works(); $ses_kullanici=$_SESSION['kullanici_adi'] ; $query="UPDATE kullanici SET son_aktivite=now() where id_kullanici=$_SESSION[id_kullanici];"; $sql_connection->Query($query); /*tepav ip sorunu yüzünden ip adresi değişiyor güvenlik kaldırıldı $query="select ip from kullanici where kullanici_adi='$ses_kullanici'"; $result=$sql_connection->Query($query); $entity=mysql_fetch_assoc($result); if($entity[ip]==$_SERVER[REMOTE_ADDR]) $authorization="done"; */ $authorization="done"; if($authorization=="done"){//authorized access switch ($HTTP_GET_VARS[st]) { case "haberler": page_top(); require_once("pop.haber.php"); $eklenecek_form=new haber(); $eklenecek_form->handle_haber($HTTP_GET_VARS,$HTTP_POST_VARS); page_bottom(); break; case "proje": page_top(); require_once("pop.proje.php"); $eklenecek_form=new proje(); $eklenecek_form->handle_proje($HTTP_GET_VARS,$HTTP_POST_VARS); page_bottom(); break; case "forum.ajx": require_once("pop.forum.php"); $eklenecek_form=new forum(); $eklenecek_form->handle_forum($HTTP_GET_VARS,$HTTP_POST_VARS); break; case "sertifika": page_top(); require_once("pop.sertifika.php"); $eklenecek_form=new sertifika(); $eklenecek_form->handle_sertifika($HTTP_GET_VARS,$HTTP_POST_VARS); page_bottom(); break; case "istatistik": page_top(); require_once("pop.istatistik.php"); $eklenecek_form=new istatistik(); $eklenecek_form->handle_istatistik($HTTP_GET_VARS,$HTTP_POST_VARS); page_bottom(); break; case "ekipman": page_top(); require_once("pop.machinery.php"); $eklenecek_form=new machinery(); $eklenecek_form->handle_machinery($HTTP_GET_VARS,$HTTP_POST_VARS); page_bottom(); break; case "hesap_ayar": page_top(); require_once("pop.hesap_ayarlari.php"); $eklenecek_form=new hesap_ayarlari; $eklenecek_form->handle_hesap_ayarlari($HTTP_GET_VARS,$HTTP_POST_VARS,$HTTP_POST_FILES); page_bottom(); break; case "uye_cikis": $_SESSION = array(); session_destroy(); setcookie("rm","",0); setcookie("user","",0); echo ''; exit; break; default: page_top(); require_once("pop.anasayfa.php"); $eklenecek_form=new anasayfa(); $eklenecek_form->handle_anasayfa($HTTP_GET_VARS,$HTTP_POST_VARS); page_bottom(); break; } }else{ $_SESSION=""; login_screen("Güvenlik noktası. "); } }else{ login_screen("Güvenlik noktası"); } function login_screen($message="Kullanıcı Girişi"){ session_destroy(); session_start(); echo'