Advertisement
Guest User

Untitled

a guest
Jul 18th, 2025
4
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP8 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 8.1.0.9
  8. * @ Author : DeZender
  9. * @ Release on : 27.10.2023
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class SetupController
  15. {
  16. protected $title = null;
  17. protected $vars = [];
  18. protected $errors = [];
  19. protected $pageTemplate = '<html><head><title><!--TITLE--></title></head><body><!--CONTENT--></body></html>';
  20. protected $db = null;
  21. protected $setup = null;
  22.  
  23. public function get($varName, $default = NULL)
  24. {
  25. return $this->vars[$varName] ?? $default;
  26. }
  27.  
  28. public function e($varName, $default = NULL)
  29. {
  30. return htmlentities($this->get($varName, $default) ?? '');
  31. }
  32.  
  33. public function setPageTemplate($pageTemplate)
  34. {
  35. $this->pageTemplate = $pageTemplate;
  36. }
  37.  
  38. public function _set_input_vars()
  39. {
  40. $REQUEST_METHOD = $_SERVER['REQUEST_METHOD'];
  41. $vars = ($REQUEST_METHOD == 'POST' ? $_POST : $_GET);
  42.  
  43. foreach ($vars as $k => $v) {
  44. if (is_array($v)) {
  45. continue;
  46. }
  47.  
  48. $vars[$k] = trim($v);
  49. }
  50.  
  51. $this->vars = $vars;
  52. }
  53.  
  54. public function make_password($length = 16)
  55. {
  56. $vowels = 'aeiouy';
  57. $consonants = 'bdghjlmnpqrstvwxz';
  58. $password = '';
  59. $alt = time() % 2;
  60.  
  61. for ($i = 0; $i < $length; ++$i) {
  62. if ($alt == 1) {
  63. $password .= $consonants[rand() % 17];
  64. $alt = 0;
  65. }
  66. else {
  67. $password .= $vowels[rand() % 6];
  68. $alt = 1;
  69. }
  70. }
  71.  
  72. return $password;
  73. }
  74.  
  75. public function render_errors()
  76. {
  77. if (!$this->errors) {
  78. return '';
  79. }
  80.  
  81. $out = '<ul class="am-errors">';
  82.  
  83. foreach ((array) $this->errors as $e) {
  84. .........................................
  85. ......................
  86. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement