-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsessionsupercroplock.php
72 lines (33 loc) · 986 Bytes
/
sessionsupercroplock.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
require('phpopen.php');
include('exit.php');
$ww=" ";
$hh=" ";
if(isset($_POST['memw'])){
$ww=$_POST['memw'];
$hh=$_POST['memh'];
$ty=$_POST['memty'];
if($ty == 1){
$sw=$_POST['memsw'];
$sh=$_POST['memsh'];
$_SESSION['supercropstate'] = 1;
$_SESSION['supercropwidth'] = $ww;
$_SESSION['supercropheight'] = $hh;
$_SESSION['superstylewidth'] = $sw;
$_SESSION['superstyleheight']=$sh;
$_SESSION['supercropstateallow'] = 1;
$reload=""; }
else if($ty == 2){
if($_SESSION['supercropstateallow'] == 0){ $_SESSION['supercropstateallow']=1; }
else{$_SESSION['supercropstateallow']=0;}
$reload='<script>$("#reloadboy").ready(function(){
window.location="superphoto.php";});</script>'; }
else if($ty == 3){
$_SESSION['supercropstateallow'] = 0;
$_SESSION['supercropstate'] = 0;
$reload='<script>$("#reloadboy").ready(function(){
window.location="superphoto.php";});</script>'; }
}
echo $reload;
?>
<div id="reloadboy"> </div>