class_tools.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /*
  3. * Copyright (c) 2022 Barchampas Gerasimos <makindosxx@gmail.com>.
  4. * mip22 is a advanced phishing tool.
  5. *
  6. * mip22 is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * mip22 is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. class INPUT_DATA
  21. {
  22. public function SAFE_DATA_ENTER($data)
  23. {
  24. $data = htmlspecialchars($data);
  25. $data = htmlentities($data);
  26. $data = trim($data);
  27. $data = stripslashes($data);
  28. $data = stripcslashes ($data);
  29. if ($data == true)
  30. {
  31. return ($data);
  32. }
  33. else
  34. {
  35. return (!$data) .trigger_error("Data was not be send safe");
  36. }
  37. }
  38. } // end fo class INPUT_DATA
  39. class INPUT_DATA_AVAILABLE extends INPUT_DATA
  40. {
  41. public function SAFE_DATA_ENTER($data)
  42. {
  43. $data = htmlspecialchars($data);
  44. $data = htmlentities($data);
  45. $data = trim($data);
  46. $data = stripslashes($data);
  47. $data = stripcslashes ($data);
  48. if ($data == true)
  49. {
  50. return ($data);
  51. }
  52. else
  53. {
  54. return (!$data) .trigger_error("Data was not be send safe");
  55. }
  56. }
  57. } // end fo class INPUT_DATA_AVAILABLE
  58. ?>