Advertisement
Guest User

Untitled

a guest
May 16th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1.  
  2.  
  3. <?php
  4. /**
  5. *
  6. * @ This file is created by deZender.Net
  7. * @ deZender (PHP5 Decoder for ionCube Encoder)
  8. *
  9. * @ Version : 2.0.0.3
  10. * @ Author : DeZender
  11. * @ Release on : 06.05.2013
  12. * @ Official site : http://DeZender.Net
  13. *
  14. */
  15.  
  16. abstract class Controller {
  17.  
  18.  
  19. public function __construct() {
  20. }
  21.  
  22. public function Request() {
  23.  
  24. $this->OnInput();
  25. $this->OnOutput();
  26. }
  27.  
  28. protected function OnInput() {
  29. }
  30.  
  31. protected function OnOutput() {
  32. }
  33.  
  34. protected function IsGet() {
  35.  
  36. return $_SERVER["REQUEST_METHOD"] == "GET";
  37. }
  38.  
  39. protected function IsPost() {
  40.  
  41. return $_SERVER["REQUEST_METHOD"] == "POST";
  42. }
  43.  
  44. protected function Template($file, $array) {
  45. foreach ($array as $key => $value)
  46. {
  47. $$key = $value;
  48. continue;
  49. }
  50. ob_start();
  51. if (file_exists('' . "templates/" . $this->F->config["TEMPLATE"] . "/" . $file . ".php"))
  52. {
  53. require '' . "templates/" . $this->F->config["TEMPLATE"] . "/" . $file . ".php";
  54. }
  55. else
  56. {
  57. $this->F->Error('' . "File " . $file . ".php does not exist in the directory templates/" . $this->F->config["TEMPLATE"] . ".");
  58. }
  59. return ob_get_clean();
  60. }
  61. ...................................................................
  62. .......................
  63. .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement