0) and ($securimage->check($guvenlik_kodu) == true) and ($token == $_SESSION['anahtar']) ) { // username and password match - this is a valid user $MM_adi=$row_FF_rsUser["adi"]; session_register("MM_adi"); $MM_gendag1=$row_FF_rsUser["gendag1"]; session_register("MM_gendag1"); $MM_gendag2=$row_FF_rsUser["gendag2"]; session_register("MM_gendag2"); $MM_gendag3=$row_FF_rsUser["gendag3"]; session_register("MM_gendag3"); $MM_gendag4=$row_FF_rsUser["gendag4"]; session_register("MM_gendag4"); $MM_gendag5=$row_FF_rsUser["gendag5"]; session_register("MM_gendag5"); $MM_bolum=$row_FF_rsUser["bolum"]; session_register("MM_bolum"); $MM_bolum2=$row_FF_rsUser["bolum2"]; session_register("MM_bolum2"); $MM_Username=$FF_valUsername; session_register("MM_Username"); // son giriş tarihi düzenleniyor... $tarih=date("Y.m.d H:i",time()); $updateSQL = sprintf("UPDATE users SET songir='". $tarih ."' WHERE kul_adi='" . $FF_valUsername . "' AND kul_sif='" . $frm_sifre . "'"); //echo $updateSQL; mysql_select_db($database_bag_belgearsiv, $bag_belgearsiv); $Result2 = mysql_query($updateSQL, $bag_belgearsiv) or die(mysql_error()); // log ekliyoruzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz $ekleSQL = "INSERT INTO islemanaliz (tarih, islyapan,islem) VALUES ('". $tarih ."', '" . $MM_adi . "','Oturum açtı ".$_SERVER['REMOTE_ADDR']."')"; mysql_select_db($database_bag_belgearsiv, $bag_belgearsiv); $eklemesonucu = mysql_query($ekleSQL, $bag_belgearsiv) or die(mysql_error()); // log ekleme işi bitiyorrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr /* $giristarihi=date("Y.m.d",time()); $updateSQL = sprintf("UPDATE users SET songir=%s WHERE kul_adi=%s and kul_sif=%s, GetSQLValueString($giristarihi, "date"), GetSQLValueString($FF_valUsername, "text"), GetSQLValueString($frm_sifre, "date")"); mysql_select_db($database_bag_belgearsiv, $bag_belgearsiv); $Result1 = mysql_query($updateSQL, $bag_belgearsiv) or die(mysql_error()); */ // buraya kadar son giriş tarihi ayarlanıyo if ($FF_fldUserAuthorization != "") { $MM_UserAuthorization=$row_FF_rsUser[$FF_fldUserAuthorization]; } else { $MM_UserAuthorization=""; } session_register("MM_UserAuthorization"); if (isset($accessdenied) && false) { $FF_redirectLoginSuccess = $accessdenied; } session_register("FF_login_failed"); $FF_login_failed = false; mysql_free_result($FF_rsUser); if ($MM_UserAuthorization==2){ $FF_redirectLoginSuccess="memurgelenbelge.php"; } //memur if ($MM_UserAuthorization==3){ $FF_redirectLoginSuccess="evrkaygelenbelge.php?kurum=1"; } // evrakkayıt if ($MM_UserAuthorization==4){ $FF_redirectLoginSuccess="sbmdrgelenbelge.php"; } //Şube Müdürü if ($MM_UserAuthorization==5){ $FF_redirectLoginSuccess="sefgelenbelge.php"; } //Şef if ($MM_UserAuthorization==6){ $FF_redirectLoginSuccess="admingelenbelge.php"; } //Administator if (strtotime($tarih)>strtotime($row_FF_rsUser["sifdeg"].' + 1 months')) $FF_redirectLoginSuccess="sifdeg.php?islem=1"; header ("Location: $FF_redirectLoginSuccess"); exit; } mysql_free_result($FF_rsUser); session_register("FF_login_failed"); $FF_login_failed = true; header ("Location: $FF_redirectLoginFailed"); exit; } $_SESSION["anahtar"] = md5(rand(0,9999)); //CSRF için ?> Belge Arşiv

e-kurum Giriş
Kulanıcı
Şifre
Güvenlik Kodu Güvenlik Kodu



Şifre Değiştir

 

www.e-kurum.com