Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-..
Decoded Output download
<?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="SpaGreen">
<title>SaleBot | Installation</title>
<link rel="shortcut icon" href="https://e-cashmobfin.net.ng/public/images/default/favicon/favicon-96x96.png">
<link rel='stylesheet' type='text/css' href="https://e-cashmobfin.net.ng/public/install/bootstrap/css/bootstrap.min.css"/>
<link rel='stylesheet' type='text/css'
href="https://e-cashmobfin.net.ng/public/install/js/font-awesome/css/font-awesome.min.css"/>
<link rel='stylesheet' type='text/css' href="https://e-cashmobfin.net.ng/public/install/css/install.css?ver=1.0.0"/>
<!--====== Color CSS ======-->
<link rel='stylesheet' type='text/css' href="https://e-cashmobfin.net.ng/public/install/css/salebot.css?ver=1.0.0"/>
</head>
<body>
<div class="install-box">
<div class="panel panel-install">
<div class="panel-heading text-center">
<h2>SaleBot - Installation</h2>
</div>
<div class="panel-body no-padding">
<div class="tab-container clearfix">
<div id="pre-installation" class="tab-title col-sm-4 active"><i class="fa fa-circle-o"></i><strong>
Pre-Installation</strong></div>
<div id="configuration" class="tab-title col-sm-4"><i class="fa fa-circle-o"></i><strong>
Configuration</strong></div>
<div id="finished" class="tab-title col-sm-4"><i class="fa fa-circle-o"></i><strong>
Finished</strong>
</div>
</div>
<div id="alert-container">
<div id="error_m" class="alert alert-danger hide">
</div>
<div id="success_m" class="alert alert-success hide">
</div>
</div>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="pre-installation-tab">
<div class="section">
<p>1. Please configure your PHP settings to match following requirements:</p>
<hr/>
<div>
<table>
<thead>
<tr>
<th width="25%">PHP Settings</th>
<th width="27%">Current Version</th>
<th>Required Version</th>
<th class="text-center">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>PHP Version</td>
<td>8.2.16</td>
<td>8.0.2 or Later
</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section">
<p>2. Please make sure the extensions/settings listed below are installed/enabled:</p>
<hr/>
<div>
<table>
<thead>
<tr>
<th width="25%">Extension/settings</th>
<th width="27%">Current Settings</th>
<th>Required Settings</th>
<th class="text-center">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>MySQLi</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>GD</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>cURL</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>allow_url_fopen</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>zip</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>zlip</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>OpenSSL PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>PDO PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>BCMath PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Ctype PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Fileinfo PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Mbstring PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Tokenizer PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>XML PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>JSON PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>PHP ZipArchive Class</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i
class="status fa fa-check-circle-o"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section">
<p>3. Please make sure you have set the <strong>writable</strong> permission on the
following
folders/files:</p>
<hr/>
<div>
<table>
<tbody>
<tr>
<td id="first-td">./app</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./config</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./routes</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./resources</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./public</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./storage</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">.env</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./bootstrap/cache</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel-footer">
<button class="btn btn-info form-next"><i
class='fa fa-chevron-right'></i> Next
</button>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="configuration-tab">
<form id="config-form" action="https://e-cashmobfin.net.ng/install/process" method="POST">
<input type="hidden" name="_token" value="JcYOcMMcAv0pfHjWjQJXwWmQTeouYGq8GERghWb2"> <div class="section clearfix">
<p>1. Please enter your database connection details.</p>
<hr/>
<div>
<input type="hidden" name="random_token" value="$2y$10$zzviIC6liNIUlPbSRtTwp.sNVlh8dRXrC78xGhJiY.Zo5kIpy.Zdu">
<div class="form-group clearfix">
<label for="host" class=" col-md-3">Database Host</label>
<div class="col-md-9">
<input type="text" value="localhost"
id="host" name="host" autofocus class="form-control"
placeholder="Database Host (usually localhost)"/>
<strong class="text-danger" id="host_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="db_user" class=" col-md-3">Database User</label>
<div class=" col-md-9">
<input type="text" value="" name="db_user"
class="form-control" autocomplete="off"
placeholder="Database user name"/>
<strong class="text-danger" id="db_user_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="db_password" class=" col-md-3">Password</label>
<div class=" col-md-9">
<input type="password" value=""
name="db_password" class="form-control" autocomplete="off"
placeholder="Database user password"/>
<strong class="text-danger" id="db_password_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="db_name" class=" col-md-3">Database Name</label>
<div class=" col-md-9">
<input type="text" value="" name="db_name"
class="form-control" placeholder="Database Name"/>
<strong class="text-danger" id="db_name_error"></strong>
</div>
</div>
</div>
</div>
<div class="section clearfix">
<p>2. Please enter your activation code.</p>
<hr/>
<h4 class="text-danger">Get activation code from <a href="https://license.spagreen.net/"
target="_blank">here.</a></h4>
<div>
<div class="form-group clearfix">
<label for="activation_code" class="col-md-3">Activation code</label>
<div class="col-md-9">
<input type="text" value=""
id="activation_code" name="activation_code" class="form-control"
placeholder="Find in license.spagreen.net"/>
<strong class="text-danger" id="activation_code_error"></strong>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-info form-next activation_checker">
<span class="loader hide"> Installing...</span>
<span class="button-text"><i class='fa fa-chevron-right'></i>Next</span>
</button>
</div>
</form>
<form action="https://e-cashmobfin.net.ng/install/finalize" id="user_details_form" class="hide" method="post"><input type="hidden" name="_token" value="JcYOcMMcAv0pfHjWjQJXwWmQTeouYGq8GERghWb2"> <input type="hidden" name="user_details" value="1">
<div class="section clearfix">
<p>Please enter your account details for administration.</p>
<hr/>
<div>
<div class="form-group clearfix">
<label for="first_name" class=" col-md-3">First Name</label>
<div class="col-md-9">
<input type="text"
id="first_name" name="first_name" class="form-control"
placeholder="Your first name"/>
<strong class="text-danger" id="first_name_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="last_name" class=" col-md-3">Last Name</label>
<div class=" col-md-9">
<input type="text"
id="last_name" name="last_name" class="form-control"
placeholder="Your last name"/>
<strong class="text-danger" id="last_name_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="email" class=" col-md-3">Email</label>
<div class=" col-md-9">
<input type="text" name="email"
class="form-control" placeholder="Your email"/>
<strong class="text-danger" id="email_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="password" class=" col-md-3">Password</label>
<div class=" col-md-9">
<input type="password"
name="password" class="form-control" placeholder="Login password"/>
<strong class="text-danger" id="password_error"></strong>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-info form-next user_details_checker">
<span class="loader hide"> Installing...</span>
<span class="button-text"><i class='fa fa-chevron-right'></i>Finish</span>
</button>
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="finished-tab">
<div class="section">
<div class="clearfix">
<i class="status fa fa-check-circle-o pull-left"> </i><span
class="pull-left">Congratulation! You have successfully installed <strong> YOORI -
PWA eCommerce CMS PHP Script</strong></span>
</div>
<a class="go-to-login-page" href="https://e-cashmobfin.net.ng/login">
<div class="text-center">
<div class="font"><i class="fa fa-desktop"></i></div>
<div>Login to Admin Dashboard</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://e-cashmobfin.net.ng/public/admin/js/jquery.min.js"></script>
<script>
$(document).ready(function () {
$(document).ready(function () {
var $preInstallationTab = $("#pre-installation-tab");
var $configurationTab = $("#configuration-tab");
$(document).on('click', ".form-next", function () {
if ($preInstallationTab.hasClass("active")) {
$preInstallationTab.removeClass("active");
$configurationTab.addClass("active");
$("#pre-installation").find("i").removeClass("fa-circle-o").addClass("fa-check-circle");
$("#configuration").addClass("active");
$("#host").focus();
}
});
$(document).on('submit', '#config-form', function (e) {
e.preventDefault();
let selector = this;
$('#error_m').addClass('hide');
$('#success_m').addClass('hide');
$("input").removeClass('error_border');
$("#config-form strong").text('');
let url = $(selector).attr('action');
let method = $(selector).attr('method');
$('.activation_checker .button-text').addClass('hide');
$('.activation_checker .loader').removeClass('hide');
$('.activation_checker').addClass('disable_btn');
let formData = new FormData(selector);
$.ajax({
method: method,
url: url,
data: formData,
cache: false,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
$(selector).addClass('hide');
$('#user_details_form').removeClass('hide');
$('#success_m').removeClass('hide').text(response.success);
} else {
$('.activation_checker .button-text').removeClass('hide');
$('.activation_checker .loader').addClass('hide');
$('.activation_checker').removeClass('disable_btn');
$('#error_m').removeClass('hide').html(response.error);
}
},
error: function (error) {
$('.activation_checker .button-text').removeClass('hide');
$('.activation_checker .loader').addClass('hide');
$('.activation_checker').removeClass('disable_btn');
if (error.status == 422) {
let errors = error.responseJSON.errors;
let error_length = Object.keys(error.responseJSON.errors);
for (let i = 0; i < error_length.length; i++) {
$('input[name = ' + error_length[i] + ']').addClass(
'error_border');
$('#' + error_length[i] + '_error').text(errors[error_length[i]]
[0]);
}
}
}
})
});
$(document).on('submit', '#user_details_form', function (e) {
e.preventDefault();
$('#error_m').addClass('hide');
$('#success_m').addClass('hide');
$("input").removeClass('error_border');
$("#user_details_form strong").text('');
let selector = this;
let url = $(selector).attr('action');
let method = $(selector).attr('method');
$('.user_details_checker .button-text').addClass('hide');
$('.user_details_checker .loader').removeClass('hide');
$('.user_details_checker').addClass('disable_btn');
let formData = new FormData(selector);
$.ajax({
method: method,
url: url,
data: formData,
cache: false,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
$('#success_m').removeClass('hide').text(response.success);
window.location.href = response.route;
} else {
$('.user_details_checker .button-text').removeClass('hide');
$('.user_details_checker .loader').addClass('hide');
$('.user_details_checker').removeClass('disable_btn');
$('#error_m').removeClass('hide').text(response.error);
}
},
error: function (error) {
$('.user_details_checker .button-text').removeClass('hide');
$('.user_details_checker .loader').addClass('hide');
$('.user_details_checker').removeClass('disable_btn');
if (error.status == 422) {
let errors = error.responseJSON.errors;
let error_length = Object.keys(error.responseJSON.errors);
for (let i = 0; i < error_length.length; i++) {
$('input[name = ' + error_length[i] + ']').addClass(
'error_border');
$('#' + error_length[i] + '_error').text(errors[error_length[i]]
[0]);
}
}
}
})
});
});
});
</script>
</body>
</html>
?>
Did this file decode correctly?
Original Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="SpaGreen">
<title>SaleBot | Installation</title>
<link rel="shortcut icon" href="https://e-cashmobfin.net.ng/public/images/default/favicon/favicon-96x96.png">
<link rel='stylesheet' type='text/css' href="https://e-cashmobfin.net.ng/public/install/bootstrap/css/bootstrap.min.css"/>
<link rel='stylesheet' type='text/css'
href="https://e-cashmobfin.net.ng/public/install/js/font-awesome/css/font-awesome.min.css"/>
<link rel='stylesheet' type='text/css' href="https://e-cashmobfin.net.ng/public/install/css/install.css?ver=1.0.0"/>
<!--====== Color CSS ======-->
<link rel='stylesheet' type='text/css' href="https://e-cashmobfin.net.ng/public/install/css/salebot.css?ver=1.0.0"/>
</head>
<body>
<div class="install-box">
<div class="panel panel-install">
<div class="panel-heading text-center">
<h2>SaleBot - Installation</h2>
</div>
<div class="panel-body no-padding">
<div class="tab-container clearfix">
<div id="pre-installation" class="tab-title col-sm-4 active"><i class="fa fa-circle-o"></i><strong>
Pre-Installation</strong></div>
<div id="configuration" class="tab-title col-sm-4"><i class="fa fa-circle-o"></i><strong>
Configuration</strong></div>
<div id="finished" class="tab-title col-sm-4"><i class="fa fa-circle-o"></i><strong>
Finished</strong>
</div>
</div>
<div id="alert-container">
<div id="error_m" class="alert alert-danger hide">
</div>
<div id="success_m" class="alert alert-success hide">
</div>
</div>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="pre-installation-tab">
<div class="section">
<p>1. Please configure your PHP settings to match following requirements:</p>
<hr/>
<div>
<table>
<thead>
<tr>
<th width="25%">PHP Settings</th>
<th width="27%">Current Version</th>
<th>Required Version</th>
<th class="text-center">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>PHP Version</td>
<td>8.2.16</td>
<td>8.0.2 or Later
</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section">
<p>2. Please make sure the extensions/settings listed below are installed/enabled:</p>
<hr/>
<div>
<table>
<thead>
<tr>
<th width="25%">Extension/settings</th>
<th width="27%">Current Settings</th>
<th>Required Settings</th>
<th class="text-center">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>MySQLi</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>GD</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>cURL</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>allow_url_fopen</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>zip</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>zlip</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>OpenSSL PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>PDO PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>BCMath PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Ctype PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Fileinfo PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Mbstring PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>Tokenizer PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>XML PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>JSON PHP Extension</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td>PHP ZipArchive Class</td>
<td>
On
</td>
<td>On</td>
<td class="text-center">
<i
class="status fa fa-check-circle-o"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section">
<p>3. Please make sure you have set the <strong>writable</strong> permission on the
following
folders/files:</p>
<hr/>
<div>
<table>
<tbody>
<tr>
<td id="first-td">./app</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./config</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./routes</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./resources</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./public</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./storage</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">.env</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
<tr>
<td id="first-td">./bootstrap/cache</td>
<td class="text-center">
<i class="status fa fa-check-circle-o"></i>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel-footer">
<button class="btn btn-info form-next"><i
class='fa fa-chevron-right'></i> Next
</button>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="configuration-tab">
<form id="config-form" action="https://e-cashmobfin.net.ng/install/process" method="POST">
<input type="hidden" name="_token" value="JcYOcMMcAv0pfHjWjQJXwWmQTeouYGq8GERghWb2"> <div class="section clearfix">
<p>1. Please enter your database connection details.</p>
<hr/>
<div>
<input type="hidden" name="random_token" value="$2y$10$zzviIC6liNIUlPbSRtTwp.sNVlh8dRXrC78xGhJiY.Zo5kIpy.Zdu">
<div class="form-group clearfix">
<label for="host" class=" col-md-3">Database Host</label>
<div class="col-md-9">
<input type="text" value="localhost"
id="host" name="host" autofocus class="form-control"
placeholder="Database Host (usually localhost)"/>
<strong class="text-danger" id="host_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="db_user" class=" col-md-3">Database User</label>
<div class=" col-md-9">
<input type="text" value="" name="db_user"
class="form-control" autocomplete="off"
placeholder="Database user name"/>
<strong class="text-danger" id="db_user_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="db_password" class=" col-md-3">Password</label>
<div class=" col-md-9">
<input type="password" value=""
name="db_password" class="form-control" autocomplete="off"
placeholder="Database user password"/>
<strong class="text-danger" id="db_password_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="db_name" class=" col-md-3">Database Name</label>
<div class=" col-md-9">
<input type="text" value="" name="db_name"
class="form-control" placeholder="Database Name"/>
<strong class="text-danger" id="db_name_error"></strong>
</div>
</div>
</div>
</div>
<div class="section clearfix">
<p>2. Please enter your activation code.</p>
<hr/>
<h4 class="text-danger">Get activation code from <a href="https://license.spagreen.net/"
target="_blank">here.</a></h4>
<div>
<div class="form-group clearfix">
<label for="activation_code" class="col-md-3">Activation code</label>
<div class="col-md-9">
<input type="text" value=""
id="activation_code" name="activation_code" class="form-control"
placeholder="Find in license.spagreen.net"/>
<strong class="text-danger" id="activation_code_error"></strong>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-info form-next activation_checker">
<span class="loader hide"> Installing...</span>
<span class="button-text"><i class='fa fa-chevron-right'></i>Next</span>
</button>
</div>
</form>
<form action="https://e-cashmobfin.net.ng/install/finalize" id="user_details_form" class="hide" method="post"><input type="hidden" name="_token" value="JcYOcMMcAv0pfHjWjQJXwWmQTeouYGq8GERghWb2"> <input type="hidden" name="user_details" value="1">
<div class="section clearfix">
<p>Please enter your account details for administration.</p>
<hr/>
<div>
<div class="form-group clearfix">
<label for="first_name" class=" col-md-3">First Name</label>
<div class="col-md-9">
<input type="text"
id="first_name" name="first_name" class="form-control"
placeholder="Your first name"/>
<strong class="text-danger" id="first_name_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="last_name" class=" col-md-3">Last Name</label>
<div class=" col-md-9">
<input type="text"
id="last_name" name="last_name" class="form-control"
placeholder="Your last name"/>
<strong class="text-danger" id="last_name_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="email" class=" col-md-3">Email</label>
<div class=" col-md-9">
<input type="text" name="email"
class="form-control" placeholder="Your email"/>
<strong class="text-danger" id="email_error"></strong>
</div>
</div>
<div class="form-group clearfix">
<label for="password" class=" col-md-3">Password</label>
<div class=" col-md-9">
<input type="password"
name="password" class="form-control" placeholder="Login password"/>
<strong class="text-danger" id="password_error"></strong>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-info form-next user_details_checker">
<span class="loader hide"> Installing...</span>
<span class="button-text"><i class='fa fa-chevron-right'></i>Finish</span>
</button>
</div>
</form>
</div>
<div role="tabpanel" class="tab-pane" id="finished-tab">
<div class="section">
<div class="clearfix">
<i class="status fa fa-check-circle-o pull-left"> </i><span
class="pull-left">Congratulation! You have successfully installed <strong> YOORI -
PWA eCommerce CMS PHP Script</strong></span>
</div>
<a class="go-to-login-page" href="https://e-cashmobfin.net.ng/login">
<div class="text-center">
<div class="font"><i class="fa fa-desktop"></i></div>
<div>Login to Admin Dashboard</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://e-cashmobfin.net.ng/public/admin/js/jquery.min.js"></script>
<script>
$(document).ready(function () {
$(document).ready(function () {
var $preInstallationTab = $("#pre-installation-tab");
var $configurationTab = $("#configuration-tab");
$(document).on('click', ".form-next", function () {
if ($preInstallationTab.hasClass("active")) {
$preInstallationTab.removeClass("active");
$configurationTab.addClass("active");
$("#pre-installation").find("i").removeClass("fa-circle-o").addClass("fa-check-circle");
$("#configuration").addClass("active");
$("#host").focus();
}
});
$(document).on('submit', '#config-form', function (e) {
e.preventDefault();
let selector = this;
$('#error_m').addClass('hide');
$('#success_m').addClass('hide');
$("input").removeClass('error_border');
$("#config-form strong").text('');
let url = $(selector).attr('action');
let method = $(selector).attr('method');
$('.activation_checker .button-text').addClass('hide');
$('.activation_checker .loader').removeClass('hide');
$('.activation_checker').addClass('disable_btn');
let formData = new FormData(selector);
$.ajax({
method: method,
url: url,
data: formData,
cache: false,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
$(selector).addClass('hide');
$('#user_details_form').removeClass('hide');
$('#success_m').removeClass('hide').text(response.success);
} else {
$('.activation_checker .button-text').removeClass('hide');
$('.activation_checker .loader').addClass('hide');
$('.activation_checker').removeClass('disable_btn');
$('#error_m').removeClass('hide').html(response.error);
}
},
error: function (error) {
$('.activation_checker .button-text').removeClass('hide');
$('.activation_checker .loader').addClass('hide');
$('.activation_checker').removeClass('disable_btn');
if (error.status == 422) {
let errors = error.responseJSON.errors;
let error_length = Object.keys(error.responseJSON.errors);
for (let i = 0; i < error_length.length; i++) {
$('input[name = ' + error_length[i] + ']').addClass(
'error_border');
$('#' + error_length[i] + '_error').text(errors[error_length[i]]
[0]);
}
}
}
})
});
$(document).on('submit', '#user_details_form', function (e) {
e.preventDefault();
$('#error_m').addClass('hide');
$('#success_m').addClass('hide');
$("input").removeClass('error_border');
$("#user_details_form strong").text('');
let selector = this;
let url = $(selector).attr('action');
let method = $(selector).attr('method');
$('.user_details_checker .button-text').addClass('hide');
$('.user_details_checker .loader').removeClass('hide');
$('.user_details_checker').addClass('disable_btn');
let formData = new FormData(selector);
$.ajax({
method: method,
url: url,
data: formData,
cache: false,
contentType: false,
processData: false,
success: function (response) {
if (response.success) {
$('#success_m').removeClass('hide').text(response.success);
window.location.href = response.route;
} else {
$('.user_details_checker .button-text').removeClass('hide');
$('.user_details_checker .loader').addClass('hide');
$('.user_details_checker').removeClass('disable_btn');
$('#error_m').removeClass('hide').text(response.error);
}
},
error: function (error) {
$('.user_details_checker .button-text').removeClass('hide');
$('.user_details_checker .loader').addClass('hide');
$('.user_details_checker').removeClass('disable_btn');
if (error.status == 422) {
let errors = error.responseJSON.errors;
let error_length = Object.keys(error.responseJSON.errors);
for (let i = 0; i < error_length.length; i++) {
$('input[name = ' + error_length[i] + ']').addClass(
'error_border');
$('#' + error_length[i] + '_error').text(errors[error_length[i]]
[0]);
}
}
}
})
});
});
});
</script>
</body>
</html>
Function Calls
None |
Stats
MD5 | ee3f401ae20af803f60b9e31f9ac471d |
Eval Count | 0 |
Decode Time | 63 ms |