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 ++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 289 insertions(+), 238 deletions(-) (limited to 'download.php') 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 @@

-- cgit v1.2.3