forked from pulsir/pulsir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.php
More file actions
55 lines (36 loc) · 1.22 KB
/
Copy pathedit.php
File metadata and controls
55 lines (36 loc) · 1.22 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
error_reporting(0);
$salt = '9572186cd8f2e34eb43126434391bc77$1$mwI2qhKq$CzGzM43JmtvRWwKpbbl7..$1$CHBkox0S$nEoSlWNwnTB89.U0BRsax/3862f21b65bdb8d2223ef223a978ff6f3862f21b65bdb8d2223ef223a978ff6ff6ff879a322fe3222d8bdb56b12f2683883258566443752882';
if(crypt($_COOKIE['plluser'].$_COOKIE['expon'], $salt) == $_COOKIE['psession']) {
if($id != ''):
$id = mysql_real_escape_string($post['id']);
$sql = "SELECT * FROM cms_content WHERE id = '$id'";
$return = '';
else:
die('You\'ve got to edit something');
endif;
$res = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($res) !=0):
while($row = mysql_fetch_assoc($res)) {
if($row['author'] = $_COOKIE['plluser']){
$cand = 1;
}
else:
die('oops');
endif;
echo $return;
}
}
include 'boot.php';
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UFT-8" />
<title>Edit a post</title>
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<body>
<div id="page-wrap">
<?=$obj->update_content_form($_GET['id'])?>
</body>
<html>