Advertisement
Guest User

rype uploads - index.php modular object-oriented

a guest
Jan 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <?php
  2.  
  3. //////////////////////////
  4. // phuct^loads v3 //
  5. // index.php //
  6. //////////////////////////
  7. $root = "/home/ryaper28/rypesrealm.com/uploads/";
  8.  
  9.  
  10. require($root . "backend/functions.php");
  11. require($root . "backend/objects.php");
  12.  
  13. $hyperact = $_GET['act'];
  14. $secure_hyperact = $_GET['secure_act'];
  15. $input = $_GET['input'];
  16. $subact = $_GET['subact'];
  17. $subinput = $_GET['subinput'];
  18. $prescript = $_GET['prescript'];
  19. $content_width = "650px";
  20.  
  21. if ( $input ) $parameters['input'] = $input;
  22. if ( $subact ) $parameters['subact'] = $subact;
  23. if ( $subinput ) $parameters['subinput'] = $subinput;
  24.  
  25.  
  26. if ( isset($hyperact) && is_method($hyperact, $prescripts) == true ) {
  27. $prescripts->$hyperact();
  28.  
  29. } elseif ( isset($secure_hyperact) && is_method($secure_hyperact, $prescripts) == true ) {
  30. $prescripts->$secure_hyperact(); }
  31.  
  32. if ( $prescript !== NULL && is_method($prescript, $prescripts) == true && $hyperact !== $prescript ) $prescripts->$prescript();
  33. if ( $hyperact == NULL || is_method($hyperact, $modules) == false ) $hyperact = "browse";
  34.  
  35. // construct site //
  36. // via wrapper.php //
  37.  
  38. // launchpad //
  39.  
  40. if ( $hyperact !== "login" && $prescript !== "login" ) $prescripts->verify_user();
  41.  
  42. // print_r($_COOKIE);
  43.  
  44. require($root . "frontend/wrapper.php");
  45.  
  46.  
  47. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement