Viewing File: /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/themes/default/ampps/secure_theme.php
<?php
//////////////////////////////////////////////////////////////
//===========================================================
// userindex_theme.php
//===========================================================
// SOFTACULOUS
// Version : 1.1
// Inspired by the DESIRE to be the BEST OF ALL
// ----------------------------------------------------------
// Started by: Alons
// Date: 10th Jan 2009
// Time: 21:00 hrs
// Site: http://www.softaculous.com/ (SOFTACULOUS)
// ----------------------------------------------------------
// Please Read the Terms of use at http://www.softaculous.com
// ----------------------------------------------------------
//===========================================================
// (c)Softaculous Inc.
//===========================================================
//////////////////////////////////////////////////////////////
if(!defined('SOFTACULOUS')){
die('Hacking Attempt');
}
function secure_theme(){
global $theme, $globals, $softpanel, $user, $l, $error, $updates_available, $done, $checked, $is_secured;
softheader(__('$0 - Secure AMPPS', array(APP)));
echo '
<div class="bg">
<div class="row sai_main_head mt-4" style="width:100%;" align="center">
<div class="col-12 text-center">
<span class="form-title"><img height="48" width="48" src="'.$theme['a_images'].'secure.png" />'.__('Secure AMPPS').'</span>
</div>
</div><hr />';
error_handle($error, '100%');
if (!empty($done)){
echo '<div align="center" class="alert alert-success" style="font-size:13px;">
<a href = "#" class="close" data-dismiss="alert">×</a>
' . (empty($is_secured) ? __('You have chosen your AMPPS to be unsecured') : __('Password was set successfully')) . '</div>';
echo '<br /><a href="'.$globals['ind'].'">' . __('Back to Home') . '</a>';
}else{
echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function showpass(){
if($_("secure").checked){
$_("pass_row").style.display = "";
$_("conf_row").style.display = "";
}else{
$_("pass_row").style.display = "none";
$_("conf_row").style.display = "none";
}
}
addonload("showpass();");
// ]]></script>
<form action="" method="post">
<div class="row mt-4">
<div class="col-sm-5 col-xs-12 px-4">
<label for="secure" class="sai_head">'.__('Do you want your AMPPS to be secured?').'</label><br>';
if($is_secured==true){
echo '<span class="sai_exp2">'.__('Your AMPPS is currently ').'<font color="green">Secured</font></span>';
}else{
echo '<span class="sai_exp2">'.__('Your AMPPS is currently ').'<font color="red">Unsecured</font></span>';
}
echo '
</div>
<div class="col-sm-7 col-xs-12 px-4">
<input type="checkbox" name="secure" id="secure" '.POSTchecked('secure', $is_secured).' onclick="showpass(this);">
</div>
</div><br />
<div class="row" id="pass_row">
<div class="col-sm-5 col-xs-12 px-4">
<label for="pass" class="sai_head">'.__('Set Password:').'</label>
<br/><span class="sai_exp2">'.__('Set password only if you want change password').'</span>
</div>
<div class="col-sm-7 col-xs-12 px-4">
<input type="password" id="pass" name="setpass" class="form-control"/>
</div>
</div><br />
<div class="row" id="conf_row">
<div class="col-sm-5 col-xs-12 px-4">
<label for ="repass" class="sai_head">'.__('Retype Password:').' </label>
</div>
<div class="col-sm-7 col-xs-12 px-4">
<input type="password" name="retypepass" id="repass" class="form-control"/>
</div>
</div></br>';
if($done==1)
{
echo '
<div class="alert alert-success" style="padding:10px;font-size:15px;">'.__('Password has been set. Now your AMPPS is secured').'</div>';
}
echo '
<div class="row mt-4">
<div class="sai_exp2">     '.__('Note: If you want your AMPPS to be secured, you must set a password. So everytime you visit the AMPPS Panel, it will ask for a password.').'</div>
</div></br>
<div class="row">
<div class="col-10 px-4 text-center">
<input type="submit" class="btn sai-button" name="submit" value="Submit"/>
</div>
</div><br />
</div></form></body></html>';
}
softfooter();
}
Back to Directory