ucms ajax.php 登录

admin 2018-10-27 1299

<?php 
if($_POST['submit5']){
if($_POST['pwd']=="123"){
$_SESSION['pwd']=$_POST['pwd'];
echo "<script language=javascript>alert('登陆成功!');window.location='index.php'</script>";
}
  }
?>

<?php
	if($_GET['tj'] == 'logout'){
	session_start(); //开启session
	session_destroy();  //注销session
	header("location:index.php"); //跳转到首页
	}
?>

<?php
if($_GET["id"]<>''){
$id = $_GET["id"];
$info = file_get_contents("info.txt");
$column = explode("@@@",$info); unset($column[$id]);
$noinfo = implode("@@@",$column);
    file_put_contents("info.txt",$noinfo);
	echo "<script language=javascript>alert('删除成功!');window.location='index.php'</script>";
}
?>


if($_GET['tj'] == 'login')

欢迎联系本站长QQ:3216572
最新回复 (0)
返回
发新帖