From 8e896b8b3025b461ba8aaea091308cb113beef6e Mon Sep 17 00:00:00 2001 From: Aedriel Kyle Javier Date: Sun, 11 Jun 2023 01:02:05 -0400 Subject: refactor: code formatting --- download.php | 527 ++++++++++++++++++++++++++++++++--------------------------- index.php | 32 ++-- 2 files changed, 303 insertions(+), 256 deletions(-) diff --git a/download.php b/download.php index 4e6039c..f54f99b 100644 --- a/download.php +++ b/download.php @@ -25,7 +25,7 @@ souce community throughout the years… πŸ™Œ Thank you! πŸ€—


- +

πŸŽ‰ your procrastiSlides .pdf presentation has been generated successfully!!! 🍾 @@ -34,342 +34,393 @@

πŸ“‚ your download link is below: πŸ—ƒ

- output/'$push'"); - shell_exec("cat output/90sMakeUpCommercial.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/90sMakeUpCommercial.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- - if(isset($_POST['chicagoOlives'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/chicagoOlives.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/chicagoOlives.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- - if(isset($_POST['cleanMetropolis'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/cleanMetropolis.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/cleanMetropolis.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- - if(isset($_POST['ohioCustard'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/ohioCustard.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/ohioCustard.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- - if(isset($_POST['raleighAroundMe'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/raleighAroundMe.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/raleighAroundMe.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- - if(isset($_POST['earlyCupertino'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/earlyCupertino.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/earlyCupertino.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

+ - output/'$push'"); - shell_exec("cat output/defaultIsKing.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/defaultIsKing.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- if(isset($_POST['strengthInNumbers'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/strengthInNumbers.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/strengthInNumbers.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- if(isset($_POST['thatMagazine'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/thatMagazine.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/thatMagazine.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- if(isset($_POST['cuppertinoIsh'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/cuppertinoIsh.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/cuppertinoIsh.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- if(isset($_POST['lazyProfessor'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/lazyProfessor.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/lazyProfessor.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); -

download presentation

+ // sleep(1); + ?> - +

">download presentation

- if(isset($_POST['redmond2003'])) - { - $_SESSION['pres'] = uniqid('pres', true) . '.md'; - $_SESSION['push'] = uniqid('push', true) . '.md'; - $_SESSION['convert'] = uniqid('convert', true) . '.md'; - $_SESSION['filename'] = uniqid('procrastiSlides_', true) . '.pdf'; + output/'$push'"); - shell_exec("cat output/redmond2003.md output/'$push' > output/'$convert'"); - shell_exec($conversion); - // sleep(1); ?> + shell_exec("echo '$userMarkdown' > output/'$push'"); + shell_exec( + "cat output/redmond2003.md output/'$push' > output/'$convert'" + ); + shell_exec($conversion); + + // sleep(1); + ?> -

download presentation

+

">download presentation

- + @@ -379,7 +430,7 @@

diff --git a/index.php b/index.php index 26bea81..aec2b2d 100644 --- a/index.php +++ b/index.php @@ -1,14 +1,12 @@ +session_start(); ?> - + procrastiSlides: great for procratinators who need to get a presentation out, quick! πŸ˜† @@ -26,16 +24,12 @@

πŸƒ great for procratinators who need to get a presentation out, quick! πŸ‘Ÿ

🏫 try copy and pasting your school notes! that might even work πŸ˜‚


- - +

🎨 please select your presentation theme 🎭

@@ -98,13 +92,15 @@

- - + +

plain text or markdown goes here:

- +
@@ -153,7 +149,7 @@
-- cgit v1.2.3