예제 #1
0
function webuzo_acl_theme()
{
    global $theme, $globals, $l, $error, $done, $softpanel;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['heading_webuzo_acl'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />';
    error_handle($error);
    if (!empty($done)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['change_final'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" action="" method="post" name="changepass" id="editform">
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad"  style="padding-left:15px; padding-top:15px; ">
	<tr>
		<td width="70%">
			<span class="sai_head">' . $l['disable_system_apps'] . '</span><br />
			<span class="sai_exp2">' . $l['disable_system_apps_exp'] . '</span>
		</td>
		<td valign="top">
			<input type="checkbox" name="disable_syapps" ' . POSTchecked('disable_syapps', $softpanel->getconf('DISABLE_SYSAPPS')) . ' />
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<span class="sai_exp2">' . $l['root_login_admin'] . '</span><br />
		</td>
	</tr>	
	<tr align="center">
		<td colspan="2">
			<input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="savechanges" class="sai_graybluebut" />
		</td>
	</tr>	
</table>
</form><br /><br /><br />';
    softfooter();
}
예제 #2
0
function ssh_access_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error;
    global $installations, $langs, $saved;
    softheader($l['<title>']);
    error_handle($error, '100%');
    if (!empty($saved)) {
        echo '<div class="sai_success">' . $l['settings_saved'] . '</div>';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="">
<center class="sai_tit"><img src="' . $theme['a_images'] . 'ssh_login.gif" />&nbsp;' . $l['ssh_access'] . '</center>
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" >
	<tr>
		<td>
			<span class="sai_head">' . $l['ssh_enable'] . '</font></span><br/><span class="sai_exp">' . $l['ssh_check'] . '</span>
		</td>
		<td>			
			<input type="checkbox" name="sshon" id="sshon" ' . POSTchecked('sshon', $softpanel->getssh()) . ' ">
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<p align="center">			
				<input type="submit" class="sai_graybluebut" name="editsshsettings" value="' . $l['edit_settings'] . '" />
			</p>
		</td>
	</tr>	
</table>
</form>';
    softfooter();
}
예제 #3
0
function webuzoconfigs_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $webuzoconfigs;
    softheader($l['<title>']);
    echo '<br /><div class="sai_heading" align="center">' . $l['pathhead'] . '</div>
	<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    if (!empty($saved)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="editconfigs" method="post" action="">
<br /><br />
<table width="95%" cellpadding="10" cellspacing="1" class="sai_reviewform" style="margin:0px auto;" border="0">
<tr>
<td align="right">
<span class="sai_head">' . $l['primary_ip'] . '</span><br />
</td>
<td valign="top" >
<input type="text" name="WU_PRIMARY_IP" size="30" value="' . aPOSTval('WU_PRIMARY_IP', $webuzoconfigs['WU_PRIMARY_IP']) . '" />
</td>
</tr>


<tr>
<td align="right">
<span class="sai_head">' . $l['primary_domain'] . '</span><br />
</td>
<td valign="top">
<input type="text" name="WU_PRIMARY_DOMAIN" size="30" value="' . aPOSTval('WU_PRIMARY_DOMAIN', $webuzoconfigs['WU_PRIMARY_DOMAIN']) . '" />
</td>
</tr>

<tr>
<td align="right">
<span class="sai_head">' . $l['ns1'] . '</span>
</td>
<td valign="top">
<input type="text" name="WU_NS1" size="30" value="' . aPOSTval('WU_NS1', $webuzoconfigs['WU_NS1']) . '" />
</td>
</tr>

<tr>
<td valign="top" align="right">
<span class="sai_head">' . $l['ns2'] . '</span>
</td>
<td valign="top">
<input type="text" name="WU_NS2" size="30" value="' . aPOSTval('WU_NS2', $webuzoconfigs['WU_NS2']) . '" />
</td>
</tr>
<tr>
<td colspan="3">
<p align="center"><input type="submit" name="editconfigs" value="' . $l['edit_configs'] . '" class="sai_graybluebut" /></p>
</td>
</tr>
</table>
</form>';
    softfooter();
}
예제 #4
0
function secure_theme()
{
    global $theme, $globals, $softpanel, $user, $l, $error, $updates_available, $done, $checked, $is_secured;
    softheader($l['<title>']);
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'secure.gif" />&nbsp; ' . $l['ampps_secure'] . '<br/></center>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />';
    error_handle($error, '100%');
    if (!empty($done)) {
        echo '<div class="sai_success">' . (empty($is_secured) ? $l['ampps_unsecured'] : $l['ampps_secured']) . '</div>';
        echo '<br /><a href="' . $globals['ind'] . '">' . $l['lbl_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">
	<table border="0" cellpadding="8" cellspacing="2">
	<tr>
		<td align="left"><span class="sai_head">' . $l['question'] . '</span><br/>';
        if ($is_secured == true) {
            echo '<span class="sai_exp">' . $l['is_secure'] . '<font color="green">Secured</font></span>';
        } else {
            echo '<span class="sai_exp">' . $l['is_secure'] . '<font color="red">Unsecured</font></span>';
        }
        echo '</td><td><input type="checkbox" name="secure" id="secure" ' . POSTchecked('secure', $is_secured) . ' onclick="showpass(this);"></td>
	</tr>
	<tr id="pass_row">
		<td align="right"><span class="sai_head">' . $l['set_pass'] . '</span><br/><span class="sai_exp">' . $l['set_notify'] . '</span></td>
		<td><input type="password" name="setpass" /></td>
	</tr>
	<tr id="conf_row">
		<td align="right" class="sai_head">' . $l['retype_pass'] . '</td>
		<td><input type="password" name="retypepass" /></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" name="submit" value="Submit"/></td>
	</tr>';
        if ($done == 1) {
            echo '<tr>
		<td colspan="2" align="center">' . $l['pass_set'] . '</td>
		</tr>';
        }
        echo '</table>
	<p>' . $l['note'] . '</p>
	</form></body></html>';
    }
    softfooter();
}
예제 #5
0
function import_cpanel_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $done;
    softheader($l['<title>']);
    if (!empty($done)) {
        echo '<div class="sai_success">' . $l['import_done'] . '</div><br /><br />';
    } else {
        echo '<form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="" id="editsettings">
	' . error_handle($error, "100%", 0, 1) . '
	<center class="sai_tit"><img src="' . $theme['a_images'] . 'import_cpanel.gif" />&nbsp;' . $l['import_cpanel'] . '</center>
	<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" >
		<tr>
			<td width="35%">
				<span class="sai_head">' . $l['r_domain'] . '</span><br />
				<span class="sai_exp">' . $l['r_domain_exp'] . '</span>
			</td>		
			<td> 
				<input type="text" name="r_domain" id="r_domain" size="30"  size="30" value="' . POSTval('r_domain', '') . '" />
			</td>
		</tr>
		<tr>
			<td>
				<span class="sai_head">' . $l['r_user'] . '</span><br />
				<span class="sai_exp">' . $l['r_user_exp'] . '</span>
			</td>		
			<td> 
				<input type="text" name="r_user" id="r_user" size="30"  size="30" value="' . POSTval('r_user', '') . '" />
			</td>
		</tr>
		<tr>
			<td>
				<span class="sai_head">' . $l['r_pass'] . '</span><br />
				<span class="sai_exp">' . $l['r_pass_exp'] . '</span>
			</td>		
			<td> 
				<input type="password" name="r_pass" id="r_pass" size="30" value="' . POSTval('r_pass', '') . '" />
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<p align="center">
					<input type="hidden" name="create_acc" value="1" />
					<input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="create_acc" class="sai_graybluebut" id="submitftp" /> 
				</p>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<p align="center">' . $l['note'] . '</p>
			</td>
		</tr>		
	</table>
	
	</form>';
    }
    softfooter();
}
예제 #6
0
function script_requirement_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $iscripts, $scripts, $catscripts, $allcatwise, $_iscripts, $cscripts, $req_fail;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">' . $l['list_of_scripts'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />';
    error_handle($error);
    if (!empty($req_fail)) {
        echo '<div id="stooltip" style="display:none; position:absolute; top: 0px; left: 0px; border: 1px solid #CCC; padding: 8px; background: #FFF; z-index:1000;"></div>
	<form accept-charset="' . $globals['charset'] . '" name="updatesoft" method="post" action="">
	<br />
	<link href="' . $globals['mirror_images'] . 'sprites/20.css" rel="stylesheet" type="text/css" />
	<table cellpadding="0" cellspacing="0" width="100%" border="0">
		<tr>
		<td colspan="5">
			<div class="notebox" style="width:95%;" id="beta_notice1">
				<font class="bboxtxt">' . $l['note'] . '</font>
			</div>
		</td>
		</tr>
	</table>
	<table width="723" cellpadding="5" cellspacing="3" border="0" style="margin:0px auto;">';
        $i = 1;
        foreach ($req_fail as $k => $v) {
            if ($k > 10000) {
                continue;
            }
            echo '<tr class="' . ($i % 2 == 0 ? "altrow" : "naltrow") . '">
				<td width="17%" valign="top">
					<table width="100%" border="0">
						<tr>
							<td><div class="sp20_' . $iscripts[$k]['softname'] . '"></div></td>
							<td class="bboxtxt" align="left" width="90%">' . $v['name'] . '</td>
						</tr>
					</table>
				</td>
				<td width="54%" class="bboxtxt">';
            if (count($v['err_msg']) > 1) {
                foreach ($v['err_msg'] as $v_msg) {
                    echo '<strong>*</strong> ' . $v_msg . "<br />";
                }
            } else {
                echo current($v['err_msg']);
            }
            echo '</td>
			</tr>';
            $i++;
        }
        echo '</table><br />
	</form>';
    } else {
        echo '<h2 align="center">' . $l['no_results'] . '</h2>';
    }
    softfooter();
}
예제 #7
0
function editemailtemp_theme()
{
    global $theme, $globals, $kernel, $user, $l, $error, $emailtemp, $done, $notice, $tempname, $ll;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center"><img src="' . $theme['images'] . 'admin/editemailtemp.gif" />&nbsp; ' . $l['edittemp'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    if (!empty($done)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'success.gif" /> &nbsp; ' . $l['done'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="editemailtemp" method="post" action="">
<table cellspacing="0" cellpadding="10" border="0" width="95%" align="center" class="sai_reviewform" style="margin:0px auto;" align="center">
<tr>
	<td class="bboxtxt" width="20%" align="right">' . $l['subject'] . ':</td>	
	<td><input type="text" name="tempsub" value="' . htmlizer($ll['title']) . '" size="73"></td>
</tr>
<tr>
	<td class="bboxtxt" valign="top" align="right">' . $l['content'] . ':</td>
	<td ><textarea  cols="70" name="tempcontent" rows="16">' . htmlizer($ll['body']) . '</textarea><br /><br /><br /><br /></td>
</tr>
</table>
<br />';
    // For Displaying the variable Information according to the action (i.e install, remove, update)
    echo '<table cellspacing="0" cellpadding="10" border="0" width="95%" align="center" class="sai_divroundshad" style="margin:0px auto;" align="center">
<tr>
<td class="bboxtxt" style="line-height:160%; padding:40px;">' . $l['mail_' . $tempname . '_info'] . '
</td>
</tr>
</table>';
    echo '<br /><br /><div class="notebox">' . $l['if_note'] . '</div>
<table width="50%" style="margin:0px auto;">
<tr>
<td align="right" >
<input type="submit" name="savetemplate" value="' . $l['savetemp'] . '" class="sai_graybluebut">
</td>
<td align="left"><input type="button" name="savetemplate" value="' . $l['reset_template'] . '" class="sai_graybluebut" onClick="confirm_reset();">
</td>
</tr>
</table><br /><br />
<center><a href="' . $globals['index'] . 'act=emailtemp"><font class="bboxtxt">' . $l['temp_overview'] . '</font></a></center>
</form>';
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function confirm_reset(){
	var r = confirm("' . $l['reset_confirm'] . '");
	if(r != true){
		return false;
	}else{
		window.location = window.location+"&reset=' . $tempname . '";
	}
}

// ]]></script>';
    softfooter();
}
예제 #8
0
function categories_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $categories;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['reordercat_head'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />
<br />';
    error_handle($error);
    if (!empty($saved)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="reordercat" method="post" action="">
<div class="sai_divroundshad" style="width:700px; margin:0px auto;">
<script language="javascript" src="' . $theme['url'] . '/js/reorder.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
//The array id of all the elements to be reordered
reo_r = new Array(\'' . implode('\', \'', array_keys($categories)) . '\');

//The id of the table that will hold the elements
reorder_holder = "cat_reorder_pos";

//The prefix of the Dom Drag handle for every element
reo_ha = "catha";

//The prefix of the Dom Drag holder for every element(the parent of every element)
reo_ho = "cat";

//The prefix of the Hidden Input field for the reoder value for every element
reo_hid = "cathid";
addonload(\'init_reoder();\');
// ]]></script>
<br /><br />
<table width="60%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr><td id="cat_reorder_pos" width="100%"></td></tr>
</table>';
    $temp = 1;
    foreach ($categories as $ck => $cv) {
        echo '<div id="cat' . $ck . '">
<table cellpadding="0" cellspacing="0" class="catreo" id="catha' . $ck . '" onmousedown="this.style.zIndex=\'1\'" onmouseup="this.style.zIndex=\'0\'">
<tr><td>
&nbsp;&nbsp;' . $l['cat_php_' . $ck] . '
</td></tr>
</table>
</div>';
        echo '<input type="hidden" name="cat[' . $ck . ']" value="' . $temp . '" id="cathid' . $ck . '" />';
        $temp = $temp + 1;
    }
    echo '
<p align="center"><input type="submit" name="reordercat" value="' . $l['reordercat'] . '" class="sai_graybluebut" /></p>
' . (empty($globals['lictype']) ? '<div class="notebox">' . $l['soft_free_note'] . '</div>' : '') . '<br />
</div>
</form>';
    softfooter();
}
예제 #9
0
function errorlog_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $list, $done, $filename, $error_log_data, $log_cleared;
    softheader($l['<title>']);
    echo '<br /><center class="sai_heading"><img src="' . $theme['images'] . 'error_log.gif" />&nbsp;' . $l['errorlog_head'] . '</center><br />';
    error_handle($error);
    echo '<script language="javascript" src="' . js_url('js/combined.js') . '" type="text/javascript"></script>

<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function confirm_reset(){
	var r = confirm("' . $l['reset_confirm'] . '");
	if(r != true){
		return false;
	}else{
		//alert(window.location+"&reset=' . basename($filename) . '");
		//return false;
		window.location  += "&clear_log=' . basename($filename) . '";
	}
}
	
// ]]></script>';
    if (!empty($log_cleared)) {
        echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
	alert("' . $l['refresh_after_clear'] . '");
	window.location = "' . $globals['index'] . 'act=errorlog";
// ]]></script>';
    } else {
        echo '<form accept-charset="' . $globals['charset'] . '" name="errorlogform" method="post" action="" id="errorlogform">
		<center>
			<table border="0" cellpadding="5" cellspacing="0" width="700px" align="center" class="sai_reviewform">
				<tr>
					<td><span class="sai_head">' . $filename . (!empty($error_log_data['file_size']) ? ' (' . $error_log_data['file_size'] . ')' : '') . '</span></td>
				</tr>
			</table>
		</center>
		<br /><br />

	<div style="height:410px; width:700px; overflow:auto; border: 2px solid #CCC; margin:0px auto; position:relative" >
		<table border="0" cellpadding="0" cellspacing="0" width="700px" align="center" class="sai_reviewform">
			<tr>
				<td nowrap="nowrap"><textarea style="font-size:15px;color:#06C; border:none; resize:none;" name="errorlog_data" id="errorlog_data" rows="20" cols="250" readonly="readonly">' . $error_log_data['error_data'] . '</textarea>
				</td>
			</tr>
		</table>
	</div><br />
	
<p align="center">
	<input type="button" value="' . $l['clear_log'] . '" name="clear_log" class="sai_graybluebut" onClick="confirm_reset();"/>
</p>
</form>';
    }
    softfooter();
}
예제 #10
0
function remote_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $deleted, $error;
    softheader($l['<title>']);
    error_handle($error, '100%');
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function doConfirm(){
	var answer = confirm ("' . $l['del_conf'] . '")
	if (answer)
	{
		return true;
	}	
	return false;		
}
</script>

<center class="sai_tit"><img src="' . $theme['images'] . 'domains.gif" />&nbsp; ' . $l['header'] . '</center>';
    // Was something deleted
    if (!empty($deleted)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'notice.gif" /> ' . $l['deleted'] . '</div><br /><br />';
    }
    // Are there no remote websites ?
    if (empty($user['remote'])) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'notice.gif" /> ' . $l['no_remote'] . '</div><br /><br />';
    } else {
        echo '<table border="0" cellpadding="8" cellspacing="1" width="95%" class="sai_summaryBlock">
<tr>
<td align="center" class="sai_summaryTitle" width="80">' . $l['site_type'] . '</td>
<td align="center" class="sai_summaryTitle">' . $l['site_domain'] . '</td>
<td align="center" class="sai_summaryTitle" width="140">' . $l['site_username'] . '</td>
<td align="center" class="sai_summaryTitle" width="100">' . $l['site_options'] . '</td>
</tr>';
        foreach ($user['remote'] as $k => $v) {
            echo '<tr>
	<td align="center"><img src="' . $theme['images'] . $v['panel'] . '.gif" width="32" /></td>
	<td><a target="_blank" href="http://' . $v['domain_name'] . '"> ' . $v['domain_name'] . '</a></td>
	<td align="center">' . $v['username'] . '</td>
	<td align="center">
		<a href="' . $globals['ind'] . 'act=editremote&remid=' . $k . '" title="' . $l['edit'] . '"><img src="' . $theme['images'] . 'edit.gif" /></a>
		<a href="' . $globals['ind'] . 'act=remote&delete=' . $k . '" title="' . $l['remove'] . '" onclick="return doConfirm();"><img src="' . $theme['images'] . 'remove.gif" /></a>
	</td>';
        }
        echo '</table>
<br />
<br />
<br />
<center><a href="' . $globals['ind'] . 'act=addremote" class="sai_abut">' . $l['add_new'] . '</a></center>';
    }
    softfooter();
}
예제 #11
0
function updates_theme()
{
    global $theme, $globals, $user, $l, $error, $updated, $info, $report;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">' . $l['update_softaculous'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    if (!empty($updated)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['updated_successfully'] . '</div><br />';
    }
    if (!empty($report)) {
        echo '<table width="100%" cellpadding="1" cellspacing="0" border="0" class="sai_divroundshad" style="padding:10px;">
	<tr>
		<td colspan="2" class="sai_head">' . $l['update_logs'] . '</td>
	</tr>
	<tr>
		<td valign="top">' . implode('<br />', $report['log']) . '</td>
		<td width="20%"><img src="' . $theme['images'] . 'admin/' . (empty($report['status']) ? 'softerror.gif' : 'softok.gif') . '" /></td>
	</tr>
	</table>
	<br />';
    }
    $curr_version = asperapp($globals['version'], @$globals['webuzo_version'], @$globals['ampps_version']);
    $latest_version = empty($info['version']) ? $l['not_connect_soft'] : $info['version'];
    echo '<form accept-charset="' . $globals['charset'] . '" name="updatesoftaculous" method="post" action="">
<table width="97%" cellpadding="5" cellspacing="0" border="0" style="margin:0px auto;" >
<tr>
<td>
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="sai_divroundshad" style="padding:10px;">
<tr>
	<td class="sai_head" width="50%" align="right">' . $l['cur_ver'] . '</td>
	<td>' . $curr_version . '</td>
</tr>
<tr>
	<td class="sai_head" align="right">' . $l['latest_ver'] . '&nbsp;&nbsp;</td>
	<td>' . ($curr_version != $latest_version ? '<font color="#FF0033">' : '<font>') . '' . $latest_version . '</font></td>
</tr>
</table>
</td>
</tr>
<tr>
	<td colspan="2"><font class="bboxtxt">' . $info['message'] . '</font></td>
</tr>
</table>

<p align="center"><input type="submit" name="update" value="' . $l['updatesoftaculous'] . '" ' . (empty($info['link']) ? 'disabled="disabled"' : '') . ' class="sai_graybluebut" /></p>
</form>';
    softfooter();
}
예제 #12
0
function ratings_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $scripts;
    global $soft, $software;
    softheader($l['<title>']);
    error_handle($error, '100%');
    echo '<link href="' . $globals['mirror_images'] . 'sprites/80.css" rel="stylesheet" type="text/css" />
	<div class="row sai_main_head" style="width:100%; padding-left:30px;" align="center">
		<div class="col-sm-5 col-xs-4" style="padding:0 10px 0 0; text-align:right;">
			<i class="fa sai-fullstar fa-1x" style="color:#00A0D2;"></i>
		</div>
		<div class="col-sm-7 col-xs-8" style="padding-left:0; text-align:left;">' . $l['script_ratings'] . '</div>
	</div><br />
	
	<div class="sai_main_head" style="width:95%;" align="center">
		<center><p class="sai_head">' . $l['click_logo'] . '</p><hr></center>
	</div>';
    foreach ($catwise as $cat => $softs) {
        if (empty($softs)) {
            continue;
        }
        $catimg = !empty($GLOBALS['catimgs']['php_' . $cat]) ? $GLOBALS['catimgs']['php_' . $cat] : $theme['images'] . 'cats/php_' . $cat . '.png';
        echo '<div class="bg">
		<div class="sai_heading_full" valign="middle">
			<img src="' . $catimg . '" alt="" />&nbsp;&nbsp;' . $l['cat_php_' . $cat] . '
		</div><br />';
        foreach ($softs as $sid => $softw) {
            if (empty($softw['ins'])) {
                continue;
            }
            if ($sid >= 10000) {
                continue;
            }
            echo '<div style="text-decoration:none;display:inline-block;text-align:center;">
					<a href="' . $globals['ind'] . 'act=software&soft=' . $sid . '&tab=ratings" target="_blank" title="' . $softw['desc'] . '"  width="80" alt="" class="someclass" style="text-decoration:none;margin-top:5px;">
						<div class="sai_blog_script">
							<div class="sai_demo_script_logo">
								<div class="sp80_' . $softw['softname'] . '" style="margin:15px;"></div>
							</div>
							<div class="sai_script_name">' . $softw['name'] . '</div>
						</div>
					</a><br />
				</div>';
        }
        echo '
		</div><br />';
    }
    softfooter();
}
예제 #13
0
function emailtemp_theme()
{
    global $theme, $globals, $kernel, $user, $l, $error, $emailtemps, $done, $notice;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center"><img src="' . $theme['images'] . 'admin/emailtemp.gif" />&nbsp;' . $l['emailtemp'] . '
		<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />
	</div><br /><br />';
    error_handle($error);
    if (!empty($notice)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . $l['action_not_applicable'] . '</div><br />';
    } else {
        echo '<table border="0" cellpadding="8" cellspacing="1" width="95%" class="sai_altrowstable" style="margin:0px auto;">
<tr>
	<th align="center" class="sai_head">' . $l['tempname'] . '</th>
	<th align="center" class="sai_head">' . $l['options'] . '</th>
</tr>';
        $i = 1;
        foreach ($emailtemps as $k => $v) {
            echo '<tr class="' . ($i % 2 == 0 ? "sai_evenrowcolor" : "sai_oddrowcolor") . '">		
	<td>' . $l['temp_' . $k] . '</td>
	<td><a href="' . $globals['ind'] . 'act=editemailtemp&temp=' . $k . '"><img src="' . $theme['images'] . 'admin/editemail.gif" /></a></td>
</tr>';
            $i++;
        }
        echo '</table>';
    }
    echo '
	
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

$(document).ready(function(){
	
	$(".sai_altrowstable tr").mouseover(function(){
		var old_class = $(this).attr("class");
		//alert(old_class);
		$(this).attr("class", "sai_tr_bgcolor");
		
		$(this).mouseout(function(){
			$(this).attr("class", old_class);
		});
	});
	
});

// ]]></script>';
    softfooter();
}
예제 #14
0
function mysqlsettings_theme()
{
    global $theme, $globals, $softpanel, $user, $l, $error, $updates_available, $done;
    softheader($l['<title>']);
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'mysqlsettings.gif" />&nbsp; ' . $l['mysql_settings'] . '</center>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />';
    error_handle($error, '100%');
    if (isset($done) && $done == true) {
        echo '<div class="sai_success">' . $l['pass_changed'] . '</div>';
        echo '<br /><a href="' . $globals['ind'] . 'act=security">' . $l['lbl_security'] . '</a>';
    } else {
        echo '<form action="" method="post">
	<table border="0" cellpadding="8" cellspacing="2" width="95%">
	<tr>
		<td align="right" class="sai_head">MySQL Username:</td>
		<td>&nbsp; root</td>
	</tr>
	<tr>
		<td align="right"><span class="sai_head">Old Password:</span><br /><span>' . $l['default'] . '</span></td>
		<td><input type="password" name="oldpass" /></td>
	</tr>
	<tr>
		<td align="right" class="sai_head">New Password:</td>
		<td><input type="password" name="newpass" /></td>
	</tr>
	<tr>
		<td align="right" class="sai_head">Retype Password:</td>
		<td><input type="password" name="retypepass" /></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="submit" name="changepass" value="Change Password"/></td>
	</tr>';
        if ($done == 1) {
            echo '<tr>
		<td colspan="2" align="center">' . $l['pass_changed'] . '</td>
		</tr>';
        }
        echo '</table>
	
	<br /><br /><br />
	<center>
	<a href="' . $globals['ind'] . 'act=security"><font size="2">Back to Security Center</font></a>
	</center>';
    }
    softfooter();
}
예제 #15
0
function domains_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error;
    global $removed;
    softheader($l['<title>']);
    echo '<div class="bg"><br />';
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

function conf_del(){
	return confirm("' . $l['conf_del'] . '");
};
// ]]></script>

<div class="sai_main_head" style="width:100%;" align="center">' . $l['list_domain'] . '</div><hr>';
    error_handle($error, '100%');
    if (!empty($removed)) {
        echo '<div class="alert alert-warning">
		<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
		<center><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . $l['domain_removed'] . '</center><br />
	</div>';
    }
    echo '<div class="bg2">
	<table class="table table-hover">
		<thead  style="background:#EFEFEF;" class="sai_head2">
			<tr>
				<th width="75%">' . $l['domain_name'] . '</th>
				<th>' . $l['domain_edit'] . '</th>
				<th>' . $l['domain_del'] . '</th>
			</tr>
		</thead>';
    foreach ($softpanel->domains as $k => $v) {
        echo '<tr>
				<td>' . $k . '</td>
				<td><a href="' . $globals['ind'] . 'act=editdomain&did=' . $v['did'] . '"><img title="Edit" src="' . $theme['images'] . 'editdetail.gif"  /></a></td>
				<td><a href="' . $globals['ind'] . 'act=domains&delid=' . $v['did'] . '" onclick="return conf_del();"><img title="Delete"  src="' . $theme['images'] . 'remove.gif" /></a></td>
			</tr>';
    }
    echo '</table>
</div>
<br /><br />
<p align="center"><input class="flat-butt" type="button" onclick="window.location=\'' . $globals['ind'] . 'act=adddomain\'" value="' . $l['add_a_domain'] . '" /></p><br />
</div>';
    softfooter();
}
예제 #16
0
function email($to, $message, $subject = "Email from Your Website", $from = false)
{
    global $_josh;
    error_debug("<b>email </b> sending message to <i>" . $to . "</i> with subject " . $subject);
    $headers = "MIME-Version: 1.0" . $_josh["newline"];
    $headers .= "Content-type: text/html; charset=iso-8859-1" . $_josh["newline"];
    if (!$from) {
        if (isset($_josh["email_default"])) {
            $from = $_josh["email_default"];
        } else {
            error_handle("email from address missing", "please call this function with a from address, or specify one in the config file.", true);
        }
    }
    $to = format_email($to);
    $headers .= "From: " . format_email($from) . $_josh["newline"];
    if (!mail($to, $subject, $message, $headers)) {
        error_handle("email not sent", "sorry, an unexpected error occurred while sending your mail.", true);
    }
    return true;
}
예제 #17
0
function root_pass_theme()
{
    global $theme, $globals, $kernel, $user, $l, $error, $done, $onboot, $user_name, $iapps;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['change_note'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />';
    error_handle($error);
    if (!empty($done)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['change_final'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" action="" method="post" name="changepass" id="editform">
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad"  style="padding-left:15px; padding-top:15px; ">
	<tr>
		<td width="40%">
			<span class="sai_head">' . $l['new_pass'] . '</span>
		</td>
		<td valign="top">
			<input type="password" name="newpass" id="newpass" size="30" value="" />
		</td>
	</tr>
	
	<tr>
		<td>
			<span class="sai_head">' . $l['retype_pass'] . '</span>
		</td>
		<td valign="top">
			<input type="password" name="conf" id="conf" size="30" value="" />
		</td>
	</tr>
	<tr>
		<td colspan="2">		
			<p align="center">
				<input type="hidden" name="changepass" value="1" />
				<input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="changepass" class="sai_graybluebut" id="submitpass"/> &nbsp;<img id="createpass" src="' . $theme['images'] . 'progress.gif" style="display:none">
			</p>
		</td>
	</tr>	
</table>
</form><br /><br /><br />';
    softfooter();
}
예제 #18
0
function licensekey_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $licsubmit;
    softheader($l['<title>']);
    echo '<center class="sai_heading">&nbsp;&nbsp;&nbsp;' . $l['license_key'] . '</center>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br />';
    error_handle($error);
    if (!empty($licsubmit)) {
        echo '<br /><div class="sai_notice"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['license_success'] . '</div><br />';
    } else {
        echo '<form accept-charset="' . $globals['charset'] . '" name="licensekey" method="post" action="">
	<br /><br />
	<table width="100%" cellpadding="5" cellspacing="1" class="sai_reviewform" border="0" style="padding-left:15px; padding-top:15px margin:0px auto;" align="center">
	<tr>		
		<td valign="top">
			<span class="sai_head">' . $l['enter_license_key'] . '</span><br />
			<span class="sai_exp2">' . $l['exp_license_key'] . '</span>
		</td>
		<td>
			<input type="text" name="enter_license" id="enter_license" size="30" value="' . POSTval('enter_license') . '" autocomplete=off /> &nbsp; &nbsp;
		</td>
	</tr>
	<tr>		
		<td valign="top">
			<span class="sai_head">' . $l['enter_email'] . '</span><br />
			<span class="sai_exp2">' . $l['exp_enter_email'] . '</span>
		</td>
		<td>
			<input type="text" name="enter_email" id="enter_email" size="30" value="' . POSTval('enter_email') . '" autocomplete=on /> &nbsp; &nbsp;
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<p align="center"><input type="submit" name="submit_license" value="' . $l['submit_license'] . '" class="sai_graybluebut" /></p>
		</td>
	</tr>
	</table>
	</form><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />';
    }
    softfooter();
}
예제 #19
0
function getString($key, $language = false)
{
    global $strings;
    //default is user language, but can be overridden, such as in emails
    if (!$language) {
        $language = $_SESSION['language'];
    }
    //success
    if (isset($strings[$key][$language])) {
        return $strings[$key][$language];
    }
    //is set for english, suggest translation
    if (isset($strings[$key]['en'])) {
        error_handle('string not set', 'The string ' . $key . ' is not set for language ' . $language . '.  Suggested translation:<p style="font-style:italic;">' . language_translate($strings[$key]['en'], 'en', $language)) . '</p>';
    }
    error_handle('string not defined', 'The string ' . $key . ' is not defined yet in English.');
}
예제 #20
0
파일: js_theme.php 프로젝트: Hezkibel/soft
function js_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $scripts, $allcatwise;
    global $software, $soft, $info, $settings, $init_tab, $overwrite_option, $dbs, $installed, $__settings, $setupcontinue, $installations, $notes, $show_installtype, $protocols, $nopackage, $ajaxhttpsexists, $ajaxhttps, $new_insid;
    if (optGET('ajaxdownload') && !empty($nopackage)) {
        // Try to download the package
        if (method_exists($softpanel, 'updatesoftwares')) {
            $softpanel->updatesoftwares($soft, 0, 0, 1);
            echo 1;
            return true;
        }
        // False call
        echo 0;
        return false;
    }
    // Give the staus
    if (optGET('ajaxstatus')) {
        $_status = soft_progress(optGET('ajaxstatus'));
        $tmp_status = unserialize($_status[1]);
        $_status[1] = $tmp_status['current_status'];
        if (!empty($_status)) {
            echo implode('|', $_status);
            return true;
        }
        // False call
        echo 0;
        return false;
    }
    if (!empty($ajaxhttps)) {
        echo $ajaxhttpsexists;
        return true;
    }
    // Auto Installation responses
    if (isset($_GET['autoinstall'])) {
        // Installed successfully
        if (!empty($installed)) {
            echo 'installed';
            return true;
        }
        // Are there errors
        if (!empty($error)) {
            echo serialize($error);
            return false;
        }
    }
    //First add the installation info
    if (empty($installed)) {
        $info['install'] = '<div id="fadeout_div"><form accept-charset="' . $globals['charset'] . '" name="installsoftware" method="post" action="" onsubmit="return checkform();" id="installsoftware" class="form-horizontal">';
        if (empty($globals['lictype']) && !empty($scripts[$soft]['force_scripts'])) {
            $info['install'] .= '
	<div class="alert alert-warning">
		<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
		<center>' . lang_vars($l['not_in_free'], array($software['name'])) . (!webuzo() ? '&nbsp;&nbsp;' . $l['notify_admin'] : '') . '</center>
	</div>';
        }
        $info['install'] .= error_handle($error, "100%", 0, 1) . '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

function checkform(dosubmit){
	try{
		if(!formcheck()){
			return false;
		}
	}catch(e){
		//Do nothing
	}
	$_("softsubmitbut").disabled = true;
	
	if(!get_package()){
		return false;
	}
	
	if(useprog){
		
		// Send a request to check the status
		progressbar.start();
		
		// Return false so that the form is not submitted
		return false;
	
	// This is OLD School !
	}else{		
		if(dosubmit == 1){			
			$_("installsoftware").submit();	
		}
		show_msg("' . $l['installing'] . '");
	}
	
	return true;
	
};

function toggle_advoptions(){
	if ($("#advoptions").is(":hidden")){
		$("#advoptions").slideDown("slow");
		$("#plus").attr("src", "' . $theme['images'] . 'minus_new.gif");
	}
	else{
		$("#advoptions").slideUp("slow");
		$("#plus").attr("src", "' . $theme['images'] . 'plus_new.gif");
	}
}

function plus_onmouseover(){
	$("#plus").attr("src", "' . $theme['images'] . 'plus_hover.gif");
}

function plus_onmouseout(){
	$("#plus").attr("src", "' . $theme['images'] . 'plus.gif");
}

var progressbar = {
	timer: 0,
	total_width: 0,	
	status_key: "",
	synctimer: 0,
	fadeout_div: "#fadeout_div",
	win_div: "#install_win",
	progress_div: "#progress_bar",
	formid: "#installsoftware",
	frequency: 8000,
	
	current: function(){
		try{
			var tmp_cur = Math.round(parseInt($_("progress_color").width)/parseInt($_("table_progress").width)*100);
			if(tmp_cur > 100){
				tmp_cur = 99;
			}
			return tmp_cur;
		}catch(e){
			return -1;	
		}
	},
	
	reset: function(){ try{
		clearTimeout(this.timer);
		$_("progress_color").width = 1;
	}catch(e){ }},
	
	move: function(dest, speed, todo){ try{
		var cur = this.current();
		if(cur < 0){
			clearTimeout(this.timer);
			return false;
		}
		var cent = cur + 1;
		var new_width = cent/100*this.total_width;
		if(new_width < 1){
			new_width = 1;
		}
		//alert(new_width+" "+dest+" "+cent);
		
		$_("progress_color").width = new_width;
		$_("progress_percent").innerHTML = "("+cent+" %)";
		
		if(cent < dest){
			this.timer = setTimeout("progressbar.move("+dest+", "+speed+")", speed);
		}else{
			eval(todo);	
		}
	}catch(e){ }},
	
	text: function(txt){ try{
		$_("progress_txt").innerHTML = txt;
	}catch(e){ }},
	
	sync: function(){
		if(progressbar.status_key.length < 2){
			return false;
		}
		$.ajax({
			url: window.location+"&ajaxstatus="+progressbar.status_key+"&random="+Math.random(),
			type: "GET",
			success: function(data){
				if(data == 0) return false;
				var tmp = data.split("|");
				var cur = progressbar.current();
				tmp[2] = (3000/(tmp[0]-cur));
				//alert(tmp);
				if(tmp[0] > cur){
					if(parseInt(tmp[2]) == 0){
						tmp[2] = 800;
					}
					progressbar.move(tmp[0], tmp[2]);
				}
				progressbar.text(tmp[1]);
				progressbar.synctimer = setTimeout("progressbar.sync()", progressbar.frequency);
			}
		});
	},
	
	sync_abort: function(){
		clearTimeout(this.synctimer);
	},
	
	start: function(){ try{
		this.post();
		this.reset();
		this.total_width = parseInt($_("table_progress").width);
		this.move(95, 800);
		this.status_key = $("#soft_status_key").attr("value");
		this.sync();
	}catch(e){ }},
	
	post: function(){
		
		// Scroll to the Top and show the progress bar
		goto_top();
		$(progressbar.fadeout_div).fadeOut(500, 
			function(){
				$(progressbar.progress_div).fadeOut(1);
				$(progressbar.progress_div).fadeIn(500);
			}
		);
		
		$.ajax({
			url: window.location+"&jsnohf=1",
			type: "POST",
			data: $(progressbar.formid).serialize(),
			complete: function( jqXHR, status, responseText ) {
				
				progressbar.sync_abort();
				
				// Store the response as specified by the jqXHR object
				responseText = jqXHR.responseText;
				
				try{
					//alert(responseText);
					if(responseText.match(/\\<\\!\\-\\-PROC_DONE\\-\\-\\>/gi)){
						progressbar.text("' . addslashes($l['finishing_process']) . '");
						progressbar.move(99, 10, "$(progressbar.progress_div).fadeOut(1)");
					}else{
						progressbar.reset();
					}
				}catch(e){ }
				
				if ( jqXHR.isResolved() ) {
				
					// #4825: Get the actual response in case
					// a dataFilter is present in ajaxSettings
					jqXHR.done(function( r ) {
						responseText = r;
					});
			
					// Create a dummy div to hold the results
					// inject the contents of the document in, removing the scripts
					// to avoid any "Permission Denied" errors in IE
					var newhtml = jQuery("<div>").append(responseText).find(progressbar.win_div).html();
					
					$(progressbar.win_div).animate({opacity: 0}, 1000, "", function(){
						$(progressbar.win_div).html(newhtml);
						show_backup();
						new_theme_funcs_init();
					}).delay(50).animate({opacity: 1}, 500);
					
					//alert(newhtml);
					
				}else{
					alert("Oops ... the connection was lost");
				}
			}
		});
	}
};

function show_msg(msg){	
	$_("show_txt").innerHTML = "<br /><br /> &nbsp; "+msg+" &nbsp; <img src=\\"' . $theme['images'] . 'progress.gif\\" />";
	$_("show_txt").style.display = "";
}

// Is the package there ?
var nopackage = ' . (empty($nopackage) ? 0 : 1) . ';

// Use the Progress Bar ?
var useprog = 1;
try{
	if(BrowserDetect.browser.toLowerCase() == "safari" && BrowserDetect.version.toString().substr(0, 1) == "3"){
		useprog = 0;
	}
}catch(e){ }

function get_package(){	
	if(nopackage){
		
		show_msg("' . $l['downloading'] . '");
		
		try{		
			AJAX("' . $globals['index'] . 'act=js&soft=' . $soft . '&ajaxdownload=1&random="+Math.random(), "get_package_handle(re)");
		}catch(e){ }
		
		return false;
	}else{
		$_("show_txt").style.display = "none";
		return true;
	}
};

function get_package_handle(resp){
	nopackage = 0;
	show_msg("' . $l['installing'] . '");
	checkform(1);
};

softemail = new Object();
function softmail(){
	try{
		var sofdom = "softdomain";
		for(x in softemail){
			if(softemail[x] == true) continue;
			var temp = $_(x).value.split("@");
			if($_(sofdom).value.indexOf("/") > 0){
				var dom_value = $_(sofdom).value.substring(0, $_(sofdom).value.indexOf("/"));
			}else{
				var dom_value = $_(sofdom).value;
			}
			$_(x).value = temp[0] + "@" + dom_value;
		}
	}catch(e){
		return false;
	}
};

function checkhttps(proto_id, softdomain_id, alrt){
	try{
		var id = $_(proto_id);
		var proto = id.options[id.selectedIndex].text;
	
		$("#checkhttps_wait").css("display","inline-block");
		if(proto.indexOf("https") !== -1){
		
			 $.ajax({
				type: "POST",
				url: "' . $globals['index'] . 'act=js&soft=' . $soft . '&checkhttps="+encodeURIComponent(proto+$_(softdomain_id).value),
				timeout:10000,
				// Checking for error
				success: function(data){
					$("#checkhttps_wait").css("display","none");
					is_https(data);
				},
				error: function(jqXHR, status, e) {
					$("#checkhttps_wait").css("display","none");
					is_https(e);
					return false;
				}
			}); 
			
			//AJAX("' . $globals['index'] . 'act=software&soft=' . $soft . '&checkhttps="+id.options[id.selectedIndex].text+$_(softdomain_id).value, "is_https(re)");
		}else{
			$("#checkhttps_wait").css("display","none");
			is_https("true");
		}
		if(alrt == true){
			alert(proto+$_(softdomain_id).value);
		}
	}catch(e){
		//
	}
	return true;
};

function is_https(re){
	try{
		httpserror = "";
		
		//Check if it exists
		if(re !== "true"){
			httpserror = "' . $l['no_https'] . '";
		}
		if(httpserror != ""){
			$_("httpserror").style.display = "block";
			$_("httpserror").innerHTML = httpserror;
			return false;
		}else{
			$_("httpserror").style.display = "none";
		}
		
	}catch(e){
		//
	}
	return true;
};
  
// show/hide backup options
function show_backup(){

	var auto_backup = $("#auto_backup").val();
	
	if(auto_backup == 0){
		$("#auto_backup_rotation").attr("disabled", true);
	}else{
		$("#auto_backup_rotation").attr("disabled", false);
	}
	
	return true;
};

' . (!empty($_POST) ? '' : 'addonload(\'softmail();show_backup();\');');
        $info['install'] .= '// ]]></script>';
        $info['install'] .= '

<div class="bg">
	<div class="sai_sub_head">' . $l['setup'] . '</div><hr>';
        if (empty($globals['hide_protocol'])) {
            $info['install'] .= '
		<div class="row">
			<div class="col-sm-5">
				<label for="softproto" class="sai_head">' . $l['choose_protocol'] . '</label><br />
				<span class="sai_exp2">' . $l['choose_protocol_exp'] . '</span>
			</div>
			<div class="col-sm-7">
				<select name="softproto" class="form-control" id="softproto" onblur="checkhttps(\'softproto\', \'softdomain\', false)">';
            foreach ($protocols as $k => $v) {
                $info['install'] .= '<option value="' . $k . '" ' . (optPOST('softproto') == $k || $globals['default_protocol'] == $k && empty($_POST['softproto']) ? 'selected="selected"' : '') . '>' . $v . '</option>';
            }
            $info['install'] .= '</select><div style="display:none;" id="checkhttps_wait">&nbsp;&nbsp;<img src="' . $theme['images'] . 'progress.gif" alt="please wait.."></div><br />
				<div class="row">
					<span id="httpserror" style="display:none; padding:10px;" class="alert alert-danger"></span>
				</div>
			</div>
		</div>';
        }
        $info['install'] .= '
	<div class="row">
		<div class="col-sm-5">';
        $info['install'] .= '
			<label for="softdomain" class="sai_head">' . $l['choose_domain'] . '</label><br />
			<span class="sai_exp2">' . $l['choose_domain_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<select name="softdomain" class="form-control" id="softdomain" onchange="softmail();" onblur="checkhttps(\'softproto\', \'softdomain\', false)">';
        if (!empty($globals['blank_domain'])) {
            $info['install'] .= '<option value="" ' . (empty($_POST['softdomain']) ? 'selected="selected"' : '') . '>(' . $l['select_domain'] . ')</option>';
        }
        foreach ($softpanel->domainroots as $domain => $dompath) {
            $info['install'] .= '<option value="' . $domain . '" ' . (!empty($_POST['softdomain']) && $_POST['softdomain'] == $domain ? 'selected="selected"' : '') . '>' . $domain . '</option>';
        }
        $info['install'] .= '
			</select>
		</div>
	</div><br />
	
	<div class="row">
		<div class="col-sm-5">
			<label for="softdirectory" class="sai_head">' . $l['in_directory'] . '</label><br />
			<span class="sai_exp2">' . $l['in_directory_exp'] . '</span>
		</div>
		<div class="col-sm-7">	
			<input type="text" name="softdirectory" class="form-control" id="softdirectory" size="30" value="' . POSTval('softdirectory', $software['softname']) . '" />
		</div>
	</div><br />';
        if (!empty($show_installtype)) {
            $info['install'] .= '
		<div class="row">
			<div class="col-sm-5">
				<label for="jsinstalltype" class="sai_head">' . $l['ins_type'] . '</label><br />
				<span class="sai_exp2">' . $l['ins_type_exp'] . '</span>
			</div>
			<div class="col-sm-7">
				<select name="jsinstalltype" id="jsinstalltype" class="form-control">
					<option value="0" ' . POSTselect('jsinstalltype', 0) . '>' . $l['ori_pack'] . '</option>
					<option value="1" ' . POSTselect('jsinstalltype', 1, 1) . '>' . $l['just_lib'] . '</option>
				</select>
			</div>
		</div><br />';
        }
        if (!empty($overwrite_option)) {
            $info['install'] .= '
		<div class="row">
			<div class="col-sm-5">
				<span class="sai_head">' . $l['overwrite'] . '</span>
			</div>
			<div class="col-sm-7">
				<input type="checkbox" name="overwrite_existing" id="overwrite_existing" />
			</div>
		</div>';
        }
        $info['install'] .= '
</div><br /><!--end of bg class-->';
        if (!empty($settings)) {
            if (file_exists($software['path'] . '/install.js')) {
                $info['install'] .= '<script language="javascript" type="text/javascript"><!--// --><![CDATA[';
                $info['install'] .= @parselanguages(str_replace('$(', '$_(', implode('', file($software['path'] . '/install.js'))));
                $info['install'] .= '// ]]></script>';
            }
            foreach ($settings as $group => $sets) {
                if ($group == 'hidden' || empty($sets)) {
                    continue;
                }
                $info['install'] .= '
		<div class="bg">
			<div class="sai_sub_head">' . $group . '</div><hr>';
                foreach ($sets as $sk => $sv) {
                    //Adding class form-control to input
                    if (preg_match('/type="text"/is', $sv['tag'])) {
                        $sv['tag'] = preg_replace('/>/is', ' class="form-control">', $sv['tag']);
                    }
                    if (preg_match('/<select/is', $sv['tag'])) {
                        $sv['tag'] = preg_replace('/<select/is', '<select class="form-control"', $sv['tag']);
                    }
                    $info['install'] .= '
			<div class="row">
				<div class="col-sm-5">
					<label for=' . $sk . ' class="sai_head" id="sai_head">' . $sv['head'] . '</label>
						' . (empty($sv['exp']) ? '' : '<span class="sai_exp">' . $sv['exp'] . '</span>') . '	
				</div>
					<div class="col-sm-7 ">' . $sv['tag'] . '</div>
						' . (preg_match('/softmail/is', $sv['tag']) ? '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
						softemail["' . $sk . '"] = false;
						//Add an event handler
						$_("' . $sk . '").onkeydown = function(){
							softemail["' . $sk . '"] = true;
						}
						// ]]></script>
						' : '') . '
						' . (preg_match('/admin_pass|softpass/is', $sv['tag']) ? '
						<div class="col-sm-1">
							<a href="javascript: void(0);"  onclick="$_(\'' . $sk . '\').value=randstr(10, 1, ' . (!empty($globals['pass_strength']) ? $globals['pass_strength'] : 0) . ');return false;" title="' . $l['randpass'] . '"><img src="' . $theme['images'] . 'randpass.gif" /></a>
						</div>
						' : '') . '							
			</div><br />';
                }
                $info['install'] .= '</div><br /><!--end of bg class-->';
            }
            //The Hidden groups
            if (!empty($settings['hidden'])) {
                foreach ($settings['hidden'] as $sk => $sv) {
                    $info['install'] .= $sv['tag'] . '
			' . (preg_match('/softmail/is', $sv['tag']) ? '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
			softemail["' . $sk . '"] = false;
			//Add an event handler
			$_("' . $sk . '").onkeydown = function(){
				softemail["' . $sk . '"] = true;
			}
			// ]]></script>
			' : '');
                }
            }
        }
        //End of if($settings)
        // Advance option
        $info['install'] .= '
	<div class="bg">
		<div class="sai_sub_head" id="advoptions_toggle" onclick="toggle_advoptions(\'advoptions\');" style="cursor:pointer"><img id="advoptions_toggle_plus"  src="' . $theme['images'] . 'plus_new.gif" style="margin-top:-4px;"/>&nbsp;&nbsp;' . $l['adv_option'] . '</div>
			<div id="advoptions" style="display:none;"><hr>
				<div class="row">
					<div class="col-sm-5">
						<label class="sai_head">' . $l['disable_notify_update'] . '</label>
						<span class="sai_exp">' . $l['exp_disable_notify_update'] . '</span>
					</div>
					<div class="col-sm-7">
						<input type="checkbox" name="disable_notify_update" id="disable_notify_update" ' . POSTchecked('disable_notify_update') . ' />
					</div>	
				</div><br />';
        // Auto backups option only if backups is not disabled and panel is not remote
        if (empty($globals['disable_backup_restore']) && empty($globals['disable_auto_backup']) && !aefer() && empty($softpanel->disable_auto_backup)) {
            $info['install'] .= '
					<div class="row">
						<div class="col-sm-5">
							<label for="auto_backup" class="sai_head">' . $l['auto_backup'] . '</label>
							<span class="sai_exp">' . $l['exp_auto_backup'] . '</span>
						</div>
						<div class="col-sm-7">
							<select name="auto_backup" class="form-control" id="auto_backup" onchange="show_backup();">
								<option value="0" ' . POSTselect('auto_backup', '0', 1) . '>' . $l['no_backup'] . '</option>' . (empty($globals['disable_auto_backup_daily']) ? '<option value="daily" ' . POSTselect('auto_backup', 'daily') . '>' . $l['daily'] . '</option>' : '') . (empty($globals['disable_auto_backup_weekly']) ? '<option value="weekly" ' . POSTselect('auto_backup', 'weekly') . '>' . $l['weekly'] . '</option>' : '') . (empty($globals['disable_auto_backup_monthly']) ? '<option value="monthly" ' . POSTselect('auto_backup', 'monthly') . '>' . $l['monthly'] . '</option>' : '') . '
							</select>
						</div>		
					</div><br />
					
					<div class="row">
						<div class="col-sm-5">
							<label class="sai_head">' . $l['auto_backup_rotation'] . '</label>
							<span class="sai_exp">' . $l['exp_auto_backup_rotation'] . '</span>
						</div>
						<div class="col-sm-7"> 
							<select name="auto_backup_rotation" class="form-control" id="auto_backup_rotation">';
            for ($i = 0; $i <= 10; $i++) {
                // Do we have a limit from admin ?
                if (!empty($globals['auto_backup_limit']) && ($i > $globals['auto_backup_limit'] || $i == 0) || !empty($globals['max_backups']) && ($i > $globals['max_backups'] || $i == 0)) {
                    continue;
                }
                $info['install'] .= '<option value="' . $i . '" ' . POSTselect('auto_backup_rotation', $i, $i == 4 ? '1' : '0') . '>' . (empty($i) ? $l['unlimited'] : $i) . '</option>';
            }
            $info['install'] .= '</select>
						</div>	
					</div><br />';
        }
        $info['install'] .= '
			</div>
	</div><br /><!--end of bg-->';
        $info['install'] .= '
<p align="center">
	<input type="hidden" name="softsubmit" id="softsubmit" value="' . $l['softsubmit'] . '" />
	<input type="submit" name="softsubmitbut" id="softsubmitbut" value="' . $l['softsubmit'] . '" class="flat-butt" /><span id="show_txt" style="display:none;"></span>
	<br /><br /><br />
	' . (empty($globals['off_email_link']) && empty($globals['off_install_mail']) ? '<span class="sai_head">' . $l['ins_emailto'] . '</span> : <input type="text" name="emailto" id="emailto" size="20" value="' . POSTval('emailto', '') . '" />' : '') . '
</p>
<input type="hidden" name="soft_status_key" id="soft_status_key" value="' . POSTval('soft_status_key', generateRandStr(32)) . '" />
</form></div>

<div id="progress_bar" style="height:125px; width:100%; display: none;">
	<br />
	<center>
		<font size="4" color="#222222" id="progress_txt" style="width:100%;">' . $l['checking_data'] . '</font>
		<font style="font-size: 18px;font-weight: 400;color: #444444; width:100%;" id="progress_percent">(0 %)</font><br /><br />
	</center>
	<table width="500" cellpadding="0" cellspacing="0" id="table_progress" border="0" align="center" height="28" style="border:1px solid #CCC; -moz-border-radius: 5px;
	-webkit-border-radius: 5px; border-radius: 5px; width:50%;">
		<tr>
			<td id="progress_color" width="1" style="background-image: url(' . $theme['images'] . 'bar.gif); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;"></td>
			<td id="progress_nocolor">&nbsp;</td>
		</tr>
	</table>
	<br /><center>' . $l['wait_note'] . '</center>
</div>
<br /><br /><br />';
    } elseif (!empty($installed)) {
        $info['install'] = '
	<div class="bg2">
		<h4>' . $l['congrats'] . '</h4><br />
		' . $software['name'] . ' ' . $l['succesful'] . ' : <br />
		<a href="' . $__settings['softurl'] . '" target="_blank">' . $__settings['softurl'] . '</a>
		<br /><br />
		' . $l['enjoy'] . '<br /><br />
		' . (!empty($notes) ? $l['install_notes'] . ' : <br />
		<div class="sai_notes">' . softparse($notes, $soft) . '</div><br /><br />' : '') . '
		' . $l['please_note'] . '<br /><br />
		' . (!empty($globals['ampps_enabled']) && empty($globals['no_ampps']) && $globals['softpanel'] != 'ampps' ? lang_vars($l['ampps_download'], array($software['name'])) . '<br /><br />' : '') . '
		' . $l['regards'] . ',<br />
		' . $l['softinstaller'] . '<br /><br />
		<center><b><a href="' . script_link($soft) . '&highlight=' . $new_insid . '&postact=install">' . $l['return'] . '</a></b></center><br /><br />';
        if (empty($globals['install_tweet_off']) || empty($globals['lictype'])) {
            $info['install'] .= '<form method="get" action="http://twitter.com/intent/tweet" id="tweet" onsubmit="return dotweet(this);">
				<div class="panel panel-info" style="width:55%; margin:0 auto;">
					<div class="panel-heading" style="padding:5px; font-size:15px;">
						<font><b>' . $l['install_tweet_sub'] . ' :</b></font>
					</div>
					<div class="panel-body">
						<div class="row">
							<div class="col-sm-10">
								<textarea name="text" cols="80" row="3" style="resize:none; width:100%;">' . loadtweetdata('install_tweet', $l['install_tweet']) . '</textarea>
							</div>
							<div class="col-sm-2">
								<input type="submit" value="Tweet!" class="btn btn-info" onsubmit="return false;" id="twitter-btn" style="margin-top:20px;"/>
							</div>
						</div>
					</div>
				</div>
				</form>';
        }
        $info['install'] .= '
	</div><!--end of bg class--><!--PROC_DONE-->
	<br /><br />';
    }
    softheader($l['<title>'] . $software['name']);
    $loadedinfo = array('install', 'overview', 'features', 'reviews', 'ratings');
    $url = $theme['images'];
    $ratings = array();
    $deduct = 1;
    $r = $scripts[$k]['ratings'];
    for ($i_r = 1; $i_r <= 5; $i_r++) {
        if ($r >= 1) {
            $ratings[$i_r] = '<img src="' . $url . 'star.png' . '" alt="(' . number_format($scripts[$k]['ratings'], 2) . ' out of 5)" />';
        } elseif ($r > 0) {
            $ratings[$i_r] = '<img src="' . $url . 'halfstar.png' . '" alt="(' . number_format($scripts[$k]['ratings'], 2) . ' out of 5)" />';
        } else {
            $ratings[$i_r] = '<img src="' . $url . 'nostar.png' . '" alt="(' . number_format($scripts[$k]['ratings'], 2) . ' out of 5)" />';
        }
        $r = $r - $deduct;
    }
    ?>
<script language="JavaScript" src="<?php 
    echo $theme['url'] . '/js/tabber.js';
    ?>
" type="text/javascript">
</script>
<script language="JavaScript" id="ratings_js_file" type="text/javascript"></script>
<script language="JavaScript" id="review_js_file"  type="text/javascript"></script>
<script language="JavaScript" id="reviews_js_file"  type="text/javascript"></script>
<script type="text/javascript">
tabs = new tabber;
tabs.tabs = new Array('<?php 
    echo implode('\', \'', $loadedinfo);
    ?>
');
tabs.tabwindows = new Array('<?php 
    echo implode('_win\', \'', $loadedinfo);
    ?>
_win');
tabs.inittab = <?php 
    echo '\'' . $init_tab . '\';';
    ?>
addonload('tabs.init();loadraterev();');

function loadraterev(){
<?php 
    if (empty($globals['off_rating_link']) && $soft < 10000) {
        echo '$_(\'ratings_js_file\').src = "https://www.softaculous.com/ratings.js?soft=' . $soft . '&user='******'name'] . '&ip=' . $_SERVER['SERVER_ADDR'] . '";';
    }
    if (empty($globals['off_review_link']) && $soft < 10000) {
        echo '$_(\'review_js_file\').src =  "https://www.softaculous.com/review.js?soft=' . $soft . '&user='******'name'] . '&ip=' . $_SERVER['SERVER_ADDR'] . '";';
        echo '$_(\'reviews_js_file\').src =  "https://www.softaculous.com/reviews.js?soft=' . $soft . '&user='******'name'] . '&ip=' . $_SERVER['SERVER_ADDR'] . '";';
    }
    ?>
};
</script>
<?php 
    // For custom themes
    if ($soft > 10000) {
        if (file_exists($globals['euthemes'] . '/' . $globals['theme_folder'] . '/images/topscripts/48/' . $iscripts[$soft]['softname'] . '.png')) {
            $custom_48 = $theme['images'] . 'topscripts/48/' . $iscripts[$soft]['softname'] . '.png';
        } else {
            $custom_48 = $theme['images'] . '/custom.png';
        }
    }
    echo '
<div class="bg">
	<div id="currentrating" style="display:none"></div>
	<div class="row" style="margin-left:10px;">
		' . (!empty($custom_48) ? '<img src="' . $custom_48 . '" alt="">' : '<img src="' . $globals['mirror_images'] . 'top15/48/' . $scripts[$soft]['softname'] . '.png" >') . '
		<span class="sai_process_heading" style="margin-left:20px;">' . $software['name'] . '</span>
	</div><br />
	<div class="row">
		<div class="col-sm-2">
			' . ($soft > 10000 ? '' : '<div class="someclass" title="' . $scripts[$soft]['ratings'] . '">' . implode('', $ratings) . '</div>') . '
		</div>
		<div class="col-sm-5 ver_style">
			' . $l['software_ver'] . ' : <font size="2"><b>' . (!empty($tmp_ver) ? $tmp_ver : $software['ver']) . '</b></font> &nbsp; &nbsp; <a href="javascript" onclick="notifyversion(); return false;" ><img src="' . $theme['images'] . 'notify.gif" name="notifyver" title="' . $l['notify_ver'] . '" alt="' . $l['notify_ver'] . '"></a>
		</div>
		<div class="col-sm-3 release_style">
			' . (!empty($info['release_date']) ? $l['release_date'] . ' : <font size="1"><b>' . $info['release_date'] . '</b></font>' : '') . '
		</div>
		<div class="col-sm-2 change_style" style="margin-top:0px;">
			' . (!empty($info['changelog']) ? '&nbsp;&nbsp;<a href="javascript" data-toggle="modal" data-target="#changelog_div" class="sai_changelogbut" style="text-decoration:none;">' . $l['changelog'] . '</a>' : '') . '
		</div>
	</div><br />
	
	<script type=text/javascript>';
    if (!empty($softpanel->pheader)) {
        if (substr_count($_SERVER['REQUEST_URI'], 'x3') > 0) {
            echo '
			$(document).ready(function(){
				$(".ver_style").css("margin-left","0px");
				$(".release_style").css("margin-left","0px");
				$(".change_style").css({"margin-left":"0px", "margin-top":"-15px"});
			});';
        } else {
            echo '
			$(document).ready(function(){
				$(".ver_style").css("margin-left","0px");
				$(".release_style").css("margin-left","0px");
				$(".change_style").css({"margin-left":"0px", "margin-top":"-10px"});
			});';
        }
    }
    echo '
	</script>
	
	<div class="old_tab">
		<table width="100%" cellpadding="0" cellspacing="0" border="0" class="sai_tabs">
			<tr>
				<td><a href="javascript:tabs.tab(\'install\')" id="install" class="sai_insbut">' . $l['install'] . '</a></td>
				<td><a href="javascript:tabs.tab(\'overview\')" class="sai_tab" id="overview">' . $l['overview'] . '</a></td>
				<td><a href="javascript:tabs.tab(\'features\')" class="sai_tab" id="features">' . $l['features'] . '</a></td>
					' . (empty($globals['off_demo_link']) ? '<td><a href="' . ($soft >= 10000 && !empty($info['demo']) ? $info['demo'] : $globals['ind'] . 'act=demos&soft=' . $soft) . '" class="sai_tab" id="demo" target="_blank">' . $l['demo'] . '</a></td>' : '') . '
					' . (empty($globals['off_rating_link']) && $soft < 10000 ? '<td><a href="javascript:tabs.tab(\'ratings\')" class="sai_tab" id="ratings">' . $l['ratings'] . '</a></td>' : '') . '
					' . (empty($globals['off_review_link']) && $soft < 10000 ? '<td><a href="javascript:tabs.tab(\'reviews\')" class="sai_tab" id="reviews">' . $l['reviews'] . '</a></td>' : '') . '
			</tr>
		</table><br />
	</div>
	<div class="new_tab">
		<nav class="navbar navbar-default">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>                        
				</button>
				<ul class="nav">
					<li class="active" style="width:80px;"><a href="javascript:tabs.tab(\'install\')" id="install" class="sai_tab2" style="text-decoration:none; height:40px; top:5px;" data-toggle="collapse" data-target="#myNavbar">' . $l['install'] . '</a></li>
				</ul>
			</div>
			<div class="collapse navbar-collapse" id="myNavbar" style="position:absolute; z-index:1000; width:100%; background:#F8F8F8;">
				<ul class="nav navbar-nav">
					<li><a href="javascript:tabs.tab(\'overview\')"  id="overview" class="sai_tab2" style="text-decoration:none;" data-toggle="collapse" data-target="#myNavbar">' . $l['overview'] . '</a></li>
					<li><a href="javascript:tabs.tab(\'features\')"  id="features" class="sai_tab2" style="text-decoration:none;" data-toggle="collapse" data-target="#myNavbar">' . $l['features'] . '</a></li>
					<li>' . (empty($globals['off_demo_link']) ? '<a href="' . ($soft >= 10000 && !empty($info['demo']) ? $info['demo'] : $globals['ind'] . 'act=demos&soft=' . $soft) . '" class="sai_tab2" id="demo" target="_blank" style="text-decoration:none;" data-toggle="collapse" data-target="#myNavbar">' . $l['demo'] . '</a>' : '') . '</li>
					<li>' . (empty($globals['off_rating_link']) && $soft < 10000 ? '<a href="javascript:tabs.tab(\'ratings\')" class="sai_tab2" id="ratings" style="text-decoration:none;" data-toggle="collapse" data-target="#myNavbar">' . $l['ratings'] . '</a>' : '') . '</li>
					<li>' . (empty($globals['off_review_link']) && $soft < 10000 ? '<a href="javascript:tabs.tab(\'reviews\')" class="sai_tab2" id="reviews" style="text-decoration:none;" data-toggle="collapse" data-target="#myNavbar">' . $l['reviews'] . '</a>' : '') . '</li>
				</ul>
			</div>
		</nav>
	</div>';
    ?>
	<script type="text/javascript">
	$_(tabs.inittab).className = tabs.tabbedclass;
	var softid = <?php 
    echo $soft;
    ?>
;

	tabs.override = function(id){
		if(id == 'install'){
			$_('install').className = 'sai_insbutclicked';
		}else{		
			$_('install').className = 'sai_insbut';
		}
	};
	</script>
	<?php 
    //Parse and take care of images
    $info['overview'] = (!empty($info['changelog']) ? '
	<div class="modal fade" id="changelog_div" role="dialog" >
		<div class="modal-dialog modal-lg" style="margin-top:80px;">
		  <!-- Modal content-->
		  <div class="modal-content">
			<div class="modal-header" style="background:#F0F0F0;">
			  <button type="button" class="close" data-dismiss="modal">&times;</button>
			  <h4 class="modal-title">Changelog</h4>
			</div>
			<div class="modal-body" style="height: 350px; overflow-y: auto;">
			  ' . $info['changelog'] . '
			</div>
			<div class="modal-footer" style="padding-top:10px; height:50px;">
			  <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">Close</button>
			</div>
		  </div>
		</div>
	</div>' : '') . '
	<div class="bg2">
		<div class="row">
			<div class="col-sm-12">
				' . softparse($info['overview'], $soft) . '<br /><br />
			</div>
			<div class="col-sm-6">
				<div class="row">
					<div class="col-sm-1"><font color="#447edf"><i class="fa sai-disk fa-3x"></i></font></div>
					<div class="col-sm-5">
						<span class="sai_head">' . $l['space_req'] . '</span><br />
						<span class="sai_exp2">' . $l['available_space'] . ' : ' . (is_numeric($softpanel->spaceremain) ? number_format($softpanel->spaceremain / 1024 / 1024, 2) : $softpanel->spaceremain) . ' ' . $l['mb'] . '<br />
						' . $l['req_space'] . ' : ' . number_format($software['spacereq'] / 1024 / 1024, 2) . ' ' . $l['mb'] . '</span>
					</div>
				</div><br />
				<div class="row">
					<div class="col-sm-1"><a href="' . $info['support'] . '"><font color="#447edf"><i class="fa sai-question fa-3x"></i></font></a></div>
					<div class="col-sm-5">
						<span class="sai_head">' . $l['software_support'] . '</span><br />
						<span class="sai_exp2"><a href="' . $info['support'] . '" target="_blank">' . $l['support_link'] . '</a><br />
						' . $l['support_note'] . '</span>
					</div>
				</div>	
			</div>
		</div><br />
	</div><!--end of bg class-->';
    if (!empty($installations[$soft])) {
        $is_cloneable = is_cloneable($soft);
        $highlight = optGET('highlight');
        $action = optGET('postact');
        $info['overview'] .= '<br /><br />
		<center><span class="sai_newhead">' . $l['current_ins'] . '</span><br /></center><hr>';
        $info['overview'] .= '
		<div class="bg2">
			<table class="table table-hover">
			<thead style="background:#EFEFEF;" class="sai_head2">
			<tr>
				<th>' . $l['link'] . '</th>
				<th>' . $l['ins_time'] . '</th>
				<th>' . $l['version'] . '</th>
				<th width="130">' . $l['options'] . '</th>
				<th><input type="checkbox" id="check_all"></th>
			</tr>
			</thead>';
        foreach ($installations[$soft] as $ik => $iv) {
            $info['overview'] .= '<tr id="trid' . $ik . '">
				<td class="endurl"><a href="' . $iv['softurl'] . '" target="_blank" id="insurl' . $ik . '">' . $iv['softurl'] . '</a>' . ($highlight == $ik && !empty($action) ? '<span id="highlight">&nbsp;&nbsp;<b class="sai_highlight">' . $l['act_' . $action] . '</b></span>' : '') . '</td>
		
				<td>' . datify($iv['itime']) . '</td>
				<td>' . $iv['ver'] . ($software['ver'] != $iv['ver'] && file_exists($software['path'] . '/upgrade.xml') ? ' <a href="' . $globals['ind'] . 'act=upgrade&insid=' . $ik . '"><img src="' . $theme['images'] . 'updates.gif" alt="' . $l['upd_to'] . ' ' . $scripts[$soft]['ver'] . '" class="someclass" /></a>' : '') . '</td>
				<td>' . (!empty($is_cloneable) ? '<a href="' . $globals['ind'] . 'act=sclone&insid=' . $ik . '" title="' . $l['clone'] . '" class="someclass"><img src="' . $theme['images'] . 'clone.gif" /></a>&nbsp;' : '') . '&nbsp;<a href="' . $globals['ind'] . 'act=remove&insid=' . $ik . '" title="' . $l['remove'] . '" class="someclass"><img src="' . $theme['images'] . 'remove.gif" /></a></td>
				<td>
					<input type="checkbox" name="insids[]" id="' . $iv['softurl'] . '" value="' . $ik . '" class="soft_inslist">
				</td>
			</tr>';
        }
        $info['overview'] .= '</table><br />
			<p align="right" style="width:100%;">
				<span class="sai_head">' . $l['with_selected'] . ':</span>
				<select name="multi_options" id="multi_options">
					<option name="todo" id="todo" value="0">---</option>
					<option name="todo" id="todo" value="mult_rem">' . $l['remove'] . '</option>
				</select>
				<input type="button" value="' . $l['go'] . '" onclick="show_confirm()" class="sai_graybluebut">
				<br />
			</p>
			<div id="rem_div"></div>
		</div><!--end of bg2 class-->
		
		<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
		insids = new Array();
		removed = new Object();

		function show_confirm(){
			
			insids = new Array();
			removed = new Object();
			
			if($_("multi_options").value != "mult_rem"){
				return false;
			}

			// Build the list of Installations to remove
			var field = document.getElementsByName(\'insids[]\');
				insids = new Array();
				var c = 0;
				for(i = 0; i < field.length; i++){
					if(field[i].checked == true){
						insids[c] = field[i].value;
						c++;
					}
				
			}
			//alert(c);
			
			if(c == 0){
				alert("' . $l['no_sel_inst'] . '");
				return false;
			}
			
			var r = confirm("' . $l['del_insid'] . '");
			if(r != true){
				return false;
			}
			
			remove_by_id(insids[0], "", 0);
		}
		
		function remove_by_id(insid, re, oldinsid){

			removed[insid] = false;
			
			if(re.length > 0 && oldinsid > 0){
				if(re == "removed"){
					removed[insid] = true;
				}
			}
			
			nextinsid = 0;
			
			// Find the next INSTALLATION to remove
			for(i = 0; i < insids.length; i++){
				if(typeof(removed[insids[i]]) != "undefined"){
					continue;
				}
				nextinsid = insids[i];
				break;
			}
			
			// If there is something left to be removed
			if(insid != 0){
				try{		
					AJAX("' . $globals['index'] . 'act=remove&insid="+insid+"&ajax=1&ssk="+randomstring(32)+"&random="+Math.random(), "remove_by_id(\'"+nextinsid+"\', re, \'"+insid+"\')");
					$_("rem_div").innerHTML = "<br /><br /><p align=\\"center\\"><img src=\\"' . $theme['images'] . 'ajax_remove.gif\\"> <br />' . $l['rem_inst_id'] . ' ID: " +insid+ ", URL: " + $_("insurl"+insid)+"<br /></p>";
					return true;
				}catch(e){
					return false;
				}
			}
			$_("rem_div").innerHTML = "";
			alert("' . $l['inst_remvd'] . '");
			location.reload(true);
			return true;
		}
		
		$(document).ready(function(){
			$("#check_all").on("click", function(event){
				if(this.checked == true){
					$(".soft_inslist").prop("checked", true);
				}else{
					$(".soft_inslist").prop("checked", false);
				}
			});
		
			$(".sai_altrowstable tr").mouseover(function(){
				var old_class = $(this).attr("class");
				//alert(old_class);
				$(this).attr("class", "sai_tr_bgcolor");
				
				$(this).mouseout(function(){
					$(this).attr("class", old_class);
				});
			});';
        // If we get anything in $highlight than only we have to call this JS function other wise it will cause the JS error.
        if (!empty($highlight)) {
            $info['overview'] .= 'goto_id("insurl' . $highlight . '");
		$("#highlight").fadeOut(10000);';
        }
        $info['overview'] .= '});

		// ]]></script>';
    }
    if (count($allcatwise[$software['type']][$software['cat']]) > 2 && $software['cat'] != 'others') {
        $info['overview'] .= '<br /><br /><div class="bg2">
			<table width="100%" class="table table-hover">
				<tr>
					<th style="background:#EFEFEF" class="sai_head2">' . $l['related_scripts'] . '</th>
				</tr>
			</table>';
        $i = 0;
        foreach ($allcatwise[$software['type']][$software['cat']] as $k => $v) {
            if ($k == $soft || !empty($scripts[$k]['parent']) && !empty($iscripts[$scripts[$k]['parent']])) {
                continue;
            }
            // Show only 5 scripts
            if ($i == 5) {
                break;
            }
            $info['overview'] .= '
			<div style="text-decoration:none;display:inline-block;text-align:center;margin-top:10px;">
				<a href="' . script_link($k) . '"  title="' . $v['desc'] . '"  width="80" alt="" class="someclass" style="text-decoration:none;margin-top:5px;">
					<div class="sai_blog_script" style="margin-left:11%;">
						<div class="sai_demo_script_logo">
							<img src="' . $globals['mirror_images'] . 'top15/48/' . $v['softname'] . '.png" >	
						</div>
						<div class="sai_script_name">' . $v['name'] . '</div>
					</div>
				</a>
			</div>';
            $i++;
        }
        $info['overview'] .= '</div><!--end of bg class-->';
    }
    //Parse and take care of images
    $info['features'] = '<div class="bg2"><br />' . softparse($info['features'], $soft) . '</div><!--end of bg2 class-->';
    $info['ratings'] = '';
    $info['reviews'] = '<div class="bg2"><div id="allreviews"></div></div><!--end of bg2 class-->';
    foreach ($info as $k => $v) {
        if (in_array($k, array('demo', 'support', 'changelog'))) {
            continue;
        }
        echo '<div id="' . $k . '_win" style="display: ' . ($init_tab == $k ? "block" : "none") . '; width:100%;"><br />
		' . $v . '
		</div>';
    }
    echo '</div><!--End of bg-->';
    softfooter();
}
예제 #21
0
function adddomain_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error;
    global $saved, $aefer;
    softheader($l['<title>']);
    echo '<div class="bg"><br />';
    echo '<form accept-charset="' . $globals['charset'] . '" name="addadomain" method="post" action="" class="form-horizontal">
	<div class="sai_main_head" style="width:100%;" align="center">' . $l['add_domain'] . '</div><hr>';
    error_handle($error, '100%');
    if (!empty($saved)) {
        echo '<div class="alert alert-warning">
			<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
			<center><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . $l['settings_saved'] . '</center>
		</div>';
    }
    echo '<div class="row">
		<div class="col-sm-5">
			<label for="domain" class="sai_head">' . $l['domain'] . '</label><br />
			<span class="sai_exp2">' . $l['domain_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="domain" id="domain" class="form-control" value="' . POSTval('domain', '') . '" />
		</div>
	</div><br />
	
	<div class="row">
		<div class="col-sm-5">
			<label for="server_host" class="sai_head">' . $l['server_host'] . '</label>
			<span class="sai_exp">' . $l['server_host_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="server_host" id="server_host" class="form-control" value="' . POSTval('server_host', '') . '" />
		</div>
	</div><br />';
    if (empty($globals['custom_handler'])) {
        echo '
		<div class="row">
			<div class="col-sm-5">
				<label for="protocol" class="sai_head">' . $l['protocol'] . '</label>
				<span class="sai_exp">' . $l['protocol_exp'] . '</span>
			</div>
			<div class="col-sm-7">
				<select name="protocol" class="form-control" id="protocol">
					<option value="ftp" ' . (isset($_POST['protocol']) && $_POST['protocol'] == 'ftp' ? 'selected="selected"' : '') . '>FTP</option>
					<option value="ftps" ' . (isset($_POST['protocol']) && $_POST['protocol'] == 'ftps' ? 'selected="selected"' : '') . '>FTPS</option>
					<option value="sftp" ' . (isset($_POST['protocol']) && $_POST['protocol'] == 'sftp' ? 'selected="selected"' : '') . '>SFTP</option>
				</select>
			</div>
		</div><br />';
    }
    echo '
	<div class="row">
		<div class="col-sm-5">
			<label for="port" class="sai_head">' . $l['port'] . '</label>
			<span class="sai_exp">' . $l['port_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="port" id="port" class="form-control" value="' . POSTval('port', '') . '" />
		</div>
	</div><br />
	
	<div class="row">
		<div class="col-sm-5">
			<label for="ftp_user" class="sai_head">' . $l['ftp_user'] . '</label>
			<span class="sai_exp">' . $l['ftp_user_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="ftp_user" id="ftp_user" class="form-control" value="' . POSTval('ftp_user', '') . '" />
		</div>
	</div><br />
	
	<div class="row" id="ftp_pass">
		<div class="col-sm-5">
			<label for="ftp_pass" class="sai_head">' . $l['ftp_pass'] . '</label>
			<span class="sai_exp">' . $l['ftp_pass_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="ftp_pass" id="ftp_pass" class="form-control" value="' . POSTval('ftp_pass', '') . '" /><br />
		</div>
	</div>
	
	<div class="row" id="trauthpass">
		<div class="col-sm-5">
			<label for="auth_password" class="sai_head">' . $l['auth_password'] . '</label>
			<span class="sai_exp">' . $l['auth_password_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="checkbox" name="auth_password" id="auth_password" ' . POSTchecked('auth_password', true) . ' /><br /><br />
		</div>
	</div>
	
	<div class="row" id="pub">
		<div class="col-sm-5">
			<label for="public_key" class="sai_head">' . $l['public_key'] . '</label>
			<span class="sai_exp">' . $l['public_key_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="public_key" id="public_key" class="form-control" value="' . POSTval('public_key', '') . '" /><br />
		</div>
	</div>
	
	<div class="row" id="pri">
		<div class="col-sm-5">
			<label for="private_key" class="sai_head">' . $l['private_key'] . '</label>
			<span class="sai_exp">' . $l['private_key_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="private_key" id="private_key" class="form-control" value="' . POSTval('private_key', '') . '" /><br />
		</div>
	</div>
	
	<div class="row" id="passphrase">
		<div class="col-sm-5">
			<label for="passphrase" class="sai_head">' . $l['passphrase'] . '</label>
			<span class="sai_exp">' . $l['passphrase_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="passphrase" id="passphrase" class="form-control" value="' . POSTval('passphrase', '') . '" /><br />
		</div>
	</div>
	
	<div class="row">
		<div class="col-sm-5">
			<label for="ftp_path" class="sai_head">' . $l['ftp_path'] . '</label><br />
			<span class="sai_exp2">' . $l['ftp_path_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="ftp_path" id="ftp_path" class="form-control" value="' . POSTval('ftp_path', '') . '" />
		</div>
	</div><br />
	
	<div class="row">
		<div class="col-sm-5">
			<label for="backup_path" class="sai_head">' . $l['backup_path'] . '</label><br />
			<span class="sai_exp2">' . $l['backup_path_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="backup_path" id="backup_path" class="form-control" value="' . POSTval('backup_path', '') . '" />
		</div>
	</div><br />
	
	<div class="row">
		<div class="col-sm-5">
			<label for="data_dir" class="sai_head">' . $l['data_dir'] . '</label><br />
			<span class="sai_exp2">' . $l['data_dir_exp'] . '</span>
		</div>
		<div class="col-sm-7">
			<input type="text" name="data_dir" id="data_dir" class="form-control" value="' . POSTval('data_dir', '') . '" />
		</div>
	</div><br />

	<br /><br />
	<p align="center">
	<input class="flat-butt" type="submit" name="add_domain" value="' . $l['submit_add'] . '" />
	<br /><br /><br /><br />
	<b><a class="sai_head" href="' . $globals['ind'] . 'act=domains">' . $l['show_all_dom'] . '</a></b>
	</p>
	</form>
</div>';
    echo ' <br /><br />
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

$(document).ready(function(){
	checkprotocol();
	$(\'#auth_password\').change(function(){
		if($(this).is(":checked")) {
			hide_pubkey();
		}else{
			show_pubkey();
		}
	});
	
	$(\'#protocol\').change(function(){
		checkprotocol();
	});
});

function checkprotocol(){
	if($(\'#protocol\').val() == \'ftp\'){
		if($(\'#port\').val() == ""){
			$(\'#port\').val(\'21\');
		}
		$(\'#trauthpass\').hide();
		hide_pubkey();
		ftppath();
	}
	if($(\'#protocol\').val() == \'ftps\'){
		if($(\'#port\').val() == ""){
			$(\'#port\').val(\'21\');
		}
		$(\'#trauthpass\').hide();
		hide_pubkey();
		ftppath();
	}
	if($(\'#protocol\').val() == \'sftp\'){
		if($(\'#port\').val() == ""){
			$(\'#port\').val(\'22\');
		}
		$(\'#trauthpass\').show();
		if($(\'#auth_password\').is(":checked")){
			hide_pubkey();
		}else{
			show_pubkey();
		}
		sftppath();
	}
}

function hide_pubkey(){
	$(\'#public_key\').prop(\'disabled\', true);
	$(\'#private_key\').prop(\'disabled\', true);
	$(\'#pub\').hide();
	$(\'#pri\').hide();
	$(\'#passphrase\').hide();
	$(\'#ftp_pass\').show();
}

function show_pubkey(){
	$(\'#public_key\').prop(\'disabled\', false);
	$(\'#private_key\').prop(\'disabled\', false);
	$(\'#pub\').show();
	$(\'#pri\').show();
	$(\'#passphrase\').show();
	$(\'#ftp_pass\').hide();
}

function ftppath(){
	$(\'#ftp_path\').html("' . $l['ftp_path'] . '");
	$(\'#ftp_path_exp\').html("' . $l['ftp_path_exp'] . '");
	$(\'#backup_path_exp\').html("' . $l['backup_path_exp'] . '");
}

function sftppath(){
	$(\'#ftp_path\').html("' . $l['sftp_path'] . '");
	$(\'#ftp_path_exp\').html("' . $l['sftp_path_exp'] . '");
	$(\'#backup_path_exp\').html("' . $l['sbackup_path_exp'] . '");
}

// ]]></script>
<!--<center>
<h2>How to Add a Domain</h2>
<object width="450" height="345" align="center">
<param name="movie" value="Add Domain">
<embed src="../theme/videos/add_domain/video.swf" width="450" height="345">
</embed>
</object>
</center>-->';
    softfooter();
}
예제 #22
0
function import_export_theme()
{
    global $theme, $globals, $user, $l, $error, $updated, $info, $report, $allusers, $imported;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['import_export'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />
<br /><br /><br />';
    error_handle($error);
    if (!empty($imported)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_imported'] . '</div><br />';
    }
    echo '<form accept-charset="' . $globals['charset'] . '" name="importexport" method="post" action="" enctype="multipart/form-data">
<table width="733" cellpadding="5" cellspacing="1" border="0" style="margin:0px auto;">';
    echo '
<tr>
<td>
	<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
	<tr>
	<td colspan="2" width="60%">
		<table width="110%" border="0" class="sai_ribboneffect">
		<tr>
		<td width="2%"></td>
		<td valign="top"><br />
		<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['import_setting'] . '</b></font>
		</td>
		</tr>
		</table>
	</td>
	</tr>
	
	<tr>
	<td width="60%">
	<span class="sai_head">' . $l['import_setting'] . '</span><br />
	<span class="sai_exp2">' . $l['import_setting_exp'] . '</span>
	</td>
	<td valign="top">
		<input type="file" name="import_file"/>
	</td>
	</tr>
	
	<tr>
	<td width="60%">&nbsp;</td>
	<td valign="top">
	<input type="submit" name="import_setting" value="' . $l['import_setting'] . '" class="sai_graybluebut"/>
	</td>
	</tr>
	</table>
</td>
</tr>
';
    echo '
<tr>
<td>
	<table border="0"  width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
	<tr>
	<td colspan="2" width="60%">
		<table width="110%" border="0" class="sai_ribboneffect">
		<tr>
		<td width="2%"></td>
		<td valign="top"><br />
		<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['export_setting'] . '</b></font>
		</td>
		</tr>
		</table>
	</td>
	</tr>
	
	<tr>
	<td width="60%">
		<span class="sai_head">' . $l['export_setting'] . '</span><br />
		<span class="sai_exp2">' . $l['export_setting_exp'] . '</span>
	</td>
		<td valign="top">
		<a href="' . $globals['ind'] . 'act=import_export&download=softaculous_settings.zip" class="sai_graybluebut" style="text-decoration:none">' . $l['export_setting'] . '<a/>
	</td>
	</tr>
	</table>
</form>';
    softfooter();
}
예제 #23
0
function topscripts_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $categories, $iscripts, $scripts, $top, $top_selected, $reset_topscripts, $softpanel;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">' . $l['show_top_scripts'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    if (!empty($saved)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
    }
    if (!empty($reset_topscripts)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['reset_topscripts_done'] . '</div><br />';
    }
    echo '
<script language="javascript">
	function reset_topscript(){
		var cnf = confirm("' . $l['resetscripts_warning'] . '");
		if(cnf){
			window.location = "' . $globals['index'] . 'act=topscripts&reset_topscripts=1";
		}
		return false;
	};
</script>';
    echo '<form accept-charset="' . $globals['charset'] . '" name="reordercat" method="post" action="">
<table cellpadding="0" cellspacing="0" border="0" style="width:720px; margin:0px auto;">
		<tr>
			<td colspan="2" align="center">
				<table cellpadding="8" cellspacing="0" border="0" class="sai_reviewform">
<tr>
<td width="60%"><br />
<span class="sai_head">' . $l['enable_apps'] . '</span><br />
<span class="sai_exp2">' . $l['enable_apps_exp'] . '</span>
</td>
<td valign="top"><br />
<input type="checkbox" name="enable_topscripts" ' . (!empty($globals['show_top_scripts']) ? "checked=checked" : "") . '>
</td>
</tr>';
    if (method_exists($softpanel, 'save_topscripts_index')) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['show_top_scripts'] . '</span><br />
<span class="sai_exp2">' . $l['show_top_scripts_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="show_top_scripts" size="30" value="' . aPOSTval('show_top_scripts', $globals['show_top_scripts']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['append_apps'] . '</span><br />
<span class="sai_exp2">' . $l['append_apps_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="append_apps" ' . POSTchecked('append_apps', $globals['append_apps']) . '>
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['disable_cats'] . '</span><br />
<span class="sai_exp2">' . $l['disable_cats_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_cats" ' . POSTchecked('disable_cats', $globals['disable_cats']) . '>
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['enable_myins'] . '</span><br />
<span class="sai_exp2">' . $l['enable_myins_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="enable_myins" ' . POSTchecked('enable_myins', $globals['enable_myins']) . '>
</td>
</tr>';
        if ($globals['softpanel'] == 'cpanel') {
            echo '<tr>
<td>
<span class="sai_head">' . $l['show_in_notice'] . '</span><br />
<span class="sai_exp2">' . $l['show_in_notice_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="show_in_notice" ' . POSTchecked('show_in_notice', $globals['show_in_notice']) . '>
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['group_order'] . '</span><br />
<span class="sai_exp2">' . $l['group_order_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="group_order"  size="30" value="' . optPOST('group_order', $globals['group_order']) . '">
</td>
</tr>';
        }
    }
    echo '
</table><br /><br />
</td>
</tr>
<tr>
<td><br /><br />
<table cellpadding="15" cellspacing="0" border="0" class="sai_divroundshad" width="720">
<tr>
<td colspan="2"	>
<span class="sai_head" >' . $l['select_from_below'] . ' :</span>
</td>
</tr>

<tr>
<td>
<span class="sai_exp2">' . $l['select_top_scripts'] . ' :</span><br />
</td>
<td>
<span class="sai_exp2">' . $l['selected_top_scripts'] . ' :</span>
</td>
</tr>

<tr>
<td colspan="2">
<link href="' . $globals['mirror_images'] . 'sprites/32.css" rel="stylesheet" type="text/css" />

      <div class="formbox">        
        <div id="all_users">
           		';
    foreach ($top as $k => $v) {
        if ($k == $top_selected[$k]) {
            continue;
        }
        echo '<div id="user' . $k . '" sid="' . $k . '" class="innertxt">
						<table cellspacing="0" border="0" cellpadding="5"><tr>
						<td width="50" align="center" style="background-color:#FFFFFF"><div class="sp32_' . $iscripts[$k]['softname'] . '"></div><td>
						<td><strong>' . $iscripts[$k]['name'] . '</strong><td>
						</tr></table>
						<input type="hidden" id="select' . $k . '" class="selectit" />
						</div>
						';
    }
    echo '
            </div>
            <div style="width:100px; text-align:center; margin-left:20px; padding-top: 100px; width:75px; float:left;">
				<a href="javascript:void(0);" id="move_right">Right &raquo;</a><br /><br />
				<a href="javascript:void(0);" id="move_left">&laquo; Left</a>
            <div class="float_break"></div>   
            </div>
            <div id="selected_users">';
    if (count($top_selected) > 0) {
        foreach ($top_selected as $k => $v) {
            if (empty($iscripts[$k])) {
                continue;
            }
            echo '<div id="user' . $k . '" sid="' . $k . '" class="innertxt2">
						<table cellspacing="0" border="0" cellpadding="5"><tr>
						<td width="50" align="center" style="background-color:#FFFFFF"><div class="sp32_' . $iscripts[$k]['softname'] . '"></div><td>
						<td><strong>' . $iscripts[$k]['name'] . '</strong><td>
						</tr></table>
						<input type="hidden" id="select' . $k . '" class="selectit" />
					 </div>';
        }
    }
    echo '</div>
         </div>    
</td>
</tr>
<tr>
<td colspan="2">
	<div class="notebox" style="width:95%">
		<font class="bboxtxt"><b>' . $l['script_note'] . '</b> : <br />' . $l['script_note_exp'] . '</font>
	</div>
</td>
</tr>		  
</table>
</td>
</tr>
</table>

';
    echo ' 
<input type="hidden" name="hidden_selected" id="hidden_selected" />
<p align="center">
	<input type="submit" name="savescript" value="' . $l['savescript'] . '" class="sai_graybluebut" />&nbsp;
	<input type="button" name="reset_topscripts" value="' . $l['reset_topscripts'] . '" class="sai_graybluebut" onclick="reset_topscript();" />
</p>
' . (empty($globals['lictype']) ? '<div class="notebox" style="width:95%"><font class="bboxtxt">' . $l['soft_free_note'] . '</font></div>' : '') . '<br />
</form>';
    echo '
<script language="javascript">

	$(document).ready(function () {
		// Uncheck each checkbox on body load
		//$("#all_users .selectit").each(function() {this.checked = false;});
		//$("#selected_users .selectit").each(function() {this.checked = false;});
		
		//onload we have to save the PREVIOUS slected scripts
		var scripts = "";
		$("#selected_users .innertxt2").each(function() {
			var s_id = $(this).attr("sid");
			if (scripts == "") 
				scripts += s_id;
			else
				scripts += "," + s_id;
		});
		document.getElementById("hidden_selected").value = scripts;
		
    	$("#all_users .innertxt").click(function() {
			
			var color = $(this).css("background-color");
			if(color != "transparent" && (!color.match(/rgb(a?)\\(0/))){
				$(this).css("background-color","transparent");
			}else{
				$(this).css("background-color","lightblue");
			}
			var userid = $(this).attr("id");
			$("#" + userid).toggleClass("innertxt_bg");
		});
		
		$("#selected_users .innertxt2").click(function() {
			
			var color = $(this).css("background-color");
			if(color != "transparent"){
				$(this).css("background-color","transparent");
			}else{
				$(this).css("background-color","lightblue");
			}
			var userid = $(this).attr("id");
			$("#" + userid).toggleClass("innertxt_bg");
		});
		
		$("#move_right").click(function() {
			var users = $("#selected_users .innertxt2").size();
			var selected_users = $("#all_users .innertxt_bg").size();
			
			/*if (users + selected_users > 14) {
				alert("You can only chose maximum 14 Scripts.");
				return;
			}*/
			
			$("#all_users .innertxt_bg").each(function() {
				var user_clone = $(this).clone(true);
				$(user_clone).removeClass("innertxt");
				$(user_clone).removeClass("innertxt_bg");
				$(user_clone).addClass("innertxt2");
				$(user_clone).css("background-color","transparent");
				
				$("#selected_users").append(user_clone);
				$(this).remove();
			});
			
			var scripts = "";
			$("#selected_users .innertxt2").each(function() {
				var s_id = $(this).attr("sid");
				if (scripts == "") 
					scripts += s_id;
				else
					scripts += "," + s_id;
			});
			document.getElementById("hidden_selected").value = scripts;
		});
		
		$("#move_left").click(function() {
			$("#selected_users .innertxt_bg").each(function() {
				
				
				var user_clone = $(this).clone(true);
				$(user_clone).removeClass("innertxt2");
				$(user_clone).removeClass("innertxt_bg");
				$(user_clone).addClass("innertxt");
				$(user_clone).css("background-color","transparent");
				
				$("#all_users").append(user_clone);
				$(this).remove();
			});
			
			var scripts = "";
			$("#selected_users .innertxt2").each(function() {
				var s_id = $(this).attr("sid");
				if (scripts == "") 
					scripts += s_id;
				else
					scripts += "," + s_id;
			});
			document.getElementById("hidden_selected").value = scripts;
		});
		
		$("#view").click(function() {
			var scripts = "";
			$("#selected_users .innertxt2").each(function() {
				var s_id = $(this).attr("sid");
				if (scripts == "") 
					scripts += s_id;
				else
					scripts += "," + s_id;
			});
			document.getElementById("hidden_selected").value = scripts;
			//alert(scripts);
			
		});

	});		

</script>

';
    softfooter();
}
예제 #24
0
function file_put($filename, $content)
{
    global $_josh;
    //arguments should be reversed?
    $file = @fopen($_josh["root"] . $filename, "w");
    if ($file === false) {
        error_handle("could not open file", "the file " . $filename . " could not be opened for writing.  perhaps it is a permissions problem.");
    } else {
        if (is_array($content)) {
            $content = implode($content);
        }
        $bytes = fwrite($file, $content);
        fclose($file);
        return $bytes;
    }
}
예제 #25
0
function restore_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $scripts, $_insid, $dbexist, $restored, $datadir, $wwwdir;
    global $backups, $deleted, $soft, $backupinfo;
    // Give the staus
    if (optGET('ajaxstatus')) {
        $_status = soft_progress(optGET('ajaxstatus'));
        $tmp_status = unserialize($_status[1]);
        $_status[1] = $tmp_status['current_status'];
        if (!empty($_status)) {
            echo implode('|', $_status);
            return true;
        }
        // False call
        echo 0;
        return false;
    }
    softheader($l['<title>']);
    echo '
	<div id="install_win">';
    if (!empty($restored)) {
        echo '
			<div class="bg"><br />
				<div class="alert alert-warning">
					<center><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . $l['restore'] . '
					<center><b><a href="' . script_link($soft) . '&highlight=' . $backupinfo['insid'] . '&postact=restore"></a></b></center></center>
				</div>
				<br />
				<center><b><a href="' . script_link($soft) . '" class="sai_head">' . $l['return'] . '</a></b></center><br /><br />
			</div>
		
			<!--PROC_DONE-->';
    } else {
        echo '
			<div id="fadeout_div">
				<form accept-charset="' . $globals['charset'] . '" name="restore" method="post" action="" onsubmit="return checkform();" id="restore">
				
					<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
					function checkform(dosubmit){
						var conf = confirm(\'' . $l['confirm_restore'] . '\');
						if(conf){
							$_("restorebtn").disabled = true;
							if(useprog){
						
								// Send a request to check the status
								progressbar.start();
								
								// Return false so that the form is not submitted
								return false;
							
								// This is OLD School !
							}
							
							return true;
						}else{
							return false;
						}
					}	
					
					var progressbar = {
						timer: 0,
						total_width: 0,	
						status_key: "",
						synctimer: 0,
						fadeout_div: "#fadeout_div",
						win_div: "#install_win",
						progress_div: "#progress_bar",
						formid: "#restore",
						frequency: 8000,
						
						current: function(){
							try{
								var tmp_cur = Math.round(parseInt($_("progress_color").width)/parseInt($_("table_progress").width)*100);
								if(tmp_cur > 100){
									tmp_cur = 99;
								}
								return tmp_cur;
							}catch(e){
								return -1;	
							}
						},
						
						reset: function(){ try{
							clearTimeout(this.timer);
							$_("progress_color").width = 1;
						}catch(e){ }},
						
						move: function(dest, speed, todo){ try{
							var cur = this.current();
							if(cur < 0){
								clearTimeout(this.timer);
								return false;
							}
							var cent = cur + 1;
							var new_width = cent/100*this.total_width;
							if(new_width < 1){
								new_width = 1;
							}
							//alert(new_width+" "+dest+" "+cent);
							
							$_("progress_color").width = new_width;
							$_("progress_percent").innerHTML = "("+cent+" %)";
							
							if(cent < dest){
								this.timer = setTimeout("progressbar.move("+dest+", "+speed+")", speed);
							}else{
								eval(todo);	
							}
						}catch(e){ }},
						
						text: function(txt){ try{
							$_("progress_txt").innerHTML = txt;
						}catch(e){ }},
						
						sync: function(){
							if(progressbar.status_key.length < 2){
								return false;
							}
							$.ajax({
								url: window.location+"&ajaxstatus="+progressbar.status_key+"&random="+Math.random(),
								type: "GET",
								success: function(data){
									if(data == 0) return false;
									var tmp = data.split("|");
									var cur = progressbar.current();
									tmp[2] = (3000/(tmp[0]-cur));
									//alert(tmp);
									if(tmp[0] > cur){
										if(parseInt(tmp[2]) == 0){
											tmp[2] = 800;
										}
										progressbar.move(tmp[0], tmp[2]);
									}
									progressbar.text(tmp[1]);
									progressbar.synctimer = setTimeout("progressbar.sync()", progressbar.frequency);
								}
							});
						},
						
						sync_abort: function(){
							clearTimeout(this.synctimer);
						},
						
						start: function(){ try{
							this.post();
							this.reset();
							this.total_width = parseInt($_("table_progress").width);
							this.move(95, 800);
							this.status_key = $("#soft_status_key").attr("value");
							this.sync();
						}catch(e){ }},
						
						post: function(){
							
							// Scroll to the Top and show the progress bar
							goto_top();
							$(progressbar.fadeout_div).fadeOut(500, 
								function(){
									$(progressbar.progress_div).fadeOut(1);
									$(progressbar.progress_div).fadeIn(500);
								}
							);
							
							$.ajax({
								url: window.location+"&jsnohf=1",
								type: "POST",
								data: $(progressbar.formid).serialize(),
								complete: function( jqXHR, status, responseText ) {
									
									progressbar.sync_abort();
									
									// Store the response as specified by the jqXHR object
									responseText = jqXHR.responseText;
									
									try{
										//alert(responseText);
										if(responseText.match(/\\<\\!\\-\\-PROC_DONE\\-\\-\\>/gi)){
											progressbar.text("' . addslashes($l['finishing_process']) . '");
											progressbar.move(99, 10, "$(progressbar.progress_div).fadeOut(1)");
									
										}else{
											progressbar.reset();
										}
									}catch(e){ }
									
									if ( jqXHR.isResolved() ) {
									
										// #4825: Get the actual response in case
										// a dataFilter is present in ajaxSettings
										jqXHR.done(function( r ) {
											responseText = r;
										});
								
										// Create a dummy div to hold the results
										// inject the contents of the document in, removing the scripts
										// to avoid any "Permission Denied" errors in IE
										var newhtml = jQuery("<div>").append(responseText).find(progressbar.win_div).html();
										
										$(progressbar.win_div).animate({opacity: 0}, 1000, "", function(){
											$(progressbar.win_div).html(newhtml);
											new_theme_funcs_init();
										}).delay(50).animate({opacity: 1}, 500);
										
										//alert(newhtml);
										
									}else{
										alert("Oops ... the connection was lost");
									}
								}
							});
						}
					};
					
						
					// Use the Progress Bar ?
					var useprog = 1;
					try{
						if(BrowserDetect.browser.toLowerCase() == "safari" && BrowserDetect.version.toString().substr(0, 1) == "3"){
							useprog = 0;
						}
					}catch(e){ }
					
					// ]]></script>
				
				
					<div class="bg"><br />
						<div class="row sai_main_head" style="width:100%;" align="center">
							<div class="col-sm-5 col-xs-5" style="padding:0 10px 0 0; text-align:right;">
								<i class="fa sai-restore fa-2x" style="color:#00A0D2;"></i>
							</div>
							<div class="col-sm-7 col-xs-7" style="padding-top:10px; padding-left:0; text-align:left;">' . $l['prog_restoring'] . $iscripts[$soft]['name'] . '</div>
						</div>
						<hr><br />';
        echo error_handle($error, "100%", 0, 1);
        echo '
						<div class="row">
							<div class="col-sm-5">
								<label class="sai_head">' . $l['restore_dir'] . '</label><br />
								<span class="sai_exp2">' . $l['restore_dir_exp'] . '</span>
							</div>
							<div class="col-sm-7">
								<input type="checkbox" name="restore_dir" ' . POSTchecked('restore_dir', true) . ' />
							</div>
						</div><br />';
        // Web directory ?
        if (!empty($wwwdir)) {
            echo '
							<div class="row">
								<div class="col-sm-5">
									<label class="sai_head">' . $l['restore_wwwdir'] . '</label><br />
									<span class="sai_exp2">' . $l['restore_wwwdir_exp'] . '</span>
								</div>
								<div class="col-sm-7">
									<input type="checkbox" name="restore_wwwdir" ' . POSTchecked('restore_wwwdir', true) . ' />
								</div>
							</div><br />';
        }
        // Data directory ?
        if (!empty($datadir)) {
            echo '
							<div class="row">
								<div class="col-sm-5">
									<label class="sai_head">' . $l['restore_datadir'] . '</label><br />
									<span class="sai_exp2">' . $l['restore_datadir_exp'] . '</span>
								</div>
								<div class="col-sm-7">
									<input type="checkbox" name="restore_datadir" ' . POSTchecked('restore_datadir', true) . ' />
								</div>
							</div><br />';
        }
        if (!empty($dbexist)) {
            echo '
							<div class="row">
								<div class="col-sm-5">
									<label class="sai_head">' . $l['restore_db'] . '</label><br />
									<span class="sai_exp2">' . $l['restore_db_exp'] . '</span>
								</div>
								<div class="col-sm-7">
									<input type="checkbox" name="restore_db" ' . POSTchecked('restore_db', true) . ' />
								</div>
							</div><br />';
        }
        echo '<br /><br />
						<p align="center">
							<input type="hidden" name="restore_ins" value="1" />
							<input type="hidden" name="soft_status_key" id="soft_status_key" value="' . POSTval('soft_status_key', generateRandStr(32)) . '" />
							<input type="submit" name="restorebtn" class="flat-butt" id="restorebtn" value="' . $l['restore_ins'] . '"  />
						</p>
						<br /><br />
						<center><b><a href="' . script_link($soft) . '" class="sai_head">' . $l['return'] . '</a></b></center><br /><br />				
					</div><br /><!--end of bg class-->
				</form>
			</div>			
			
			<div id="progress_bar" style="display: none; width: 100%;">
				<br />
				<div class="bg">
					<center>
						<div class="row sai_main_head" style="width:100%;" align="center">
							<div class="col-sm-5 col-xs-5" style="padding:0 10px 0 0; text-align:right;">
								<i class="fa sai-restore fa-2x" style="color:#00A0D2;"></i>
							</div>
							<div class="col-sm-7 col-xs-7" style="padding-top:10px; padding-left:0; text-align:left;">' . $l['prog_restoring'] . $iscripts[$soft]['name'] . '</div>
						</div><br />
					<center>
						<font size="4" color="#222222" id="progress_txt" style="width: 100%;">' . $l['checking_data'] . '</font>
						<font style="font-size: 18px;font-weight: 400;color: #444444; width: 100%;" id="progress_percent">(0 %)</font><br /><br />
					</center>
					<table width="500" cellpadding="0" cellspacing="0" id="table_progress" border="0" align="center" height="28" style="border:1px solid #CCC; -moz-border-radius: 5px;
				-webkit-border-radius: 5px; border-radius: 5px; width: 50%;">
						<tr>
							<td id="progress_color" width="1" style="background-image: url(' . $theme['images'] . 'bar.gif); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;"></td>
							<td id="progress_nocolor">&nbsp;</td>
						</tr>
					</table>
					<br /><center>' . $l['wait_note'] . '</center><br />
					<center><b><a href="' . script_link($soft) . '">' . $l['return'] . '</a></b></center><br /><br />
				</div>
			</div><br /><br />';
    }
    echo '
	</div>';
    softfooter();
}
예제 #26
0
function sslkey_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $error, $done, $domain_list, $key_list, $detailkey, $done;
    // For delete
    if (optGET('ajaxdel')) {
        if (!empty($error)) {
            echo '0' . current($error);
            return false;
        }
        if (!empty($done)) {
            echo '1' . $l['delete'];
            showcert();
            return true;
        }
    }
    // For detail
    if (optGET('ajaxdetail')) {
        if (!empty($error)) {
            echo '0' . current($error);
            return false;
        }
        if (!empty($done)) {
            showdetail();
            return true;
        }
    }
    softheader($l['<title>']);
    error_handle($error, '100%');
    if (!empty($done)) {
        echo '<div class="sai_success">' . $done . '</div>';
    }
    echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'sslkey.gif" />&nbsp;' . $l['lbl_head'] . '</center>
	<div id="showrectab">';
    showcert();
    echo '<br/></div>
	<div id="detailrectab" style="display:none"></div><br /><br />
	<form accept-charset="' . $globals['charset'] . '" action="" method="post" enctype="multipart/form-data">
		<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding:15px;" >
			<tr>
				<td colspan="2">
					<span class="sai_head">' . $l['upload'] . '</span><br />
				</td>
			</tr>
			<tr>
				<td width="40%">
					<span class="sai_exp">' . $l['domain'] . '</span><br />
				</td>
				<td valign="top">
					<input type="text" name="selectdom" id="selectdom" size="30" value="" />
				</td>
			</tr>
			<tr>
				<td valign="top">
					<span class="sai_exp">' . $l['paste'] . '</span>
				</td>
				<td>
					<textarea name="kpaste" id="kpaste" rows="25" cols="70"></textarea><br /><br />
					<span class="sai_head" style="text-align:center">' . $l['or'] . '</span>
				</td>
			</tr>
			<tr>
				<td width="35%">
					<span class="sai_exp">' . $l['choose_file'] . '</span><br />
				</td>
				<td>
					<div id="filecabinet"><input type=file id="ukey" name="ukey" ></div>
				</td>
			</tr>
			<tr>
			<td colspan="2">
				<p align="center">
					<input type="submit" name="install_key" style="cursor:pointer" value="' . $l['install_button'] . '" class="sai_graybluebut" id="instkey"/>
				</p>
			</td>
		</tr>
		</table><br /><br />
	</form>
	
	<form accept-charset="' . $globals['charset'] . '" action="" method="post" >
		<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding:15px;" >
			<tr>
				<td width="35%">
					<span class="sai_head">' . $l['genrate'] . '</span>
				</td>
			</tr>
			<tr>
				<td>
					<span class="sai_exp">' . $l['domain'] . '</span><br />
				</td>
				<td valign="top">
					<input type="text" name="selectdom" id="selectdom" size="30" value="" />
				</td>
			</tr>
			<tr>
				<td width="35%">
					<span class="sai_exp">' . $l['ksize'] . '</span><br />
				</td>
				<td>
					<select class="input" name="keysize" id="keysize">
						<option value="2048">' . $l['2048'] . '</option>
						<option value="4096">' . $l['4096'] . '</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<p align="center">
						<input type="submit" name="create_key" style="cursor:pointer" value="' . $l['genrate_button'] . '" class="sai_graybluebut" id="create_key"/>
					</p>
				</td>
			</tr>
		</table>
	</form>
	
	<script language="javascript" type="text/javascript"><!-- // --><![CDATA[	
	
	var message_box = function(){			
		return{
			show_message: function(title, body, image) {
				var okbutton = \'<input  style="width:75px" class="sai_graybluebut" type="button" onclick="message_box.close_message();" value="OK" />\';
				if(image == "1"){
					var img = \'<img src="' . $theme['images'] . 'error.gif" />\';
				}else{
					var img = \'<img src="' . $theme['images'] . 'confirm.gif" />\';
				}
				
				if(jQuery(".sai_message_box").html() === null) {
					var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1">\' +  title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table></div>\';
					jQuery(document.body).append( message );
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow");
				}else{
					var message =\' <table border="0" width="100%" cellpadding="8" height="100%"><tr ><td rowspan="2" width="40%">\'+ img +  \'</td><td widt="60%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table>\';
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow")
						.html(message);
				}
			},
			delete_message: function(title, body, did) {
				var yesbutton = \'<input type="button" style="width:75px" onclick="message_box.yes_close_message(\\\'\'+did+\'\\\');" value="YES" class="sai_graybluebut"/>\';
				var nobutton = \'<input type="button" style="width:75px" onclick="message_box.no_close_message();" value="NO" class="sai_graybluebut" />\';
				var img = \'<img src="' . $theme['images'] . 'remove_big.gif" />\';
				if(jQuery(".sai_message_box").html() === null) {
					
					var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr height="60%" ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1" height="10%">\' +  title + \'</td></tr><tr ><td style="text-align:left" height="60%" cellpading="2" class ="msg_tr2">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3" >\' + yesbutton + \'&nbsp; &nbsp; \' + nobutton + \'</td></tr></table></div>\';
					jQuery(document.body).append( message );
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow");
					
				}else{
					
					var message = \' <table  border="0" cellpadding="8" width="100%" height="100%"><tr height="60%" ><td rowspan="2" width="40%">\'+ img +  \'</td><td widt="60%" class ="msg_tr1" height="10%">\' + title + \'</td></tr><tr><td style="text-align:left" height="60%" cellpading="2" class ="msg_tr2">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3" >\' + yesbutton + \'&nbsp; &nbsp; \' + nobutton + \'</td></tr></table>\';
					$(".sai_message_box")
						.css("top", $($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150)
						.show("slow")
						.html(message);
				}
			},
			close_message: function() {
				$(".sai_message_box").hide("fast");
			},
			yes_close_message: function(did) {
				$("#did"+did).attr("src", "' . $theme['images'] . 'progress.gif");
				$(".sai_message_box").hide("fast");
				$.ajax({
					type: "POST",
					url: window.location+"&ajaxdel=1&delete_record="+did,
					
					// Checking for error
					success: function(data){
						var result = data.substring(0,1);
						var msg = data.substring(1);
						
						if(result == "1"){
							var msg = data.substring(1, data.indexOf("<table"));
							var output = data.substring(data.indexOf("<table"));
							message_box.show_message( "Delete ", msg, 2);
							$("#showrectab").html(output);
						}else{
							message_box.show_message("Error ", msg, 1);
							$("#did"+did).attr("src", "' . $theme['images'] . 'remove.gif");
						}
					},
					error: function(request,error) {
						message_box.show_message("Error", "' . $l['connect_error'] . '", 1);
					}
				});
			},
			no_close_message: function() {
				$(".sai_message_box").hide("fast");
			}
		}
	}();
	
	$(document).ready(function(){
		
		$(".sai_altrowstable tr").mouseover(function(){
			var old_class = $(this).attr("class");		
			$(this)
				.attr("class", "sai_tr_bgcolor")
				.mouseout(function(){
					$(this).attr("class", old_class);
				});
		});
		
	});
	
	// ]]></script>';
    softfooter();
}
예제 #27
0
function settings_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $softpanel, $protocols;
    //Is suPHP installed ?
    $apache_modules = function_exists('apache_get_modules') ? apache_get_modules() : '';
    if (is_array($apache_modules)) {
        foreach ($apache_modules as $av) {
            if (strtolower($av) == 'mod_suphp') {
                $suphp = true;
            }
        }
    }
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['settings'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" />
<br /><br /><br />';
    error_handle($error);
    echo '<link rel="stylesheet" type="text/css" href="' . $theme['url'] . '/spectrum.css?' . $globals['version'] . '" />
<script language="javascript" src="' . $theme['url'] . '/js/combined.js" type="text/javascript"></script>
<script src="' . $theme['url'] . '/js/spectrum.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

function show_ud(id){
	var val = id.value;
	if(val == "user_defined"){
		$("#admin_prefix_ud").css("display", "");
	}else{
		$("#admin_prefix_ud").css("display", "none");
	}
}

function showtip(txt, el){	
	
	$_("stooltip").innerHTML = txt;
	
	var pos = findelpos(el);
	$_("stooltip").style.display = "";
	var tipheight = parseInt($_("stooltip").offsetHeight);
	var tipwidth = parseInt($_("stooltip").offsetWidth);
	//alert(tipheight+" "+tipwidth);
	
	var abody = findelpos($_("abody"));
	var bodyWidth = abody[0] + $_("abody").offsetWidth
	
	if((pos[0] + tipwidth) > bodyWidth){
		pos[0] = pos[0] - (pos[0] + tipwidth - bodyWidth) + 15;
	}
	
	$_("stooltip").style.left = pos[0]+"px";
	$_("stooltip").style.top = (pos[1]-5-tipheight)+"px";
	
	el.onmouseout = function(){
		hidetip();
	};

};

function hidetip(){
	$_("stooltip").style.display = "none";
}

function isNumber(n) {
	if(isNaN(n.value)){
		alert(n.value+\' is not a valid Number\');
		return false;
		return false;
	}
}

// ]]></script>';
    if (!empty($saved)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
    }
    echo '<div id="stooltip" style="display:none; position:absolute; top: 0px; left: 0px; border: 1px solid #CCC; padding: 8px; background: #FFF; z-index:1000;"></div>
<form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="">
<table width="732" cellpadding="5" cellspacing="1" border="0" style="margin:0px auto;">';
    if (!defined('SOFTRESELLER')) {
        echo '
<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;">' . $l['pathhead'] . '</font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['softpath'] . '</span><br />
<span class="sai_exp2">' . $l['softpath_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="path" size="30" value="' . aPOSTval('path', $globals['path']) . '" />
</td>
</tr>


<tr>
<td>
<span class="sai_head">' . $l['softscripts'] . '</span><br />
<span class="sai_exp2">' . $l['softscripts_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="softscripts" size="30" value="' . aPOSTval('softscripts', $globals['softscripts']) . '" />
</td>
</tr>
</table>
</td>
</tr>';
    }
    echo '
<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['gen_set'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['sitename'] . '</span><br />
<span class="sai_exp2">' . $l['sitename_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="sn" size="30" value="' . aPOSTval('sn', $globals['sn']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['logo_url'] . '</span><br />
<span class="sai_exp2">' . $l['logo_url_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="logo_url" size="30" value="' . aPOSTval('logo_url', $globals['logo_url']) . '" />
</td>
</tr>';
    if (!defined('SOFTRESELLER')) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['is_vps'] . '</span><br />
<span class="sai_exp2">' . $l['is_vps_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="is_vps" ' . POSTchecked('is_vps', $globals['is_vps']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['cook_name'] . '</span><br />
<span class="sai_exp2">' . $l['cook_name_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="cookie_name" size="30" value="' . aPOSTval('cookie_name', $globals['cookie_name']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['chmod_files'] . '</span><br />
<span class="sai_exp2">' . $l['chmod_files_exp'] . ' ' . (empty($suphp) ? '' : '<b>(' . $l['suphp_detected'] . ')</b>') . '</span>
</td>
<td valign="top">
<input type="text" name="chmod_files" size="20" value="' . aPOSTval('chmod_files', $globals['chmod_files']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['chmod_dir'] . '</span><br />
<span class="sai_exp2">' . $l['chmod_dir_exp'] . ' ' . (empty($suphp) ? '' : '<b>(' . $l['suphp_detected'] . ')</b>') . '</span>
</td>
<td valign="top">
<input type="text" name="chmod_dir" size="20" value="' . aPOSTval('chmod_dir', $globals['chmod_dir']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['chmod_conf_file'] . '</span><br />
<span class="sai_exp2">' . $l['chmod_conf_file_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="chmod_conf_file" size="20" value="' . aPOSTval('chmod_conf_file', @$globals['chmod_conf_file']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['footer_link'] . '</span><br />
<span class="sai_exp2">' . $l['footer_link_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="footer_link" size="20" value="' . aPOSTval('footer_link', @$globals['footer_link']) . '" />
</td>
</tr>';
    }
    if ($globals['softpanel'] == 'directadmin' && !defined('SOFTRESELLER')) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['remote_mysql'] . '</span><br />
<span class="sai_exp2">' . $l['remote_mysql_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="remote_mysql" size="20" value="' . aPOSTval('remote_mysql', @$globals['remote_mysql']) . '" />
</td>
</tr>';
    }
    if (!defined('SOFTRESELLER')) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['soft_email'] . '</span><br />
<span class="sai_exp2">' . $l['soft_email_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="soft_email" size="30" value="' . aPOSTval('soft_email', $globals['soft_email']) . '" />
</td>
</tr>';
    }
    echo '<tr>
<td>
<span class="sai_head">' . $l['from_email'] . '</span><br />
<span class="sai_exp2">' . $l['from_email_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="from_email" size="30" value="' . aPOSTval('from_email', $globals['from_email']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['choose_lang'] . '</span><br />
<span class="sai_exp2">' . $l['choose_lang_exp'] . '</span>
</td>
<td valign="top">
<select name="language">';
    foreach ($langs as $k => $v) {
        echo '<option value="' . $v . '" ' . (empty($_POST['language']) && $globals['language'] == $v ? 'selected="selected"' : (@trim($_POST['language']) == $v ? 'selected="selected"' : '')) . '>' . _ucfirst($v) . '</option>';
    }
    echo '</select>
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['choose_protocol'] . '</span><br />
<span class="sai_exp2">' . $l['choose_protocol_exp'] . '</span>
</td>
<td>
<select name="default_protocol">';
    foreach ($protocols as $pk => $pv) {
        echo '<option value="' . $pk . '" ' . ($globals['default_protocol'] == $pk ? 'selected="selected"' : '') . '>' . $pv . '</option>';
    }
    echo '</select>
</td>
</tr>';
    if (!defined('SOFTRESELLER')) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['choose_theme'] . '</span><br />
<span class="sai_exp2">' . $l['choose_theme_exp'] . '</span>
</td>
<td valign="top">
<select name="theme_folder">';
        foreach ($skins as $k => $v) {
            echo '<option value="' . $v . '" ' . (empty($_POST['theme_folder']) && $globals['theme_folder'] == $v ? 'selected="selected"' : (trim($_POST['theme_folder']) == $v ? 'selected="selected"' : '')) . '>' . _ucfirst($v) . '</option>';
        }
        echo '</select>
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['default_hf_bg'] . '</span><br />
<span class="sai_exp2">' . $l['default_hf_bg_exp'] . '</span>
</td>
<td valign="top">
<input type="color" name="color" id="default_hf_bg" class="changecolor"/>&nbsp;&nbsp;
<input type="hidden" name="default_hf_bg" value="' . aPOSTval('default_hf_bg', $globals['default_hf_bg']) . '" id="hidden_default_hf_bg">
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['default_cat_hover'] . '</span><br />
<span class="sai_exp2">' . $l['default_cat_hover_exp'] . '</span>
</td>
<td valign="top">
<input type="color" name="color" id="default_cat_hover" class="changecolor"/>&nbsp;&nbsp;
<input type="hidden" name="default_cat_hover" value="' . aPOSTval('default_cat_hover', $globals['default_cat_hover']) . '" id="hidden_default_cat_hover">
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['default_hf_text'] . '</span><br />
<span class="sai_exp2">' . $l['default_hf_text_exp'] . '</span>
</td>
<td valign="top">
<input type="color" name="color" id="default_hf_text" class="changecolor"/>&nbsp;&nbsp;
<input type="hidden" name="default_hf_text" value="' . aPOSTval('default_hf_text', $globals['default_hf_text']) . '" id="hidden_default_hf_text">
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['default_scriptname_text'] . '</span><br />
<span class="sai_exp2">' . $l['default_scriptname_text_exp'] . '</span>
</td>
<td valign="top">
<input type="color" name="color" id="default_scriptname_text" class="changecolor"/>&nbsp;&nbsp;
<input type="hidden" name="default_scriptname_text" value="' . aPOSTval('default_scriptname_text', $globals['default_scriptname_text']) . '" id="hidden_default_scriptname_text">
</td>
</tr>';
        if ($globals['softpanel'] == 'webuzo') {
            $disable_sysapps = $softpanel->getconf('DISABLE_SYSAPPS');
            echo '<tr>
<td>
<span class="sai_head">' . $l['network_interface'] . '</span><br />
<span class="sai_exp2">' . $l['network_interface_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="network_interface" size="30" value="' . aPOSTval('network_interface', $globals['network_interface']) . '" />
</td>
</tr>';
            if (empty($disable_sysapps)) {
                echo '<tr>
<td>
<span class="sai_head">' . $l['webuzo_disable_username'] . '</span><br />
<span class="sai_exp2">' . $l['webuzo_disable_username_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="webuzo_disable_username" ' . POSTchecked('webuzo_disable_username', @$globals['webuzo_disable_username']) . ' />
</td>
</tr>';
            }
        }
        echo '<tr>
<td>
<span class="sai_head">' . $l['time_format'] . '</span><br />
<span class="sai_exp2">' . $l['time_format_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="time_format" size="30" value="' . aPOSTval('time_format', $globals['time_format']) . '" />
</td>
</tr>

<tr>
<td colspan="2" align="center"><span class="sai_head">' . $l['timezone'] . ' : </span>&nbsp; &nbsp; 
	<select name="timezone" style="font-size:11px">
		<option value="-12" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-12' ? 'selected="selected"' : ($globals['timezone'] == -12 ? 'selected="selected"' : '')) . ' >(GMT -12:00) Eniwetok, Kwajalein</option>
		<option value="-11" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-11' ? 'selected="selected"' : ($globals['timezone'] == -11 ? 'selected="selected"' : '')) . ' >(GMT -11:00) Midway Island, Samoa</option>
		<option value="-10" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-10' ? 'selected="selected"' : ($globals['timezone'] == -10 ? 'selected="selected"' : '')) . ' >(GMT -10:00) Hawaii</option>
		<option value="-9" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-9' ? 'selected="selected"' : ($globals['timezone'] == -9 ? 'selected="selected"' : '')) . ' >(GMT -9:00) Alaska</option>
		<option value="-8" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-8' ? 'selected="selected"' : ($globals['timezone'] == -8 ? 'selected="selected"' : '')) . ' >(GMT -8:00) Pacific Time (US &amp; Canada)</option>
		<option value="-7" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-7' ? 'selected="selected"' : ($globals['timezone'] == -7 ? 'selected="selected"' : '')) . ' >(GMT -7:00) Mountain Time (US &amp; Canada)</option>
		<option value="-6" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-6' ? 'selected="selected"' : ($globals['timezone'] == -6 ? 'selected="selected"' : '')) . ' >(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
		<option value="-5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-5' ? 'selected="selected"' : ($globals['timezone'] == -5 ? 'selected="selected"' : '')) . ' >(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
		<option value="-4" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-4' ? 'selected="selected"' : ($globals['timezone'] == -4 ? 'selected="selected"' : '')) . ' >(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option>
		<option value="-3.5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-3.5' ? 'selected="selected"' : ($globals['timezone'] == -3.5 ? 'selected="selected"' : '')) . ' >(GMT -3:30) Newfoundland</option>
		<option value="-3" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-3' ? 'selected="selected"' : ($globals['timezone'] == -3 ? 'selected="selected"' : '')) . ' >(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>
		<option value="-2" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-2' ? 'selected="selected"' : ($globals['timezone'] == -2 ? 'selected="selected"' : '')) . ' >(GMT -2:00) Mid-Atlantic</option>
		<option value="-1" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-1' ? 'selected="selected"' : ($globals['timezone'] == -1 ? 'selected="selected"' : '')) . ' >(GMT -1:00 hour) Azores, Cape Verde Islands</option>
		<option value="0" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '0' ? 'selected="selected"' : ($globals['timezone'] == 0 ? 'selected="selected"' : '')) . ' >(GMT) Western Europe Time, London, Lisbon, Casablanca</option>
		<option value="1" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '1' ? 'selected="selected"' : ($globals['timezone'] == 1 ? 'selected="selected"' : '')) . ' >(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>
		<option value="2" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '2' ? 'selected="selected"' : ($globals['timezone'] == 2 ? 'selected="selected"' : '')) . ' >(GMT +2:00) Kaliningrad, South Africa</option>
		<option value="3" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '3' ? 'selected="selected"' : ($globals['timezone'] == 3 ? 'selected="selected"' : '')) . ' >(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>
		<option value="3.5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '3.5' ? 'selected="selected"' : ($globals['timezone'] == 3.5 ? 'selected="selected"' : '')) . ' >(GMT +3:30) Tehran</option>
		<option value="4" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '4' ? 'selected="selected"' : ($globals['timezone'] == 4 ? 'selected="selected"' : '')) . ' >(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>
		<option value="4.5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '4.5' ? 'selected="selected"' : ($globals['timezone'] == 4.5 ? 'selected="selected"' : '')) . ' >(GMT +4:30) Kabul</option>
		<option value="5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '5' ? 'selected="selected"' : ($globals['timezone'] == 5 ? 'selected="selected"' : '')) . ' >(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
		<option value="5.5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '5.5' ? 'selected="selected"' : ($globals['timezone'] == 5.5 ? 'selected="selected"' : '')) . ' >(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>
		<option value="6" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '6' ? 'selected="selected"' : ($globals['timezone'] == 6 ? 'selected="selected"' : '')) . ' >(GMT +6:00) Almaty, Dhaka, Colombo</option>
		<option value="6.5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '6.5' ? 'selected="selected"' : ($globals['timezone'] == 6.5 ? 'selected="selected"' : '')) . ' >(GMT +6:30) Yangon, Myanmar</option>
		<option value="7" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '7' ? 'selected="selected"' : ($globals['timezone'] == 7 ? 'selected="selected"' : '')) . ' >(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
		<option value="8" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '8' ? 'selected="selected"' : ($globals['timezone'] == 8 ? 'selected="selected"' : '')) . ' >(GMT +8:00) Beijing, Perth, Singapore, Hong Kong, Taiwan</option>
		<option value="9" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '9' ? 'selected="selected"' : ($globals['timezone'] == 9 ? 'selected="selected"' : '')) . ' >(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>
		<option value="9.5" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '9.5' ? 'selected="selected"' : ($globals['timezone'] == 9.5 ? 'selected="selected"' : '')) . ' >(GMT +9:30) Adelaide, Darwin</option>
		<option value="10" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '10' ? 'selected="selected"' : ($globals['timezone'] == 10 ? 'selected="selected"' : '')) . ' >(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>
		<option value="11" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '11' ? 'selected="selected"' : ($globals['timezone'] == 11 ? 'selected="selected"' : '')) . ' >(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>
		<option value="12" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '12' ? 'selected="selected"' : ($globals['timezone'] == 12 ? 'selected="selected"' : '')) . ' >(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>
	</select>
</td>
</tr>';
    }
    echo '
</table>
</td>
</tr>

<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['end_user_set'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['eu_news_off'] . '</span><br />
<span class="sai_exp2">' . $l['eu_news_off_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="eu_news_off" ' . POSTchecked('eu_news_off', @$globals['eu_news_off']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['no_prefill'] . '</span><br />
<span class="sai_exp2">' . $l['no_prefill_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="no_prefill" ' . POSTchecked('no_prefill', @$globals['no_prefill']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['random_username'] . '</span><br />
<span class="sai_exp2">' . $l['random_username_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="random_username" ' . POSTchecked('random_username', @$globals['random_username']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['random_pass'] . '</span><br />
<span class="sai_exp2">' . $l['random_pass_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="random_pass" ' . POSTchecked('random_pass', @$globals['random_pass']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['random_dbprefix'] . '</span><br />
<span class="sai_exp2">' . $l['random_dbprefix_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="random_dbprefix" ' . POSTchecked('random_dbprefix', @$globals['random_dbprefix']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_demo_link'] . '</span><br />
<span class="sai_exp2">' . $l['off_demo_link_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_demo_link" ' . POSTchecked('off_demo_link', @$globals['off_demo_link']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_screenshot_link'] . '</span><br />
<span class="sai_exp2">' . $l['off_screenshot_link_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_screenshot_link" ' . POSTchecked('off_screenshot_link', @$globals['off_screenshot_link']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_rating_link'] . '</span><br />
<span class="sai_exp2">' . $l['off_rating_link_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_rating_link" ' . POSTchecked('off_rating_link', @$globals['off_rating_link']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_review_link'] . '</span><br />
<span class="sai_exp2">' . $l['off_review_link_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_review_link" ' . POSTchecked('off_review_link', @$globals['off_review_link']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_email_link'] . '</span><br />
<span class="sai_exp2">' . $l['off_email_link_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_email_link" ' . POSTchecked('off_email_link', $globals['off_email_link']) . ' />
</td>
</tr>';
    if (!defined('SOFTRESELLER')) {
        echo '
<tr>
<td width="55%">
<span class="sai_head">' . $l['eu_email_off'] . '</span><br />
<span class="sai_exp2">' . $l['eu_email_off_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="eu_email_off" ' . POSTchecked('eu_email_off', @$globals['eu_email_off']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['empty_username'] . '</span><br />
<span class="sai_exp2">' . $l['empty_username_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="empty_username" ' . POSTchecked('empty_username', @$globals['empty_username']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['empty_pass'] . '</span><br />
<span class="sai_exp2">' . $l['empty_pass_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="empty_pass" ' . POSTchecked('empty_pass', @$globals['empty_pass']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['comp_output'] . '</span><br />
<span class="sai_exp2">' . $l['comp_output_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="gzip" ' . POSTchecked('gzip', $globals['gzip']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_remove_mail'] . '</span><br />
<span class="sai_exp2">' . $l['off_remove_mail_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_remove_mail" ' . POSTchecked('off_remove_mail', $globals['off_remove_mail']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_backup_mail'] . '</span><br />
<span class="sai_exp2">' . $l['off_backup_mail_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_backup_mail" ' . POSTchecked('off_backup_mail', $globals['off_backup_mail']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_install_mail'] . '</span><br />
<span class="sai_exp2">' . $l['off_install_mail_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_install_mail" ' . POSTchecked('off_install_mail', $globals['off_install_mail']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_edit_mail'] . '</span><br />
<span class="sai_exp2">' . $l['off_edit_mail_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_edit_mail" ' . POSTchecked('off_edit_mail', $globals['off_edit_mail']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_clone_mail'] . '</span><br />
<span class="sai_exp2">' . $l['off_clone_mail_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_clone_mail" ' . POSTchecked('off_clone_mail', $globals['off_clone_mail']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_restore_mail'] . '</span><br />
<span class="sai_exp2">' . $l['off_restore_mail_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_restore_mail" ' . POSTchecked('off_restore_mail', $globals['off_restore_mail']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_customize_theme'] . '</span><br />
<span class="sai_exp2">' . $l['off_customize_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_customize_theme" ' . POSTchecked('off_customize_theme', $globals['off_customize_theme']) . ' />
</td>
</tr>';
    }
    if (!empty($softpanel->native_ui)) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['panel_hf'] . '</span><br />
<span class="sai_exp2">' . $l['panel_hf_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="panel_hf" size="30" ' . POSTchecked('panel_hf', @$globals['panel_hf']) . ' />
</td>
</tr>';
    }
    if (!defined('SOFTRESELLER')) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['off_sync_link'] . '</span><br />
<span class="sai_exp2">' . $l['off_sync_link_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_sync_link" ' . POSTchecked('off_sync_link', @$globals['off_sync_link']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_panel_link'] . '</span><br />
<span class="sai_exp2">' . $l['off_panel_link_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_panel_link" ' . POSTchecked('off_panel_link', @$globals['off_panel_link']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['perl_scripts'] . '</span><br />
<span class="sai_exp2">' . $l['perl_scripts_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="perl_scripts" ' . POSTchecked('perl_scripts', @$globals['perl_scripts']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['nolabels'] . '</span><br />
<span class="sai_exp2">' . $l['nolabels_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="nolabels" size="30" ' . POSTchecked('nolabels', $globals['nolabels']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['show_cscript_in_top'] . '</span><br />
<span class="sai_exp2">' . $l['show_cscript_in_top_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="show_cscript_in_top" ' . POSTchecked('show_cscript_in_top', @$globals['show_cscript_in_top']) . ' />
</td>
</tr>';
        // Classes are only avaialable to Premium License
        if (!empty($globals['lictype'])) {
            echo '<tr>
<td>
<span class="sai_head">' . $l['disable_classes'] . '</span><br />
<span class="sai_exp2">' . $l['disable_classes_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_classes" size="30" ' . POSTchecked('disable_classes', @$globals['disable_classes']) . ' />
</td>
</tr>';
        }
        if (!empty($softpanel->user_mod_dir)) {
            echo '<tr>
<td>
<span class="sai_head">' . $l['user_mod_dir'] . '</span><br />
<span class="sai_exp2">' . $l['user_mod_dir_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="user_mod_dir" ' . POSTchecked('user_mod_dir', $globals['user_mod_dir']) . ' />
</td>
</tr>';
        }
        echo '<tr>
<td>
<span class="sai_head">' . $l['disable_reseller_panel'] . '</span><br />
<span class="sai_exp2">' . $l['disable_reseller_panel_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_reseller_panel" size="30" ' . POSTchecked('disable_reseller_panel', @$globals['disable_reseller_panel']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['pass_strength'] . '</span><br />
<span class="sai_exp2">' . $l['pass_strength_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="pass_strength" size="30" value="' . aPOSTval('pass_strength', $globals['pass_strength']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['admin_prefix'] . '</span><br />
<span class="sai_exp2">' . $l['admin_prefix_exp'] . '</span>
</td>
<td valign="top">
<select id="admin_prefix" name="admin_prefix" onchange="show_ud(this);">

	<option value="" ' . (isset($_POST['admin_prefix']) && $_POST['admin_prefix'] == "" ? 'selected="selected"' : (!isset($_POST['admin_prefix']) && $globals['admin_prefix'] == "" ? 'selected="selected"' : '')) . '>' . $l['ap_none'] . '</option>
	
	<option value="username" ' . (isset($_POST['admin_prefix']) && $_POST['admin_prefix'] == "username" ? 'selected="selected"' : (!isset($_POST['admin_prefix']) && $globals['admin_prefix'] == "username" ? 'selected="selected"' : '')) . '>' . $l['ap_username'] . '</option>
	
	<option value="domain" ' . (isset($_POST['admin_prefix']) && $_POST['admin_prefix'] == "domain" ? 'selected="selected"' : (!isset($_POST['admin_prefix']) && $globals['admin_prefix'] == "domain" ? 'selected="selected"' : '')) . '>' . $l['ap_domain'] . '</option>
	
	<option value="user_defined" ' . (isset($_POST['admin_prefix']) && $_POST['admin_prefix'] == "user_defined" ? 'selected="selected"' : (!isset($_POST['admin_prefix']) && $globals['admin_prefix'] != "username" && $globals['admin_prefix'] != "domain" && $globals['admin_prefix'] != "" ? 'selected="selected"' : '')) . '>' . $l['ap_admin_defined'] . '</option>
	
</select>&nbsp;&nbsp;&nbsp;
<input type="text" id="admin_prefix_ud" name="admin_prefix_ud" ' . (!empty($_POST['admin_prefix_ud']) && $_POST['admin_prefix'] != "" && $_POST['admin_prefix'] != "username" && $_POST['admin_prefix'] != "domain" ? 'value="' . $_POST['admin_prefix_ud'] . '" style=""' : (!isset($_POST['admin_prefix']) && ($globals['admin_prefix'] != "username" && $globals['admin_prefix'] != "domain" && $globals['admin_prefix'] != "") ? 'value="' . $globals['admin_prefix'] . '" style=""' : 'style="display:none"')) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['disable_clone'] . '</span><br />
<span class="sai_exp2">' . $l['disable_clone_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_clone" ' . POSTchecked('disable_clone', @$globals['disable_clone']) . ' />
</td>
</tr>';
        // At the moment only for H-Sphere we are providing this option
        if ($globals['softpanel'] == 'hsphere') {
            echo '<tr>
<td>
<span class="sai_head">' . $l['ephp_bin'] . '</span><br />
<span class="sai_exp2">' . $l['ephp_bin_exp'] . sphpbin() . '</span>
</td>
<td valign="top">
<input type="text" name="ephp_bin" value="' . aPOSTval('ephp_bin', $globals['ephp_bin']) . '" size="30" />
</td>
</tr>
';
        }
    }
    if ($globals['softpanel'] == 'ampps') {
        echo '<tr>
<td>
<span class="sai_head">' . $l['default_domain_path'] . '</span><br />
<span class="sai_exp2">' . $l['default_domain_path_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="adomain_path" size="30" value="' . aPOSTval('adomain_path', $globals['adomain_path']) . '" />
</td>
</tr>';
    }
    if ($globals['softpanel'] != 'ampps' && !empty($globals['ampps_enabled']) && !empty($globals['lictype'])) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['no_ampps_download'] . '</span><br />
<span class="sai_exp2">' . $l['no_ampps_download_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="no_ampps" ' . POSTchecked('no_ampps', @$globals['no_ampps']) . ' />
</td>
</tr>';
    }
    if (!defined('SOFTRESELLER')) {
        echo '<tr>
<td>
<span class="sai_head">' . $l['no_strong_mysql_pass'] . '</span><br />
<span class="sai_exp2">' . $l['no_strong_mysql_pass_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="no_strong_mysql_pass" ' . POSTchecked('no_strong_mysql_pass', @$globals['no_strong_mysql_pass']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['pre_download_all'] . '</span><br />
<span class="sai_exp2">' . $l['pre_download_all_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="pre_download_all" ' . POSTchecked('pre_download_all', @$globals['pre_download_all']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['disable_backup_restore'] . '</span><br />
<span class="sai_exp2">' . $l['disable_backup_restore_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_backup_restore" size="30" ' . POSTchecked('disable_backup_restore', @$globals['disable_backup_restore']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['disable_backup_upgrade'] . '</span><br />
<span class="sai_exp2">' . $l['disable_backup_upgrade_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_backup_upgrade" ' . POSTchecked('disable_backup_upgrade', @$globals['disable_backup_upgrade']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['disable_auto_backup'] . '</span><br />
<span class="sai_exp2">' . $l['disable_auto_backup_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_auto_backup" ' . POSTchecked('disable_auto_backup', @$globals['disable_auto_backup']) . ' />' . $l['auto_backup_all'] . '<br />
<input type="checkbox" name="disable_auto_backup_daily" ' . POSTchecked('disable_auto_backup_daily', @$globals['disable_auto_backup_daily']) . ' />' . $l['auto_backup_daily'] . '<br />
<input type="checkbox" name="disable_auto_backup_weekly" ' . POSTchecked('disable_auto_backup_weekly', @$globals['disable_auto_backup_weekly']) . ' />' . $l['auto_backup_weekly'] . '<br />
<input type="checkbox" name="disable_auto_backup_monthly" ' . POSTchecked('disable_auto_backup_monthly', @$globals['disable_auto_backup_monthly']) . ' />' . $l['auto_backup_monthly'] . '
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['auto_backup_limit'] . '</span><br />
<span class="sai_exp2">' . $l['auto_backup_limit_exp'] . '</span>
</td>
<td valign="top">
<select name="auto_backup_limit">';
        for ($i = 0; $i <= 10; $i++) {
            echo '<option value="' . $i . '" ' . (empty($_POST['auto_backup_limit']) && $globals['auto_backup_limit'] == $i ? 'selected="selected"' : (trim($_POST['auto_backup_limit']) == $i ? 'selected="selected"' : '')) . '>' . (empty($i) ? $l['auto_backup_unlimited'] : $i) . '</option>';
        }
        echo '</select>
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['max_backups'] . '</span><br />
<span class="sai_exp2">' . $l['max_backups_exp'] . '</span>
</td>
<td valign="top">
<select name="max_backups">';
        for ($i = 0; $i <= 10; $i++) {
            echo '<option value="' . $i . '" ' . (empty($_POST['max_backups']) && $globals['max_backups'] == $i ? 'selected="selected"' : (trim($_POST['max_backups']) == $i ? 'selected="selected"' : '')) . '>' . (empty($i) ? $l['max_backups_unlimited'] : $i) . '</option>';
        }
        echo '</select>
</td>
</tr>';
        if (!aefer() && !ent()) {
            echo '<tr>
<td>
<span class="sai_head">' . $l['backups_expire'] . '</span><br />
<span class="sai_exp2">' . $l['backups_expire_exp'] . '</span>
</td>
<td valign="top">
<input type="text" id="backups_expire" name="backups_expire" value="' . aPOSTval('backups_expire', @$globals['backups_expire']) . '" onblur="isNumber(this)"/>&nbsp; days
</td>
</tr>';
        }
        echo '<tr>
<td>
<span class="sai_head">' . $l['off_upgrade_plugins'] . '</span><br />
<span class="sai_exp2">' . $l['off_upgrade_plugins_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_upgrade_plugins" ' . POSTchecked('off_upgrade_plugins', @$globals['off_upgrade_plugins']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_upgrade_themes'] . '</span><br />
<span class="sai_exp2">' . $l['off_upgrade_themes_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off_upgrade_themes" ' . POSTchecked('off_upgrade_themes', @$globals['off_upgrade_themes']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['enable_auto_upgrade'] . '</span><br />
<span class="sai_exp2">' . $l['enable_auto_upgrade_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="enable_auto_upgrade" ' . POSTchecked('enable_auto_upgrade', @$globals['enable_auto_upgrade']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['force_auto_upgrade'] . '</span><br />
<span class="sai_exp2">' . $l['force_auto_upgrade_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="force_auto_upgrade" ' . POSTchecked('force_auto_upgrade', @$globals['force_auto_upgrade']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['enc_db_pass'] . '</span><br />
<span class="sai_exp2">' . $l['enc_db_pass_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="enc_db_pass" ' . POSTchecked('enc_db_pass', @$globals['enc_db_pass']) . ' />
</td>
</tr>

<td>
<span class="sai_head">' . $l['set_backup_dir'] . '</span><br />
<span class="sai_exp2">' . $l['set_backup_dir_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="set_backup_dir" size="20" value="' . aPOSTval('set_backup_dir', @$globals['set_backup_dir']) . '" />
</td>
</tr>';
        if (asperapp(1, 0, 0)) {
            // Only for Softaculous
            echo '
<tr>
<td>
<span class="sai_head">' . $l['default_landing'] . '</span><br />
<span class="sai_exp2">' . $l['default_landing_exp'] . '</span>
</td>
<td valign="top">
<select name="default_landing">
<option value="" ' . (!isset($_POST['default_landing']) && empty($globals['default_landing']) ? 'selected="selected"' : '') . '>' . $l['top_scripts'] . '</option>
<option value="installations" ' . (isset($_POST['default_landing']) && $_POST['default_landing'] == 'installations' ? 'selected="selected"' : ($globals['default_landing'] == 'installations' ? 'selected="selected"' : '')) . '>' . $l['all_ins'] . '</option>
<option value="outdated_ins" ' . (isset($_POST['default_landing']) && $_POST['default_landing'] == 'outdated_ins' ? 'selected="selected"' : ($globals['default_landing'] == 'outdated_ins' ? 'selected="selected"' : '')) . '>' . $l['outdated_ins'] . '</option>
</select>
</td>
</tr>';
        }
        if (aefer()) {
            echo '<tr>
	<td>
	<span class="sai_head">' . $l['no_ftp_encrypted'] . '</span><br />
	<span class="sai_exp2">' . $l['no_ftp_encrypted_exp'] . '</span>
	</td>
	<td valign="top">
	<input type="checkbox" name="no_ftp_encrypted" ' . POSTchecked('no_ftp_encrypted', @$globals['no_ftp_encrypted']) . ' />
	</td>
	</tr>
	
	<tr>
	<td>
	<span class="sai_head">' . $l['no_add_domain'] . '</span><br />
	<span class="sai_exp2">' . $l['no_add_domain_exp'] . '</span>
	</td>
	<td valign="top">
	<input type="checkbox" name="no_add_domain" ' . POSTchecked('no_add_domain', @$globals['no_add_domain']) . ' />
	</td>
	</tr>
	
	<tr>
	<td>
	<span class="sai_head">' . $l['no_prefill_db'] . '</span><br />
	<span class="sai_exp2">' . $l['no_prefill_db_exp'] . '</span>
	</td>
	<td valign="top">
	<input type="checkbox" name="no_prefill_db" ' . POSTchecked('no_prefill_db', @$globals['no_prefill_db']) . ' />
	</td>
	</tr>';
        }
        if (aefer() || ent()) {
            echo '<tr>
	<td>
	<span class="sai_head">' . $l['session_timeout'] . '</span><br />
	<span class="sai_exp2">' . $l['session_timeout_exp'] . '</span>
	</td>
	<td valign="top">
	<input type="text" id="session_timeout" name="session_timeout" value="' . aPOSTval('session_timeout', @$globals['session_timeout']) . '" onblur="isNumber(this)"/>
	</td>
	</tr>';
        }
    }
    echo '</table>
</td>
</tr>';
    if (!defined('SOFTRESELLER')) {
        // PFX Settings will be here
        if (!empty($globals['lictype'])) {
            echo '<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['pfx_settings'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['eu_enable_themes'] . '</span><br />
<span class="sai_exp2">' . $l['eu_enable_themes_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="eu_enable_themes" ' . POSTchecked('eu_enable_themes', @$globals['eu_enable_themes']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['eu_themes_premium'] . '</span><br />
<span class="sai_exp2">' . $l['eu_themes_premium_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="eu_themes_premium" ' . POSTchecked('eu_themes_premium', @$globals['eu_themes_premium']) . ' />
</td>
</tr>

</table>
</td>
</tr>';
        }
        echo '
<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['update_settings'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td valign="top" <td width="55%">
<span class="sai_head">' . $l['auto_upd_softac'] . '</span><br />
<span class="sai_exp2">' . $l['auto_upd_softac_exp'] . '</span>
</td>
<td valign="top">
<input type="radio" name="update" value="0" ' . POSTradio('update', 0, $globals['update']) . ' /> ' . $l['never_update'] . ' <br />
<input type="radio" name="update" value="1" ' . POSTradio('update', 1, $globals['update']) . ' /> ' . $l['stable'] . ' <br />
<input type="radio" name="update" value="2" ' . POSTradio('update', 2, $globals['update']) . ' /> ' . $l['release_cand'] . '
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['auto_upd_soft'] . '</span><br />
<span class="sai_exp2">' . $l['auto_upd_soft_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="update_softs" ' . POSTchecked('update_softs', $globals['update_softs']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['auto_add_soft'] . '</span><br />
<span class="sai_exp2">' . $l['auto_add_soft_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="add_softs" ' . POSTchecked('add_softs', $globals['add_softs']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['email_upd_soft'] . '</span><br />
<span class="sai_exp2">' . $l['email_upd_soft_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="email_update" ' . POSTchecked('email_update', $globals['email_update']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['email_upd_softs'] . '</span><br />
<span class="sai_exp2">' . $l['email_upd_softs_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="email_update_softs" ' . POSTchecked('email_update_softs', $globals['email_update_softs']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['cron_time'] . '</span><br />
<span class="sai_exp2">' . $l['cron_time_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="cron_time" size="30" value="' . aPOSTval('cron_time', $globals['cron_time']) . '" />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['php_bin'] . '</span><br />
<span class="sai_exp2">' . $l['php_bin_exp'] . '</span>
</td>
<td valign="top">
<input type="text" name="php_bin" size="30" value="' . aPOSTval('php_bin', $globals['php_bin']) . '" />
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['remove_options'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td width = "55%">
<span class="sai_head">' . $l['remove_dir'] . '</span><br />
<span class="sai_exp2">' . $l['remove_dir_exp'] . '</span><br />
</td>
<td valign="top">
<input type="checkbox" name="remove_dir" ' . POSTchecked('remove_dir', $globals['remove_dir']) . ' />
</td>
</tr>

<tr>
<td width = "55%">
<span class="sai_head">' . $l['remove_db'] . '</span><br />
<span class="sai_exp2">' . $l['remove_db_exp'] . '</span><br />
</td>
<td valign="top">
<input type="checkbox" name="remove_db" ' . POSTchecked('remove_db', $globals['remove_db']) . ' />
</td>
</tr>

<tr>
<td width = "55%">
<span class="sai_head">' . $l['remove_datadir'] . '</span><br />
<span class="sai_exp2">' . $l['remove_datadir_exp'] . '</span><br />
</td>
<td valign="top">
<input type="checkbox" name="remove_datadir" ' . POSTchecked('remove_datadir', $globals['remove_datadir']) . ' />
</td>
</tr>

<tr>
<td width = "55%">
<span class="sai_head">' . $l['remove_wwwdir'] . '</span><br />
<span class="sai_exp2">' . $l['remove_wwwdir_exp'] . '</span><br />
</td>
<td valign="top">
<input type="checkbox" name="remove_wwwdir" ' . POSTchecked('remove_wwwdir', $globals['remove_wwwdir']) . ' />
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['social_media'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['install_tweet_off'] . '</span><br />
<span class="sai_exp2">' . $l['install_tweet_off_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="install_tweet_off" ' . POSTchecked('install_tweet_off', $globals['install_tweet_off']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['install_tweet_msg'] . '</span><br />
<span class="sai_exp2">' . $l['install_tweet_msg_exp'] . '</span><br />
<span style="cursor:pointer;" onmouseover="showtip(\'' . $l['tweet_vars'] . '\', this)">' . $l['tweet_vars_link'] . '</span>
</td>
<td valign="top">
<input type="text" name="install_tweet" size="30" value="' . aPOSTval('install_tweet', !empty($globals['install_tweet']) ? $globals['install_tweet'] : $l['install_tweet']) . '" />
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['upgrade_tweet_off'] . '</span><br />
<span class="sai_exp2">' . $l['upgrade_tweet_off_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="upgrade_tweet_off" ' . POSTchecked('upgrade_tweet_off', $globals['upgrade_tweet_off']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['upgrade_tweet_msg'] . '</span><br />
<span class="sai_exp2">' . $l['upgrade_tweet_msg_exp'] . '</span><br />
<span style="cursor:pointer;" onmouseover="showtip(\'' . $l['tweet_vars'] . '\', this)">' . $l['tweet_vars_link'] . '</span>
</td>
<td valign="top">
<input type="text" name="upgrade_tweet" size="30" value="' . aPOSTval('upgrade_tweet', !empty($globals['upgrade_tweet']) ? $globals['upgrade_tweet'] : $l['upgrade_tweet']) . '" />
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['clone_tweet_off'] . '</span><br />
<span class="sai_exp2">' . $l['clone_tweet_off_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="clone_tweet_off" ' . POSTchecked('clone_tweet_off', $globals['clone_tweet_off']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['clone_tweet_msg'] . '</span><br />
<span class="sai_exp2">' . $l['clone_tweet_msg_exp'] . '</span><br />
<span style="cursor:pointer;" onmouseover="showtip(\'' . $l['tweet_vars'] . '\', this)">' . $l['tweet_vars_link'] . '</span>
</td>
<td valign="top">
<input type="text" name="clone_tweet" size="30" value="' . aPOSTval('clone_tweet', !empty($globals['clone_tweet']) ? $globals['clone_tweet'] : $l['clone_tweet']) . '" />
</td>
</tr>

</table>
</td>
</tr>

<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="6" class="sai_reviewform" style="padding:7px 10px;">
<tr>
<td colspan="2">
<table width="110%" border="0" class="sai_ribboneffect">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['disable_soft'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td width="55%">
<span class="sai_head">' . $l['soft_off'] . '</span><br />
<span class="sai_exp2">' . $l['soft_off_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="off" ' . POSTchecked('off', $globals['off']) . ' />
</td>
</tr>

<tr>
<td>
<span class="sai_head">' . $l['off_sub'] . '</span>
</td>
<td valign="top">
<input type="text" name="off_subject" size="30" value="' . aPOSTval('off_subject', $globals['off_subject']) . '" />
</td>
</tr>

<tr>
<td valign="top">
<span class="sai_head">' . $l['off_message'] . '</span>
</td>
<td valign="top">
<textarea name="off_message" cols="30" rows="6">' . aPOSTval('off_message', $globals['off_message']) . '</textarea>
</td>
</tr>';
    }
    echo '</table>

<p align="center"><input type="submit" name="editsettings" value="' . $l['edit_settings'] . '" class="sai_graybluebut"/></p>


</form>
<script>
function updateColor(color, id) {
	
	var hexColor = "transparent";
	if(color) {
		hexColor = color.toHexString();
	}
	if(hexColor == "transparent") return;
	
	// Set the hidden value so that we can save the settings
	$("#default_hf_bg").val("1");
	
	// For changing text colors of category heading
	if(id == "default_hf_text"){
		$(".soft_cathead a").css("color", hexColor);
		$(".soft_nav a").css("color", hexColor);
		$(".fa").css("color", hexColor);
		
		// set the hidden value so that it can be saved
		$("#hidden_default_hf_text").val(hexColor);
	}
	
	// For changing text colors of category heading hover color
	if(id == "default_cat_hover"){
		try{
			$(".soft_cathead:hover, .soft_cathead_slide:hover").css("background-color", hexColor);
			//$(".soft_cathead_slide:hover").css("background-color", hexColor);
		
			// set the hidden value so that it can be saved
			$("#hidden_default_cat_hover").val(hexColor);
		}catch(e){
			// do nothing
		}
	}
	
	// For changing text colors of script names
	if(id == "default_scriptname_text"){
		$(".softlinks li a").css("color", hexColor);
		
		// set the hidden value so that it can be saved
		$("#hidden_default_scriptname_text").val(hexColor);
	}
	
	// For changing background color
	if(id == "default_hf_bg"){
		$(".left_panel").css("background-image", "none");
		$(".left_panel").css("background-color", hexColor);
		$(".soft_nav").css("background", hexColor);
		
		// set the hidden value so that it can be saved
		$("#hidden_default_hf_bg").val(hexColor);
	}
	
}

var pallete_array = [
		["rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", /*"rgb(153, 153, 153)","rgb(183, 183, 183)",*/
		"rgb(204, 204, 204)", "rgb(217, 217, 217)", /*"rgb(239, 239, 239)", "rgb(243, 243, 243)",*/ "rgb(255, 255, 255)"],
		["rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)",
		"rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)"],
		["rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)",
		"rgb(208, 224, 227)", "rgb(201, 218, 248)", "rgb(207, 226, 243)", "rgb(217, 210, 233)", "rgb(234, 209, 220)",
		"rgb(221, 126, 107)", "rgb(234, 153, 153)", "rgb(249, 203, 156)", "rgb(255, 229, 153)", "rgb(182, 215, 168)",
		"rgb(162, 196, 201)", "rgb(164, 194, 244)", "rgb(159, 197, 232)", "rgb(180, 167, 214)", "rgb(213, 166, 189)",
		"rgb(204, 65, 37)", "rgb(224, 102, 102)", "rgb(246, 178, 107)", "rgb(255, 217, 102)", "rgb(147, 196, 125)",
		"rgb(118, 165, 175)", "rgb(109, 158, 235)", "rgb(111, 168, 220)", "rgb(142, 124, 195)", "rgb(194, 123, 160)",
		"rgb(166, 28, 0)", "rgb(204, 0, 0)", "rgb(230, 145, 56)", "rgb(241, 194, 50)", "rgb(106, 168, 79)",
		"rgb(69, 129, 142)", "rgb(60, 120, 216)", "rgb(61, 133, 198)", "rgb(103, 78, 167)", "rgb(166, 77, 121)",
		/*"rgb(133, 32, 12)", "rgb(153, 0, 0)", "rgb(180, 95, 6)", "rgb(191, 144, 0)", "rgb(56, 118, 29)",
		"rgb(19, 79, 92)", "rgb(17, 85, 204)", "rgb(11, 83, 148)", "rgb(53, 28, 117)", "rgb(116, 27, 71)",*/
		"rgb(91, 15, 0)", "rgb(102, 0, 0)", "rgb(120, 63, 4)", "rgb(127, 96, 0)", "rgb(39, 78, 19)",
		"rgb(12, 52, 61)", "rgb(28, 69, 135)", "rgb(7, 55, 99)", "rgb(32, 18, 77)", "rgb(76, 17, 48)"]
	];

$(function() {
	$("#default_hf_bg").spectrum({
		allowEmpty:true,
		color : "' . (!empty($globals['default_hf_bg']) ? $globals['default_hf_bg'] : '#333333') . '",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});

$(function() {
	$("#default_cat_hover").spectrum({
		allowEmpty:true,
		color : "' . (!empty($globals['default_cat_hover']) ? $globals['default_cat_hover'] : '#4096ee') . '",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});

$(function() {
	$("#default_hf_text").spectrum({
		allowEmpty:true,
		color : "' . (!empty($globals['default_hf_text']) ? $globals['default_hf_text'] : '#F2F2F2') . '",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});

$(function() {
	$("#default_scriptname_text").spectrum({
		allowEmpty:true,
		color : "' . (!empty($globals['default_scriptname_text']) ? $globals['default_scriptname_text'] : '#FFFFFF') . '",
		showInput: true,
		className: "full-spectrum",
		showInitial: true,
		showPalette: true,
		showSelectionPalette: true,
		maxPaletteSize: 10,
		preferredFormat: "hex",
		localStorageKey: "soft.demo",
		move: function (color) {
			updateColor(color, this.id);
		},
		hide: function (color) {
			updateColor(color, this.id);
		},
		palette: pallete_array
	});
});
</script>';
    softfooter();
}
예제 #28
0
function email_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved;
    softheader($l['<title>']);
    echo '<div class="sai_heading" align="center">&nbsp;&nbsp;&nbsp;' . $l['emailhead'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br />';
    error_handle($error);
    if (!empty($saved)) {
        echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
    }
    echo '<br />
<form accept-charset="' . $globals['charset'] . '" name="editemailsettings" method="post" action="">
<table width="95%" cellpadding="10" cellspacing="1" class="sai_reviewform" style="margin:0px auto;" border="0">
<tr>
<td width="10%">
</td>
<td><br />
<span class="sai_head">' . $l['mailmethod'] . '</span><br />
<span class="sai_exp2">' . $l['mailmethod_exp'] . '</span>
</td>
<td valign="top"><br />
	<select name="mail">
		<option value="1" ' . (isset($_POST['mail']) && $_POST['mail'] == '1' ? 'selected="selected"' : ($globals['mail'] == 1 ? 'selected="selected"' : '')) . '>PHP Mail</option>
		<option value="0" ' . (isset($_POST['mail']) && $_POST['mail'] == '0' ? 'selected="selected"' : ($globals['mail'] == 0 ? 'selected="selected"' : '')) . '>SMTP</option>
	</select>
</td>
</tr>

<tr>
<td width="10%">
</td>
<td>
<span class="sai_head">' . $l['mailauthtype'] . '</span><br />
<span class="sai_exp2">' . $l['mailauthtype_exp'] . '</span>
</td>
<td valign="top"><br />
	<select name="mail_authtype">
		<option value="0" ' . (isset($_POST['mail_authtype']) && $_POST['mail_authtype'] == '0' ? 'selected="selected"' : ($globals['mail_authtype'] == 0 ? 'selected="selected"' : '')) . '>Default</option>
		<option value="CRAM-MD5" ' . (isset($_POST['mail_authtype']) && $_POST['mail_authtype'] == 'CRAM-MD5' ? 'selected="selected"' : ($globals['mail_authtype'] == 'CRAM-MD5' ? 'selected="selected"' : '')) . '>CRAM-MD5</option>
	</select>
</td>
</tr>

<tr>
<td width="10%">
</td>
<td width="45%">
<span class="sai_head">' . $l['smtp_server'] . '</span>
</td>
<td valign="top">
<input type="text" name="mail_server" size="30" value="' . aPOSTval('mail_server', $globals['mail_server']) . '" />
</td>
</tr>

<tr>
<td>
</td>
<td>
<span class="sai_head">' . $l['smtp_port'] . '</span>
</td>
<td valign="top">
<input type="text" name="mail_port" size="30" value="' . aPOSTval('mail_port', $globals['mail_port']) . '" />
</td>
</tr>

<tr>
<td>
</td>
<td>
<span class="sai_head">' . $l['smtp_user'] . '</span>
</td>
<td valign="top">
<input type="text" name="mail_user" size="30" value="' . aPOSTval('mail_user', $globals['mail_user']) . '" />
</td>
</tr>

<tr>
<td>
</td>
<td>
<span class="sai_head">' . $l['smtp_pass'] . '</span>
</td>
<td valign="top">
<input type="password" name="mail_pass" size="30" value="' . aPOSTval('mail_pass', $globals['mail_pass']) . '" />
</td>
</tr>
<tr>
<td colspan="4">
	<p align="center"><input type="submit" name="editemailsettings" value="' . $l['edit_settings'] . '" class="sai_graybluebut"/></p>
</td>
</tr>
</table><br /><br />
</form>';
    softfooter();
}
예제 #29
-1
function plans_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $emailtemps, $plans, $done, $_users;
    softheader($l['<title>']);
    echo '<center class="sai_heading"><img src="' . $theme['images'] . 'admin/plans.gif" />&nbsp;&nbsp;' . $l['title'] . '</center>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
    error_handle($error);
    echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[

function delconf(){
	return confirm("' . $l['del_conf'] . '");
};

function add_plan(){
 window.location.href = "' . $globals['ind'] . 'act=addplans";
}

// ]]></script>';
    if (!empty($done)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'success.gif" /> &nbsp; ' . $l['done'] . '</div><br />';
    }
    if (empty($plans)) {
        echo '<div class="sai_notice"><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . $l['no_plan'] . '</div><br />';
    } else {
        echo '<table border="0" cellpadding="5" cellspacing="1" width="95%" class="sai_altrowstable" align="center">
<tr>
	<th>' . $l['planname'] . '</th>
	<th>' . $l['options'] . '&nbsp;<input type="checkbox" onclick="check(document.getElementsByName(\'insids[]\'), this);" /></th>
</tr>';
        $i = 1;
        // Sort the plans alphabetically
        ksort($plans);
        foreach ($plans as $k => $v) {
            // Show name
            $v['show_name'] = get_filename($v['name']);
            echo '<tr class="' . ($i % 2 == 0 ? "sai_evenrowcolor" : "sai_oddrowcolor") . '">		
	<td width="80%">' . $v['show_name'] . '</td>
	<td><a href="' . $globals['ind'] . 'act=editplans&plan=' . $v['show_name'] . '"><img src="' . $theme['images'] . 'admin/editemail.gif" title= ' . $l['edit_plan'] . '/></a>&nbsp;
	<a href="' . $globals['ind'] . 'act=plans&delete=' . $v['show_name'] . '" onclick="return delconf();" title=' . $l['del_plan'] . '><img src="' . $theme['images'] . 'admin/remove.gif" /></a>&nbsp;<input type="checkbox" name="insids[]" id="' . $v['show_name'] . '" value="' . $v['show_name'] . '">
	</td>
</tr>';
            $i++;
        }
        echo '</table>
<br />
<center><a href="' . $globals['ind'] . 'act=addplans" style="text-decoration: none" ><input type="submit" class="sai_graybluebut" value="' . $l['addplan'] . '"></a></center><br />';
    }
    echo '' . (empty($globals['lictype']) ? '<div class="notebox">' . $l['feature_not_available'] . '</div>' : '') . '<br />
	<p align="right">
		' . $l['with_selected'] . ': 
		<select name="multi_options" id="multi_options">
			<option name="todo" id="todo" value="0">---</option>
			<option name="todo" id="todo" value="mult_rem">' . $l['del_plan'] . '</option>
		</select>
		<input type="button" value="' . $l['go'] . '" onclick="show_confirm()" class="sai_graybluebut">
		<br />
	</p>
	<div id="rem_div"></div>
	
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
insids = new Array();
removed = new Object();

function show_confirm(){
	
	insids = new Array();
	removed = new Object();
	
	if($_("multi_options").value != "mult_rem"){
		return false;
	}

	// Build the list of Installations to remove
	var field = document.getElementsByName(\'insids[]\');
		insids = new Array();
		var c = 0;
		for(i = 0; i < field.length; i++){
			if(field[i].checked == true){
				insids[c] = field[i].value;
				c++;
			}
		
	}
	//alert(insids);
	
	if(c == 0){
		alert("' . $l['no_sel_inst'] . '");
		return false;
	}
	
	var r = confirm("' . $l['del_insid'] . '");
	if(r != true){
		return false;
	}

	remove_by_id(insids[0], "", 0);
}

function remove_by_id(insid, re, oldinsid){

	removed[insid] = false;
	
	if(re.length > 0 && oldinsid > 0){
		if(re == "removed"){
			removed[insid] = true;
		}
	}
	
	nextinsid = 0;
	
	// Find the next INSTALLATION to remove
	for(i = 0; i < insids.length; i++){
		if(typeof(removed[insids[i]]) != "undefined"){
			continue;
		}
		nextinsid = insids[i];
		break;
	}

	// If there is something left to be removed
	if(insid != 0){
		try{	
			AJAX("' . $globals['index'] . 'act=plans&delete="+insid+"&ajax=1&random="+Math.random(), "remove_by_id(\'"+nextinsid+"\', re, \'"+insid+"\')");
			$_("rem_div").innerHTML = "<br /><br /><p align=\\"center\\"><img src=\\"' . $theme['images'] . 'ajax_remove.gif\\"> <br />' . $l['rem_backup_id'] . ' File: " +insid+ "<br /></p>";
			return true;
		}catch(e){
			return false;
		}
	}
	$_("rem_div").innerHTML = "";
	alert("' . $l['inst_remvd'] . '");
	location.reload(true);
	return true;
}


$(document).ready(function(){
	
	$(".sai_altrowstable tr").mouseover(function(){
		var old_class = $(this).attr("class");
		//alert(old_class);
		$(this).attr("class", "sai_tr_bgcolor");
		
		$(this).mouseout(function(){
			$(this).attr("class", old_class);
		});
	});
	
});

// ]]></script>';
    softfooter();
}
예제 #30
-1
function editdetail_theme()
{
    global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $edit, $settings;
    global $insid, $edited, $software, $soft, $scripts, $version_updated, $account_details_editable, $no_autoupgrade, $add_to_fileindex, $__settings, $default_fileindex;
    softheader($l['<title>']);
    echo '
	<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
	
	// show/hide backup options
	function show_backup(){
		try{
			if(auto_backup.value == 0){
				$("#auto_backup_rotation").prop("disabled", true);
			}else{
				$("#auto_backup_rotation").prop("disabled", false);
			}
			
		}catch(e){
			//
		}
		return true;
	};
	
	function toggle_advoptions(ele){
		//alert("#"+ele);
		
		if ($("#"+ele).is(":hidden")){
			$("#"+ele).slideDown("slow");
			$("#advoptions_toggle_plus").attr("src", "' . $theme['images'] . 'minus_new.gif");
		}
		else{
			$("#"+ele).slideUp("slow");
			$("#advoptions_toggle_plus").attr("src", "' . $theme['images'] . 'plus_new.gif");
		}
	}
	
	function plus_onmouseover(ele){
		$("#"+ele.id+"_plus").attr("src", "' . $theme['images'] . 'plus_hover.gif");
	}
	
	function plus_onmouseout(ele){
		$("#"+ele.id+"_plus").attr("src", "' . $theme['images'] . 'plus.gif");
	}
	
	$(document).ready(function() {
		$("#editfiles tr").click(function(event) {
			if (event.target.type !== "checkbox") {
			  $(":checkbox", this).trigger("click");
			}
		});
	});
	
	' . (!empty($_POST) ? '' : 'addonload(\'show_backup();\');') . '
	
	// ]]></script>';
    $width_size = 65;
    if (!empty($softpanel->leftpanel_resize)) {
        $width_size = 40;
    }
    if (!empty($edited)) {
        echo '
		<div class="bg"><br />
			<div class="alert alert-warning"><center>' . $l['details_edited'] . '</center></div><br /><br />
			<center><b><a href="' . script_link($soft) . '&highlight=' . $insid . '&postact=edit" class="sai_head">' . $l['return'] . '</a></b></center><br />
		</div><!--end of bg-->';
    } else {
        echo '
		<form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="" class="form-horizontal">
			<div class="bg"><br />			
				<div class="row sai_main_head" style="width:100%;" align="center">
					<div class="col-sm-5 col-xs-4" style="padding:0 10px 0 0; text-align:right;">
						<i class="fa sai-projectman fa-2x" style="color:#00A0D2;"></i>
					</div>
					<div class="col-sm-7 col-xs-8" style="padding-top:10px; padding-left:0; text-align:left;">' . $l['edit_ins'] . '</div>
				</div><br />';
        error_handle($error, '100%');
        if (!empty($version_updated)) {
            echo '<div class="alert alert-warning" align="center"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>' . $l['version_edited'] . '</div>';
        }
        echo !empty($GLOBALS['alreadyupdated']) ? '
					<form accept-charset="' . $globals['charset'] . '" method="post" name="uprec" id="uprec" action="">
					<br />
						<center class="alert alert-warning">
							<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
							<a href="' . $globals['index'] . 'act=editdetail&insid=' . $insid . '&updateversion=1" style="text-decoration:none;"><img src="' . $theme['images'] . 'notice.gif" /> &nbsp; ' . lang_vars($l['alreadyupdated'], array($GLOBALS['alreadyupdated'], $user['ins'][$insid]['ver'])) . '</a>
						</center>
					</form>' : '';
        echo '
				<div style="padding: 0 25px;">
					<div class="sai_sub_head">' . $l['ins_details'] . '</div><hr>';
        if (empty($globals['hide_directory_url'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_dir" class="sai_head">' . $l['edit_dir'] . '</label><br />
							</div>	
							<div class="col-sm-7">
								<input type="text" name="edit_dir" id="edit_dir" class="form-control" value="' . POSTval('edit_dir', $user['ins'][$insid]['softpath']) . '" size="' . $width_size . '" />
							</div>	
						</div><br />
						
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_url" class="sai_head">' . $l['edit_url'] . '</label><br />
							</div>	
							<div class="col-sm-7">	
								<input type="text" name="edit_url" id="edit_url" class="form-control" value="' . POSTval('edit_url', $user['ins'][$insid]['softurl']) . '" size="' . $width_size . '" />
							</div>	
						</div><br />
					';
        }
        // Web directory @since 3.5
        if (!empty($user['ins'][$insid]['wwwdir'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_wwwdir" class="sai_head">' . $l['edit_wwwdir'] . '</label><br />
							</div>
							<div class="col-sm-7"> 
								<input type="text" name="edit_wwwdir" id="edit_wwwdir" class="form-control" value="' . POSTval('edit_wwwdir', $user['ins'][$insid]['wwwdir']) . '" size="' . $width_size . '" />
							</div>	
						</div><br />
					';
        }
        // Web directory URL @since 3.5
        if (!empty($user['ins'][$insid]['wwwurl'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_wwwurl" class="sai_head">' . $l['edit_wwwurl'] . '</label><br />
							</div>
							<div class="col-sm-7">
								<input type="text" name="edit_wwwurl" id="edit_wwwurl" class="form-control" value="' . POSTval('edit_wwwurl', $user['ins'][$insid]['wwwurl']) . '" size="' . $width_size . '" />
							</div>	
						</div><br />
					';
        }
        // Data directory ?
        if (!empty($user['ins'][$insid]['softdatadir'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_datadir" class="sai_head">' . $l['edit_datadir'] . '</label><br />
							</div>
							<div class="col-sm-7">
								<input type="text" name="edit_datadir" id="edit_datadir" class="form-control" value="' . POSTval('edit_datadir', $user['ins'][$insid]['softdatadir']) . '" size="' . $width_size . '" />
							</div>	
						</div><br />
					';
        }
        if (!empty($user['ins'][$insid]['softdb'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_db" class="sai_head">' . $l['edit_db'] . '</label><br />
							</div>
							<div class="col-sm-7">
								<input type="text" name="edit_dbname" id="edit_db" class="form-control" value="' . POSTval('edit_dbname', $user['ins'][$insid]['softdb']) . '" size="' . $width_size . '" />
							</div>					
						</div><br />
					';
        }
        if (!empty($user['ins'][$insid]['softdbuser'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_dbuser" class="sai_head">' . $l['edit_dbuser'] . '</label><br />
							</div>
							<div class="col-sm-7">
								<input type="text" name="edit_dbuser" id="edit_dbuser" class="form-control" value="' . POSTval('edit_dbuser', $user['ins'][$insid]['softdbuser']) . '" size="' . $width_size . '" />
							</div>
						</div><br />
					';
        }
        if (!empty($user['ins'][$insid]['display_softdbpass'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_dbpass" class="sai_head">' . $l['edit_dbpass'] . '</label><br />
							</div>
							<div class="col-sm-7">
								<input type="text" name="edit_dbpass" id="edit_dbpass" class="form-control" value="' . aPOSTval('edit_dbpass', $user['ins'][$insid]['display_softdbpass']) . '" size="' . $width_size . '" />
							</div>						
						</div><br />
					';
        }
        if (!empty($user['ins'][$insid]['softdbhost'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="edit_dbhost" class="sai_head">' . $l['edit_dbhost'] . '</label><br />
							</div>
							<div class="col-sm-7">
								<input type="text" name="edit_dbhost" class="form-control" id="edit_dbhost" value="' . aPOSTval('edit_dbhost', $user['ins'][$insid]['softdbhost']) . '" size="' . $width_size . '" />
							</div>	
						</div><br />
					';
        }
        echo '
					<div class="row">
						<div class="col-sm-5">
							<label for="disable_notify_update" class="sai_head">' . $l['disable_notify_update'] . '</label><br />
							<span class="sai_exp">' . $l['exp_disable_notify_update'] . '</span>
						</div>
						<div class="col-xs-6">
							<input type="checkbox" name="disable_notify_update" id="disable_notify_update" ' . POSTchecked('disable_notify_update', $user['ins'][$insid]['disable_notify_update']) . ' />
						</div>	
					</div><br />';
        if (!empty($scripts[$soft]['auto_upgrade']) && empty($no_autoupgrade)) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="eu_auto_upgrade" class="sai_head">' . $l['eu_auto_upgrade'] . '</label><br />
								<span class="sai_exp">' . $l['exp_eu_auto_upgrade'] . '</span>
							</div>
							<div class="col-sm-7">
								<input type="checkbox"  name="eu_auto_upgrade" id="eu_auto_upgrade" ' . POSTchecked('eu_auto_upgrade', $user['ins'][$insid]['eu_auto_upgrade']) . ' />
							</div>
						</div><br />
					';
        }
        if (empty($globals['off_upgrade_plugins']) && !empty($software['update_plugins'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="auto_upgrade_plugins" class="sai_head">' . lang_vars($l['auto_upgrade_plugins'], array($software['name'])) . '</label><br />
								<span class="sai_exp">' . lang_vars($l['exp_auto_upgrade_plugins'], array($software['name'])) . '</span>	
							</div>
							<div class="col-sm-7">
								<input type="checkbox" name="auto_upgrade_plugins" id="auto_upgrade_plugins" id="auto_upgrade_plugins" ' . POSTchecked('auto_upgrade_plugins', $user['ins'][$insid]['auto_upgrade_plugins']) . ' />
							</div>	
						</div><br />
					';
        }
        if (empty($globals['off_upgrade_themes']) && !empty($software['update_themes'])) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="auto_upgrade_themes" class="sai_head">' . lang_vars($l['auto_upgrade_themes'], array($software['name'])) . '</label><br />
								<span class="sai_exp">' . lang_vars($l['exp_auto_upgrade_themes'], array($software['name'])) . '</span>
							</div>
							<div class="col-sm-7">
								<input type="checkbox" name="auto_upgrade_themes" id="auto_upgrade_themes" ' . POSTchecked('auto_upgrade_themes', $user['ins'][$insid]['auto_upgrade_themes']) . ' />	
							</div>	
						</div><br />
					';
        }
        if (empty($globals['disable_backup_restore']) && empty($globals['disable_auto_backup']) && !aefer()) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="auto_backup" class="sai_head">' . $l['auto_backup'] . '</label><br />
								<span class="sai_exp">' . $l['exp_auto_backup'] . '</span>	
							</div>
							<div class="col-sm-7">
								<select name="auto_backup" class="form-control" id="auto_backup" onchange="show_backup();">
								<option value="0" ' . POSTselect('auto_backup', '0', empty($user['ins'][$insid]['auto_backup']) ? '1' : '0') . '>' . $l['no_backup'] . '</option>' . (empty($globals['disable_auto_backup_daily']) ? '<option value="daily" ' . POSTselect('auto_backup', 'daily', $user['ins'][$insid]['auto_backup'] == 'daily' ? '1' : '0') . '>' . $l['daily'] . '</option>' : '') . (empty($globals['disable_auto_backup_weekly']) ? '<option value="weekly" ' . POSTselect('auto_backup', 'weekly', $user['ins'][$insid]['auto_backup'] == 'weekly' ? '1' : '0') . '>' . $l['weekly'] . '</option>' : '') . (empty($globals['disable_auto_backup_monthly']) ? '<option value="monthly" ' . POSTselect('auto_backup', 'monthly', $user['ins'][$insid]['auto_backup'] == 'monthly' ? '1' : '0') . '>' . $l['monthly'] . '</option>' : '') . '					
								</select>					
							</div>
						</div><br />
					';
        }
        echo '
					<div class="row">
						<div class="col-sm-5">
							<label for="auto_backup_rotation" class="sai_head">' . $l['auto_backup_rotation'] . '</label><br />
							<span class="sai_exp">' . $l['exp_auto_backup_rotation'] . '</span>
						</div>
						<div class="col-sm-7">
							<select name="auto_backup_rotation" class="form-control" id="auto_backup_rotation">';
        for ($i = 0; $i <= 10; $i++) {
            // Do we have a limit from admin ?
            if (!empty($globals['auto_backup_limit']) && ($i > $globals['auto_backup_limit'] || $i == 0) || !empty($globals['max_backups']) && ($i > $globals['max_backups'] || $i == 0)) {
                continue;
            }
            echo '<option value="' . $i . '" ' . POSTselect('auto_backup_rotation', $i, !empty($user['ins'][$insid]['auto_backup_rotation']) && $user['ins'][$insid]['auto_backup_rotation'] == $i ? '1' : empty($user['ins'][$insid]['auto_backup_rotation']) && $i == 4 ? '1' : '0') . '>' . (empty($i) ? $l['unlimited'] : $i) . '</option>';
        }
        echo '</select>		
						</div>			
					</div><br />';
        if (!empty($add_to_fileindex)) {
            echo '
						<div class="row">
							<div class="col-sm-5">
								<label for="advoptions_toggle" class="sai_head">' . $l['select_files'] . '</label><br />
								<span class="sai_exp">' . $l['select_files_exp'] . '</span><br />
							</div>
							<div class="col-sm-7">
								<div id="advoptions_toggle" onclick="toggle_advoptions(\'selectfile\');" class="sai_head" style="background: none; cursor:pointer;"><img id="advoptions_toggle_plus" src="' . $theme['images'] . 'plus_new.gif" /> &nbsp; ' . $l['select_files_list'] . '</div>
								<div id="selectfile" style="display:none">
									<table class="table table-hover">
										<thead style="background:#EFEFEF;" class="sai_head2">
											<tr>
												<th width="5%"><input type="checkbox" id="check_all_edit" name="check_all_edit"></th>
												<th colspan="2"><b>' . $l['check_all_edit'] . '</b></th>
											</tr>
										</thead>';
            foreach ($add_to_fileindex as $ck => $cv) {
                if (in_array($cv['name'], $default_fileindex)) {
                    continue;
                }
                echo '<tr>
													<td><input type="checkbox" name="add_to_fileindex[]" class="soft_filelist" value="' . $cv['name'] . '" ' . POSTmulticheck('add_to_fileindex', $cv['name'], $__settings['fileindex']) . ' /></td>
													<td width="5%"><img src="' . $theme['images'] . '' . (!empty($cv['dir']) ? 'dir.png' : 'file.png') . '"></td>
													<td>' . $cv['name'] . '</td>
												</tr>';
                $i++;
            }
            echo '
									</table>
								</div>		
							</div>	
						</div><br />	
						
						<div class="row">
							<div class="col-sm-5">
								<label for="select_files_backup" class="sai_head">' . $l['select_files_backup'] . '</label><br />
								<span class="sai_exp">' . $l['select_files_backup_exp'] . '</span>
							</div>
							<div class="col-sm-7">
								<select name="select_files_backup" class="form-control" id="select_files_backup">
									<option value="0" ' . POSTselect('select_files_backup', '0', empty($user['ins'][$insid]['select_files_backup']) ? '1' : '0') . '>' . $l['no'] . '</option>
									<option value="1" ' . POSTselect('select_files_backup', '1', !empty($user['ins'][$insid]['select_files_backup']) ? '1' : '0') . '>' . $l['yes'] . '</option>
								</select>				
							</div>			
						</div>
						<br />';
        }
        echo '
				</div>';
        if (!empty($settings)) {
            echo '
					<div class="bg">';
            foreach ($settings as $group => $sets) {
                if ($group == 'hidden' || empty($sets)) {
                    continue;
                }
                echo '
							<div class="sai_sub_head">' . $group . '</div><hr>';
                foreach ($sets as $sk => $sv) {
                    if ($sk == 'admin_pass') {
                        $exp_class = 'sai_exp2';
                    } else {
                        $exp_class = 'sai_exp';
                    }
                    echo '
								<div class="row">
									<div class="col-sm-5">
										<label for=' . $sk . ' class="sai_head">' . $sv['head'] . '</label>
										' . (empty($sv['exp']) ? '' : '<br /><span class="' . $exp_class . '">' . $sv['exp'] . '</span>') . '
									</div>';
                    //Adding class to input
                    if (preg_match('/type="text"/is', $sv['tag'])) {
                        $sv['tag'] = preg_replace('/>/is', 'class="form-control">', $sv['tag']);
                    }
                    echo '
									<div class="col-sm-7">' . $sv['tag'] . '</div>
								</div><br />';
                }
            }
            //The Hidden groups
            if (!empty($settings['hidden'])) {
                foreach ($settings['hidden'] as $sk => $sv) {
                    echo $sv['tag'];
                }
            }
            echo '
					</div><br /><!--end of bg clss-->';
        }
        //End of if($settings)
        echo '
				<div class="bg info_block">
				
					<div class="sai_sub_head">' . $l['info'] . '</div><hr style="border-color: #D1D2D3;">
				
					<div class="row">
						<div class="col-sm-5 col-xs-5">
							<span class="sai_head">' . $l['ins_softname'] . '</span>
						</div>
						<div class="col-sm-6 col-xs-6">
							<span class="sai_info">' . $software['name'] . '</span>
						</div>
					</div><br />
					
					<div class="row">
						<div class="col-sm-5 col-xs-5">
							<span class="sai_head">' . $l['ins_num'] . '</span>
						</div>
						<div class="col-sm-6 col-xs-6">
							<span class="sai_info">' . $user['ins'][$insid]['insid'] . '</span>
						</div>
					</div><br />
					
					<div class="row">
						<div class="col-sm-5 col-xs-5">
							<span class="sai_head">' . $l['ins_ver'] . '</span>
						</div>
						<div class="col-sm-6 col-xs-6">
							<span class="sai_info">' . $user['ins'][$insid]['ver'] . '</span>
						</div>
					</div><br />
					
					<div class="row">
						<div class="col-sm-5 col-xs-5">
							<span class="sai_head">' . $l['ins_time'] . '</span>
						</div>
						<div class="col-sm-6 col-xs-6">
							<span class="sai_info">' . datify($user['ins'][$insid]['itime']) . '</span>
						</div>
					</div><br />
			
					<div class="row">
						<div class="col-sm-5 col-xs-5">
							<span class="sai_head">' . $l['ins_path'] . '</span>
						</div>
						<div class="col-sm-6 col-xs-6">
							<span class="sai_info">' . $user['ins'][$insid]['softpath'] . '</span>
						</div>
					</div><br />
					
					<div class="row">
						<div class="col-sm-5 col-xs-5">
							<span class="sai_head">' . $l['ins_url'] . '</span>
						</div>
						<div class="col-sm-6 col-xs-6">
							<span class="sai_info"><a href="' . $user['ins'][$insid]['softurl'] . '" target="_blank">' . $user['ins'][$insid]['softurl'] . '</a></span>
						</div>
					</div><br />';
        if (!empty($user['ins'][$insid]['admin_folder']) || !empty($scripts[$soft]['admin_url'])) {
            $adminurl = $user['ins'][$insid]['softurl'] . '/' . (!empty($user['ins'][$insid]['admin_folder']) ? $user['ins'][$insid]['admin_folder'] : $scripts[$soft]['admin_url']);
            echo '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_admin_url'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info"><a href="' . $adminurl . '" target="_blank">' . $adminurl . '</a></span>
							</div>
						</div><br />';
        }
        echo '
					
					' . (empty($user['ins'][$insid]['wwwdir']) ? '' : '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_wwwdir'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info">' . $user['ins'][$insid]['wwwdir'] . '</span>
							</div>			
						</div><br />
					') . '
					
					' . (empty($user['ins'][$insid]['wwwurl']) ? '' : '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_wwwurl'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info">' . $user['ins'][$insid]['wwwurl'] . '</span>
							</div>		
						</div><br />
					') . '
					
					' . (empty($user['ins'][$insid]['softdatadir']) ? '' : '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_datadir'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info">' . $user['ins'][$insid]['softdatadir'] . '</span>
							</div>
						</div><br />
					') . '	
					
					' . (empty($user['ins'][$insid]['softdb']) ? '' : '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_db'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info">' . $user['ins'][$insid]['softdb'] . '</span>
							</div>
						</div><br />
					') . '	
					
					' . (empty($user['ins'][$insid]['softdbuser']) ? '' : '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_dbuser'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info">' . $user['ins'][$insid]['softdbuser'] . '</span>
							</div>
						</div><br />
					') . '	
					
					' . (empty($user['ins'][$insid]['softdbhost']) ? '' : '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_dbhost'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info">' . $user['ins'][$insid]['softdbhost'] . '</span>
							</div>
						</div><br />
					') . '	
					
					' . (empty($user['ins'][$insid]['cron_command']) ? '' : '
						<div class="row">
							<div class="col-sm-5 col-xs-5">
								<span class="sai_head">' . $l['ins_cron_command'] . '</span>
							</div>
							<div class="col-sm-6 col-xs-6">
								<span class="sai_info">' . base64_decode($user['ins'][$insid]['cron_command']) . '</span>
							</div>
						</div><br />
					
					') . '	
				</div><!--end of bg class-->
				
				<br /><br />
				<p align="center">
					<input type="hidden" name="editins" id="editins" value="' . $l['editins'] . '" />
					<input type="submit" name="softsubmitbut" class="flat-butt" id="softsubmitbut" value="' . $l['editins'] . '"  />
				</p><br /><br />
				<center><b><a href="' . script_link($soft) . '" class="sai_head">' . $l['return'] . '</a></b></center><br /><br />					
			</div><!--end of bg class-->
		</form><br /><br />
		
		<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
			$(document).ready(function(){
			
				$("#check_all_edit").on("click", function(event){
					if(this.checked == true){
						$(".soft_filelist").prop("checked", true);
					}else{
						$(".soft_filelist").prop("checked", false);
					}
				});
			
				$(".sai_altrowstable tr").mouseover(function(){
					var old_class = $(this).attr("class");
					//alert(old_class);
					$(this).attr("class", "sai_tr_bgcolor");
					
					$(this).mouseout(function(){
						$(this).attr("class", old_class);
					});
				});
				
			});
		// ]]></script>';
    }
    softfooter();
}