-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesign.php
45 lines (44 loc) · 916 Bytes
/
design.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
43
44
45
<?php
ob_start();
session_start();
include('connect.php');
if(isset($_COOKIE["userid"]))
{
if($_COOKIE["userid"]=="user_id_auth_remember")
$_SESSION['userid']="admuser";
}
if(!isset($_SESSION['userid']))
{
header('location:index.php');
}
?>
<?php
echo 'jojo';
if(isset($_GET['pro']))
{
echo 'jojo';
$design=mysqli_real_escape_string($con,$_GET['pro']);
echo '<textarea rows="30" cols="40">'.$design.'</textarea>';
$q="delete from pro where name='user'";
$r=mysqli_query($con,$q);
if($r)
{
$q="insert into pro values ('$design','user')";
$r=mysqli_query($con,$q);
if($r) {}
}
}
if( isset($_GET['mig']))
{
$design=mysqli_real_escape_string($con,$_GET['mig']);
echo '<textarea rows="30" cols="40">'.$design.'</textarea>';
$q="delete from mig where name='user'";
$r=mysqli_query($con,$q);
if($r)
{
$q="insert into mig values ('$design','user')";
$r=mysqli_query($con,$q);
if($r) {}
}
}
?>