Advertisement
sagnik

index(sgp)

Jan 2nd, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. require "/home/sgs/public_html/global/header.php";
  3. $title = "Install :: S.G. Paste :: Sagnik Ganguly Services Co. Ltd.";
  4. require $cnf."functions.php";
  5. require $cnf."connection.php";
  6.  
  7.  
  8. foreach($_GET as $key => $value) {
  9. $get[$key] = filter($value); //get variables are filtered.
  10. }
  11. foreach($_POST as $key => $value) {
  12. $post[$key] = filter($value); // post variables are filtered
  13. }
  14. foreach($_REQUEST as $key => $value) {
  15. $data[$key] = filter($value); //all, post, get, put, delete, cookies variables are filtered.
  16. }
  17. ?>
  18.  
  19. <?php
  20. if ($_GET['do'] != 'install' || $_GET['do'] != 'setup' || !isset($_GET['do'])) {
  21. ?>
  22. Welcome to S.G. Paste Installer. The no.1 site for paste text. To start using S.G. Paste, press the "Start Installation" button below and follow the instructions.
  23. <br>
  24. <?php
  25. if (!tbl_exists(sgs_sgpaste, features)) {
  26. ?>
  27. <button onclick="window.location=('?do=install');">Start Installation</button>
  28. <?php
  29. } elseif (tbl_exists(sgs_sgpaste, features) && !blank_table(features)) {
  30. ?>
  31. <button onclick="window.location=('?do=setup');">Start Setup</button>
  32. <?php } } ?>
  33.  
  34.  
  35.  
  36. <?php
  37. if ($_GET['do'] == 'install') {
  38. require $sgp."install/create_tables.php";
  39. }
  40. elseif ($_GET['do'] == 'setup' && $_GET['type'] == 'plans') {
  41. require $sgp."install/setup_plans_wizard.php";
  42. }
  43. ?>
  44.  
  45. <?php
  46. require "/home/sgs/public_html/global/footer.php";
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement