diff --git a/css/style.css b/css/style.css index 73373b2..f6367c3 100644 --- a/css/style.css +++ b/css/style.css @@ -232,7 +232,6 @@ h1{ width: 100%; text-align: center; margin-top: 25px; - margin-bottom: 25px; } .image { @@ -248,6 +247,7 @@ h1{ overflow: hidden; width: 600px; padding: 10px; + margin-top: 25px; box-shadow: 0 0 4px rgba(0,0,0,0.3) inset,0 -3px 2px rgba(0,0,0,0.1); } \ No newline at end of file diff --git a/img/brushed_alu_dark.png b/img/brushed_alu_dark.png new file mode 100644 index 0000000..d3154d2 Binary files /dev/null and b/img/brushed_alu_dark.png differ diff --git a/img/concrete_wall_3.png b/img/concrete_wall_3.png new file mode 100644 index 0000000..5d04a21 Binary files /dev/null and b/img/concrete_wall_3.png differ diff --git a/img/dark_circles.png b/img/dark_circles.png new file mode 100644 index 0000000..7041e01 Binary files /dev/null and b/img/dark_circles.png differ diff --git a/index.php b/index.php index 89a0e6e..a98c1f5 100644 --- a/index.php +++ b/index.php @@ -1,36 +1,4 @@ -real_connect($conf->hostname, $conf->username, $conf->password, $conf->database); - - $query = "SELECT extension, created, original FROM screens WHERE id = $id"; - $result = $db->query($query); - - if($result->num_rows == 0) { - $message = 'This image does not exist: not in database'; - } else { - // load tags - - $image = $result->fetch_object(); - $imageOutput = ''; - $message = 'Uploaded on: ' . $image->created; - $message .= '
Original name: ' . $image->original; - $message .= '
View Raw: '. $id . '.' . $image->extension . ''; - } - } -} - -?> + No Chicks Allowed: Image Repository @@ -47,17 +15,13 @@ if($id == '' ) {

title or navigation or something

- -
- -
- -
- -
- + +
+ Drop images here to upload.
+ + \ No newline at end of file diff --git a/upload.html b/upload.html deleted file mode 100644 index a98c1f5..0000000 --- a/upload.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - No Chicks Allowed: Image Repository - - - - - - - - -
-

title or navigation or something

-
- -
- Drop images here to upload. -
- - - - - - \ No newline at end of file diff --git a/upload.php b/upload.php index b6cdbe5..737caa7 100644 --- a/upload.php +++ b/upload.php @@ -38,7 +38,7 @@ if(array_key_exists('image', $_FILES)) { $newId = $db->insert_id; if(move_uploaded_file($file['tmp_name'], UPLOADS . $newId . '.' . $extension)) { - echo json_encode(array('type'=>'success','status'=>'Uploaded successfully','file'=>'http://screens.p5dev.com/' . UPLOADS . $newId . '.' . $extension)); + echo json_encode(array('type'=>'success','status'=>'Uploaded successfully','file'=>'http://screens.p5dev.com/' . $newId)); exit; } } diff --git a/view.php b/view.php new file mode 100644 index 0000000..63fc62d --- /dev/null +++ b/view.php @@ -0,0 +1,63 @@ +real_connect($conf->hostname, $conf->username, $conf->password, $conf->database); + + $query = "SELECT extension, created, original FROM screens WHERE id = $id"; + $result = $db->query($query); + + if($result->num_rows == 0) { + $message = 'This image does not exist: not in database'; + } else { + // load tags + + $image = $result->fetch_object(); + $imageOutput = ''; + $message = 'Uploaded on: ' . $image->created; + $message .= '
Original name: ' . $image->original; + $message .= '
View Raw: '. $id . '.' . $image->extension . ''; + } + } +} + +?> + + + No Chicks Allowed: Image Repository + + + + + + + + +
+

title or navigation or something

+
+ +
+ +
+ +
+ +
+ + + + + + \ No newline at end of file