-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheditor.php
152 lines (122 loc) · 5.79 KB
/
editor.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lan="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Editor Page </title>
<link href="css/style.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/57c4c79ee8.js" crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital@1&display=swap" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="js/login.js"></script>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/caman.full.min.js"></script>
<?php
if (isset($_GET['id']) && isset($_GET['path'])) {
$id = $_GET['id'];
$path = $_GET['path'];
} else {
echo "paramerters have not been set";
exit();
}
?>
</head>
<body>
<!--
main nav bar
-->
<nav class="main-nav">
<div class="logo">
<img src="images/logo.png">
</div>
<div class="hamburger">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<ul class="nav-links">
<li><a href="gallery.php"><i class="fas fa-th"></i>  Gallery</a></li>
<li><a href="user.php"><i class="fas fa-house-user"></i>  My dashboard</a></li>
<li><a href="account.php"><i class="fas fa-user-cog"></i></i>  settings</a></li>
<li><a href="logout.php"><i class="fas fa-sign-out-alt"></i>  Sign out</a></li>
<li><a href="about.html"><i class="fas fa-question-circle"></i>  About</a></li>
</ul>
</nav>
<div class="upload-popup">
<input id="imageLoader" type="file"><br>
<button id='up-can'>Cancel</button>
<button id="up-ok">Ok</button>
</div>
<div class="editor">
<div class="filter">
<h2> Filter </h2>
<button id="filter-vin"><img src="images/FilterThumbnail/Vintage.png" />Vintage</button> <br>
<button id="filter-sun"><img src="images/FilterThumbnail/Sunrise.png" />Sunrise</button> <br>
<button id="filter-cp"><img src="images/FilterThumbnail/Cross Process.png" />CrossProcess</button> <br>
<button id="filter-lomo"><img src="images/FilterThumbnail/Lomo.png" />Lomo</button> <br>
<button id="filter-pin"><img src="images/FilterThumbnail/Pinhole.png" />Pinhole</button> <br>
<button id="filter-her"><img src="images/FilterThumbnail/HerMajesty.png" />Her Majesty</button> <br>
<button id="filter-org"><img src="images/FilterThumbnail/OrangePeel.png" />Orange Peel</button> <br>
<button id="filter-haze"><img src="images/FilterThumbnail/Haze.png" />Haze</button> <br>
<button id="filter-rad"><img src="images/FilterThumbnail/RadialBlur.png" />Radial Blur</button> <br>
</div>
<div class="display">
<div class="inner">
<div class="loading-screen">
<div class="spinner"></div>
</div>
<div class="canvas-cont">
<canvas id="editor-can"></canvas>
</div>
</div>
<div class="post-bt editor-bt">
<button id="slider-bt"><i class="fas fa-sliders-h"></i><span class="button-name">  Show sliders  </span></button>
<a href="<?php echo $path ?>" download>   <i class="fas fa-download"></i><span class="button-name">  Download Image  </span></a>
<a id="edit-up" href="#">   <i class="fas fa-upload"></i><span class="button-name">  Upload  </span></a>
<form action="<?php echo 'post.php?edit_of=' . $id ?>" method="POST" id="upload-form">
<button type="submit" name="submit" id="edit-sub">   <i class="fas fa-plus"></i><span class="button-name">  Submit edit  </span></button>
</form>
</div>
</div>
<div class="edit">
<h2> Editor </h2>
<h3> Exposure </h3>
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="slide-exp">
</div>
<h3> Saturation </h3>
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="slide-sat">
</div>
<h3> Tint </h3>
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="slide-hue">
</div>
<h3> Contrast </h3>
<div class="slidecontainer">
<input type="range" min="-20" max="20" value="0" class="slider" id="slide-cntrst">
</div>
<h3> Sharpness </h3>
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="slide-sharp">
</div>
<h3> Vibrance </h3>
<div class="slidecontainer">
<input type="range" min="-100" max="100" value="0" class="slider" id="slide-vib">
</div>
<h3> Grain </h3>
<div class="slidecontainer">
<input type="range" min="0" max="30" value="0" class="slider" id="slide-noise">
</div>
</div>
</div>
<script src="js/nav.js"></script>
<script src="js/editor.js"></script>
<!--
<script>
importImg(<?php /*echo '"'.$path.'"'*/ ?>)
</script>
-->
</body>