From 87c6bd4c615d05dbb70b4a9cd7a83589ac44d3d3 Mon Sep 17 00:00:00 2001 From: TheShinyMelon Date: Fri, 22 Nov 2024 22:08:27 +0100 Subject: [PATCH] ADD: new music page, babyyy! :D using covers embedded in music file tags will not work without the jizz script though :( --- app/db_connector.php | 30 ++++++++++++++++++- app/db_utilities.php | 22 ++++++++++++++ project_files/cursor_blinking.ase | Bin 0 -> 1077 bytes public/about.php | 2 +- public/audio.php | 35 ++++++++++++++++++++++- public/image.php | 17 ++--------- public/index.php | 2 +- public/resources/aud/bbtb.mp3 | Bin 0 -> 4933828 bytes public/resources/aud/chronostasis.mp3 | Bin 0 -> 6019402 bytes public/resources/img/cursor_blinking.gif | Bin 0 -> 134 bytes public/resources/stylesheet.css | 17 +++++++++++ 11 files changed, 107 insertions(+), 18 deletions(-) create mode 100644 app/db_utilities.php create mode 100644 project_files/cursor_blinking.ase create mode 100644 public/resources/aud/bbtb.mp3 create mode 100644 public/resources/aud/chronostasis.mp3 create mode 100644 public/resources/img/cursor_blinking.gif diff --git a/app/db_connector.php b/app/db_connector.php index 46c288d..30d541b 100755 --- a/app/db_connector.php +++ b/app/db_connector.php @@ -26,9 +26,37 @@ function get_images($pdo, $search='%', $sort='img_date', $sdir='DESC') { $img_list .= '
  • '; $img_list .= '
    '; $img_list .= '

    '.$block['img_title']."

    "; - $img_list .= '

    '.$block['img_desc']."

    "; + $img_list .= '

    '.$block['img_desc']."

    "; $img_list .= '
  • '; } $img_list .= ''; echo $img_list; } + +function get_audio($pdo, $search='%', $sort='aud_date', $sdir='DESC') { + if ($sort != 'aud_date' && $sdir != 'ASC') { + if ($sort != 'aud_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 audio WHERE aud_title LIKE CONCAT('%', :search ,'%') ORDER BY $sort $sdir;"); + $stmt->execute($params); + // $stmt->debugDumpParams(); + $data = $stmt->fetchAll(); + + $aud_list = ''; + echo $aud_list; +} diff --git a/app/db_utilities.php b/app/db_utilities.php new file mode 100644 index 0000000..c828f77 --- /dev/null +++ b/app/db_utilities.php @@ -0,0 +1,22 @@ + + + + + + + + +TOOLBAR; + +function showToolbar() { + global $toolbar; + echo $toolbar; +} diff --git a/project_files/cursor_blinking.ase b/project_files/cursor_blinking.ase new file mode 100644 index 0000000000000000000000000000000000000000..671e76950d20116c23eac6545d9f5f37788441d8 GIT binary patch literal 1077 zcmXqIVPJT$l!-wB2n84z85kH|Farq$0143$6a#Jh^^qBFD;JQ@0(J+`QbtBbCMG6k zW@Z)^7FJePHa0ePc6JU94o*%^E-o%^Zf+hP9$sEvK0ZEvetrP~0YO1QAt51QVPO#w z5m8Z5F)=Z5ad8O=2}wywDJdywX=xc58Ch9bIXO9bd3gl|1w}gt-B zn%dghy1Kgh`uc{3hQ`LmrlzLm=H`}`me$tRwzjtR_V$jBj?T``uCA``?(UwRp5ETx zzP`Tx{{9IQCQO_-anhtolP6D}GG)rtsZ*y-n>Ky=^cgc|%$zxM)~s2xXV0E9XU^QY zbLY*QH-G;81q&7|T)1%2qD6}rFJ7`_$TOXvSrKGty{Nk+qQlC_8mKR?A*C?*REZ=ckkY_ zXV2cfd-v_zw}1cs0|yQqJb3WXp+kocA3k#A$kC%mj~zR9{P^(`Cr+F^dGge$Q>Ra# zK6B>G*|TTQojZ5_{P_zPE?m5L@zSMBmoHzwa^=d^t5>gGyLSEh^&2;C+`M`7)~#E& zZ{NOi=g!@`ckkW1cmMwV2M-=ReE9IuqeqV)KYsG$$b0D8p0ixhP z6NF{}=j4hx$v@5;aJfI!kZE09Akyb#q*$2n;Uzo6^v$L$PC%8vJ~G0yoDq;uoH2(4 L*%-eI{Lupd>T;&4 literal 0 HcmV?d00001 diff --git a/public/about.php b/public/about.php index ed4176f..ffd205d 100755 --- a/public/about.php +++ b/public/about.php @@ -1,4 +1,4 @@ -

    > chosen file type: person
      getting to know me is futile...
      listing files...

    +

    > chosen file type: person
      getting to know me is futile...
      listing files...
    $

    I am a human. Treat me as such. I will reciprocate.

    diff --git a/public/audio.php b/public/audio.php index 46e1987..3414e44 100755 --- a/public/audio.php +++ b/public/audio.php @@ -1,2 +1,35 @@ +

    > chosen file type: audio
      listing files...

    + bong'); \ No newline at end of file + include_once('../app/db_connector.php'); + include_once('../app/db_utilities.php'); + + showToolbar(); + + if( isset($_POST['sel_order']) && isset($_POST['inp_search']) ) { + $sort = 'aud_date'; + $sdir = 'DESC'; + + switch($_POST['sel_order']) { + case 'new': + break; + case 'old': + $sdir = 'ASC'; + break; + case 'az': + $sort = 'aud_title'; + $sdir = 'ASC'; + break; + case 'za': + $sort = 'aud_title'; + break; + default: + break; + } + + get_audio($pdo, $_POST['inp_search'], $sort, $sdir); + } + else { + get_audio($pdo); + } +?> diff --git a/public/image.php b/public/image.php index 3f8abda..ab0059b 100755 --- a/public/image.php +++ b/public/image.php @@ -1,21 +1,10 @@

    > chosen file type: image
      listing files...

    -
    - - - - - - -
    - privacy policy contact

    - +