diff --git a/app/db_connector.php b/app/db_connector.php
index 734b7a2..46c288d 100755
--- a/app/db_connector.php
+++ b/app/db_connector.php
@@ -9,9 +9,16 @@
}
function get_images($pdo, $search='%', $sort='img_date', $sdir='DESC') {
- $params = array('search' => $search, 'sort' => $sort, 'sdir' => $sdir);
- $stmt = $pdo->prepare("SELECT * FROM images WHERE img_title LIKE CONCAT('%', :search ,'%') ORDER BY :sort :sdir;");
+ if ($sort != 'img_date' && $sdir != 'ASC') {
+ if ($sort != 'img_title' && $sdir != 'DESC') {
+ echo('Ey boss, database request is kinda f*cked up. Maybe you want to try that again, hey...
'.$sort.' '.$sdir);
+ die();
+ }
+ }
+ $params = array('search' => $search);
+ $stmt = $pdo->prepare("SELECT * FROM images WHERE img_title LIKE CONCAT('%', :search ,'%') ORDER BY $sort $sdir;");
$stmt->execute($params);
+ // $stmt->debugDumpParams();
$data = $stmt->fetchAll();
$img_list = '
';
diff --git a/project_files/audio-sprite.ase b/project_files/audio-sprite.ase
new file mode 100755
index 0000000..021486e
Binary files /dev/null and b/project_files/audio-sprite.ase differ
diff --git a/project_files/ffmpeg_gif.sh b/project_files/ffmpeg_gif.sh
new file mode 100755
index 0000000..7462113
--- /dev/null
+++ b/project_files/ffmpeg_gif.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+ffmpeg -framerate 30 -i frame%04d.png -vf "scale=1319:700:flags=lanczos,split[a][b];[a]palettegen=max_colors=256[p];[b][p]paletteuse" -loop 0 output.gif
\ No newline at end of file
diff --git a/public/image.php b/public/image.php
index 7a389ab..62be2f4 100755
--- a/public/image.php
+++ b/public/image.php
@@ -17,7 +17,7 @@
include_once('../app/db_connector.php');
if( isset($_POST['sel_order']) && isset($_POST['inp_search']) ) {
- $sort = 'date';
+ $sort = 'img_date';
$sdir = 'DESC';
var_dump($sort, $sdir);
switch($_POST['sel_order']) {
@@ -27,11 +27,11 @@
$sdir = 'ASC';
break;
case 'az':
- $sort = 'img_name';
+ $sort = 'img_title';
$sdir = 'ASC';
break;
case 'za':
- $sort = 'img_name';
+ $sort = 'img_title';
break;
default:
break;
diff --git a/public/index.php b/public/index.php
index ab02f4f..aa6b4a7 100755
--- a/public/index.php
+++ b/public/index.php
@@ -11,7 +11,7 @@
LAYER-
-
+
diff --git a/public/resources/img/8_original_font.png b/public/resources/img/8_original_font.png
new file mode 100755
index 0000000..8615900
Binary files /dev/null and b/public/resources/img/8_original_font.png differ
diff --git a/public/resources/img/8_spinning_30fps_bw.gif b/public/resources/img/8_spinning_30fps_bw.gif
new file mode 100755
index 0000000..0db96fb
Binary files /dev/null and b/public/resources/img/8_spinning_30fps_bw.gif differ
diff --git a/public/resources/img/audio-sprite.gif b/public/resources/img/audio-sprite.gif
new file mode 100755
index 0000000..b7738a2
Binary files /dev/null and b/public/resources/img/audio-sprite.gif differ
diff --git a/public/resources/stylesheet.css b/public/resources/stylesheet.css
index 1c4392f..2504d27 100755
--- a/public/resources/stylesheet.css
+++ b/public/resources/stylesheet.css
@@ -42,7 +42,7 @@ footer {
}
.logo_font {
- color: #BFBFBF;
+ color: #FFF;
font-family: 'hyper';
font-size: 6rem;
text-shadow: 0 1px 0 #17202A, 0 2px 0 #17202A,
@@ -88,21 +88,21 @@ footer {
.menu_bar li a {
text-decoration: none;
- color: #BFBFBF;
+ color: #FFF;
}
.menu_bar li a:hover {
text-decoration: underline;
text-decoration-thickness: 5px;
text-decoration-color: #f3a041;
- color: white;
+ color: #FFF;
}
.menu_bar li a:active {
text-decoration: underline;
text-decoration-thickness: 6px;
text-decoration-color: #41a3f3;
- color: #BFBFBF;
+ color: #FFF;
}
.img_list {
@@ -123,7 +123,7 @@ footer {
font-size: 2rem;
padding-left: 2rem;
padding-bottom: 3rem;
- color: #BFBFBF;
+ color: #FFF;
}
.pixelart {