-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbg.php
42 lines (41 loc) · 1005 Bytes
/
bg.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
include 'conn.php';
if (@$_COOKIE['cookie']=='fy')
{
if (@$_SESSION['rt']=='1')
{
$list="list";
$session="session";
$bglist=new db($list);
$bgsession=new db($session);
include 'bg.htm';
if (@$_GET['ID'])
{
$lcondition="ID=$ID";
$scondition="ContentID=$ID";
if($bglist->del($lcondition)&&$bgsession->del($scondition))
echo "<script language=\"javascript\">alert('删除成功');location.href='bg.php';</script>";
}
if (@$_GET['SID'])
{
$scondition="ID=$SID";
if($bgsession->del($scondition))
echo "<script language=\"javascript\">alert('删除成功');location.href='bg.php';</script>";;
}
}
else
{
echo "<script language=\"javascript\">
alert('这个页面不是谁想看就能看的,小样去找管理员拿权限');
location.href='list.php';
</script>";
}
}
else
{
echo "<script language=\"javascript\">
alert('请先行登入');
location.href='index.htm';
</script>";
}
?>