Guest User

Untitled

a guest
Jun 1st, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.4
  8. * @ Author : DeZender
  9. * @ Release on : 21.10.2015
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function account_profile_fields_get_hash_options($form_field, $selected) {
  15.  
  16. $options = "";
  17. $result = db_query("SELECT id,name FROM account_profile_field_hash ORDER BY name");
  18. while ($row = db_fetch_assoc($result))
  19. {
  20. $chk = $row["id"] == $selected ? "selected" : "";
  21. $options .= '' . "<option value=\"" . $row["id"] . "\">" . $row["name"];
  22. continue;
  23. }
  24. return $options;
  25. }
  26.  
  27. function account_types_member_area_options($form_field, $selected) {
  28.  
  29. $options = "";
  30. $result = db_query("SELECT id,name FROM account_member_areas ORDER BY name");
  31. while (list($id, $name) = db_fetch_array($result))
  32. {
  33. $chk = $id == $selected ? "selected" : "";
  34. $options .= '' . "<option value=\"" . $id . "\" " . $chk . ">" . $name;
  35. continue;
  36. }
  37. return $options;
  38. }
  39.  
  40. function account_delete_all() {
  41.  
  42. exec_triggers("account_delete_all_before");
  43. $tables = array("account_profile", "account_extra", "account_log", "account_login_history", "account_notes", "account_payment", "account_deleted_profile", "account_deleted_extra", "account_deleted_log", "account_deleted_notes");
  44. foreach ($tables as $table_name)
  45. {
  46. db_query('' . "DELETE FROM " . $table_name);
  47. db_query('' . "OPTIMIZE TABLE " . $table_name);
  48. continue;
  49. }
  50. exec_triggers("account_delete_all_after");
  51. return;
  52. }
  53.  
  54. function account_get_type_options($form_field, $selected) {
  55.  
  56. global $registry;
  57. $options = "";
  58. if ($registry->panel == "admin")
  59. {
  60. $sql = "SELECT id,name FROM account_types ORDER BY id";
  61. }
  62. else
  63. {
  64. $sql = "SELECT id,name FROM account_types WHERE show_in_form = 1 ORDER BY id";
  65. }
  66. $result = db_query($sql);
  67. while (list($id, $name) = db_fetch_array($result))
  68. {
  69. $chk = $id == $selected ? "selected" : "";
  70. $options .= '' . "<option value=\"" . $id . "\" " . $chk . ">" . $name;
  71. continue;
  72. }
  73. return $options;
  74. }
  75.  
  76. function check_password_level($password) {
  77.  
  78. if (strlen($password) < 1)
  79. {
  80. return false;
  81. }
  82. if (strlen($password) < 4)
  83. {
  84. return false;
  85. }
  86. $score = 0;
  87. if (8 <= strlen($password))
  88. {
  89. $score++;
  90. ........................................................................
  91. .........................................
  92. ...............
Advertisement
Add Comment
Please, Sign In to add comment