Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php goto JNQtK; h9oDp: $errors = false; goto i9IOS; xmFcq: ?> <div class="container">..
Decoded Output download
<?php
goto JNQtK; h9oDp: $errors = false; goto i9IOS; xmFcq: ?>
<div class="container"><div class="section"><div class="column is-6 is-offset-3"><center><h1 class="title"style="padding-top:20px"><?php goto lT13m; tc1qa: ?>
Installer</h1><br></center><div class="box"><?php goto HE23v; zHmj5: ?>
</div></div></div></div><div class="content has-text-centered"><p>Copyright<?php goto iIldH; lT13m: echo $product_info["product_name"]; goto tc1qa; JNQtK: ?>
<!doctypehtml><html><head><meta charset="utf-8"><title><?php goto nw9Zz; iIldH: echo date("Y"); goto aHxIc; nw9Zz: echo $product_info["product_name"]; goto ztEbn; i9IOS: $step = isset($_GET["step"]) ? $_GET["step"] : ''; goto xmFcq; ztEbn: ?>
- Installer</title><meta content="width=device-width,initial-scale=1"name="viewport"><link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"rel="stylesheet"><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"rel="stylesheet"><style type="text/css">body,html{background:#f7f7f7}.control-label-help{font-weight:500;font-size:14px}</style></head><body><?php goto h9oDp; HE23v: switch ($step) { default: ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Requirements</b></span></a></li></ul></div><?php if (phpversion() < "7.2") { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> Current PHP version is " . phpversion() . "! minimum PHP 7.2 or higher required.</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> Recomended PHP Version is 7.4, But You are Running on " . phpversion() . "</div>"; } if (!extension_loaded("mysqli")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> MySQLi PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> MySQLi PHP extension available</div>"; } if (!extension_loaded("curl")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> Curl PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> Curl PHP extension available</div>"; } if (!extension_loaded("pdo")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> PDO PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> PDO PHP extension available</div>"; } if (!extension_loaded("json")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> JSON PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> JSON PHP extension available</div>"; } ?>
<div style="text-align:right"><?php if ($errors == true) { ?>
<a href="#"class="button is-link"disabled>Next</a><?php } else { ?>
<a href="index.php?step=0"class="button is-link">Next</a><?php } ?>
</div><?php break; case "0": ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Verify</b></span></a></li></ul></div><?php $license_code = null; $client_name = null; if (!empty($_POST["license"]) && !empty($_POST["client"])) { $license_code = strip_tags(trim($_POST["license"])); $client_name = strip_tags(trim($_POST["client"])); $activate_response = $api->activate_license($license_code, $client_name); $_SESSION["envato_buyer_name"] = $client_name; $_SESSION["envato_purchase_code"] = $license_code; if (empty($activate_response)) { $msg = "Server is unavailable."; } else { $msg = $activate_response["message"]; } if ($activate_response["status"] != true) { ?>
<form action="index.php?step=0"method="POST"><div class="notification is-danger"><?php echo ucfirst($msg); ?>
</div><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#1ee92b">example</u></p><p class="control-label-help">(<u style="color:#1ee92b">example</u> is username, Write your envato <u style="color:#1ee92b">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php } else { ?>
<form action="index.php?step=1"method="POST"><div class="notification is-success"><?php echo ucfirst($msg); ?>
</div><input name="lcscs"id="lcscsindex.php?"type="hidden"value="<?php echo ucfirst($activate_response["status"]); ?>
"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php } } else { ?>
<form action="index.php?step=0"method="POST"><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#1ee92b">example</u></p><p class="control-label-help">(<u style="color:#1ee92b">example</u> is username, Write your envato <u style="color:#1ee92b">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php } break; case "1": ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Database</b></span></a></li></ul></div><?php if ($_POST && isset($_POST["lcscs"])) { $valid = strip_tags(trim($_POST["lcscs"])); $db_host = strip_tags(trim($_POST["host"])); $db_user = strip_tags(trim($_POST["user"])); $db_pass = strip_tags(trim($_POST["pass"])); $db_name = strip_tags(trim($_POST["name"])); $base_urls = strip_tags(trim($_POST["baseurl"])); $base_code = strip_tags(trim($_POST["basecode"])); $map_keys = strip_tags(trim($_POST["mapkeys"])); $firdb_urls = strip_tags(trim($_POST["firedburls"])); $fcm_keys = strip_tags(trim($_POST["fcmkeys"])); if (!empty($db_host)) { $con = @mysqli_connect($db_host, $db_user, $db_pass, $db_name); if (mysqli_connect_errno()) { ?>
<form action="index.php?step=1"method="POST"><div class="notification is-danger">Failed to connect to MySQL:<?php echo mysqli_connect_error(); ?>
</div><input name="lcscs"id="lcscs"type="hidden"value="<?php echo $valid; ?>
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php die; } $templine = ''; $lines = file($filename); foreach ($lines as $line) { if (substr($line, 0, 2) == "--" || $line == '') { continue; } $templine .= $line; $query = false; if (substr(trim($line), -1, 1) == ";") { $query = mysqli_query($con, $templine); $templine = ''; } } $dataFile = "../includes/connection.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "../database/config_DB.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "../includes/header.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("base_urls", $base_urls, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); mysqli_close($con); $config_file_default = "https://doc.willdev.in/willeightlaunchfile/rotsrv.default"; $config_file_name = "../includes/routes.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.willdev.in/willeightlaunchfile/instl.default"; $config_file_name = "../install/index.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "https://doc.willdev.in/willeightlaunchfile/indx.default"; $config_file_name = "../index.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "https://doc.willdev.in/willeightlaunchfile/editsubscrip.default"; $config_file_name = "../edit_willdev_subscription.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "https://doc.willdev.in/willeightlaunchfile/subscrip.default"; $config_file_name = "../willdev_subscription.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "https://doc.willdev.in/willeightlaunchfile/active.default"; $config_file_name = "../view_quotes_report.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } ?>
<form action="index.php?step=2"method="POST"><div class="notification is-success">Database was successfully imported.</div><input name="dbscs"id="dbscs"type="hidden"value="true"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php } else { ?>
<form action="index.php?step=1"method="POST"><input name="lcscs"id="lcscs"type="hidden"value="<?php echo $valid; ?>
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php } } else { ?>
<div class="notification is-danger">Sorry, something went wrong.</div><?php } break; case "2": ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Finish</b></span></a></li></ul></div><?php if ($_POST && isset($_POST["dbscs"])) { $valid = $_POST["dbscs"]; session_destroy(); ?>
<center><p><strong><?php echo $product_info["product_name"]; ?>
is successfully installed.</strong></p><br><br><p>You can now login using your username: <strong>admim</strong> and default password: <strong>admin</strong></p><br><strong><p><a href="../"class="button is-link">Login</a></p></strong><br><p class="has-text-grey help">The first thing you should do is change your account details.</p></center><?php } else { ?>
<div class="notification is-danger">Sorry, something went wrong.</div><?php } break; } goto zHmj5; aHxIc: ?>
Will_Dev, All rights reserved.</p><br></div></body></html>
Did this file decode correctly?
Original Code
<?php
goto JNQtK; h9oDp: $errors = false; goto i9IOS; xmFcq: ?>
<div class="container"><div class="section"><div class="column is-6 is-offset-3"><center><h1 class="title"style="padding-top:20px"><?php goto lT13m; tc1qa: ?>
Installer</h1><br></center><div class="box"><?php goto HE23v; zHmj5: ?>
</div></div></div></div><div class="content has-text-centered"><p>Copyright<?php goto iIldH; lT13m: echo $product_info["\160\x72\157\x64\x75\x63\x74\137\x6e\141\x6d\145"]; goto tc1qa; JNQtK: ?>
<!doctypehtml><html><head><meta charset="utf-8"><title><?php goto nw9Zz; iIldH: echo date("\131"); goto aHxIc; nw9Zz: echo $product_info["\160\x72\157\144\x75\143\164\137\x6e\141\x6d\x65"]; goto ztEbn; i9IOS: $step = isset($_GET["\163\164\145\160"]) ? $_GET["\163\164\145\160"] : ''; goto xmFcq; ztEbn: ?>
- Installer</title><meta content="width=device-width,initial-scale=1"name="viewport"><link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"rel="stylesheet"><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"rel="stylesheet"><style type="text/css">body,html{background:#f7f7f7}.control-label-help{font-weight:500;font-size:14px}</style></head><body><?php goto h9oDp; HE23v: switch ($step) { default: ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Requirements</b></span></a></li></ul></div><?php if (phpversion() < "\x37\56\x32") { $errors = true; echo "\x3c\144\151\x76\x20\143\154\141\x73\x73\x3d\47\x6e\x6f\164\151\146\151\143\141\x74\151\157\156\x20\x69\x73\55\144\x61\156\x67\145\162\x27\x20\x73\x74\171\154\145\75\x27\160\141\x64\x64\151\156\x67\72\61\x32\160\x78\73\x27\x3e\x3c\151\x20\x63\154\141\x73\163\x3d\47\x66\x61\x20\146\x61\x2d\164\151\x6d\x65\163\47\76\x3c\57\151\x3e\x20\103\x75\162\162\x65\156\x74\40\120\x48\x50\40\x76\145\162\163\x69\x6f\x6e\40\x69\163\x20" . phpversion() . "\41\40\x6d\x69\156\x69\x6d\165\155\40\120\110\120\x20\67\x2e\x32\x20\x6f\162\40\x68\151\147\x68\x65\x72\x20\162\x65\x71\x75\x69\162\145\144\x2e\x3c\x2f\x64\151\x76\76"; } else { echo "\x3c\x64\151\166\40\x63\154\x61\163\x73\75\47\156\157\164\x69\146\151\143\141\164\151\157\156\x20\151\163\55\x73\165\143\143\x65\x73\163\47\x20\x73\x74\x79\x6c\145\75\x27\160\x61\144\x64\x69\156\147\x3a\61\x32\x70\170\73\47\x3e\74\x69\40\143\x6c\x61\163\x73\x3d\x27\146\141\x20\146\x61\x2d\x63\x68\145\143\x6b\x27\76\x3c\x2f\x69\x3e\40\122\145\143\x6f\155\x65\156\x64\x65\144\x20\120\110\x50\x20\x56\145\162\x73\x69\157\x6e\x20\x69\163\40\67\56\64\54\x20\x42\165\164\x20\x59\157\x75\x20\x61\x72\145\40\x52\x75\156\x6e\151\156\x67\40\157\156\x20" . phpversion() . "\74\57\144\151\166\x3e"; } if (!extension_loaded("\155\x79\163\161\154\x69")) { $errors = true; echo "\74\144\x69\x76\x20\x63\x6c\x61\163\x73\75\x27\x6e\x6f\x74\151\x66\151\143\141\164\151\x6f\156\40\x69\x73\x2d\x64\x61\x6e\147\x65\162\47\40\163\x74\x79\154\145\x3d\47\x70\141\x64\x64\151\156\147\72\61\62\x70\170\x3b\47\76\74\151\x20\143\154\141\x73\163\x3d\47\x66\141\x20\146\x61\x2d\x74\151\155\x65\163\47\x3e\74\57\x69\76\40\x4d\x79\123\x51\x4c\151\40\x50\x48\120\40\145\x78\x74\145\x6e\x73\x69\x6f\156\x20\155\x69\163\x73\x69\156\147\41\x3c\x2f\x64\x69\x76\76"; } else { echo "\x3c\144\151\x76\x20\x63\x6c\x61\163\x73\75\x27\x6e\x6f\164\x69\x66\x69\143\x61\x74\x69\157\x6e\40\x69\x73\x2d\163\165\x63\x63\x65\x73\163\x27\40\163\164\171\154\x65\x3d\x27\160\x61\x64\x64\151\156\x67\72\61\x32\160\x78\73\x27\76\74\151\40\143\x6c\x61\x73\163\x3d\47\146\141\x20\x66\x61\55\143\x68\x65\x63\153\x27\76\74\x2f\151\x3e\x20\115\171\x53\121\114\151\x20\120\110\x50\40\x65\170\x74\x65\156\x73\151\x6f\156\x20\x61\x76\x61\151\154\x61\x62\154\145\x3c\x2f\x64\x69\x76\x3e"; } if (!extension_loaded("\143\x75\162\x6c")) { $errors = true; echo "\74\144\151\166\x20\x63\x6c\141\x73\x73\x3d\47\156\157\164\151\x66\x69\x63\x61\x74\x69\157\156\40\151\163\x2d\144\x61\156\147\x65\162\47\x20\163\164\x79\x6c\145\75\x27\160\x61\144\144\x69\156\147\72\x31\x32\160\170\73\47\x3e\74\x69\40\143\x6c\x61\163\x73\x3d\x27\146\x61\40\146\141\55\x74\x69\155\145\163\x27\76\x3c\57\151\x3e\40\103\x75\x72\154\40\x50\x48\120\40\x65\x78\164\145\x6e\x73\151\157\156\x20\155\151\163\163\x69\x6e\x67\41\74\57\x64\151\166\x3e"; } else { echo "\x3c\x64\151\166\x20\143\154\x61\x73\x73\75\x27\156\x6f\164\x69\146\x69\x63\141\164\x69\x6f\156\x20\x69\163\x2d\x73\x75\143\x63\145\x73\163\x27\x20\163\x74\x79\x6c\x65\x3d\47\x70\x61\144\144\x69\x6e\x67\x3a\61\x32\160\170\x3b\x27\76\74\151\40\x63\154\141\x73\x73\x3d\x27\x66\x61\x20\146\141\x2d\x63\150\145\x63\153\47\x3e\74\57\151\x3e\x20\103\165\x72\154\x20\x50\x48\x50\x20\145\170\x74\x65\x6e\163\151\x6f\x6e\40\141\x76\141\x69\154\141\142\x6c\x65\74\x2f\144\151\166\x3e"; } if (!extension_loaded("\x70\144\157")) { $errors = true; echo "\74\x64\151\x76\40\143\154\141\163\x73\x3d\x27\x6e\x6f\164\x69\146\151\143\x61\x74\x69\157\x6e\x20\x69\x73\55\x64\141\156\147\x65\x72\47\x20\163\164\171\x6c\x65\x3d\47\x70\141\144\x64\151\156\x67\72\x31\x32\160\170\x3b\x27\x3e\74\x69\40\x63\x6c\x61\x73\x73\75\x27\x66\x61\x20\146\141\55\164\151\x6d\x65\163\x27\x3e\x3c\x2f\x69\x3e\40\120\x44\117\40\x50\110\x50\x20\x65\x78\x74\x65\156\163\151\157\x6e\x20\x6d\x69\x73\x73\151\x6e\x67\x21\x3c\x2f\144\x69\166\x3e"; } else { echo "\x3c\x64\151\x76\x20\143\x6c\141\x73\x73\x3d\47\156\157\164\x69\146\151\143\x61\x74\x69\x6f\x6e\40\151\x73\x2d\163\165\143\x63\145\x73\x73\47\x20\163\164\x79\154\x65\75\47\160\x61\x64\x64\151\156\x67\72\x31\62\x70\x78\x3b\47\x3e\74\151\40\143\154\x61\x73\x73\x3d\47\146\141\40\x66\x61\55\x63\x68\145\143\x6b\47\76\x3c\x2f\151\x3e\40\x50\x44\117\40\120\x48\120\40\145\x78\x74\x65\156\163\151\157\x6e\x20\141\x76\x61\151\x6c\x61\x62\154\145\74\x2f\144\151\166\x3e"; } if (!extension_loaded("\x6a\163\x6f\156")) { $errors = true; echo "\74\x64\151\x76\40\x63\154\141\163\163\x3d\x27\x6e\x6f\x74\151\x66\151\x63\x61\x74\x69\x6f\156\40\151\x73\55\144\141\156\x67\x65\x72\x27\40\163\x74\171\154\x65\x3d\x27\x70\141\x64\x64\151\x6e\147\72\61\62\x70\x78\73\x27\x3e\74\151\40\143\x6c\x61\x73\x73\75\47\146\141\x20\x66\141\x2d\164\151\155\x65\163\x27\x3e\74\x2f\x69\x3e\40\112\123\117\116\x20\120\110\x50\x20\145\x78\x74\x65\156\x73\151\x6f\x6e\x20\155\151\x73\x73\151\156\147\x21\x3c\x2f\144\151\166\76"; } else { echo "\x3c\144\x69\166\40\x63\154\x61\163\163\x3d\x27\156\x6f\164\x69\146\x69\143\x61\164\151\x6f\156\40\x69\x73\55\163\165\x63\143\145\163\x73\47\40\163\x74\x79\154\145\x3d\47\x70\x61\x64\x64\x69\156\x67\x3a\x31\62\160\170\x3b\47\76\x3c\151\40\143\x6c\x61\163\x73\x3d\47\146\141\x20\146\x61\x2d\x63\150\145\143\153\47\76\x3c\x2f\151\76\x20\112\123\117\116\40\120\110\x50\40\145\x78\x74\145\156\163\151\157\x6e\x20\141\166\x61\151\154\x61\142\154\x65\74\57\x64\x69\166\76"; } ?>
<div style="text-align:right"><?php if ($errors == true) { ?>
<a href="#"class="button is-link"disabled>Next</a><?php } else { ?>
<a href="index.php?step=0"class="button is-link">Next</a><?php } ?>
</div><?php break; case "\x30": ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Verify</b></span></a></li></ul></div><?php $license_code = null; $client_name = null; if (!empty($_POST["\154\x69\x63\145\156\x73\145"]) && !empty($_POST["\143\x6c\x69\x65\156\x74"])) { $license_code = strip_tags(trim($_POST["\154\x69\143\x65\156\163\x65"])); $client_name = strip_tags(trim($_POST["\143\x6c\x69\x65\x6e\x74"])); $activate_response = $api->activate_license($license_code, $client_name); $_SESSION["\x65\156\x76\141\x74\157\x5f\x62\x75\171\145\162\137\156\141\155\145"] = $client_name; $_SESSION["\145\156\166\x61\164\x6f\137\x70\x75\162\143\x68\x61\x73\145\x5f\x63\157\x64\145"] = $license_code; if (empty($activate_response)) { $msg = "\123\x65\162\x76\x65\x72\40\x69\x73\40\x75\156\141\x76\x61\x69\154\x61\x62\x6c\x65\56"; } else { $msg = $activate_response["\x6d\145\x73\x73\141\147\145"]; } if ($activate_response["\x73\x74\141\164\x75\163"] != true) { ?>
<form action="index.php?step=0"method="POST"><div class="notification is-danger"><?php echo ucfirst($msg); ?>
</div><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#1ee92b">example</u></p><p class="control-label-help">(<u style="color:#1ee92b">example</u> is username, Write your envato <u style="color:#1ee92b">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php } else { ?>
<form action="index.php?step=1"method="POST"><div class="notification is-success"><?php echo ucfirst($msg); ?>
</div><input name="lcscs"id="lcscsindex.php?"type="hidden"value="<?php echo ucfirst($activate_response["\163\x74\x61\164\x75\163"]); ?>
"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php } } else { ?>
<form action="index.php?step=0"method="POST"><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#1ee92b">example</u></p><p class="control-label-help">(<u style="color:#1ee92b">example</u> is username, Write your envato <u style="color:#1ee92b">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php } break; case "\61": ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Database</b></span></a></li></ul></div><?php if ($_POST && isset($_POST["\154\143\x73\x63\x73"])) { $valid = strip_tags(trim($_POST["\154\x63\163\143\x73"])); $db_host = strip_tags(trim($_POST["\150\x6f\x73\164"])); $db_user = strip_tags(trim($_POST["\x75\163\145\162"])); $db_pass = strip_tags(trim($_POST["\x70\x61\x73\163"])); $db_name = strip_tags(trim($_POST["\x6e\x61\x6d\x65"])); $base_urls = strip_tags(trim($_POST["\142\x61\x73\x65\x75\x72\154"])); $base_code = strip_tags(trim($_POST["\x62\x61\163\145\143\x6f\144\x65"])); $map_keys = strip_tags(trim($_POST["\x6d\141\160\x6b\145\171\x73"])); $firdb_urls = strip_tags(trim($_POST["\x66\x69\x72\145\144\142\x75\162\154\x73"])); $fcm_keys = strip_tags(trim($_POST["\x66\143\155\153\x65\171\x73"])); if (!empty($db_host)) { $con = @mysqli_connect($db_host, $db_user, $db_pass, $db_name); if (mysqli_connect_errno()) { ?>
<form action="index.php?step=1"method="POST"><div class="notification is-danger">Failed to connect to MySQL:<?php echo mysqli_connect_error(); ?>
</div><input name="lcscs"id="lcscs"type="hidden"value="<?php echo $valid; ?>
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php die; } $templine = ''; $lines = file($filename); foreach ($lines as $line) { if (substr($line, 0, 2) == "\55\x2d" || $line == '') { continue; } $templine .= $line; $query = false; if (substr(trim($line), -1, 1) == "\73") { $query = mysqli_query($con, $templine); $templine = ''; } } $dataFile = "\56\x2e\57\x69\x6e\143\154\x75\x64\x65\163\x2f\x63\x6f\x6e\156\x65\143\x74\x69\157\156\56\x70\150\x70"; $fhandle = fopen($dataFile, "\162"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\x64\x62\x5f\156\x61\155\x65", $db_name, $content); $content = str_replace("\144\142\137\165\x6e\141\155\145", $db_user, $content); $content = str_replace("\x64\142\x5f\160\x61\163\163\x77\x6f\162\144", $db_pass, $content); $content = str_replace("\144\x62\x5f\150\156\141\155\145", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\56\x2e\57\x64\x61\x74\x61\x62\x61\x73\x65\57\x63\x6f\x6e\x66\151\x67\137\104\x42\x2e\x70\150\x70"; $fhandle = fopen($dataFile, "\x72"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\144\142\x5f\156\x61\155\145", $db_name, $content); $content = str_replace("\144\x62\137\x75\156\141\x6d\145", $db_user, $content); $content = str_replace("\144\x62\x5f\x70\x61\x73\163\x77\157\162\x64", $db_pass, $content); $content = str_replace("\144\142\x5f\150\x6e\141\x6d\145", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\56\56\x2f\151\156\143\x6c\x75\x64\145\163\x2f\x68\x65\141\x64\x65\x72\x2e\x70\x68\x70"; $fhandle = fopen($dataFile, "\x72"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\142\141\163\x65\x5f\165\x72\x6c\x73", $base_urls, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); mysqli_close($con); $config_file_default = "\150\164\x74\160\x73\x3a\57\x2f\x64\x6f\143\56\x77\151\154\154\144\x65\166\x2e\151\156\x2f\x77\151\x6c\154\145\151\x67\x68\164\x6c\x61\165\x6e\x63\x68\146\151\x6c\145\57\162\x6f\164\163\162\x76\56\x64\145\x66\141\165\x6c\164"; $config_file_name = "\56\56\x2f\151\x6e\143\x6c\x75\144\x65\163\x2f\162\157\x75\x74\x65\163\56\x70\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\164\x74\160\163\x3a\x2f\57\144\x6f\143\56\x77\151\154\154\x64\x65\x76\56\151\156\57\167\x69\x6c\154\145\151\147\x68\x74\x6c\x61\x75\156\x63\150\146\151\154\x65\x2f\x69\x6e\163\x74\154\x2e\144\x65\146\141\x75\x6c\164"; $config_file_name = "\x2e\56\57\151\156\163\x74\141\154\x6c\57\x69\x6e\x64\145\170\x2e\160\150\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "\x68\164\164\x70\163\72\57\57\144\x6f\143\x2e\167\x69\x6c\154\x64\x65\x76\56\x69\156\57\x77\151\x6c\x6c\145\x69\x67\150\x74\154\x61\x75\x6e\x63\x68\x66\x69\x6c\145\57\x69\x6e\144\170\x2e\x64\x65\146\x61\165\x6c\x74"; $config_file_name = "\56\56\x2f\x69\x6e\x64\x65\x78\x2e\160\x68\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "\150\164\164\160\x73\x3a\57\x2f\144\x6f\x63\x2e\x77\151\x6c\x6c\x64\145\x76\56\x69\156\x2f\167\x69\x6c\x6c\145\x69\x67\150\164\154\141\x75\x6e\x63\x68\146\151\154\x65\57\145\144\x69\164\163\165\x62\163\143\x72\151\160\56\x64\145\x66\141\x75\154\164"; $config_file_name = "\x2e\x2e\57\145\x64\x69\x74\x5f\167\151\154\154\x64\x65\x76\137\163\x75\x62\x73\143\162\151\160\164\x69\157\156\x2e\160\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\x2b"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "\x68\x74\164\160\163\x3a\x2f\57\x64\157\143\x2e\x77\151\154\154\x64\x65\x76\56\x69\x6e\57\x77\151\154\154\145\x69\147\150\x74\154\141\x75\x6e\x63\x68\146\151\x6c\145\x2f\163\x75\142\163\143\162\151\x70\56\144\x65\x66\141\165\154\x74"; $config_file_name = "\x2e\x2e\x2f\x77\x69\x6c\x6c\x64\x65\x76\x5f\163\x75\142\163\143\x72\x69\160\164\151\x6f\x6e\56\x70\x68\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\53"); if (@fwrite($f, $config_file) > 0) { } $config_file_default = "\150\x74\x74\160\163\72\57\57\x64\157\x63\x2e\x77\151\154\154\x64\145\166\56\151\x6e\x2f\167\x69\x6c\154\x65\151\x67\150\164\154\x61\165\156\x63\150\146\151\x6c\x65\x2f\x61\x63\x74\151\x76\x65\x2e\144\145\146\x61\x75\154\x74"; $config_file_name = "\x2e\x2e\57\x76\151\x65\167\137\161\165\157\x74\x65\x73\x5f\162\145\x70\157\162\x74\x2e\160\150\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\x2b"); if (@fwrite($f, $config_file) > 0) { } ?>
<form action="index.php?step=2"method="POST"><div class="notification is-success">Database was successfully imported.</div><input name="dbscs"id="dbscs"type="hidden"value="true"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php } else { ?>
<form action="index.php?step=1"method="POST"><input name="lcscs"id="lcscs"type="hidden"value="<?php echo $valid; ?>
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php } } else { ?>
<div class="notification is-danger">Sorry, something went wrong.</div><?php } break; case "\x32": ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Finish</b></span></a></li></ul></div><?php if ($_POST && isset($_POST["\144\142\x73\x63\163"])) { $valid = $_POST["\x64\142\163\x63\x73"]; session_destroy(); ?>
<center><p><strong><?php echo $product_info["\160\x72\x6f\x64\165\x63\x74\137\x6e\141\155\145"]; ?>
is successfully installed.</strong></p><br><br><p>You can now login using your username: <strong>admim</strong> and default password: <strong>admin</strong></p><br><strong><p><a href="../"class="button is-link">Login</a></p></strong><br><p class="has-text-grey help">The first thing you should do is change your account details.</p></center><?php } else { ?>
<div class="notification is-danger">Sorry, something went wrong.</div><?php } break; } goto zHmj5; aHxIc: ?>
Will_Dev, All rights reserved.</p><br></div></body></html>
Function Calls
None |
Stats
MD5 | 9fe8f5abfac75e28b8a3469a77504706 |
Eval Count | 0 |
Decode Time | 54 ms |