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(); }
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 »</a><br /><br /> <a href="javascript:void(0);" id="move_left">« 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" /> <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(); }
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"> ' . $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"/> <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"/> <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"/> <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"/> <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> <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 & Canada)</option> <option value="-7" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-7' ? 'selected="selected"' : ($globals['timezone'] == -7 ? 'selected="selected"' : '')) . ' >(GMT -7:00) Mountain Time (US & Canada)</option> <option value="-6" ' . (isset($_POST['timezone']) && $_POST['timezone'] == '-6' ? 'selected="selected"' : ($globals['timezone'] == -6 ? 'selected="selected"' : '')) . ' >(GMT -6:00) Central Time (US & 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 & 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> <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)"/> 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(); }
function email_theme() { global $theme, $globals, $user, $l, $langs, $skins, $error, $saved; softheader($l['<title>']); echo '<div class="sai_heading" align="center"> ' . $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(); }
function add_cs_theme() { global $user, $globals, $scripts, $iscripts, $l, $theme, $error, $saved, $report, $softid, $cs, $categories, $added; softheader($l['<title>']); error_handle($error); if (!empty($added)) { echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['cs_added'] . '</div><br />'; } echo '<form accept-charset="' . $globals['charset'] . '" name="addcs" method="post" action=""> <br /> <div class="sai_heading" align="center">' . $l['add_cust_scr'] . '</div> <img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /> <table width="95%" cellpadding="7" cellspacing="1" class="sai_reviewform" style="margin:0px auto;" border="0"> <tr> <td width="50%"><br /> <span class="sai_head">' . $l['csname'] . '</span><br /> <span class="sai_exp2">' . $l['csname_exp'] . '</span> </td> <td valign="top"><br /> <input type="text" name="csname" size="30" value="' . aPOSTval('csname', '') . '" /> </td> </tr> <tr> <td> <span class="sai_head">' . $l['softname'] . '</span><br /> <span class="sai_exp2">' . $l['softname_exp'] . '</span> </td> <td valign="top"> <input type="text" name="softname" size="30" value="' . aPOSTval('softname', '') . '" /> </td> </tr> <tr> <td> <span class="sai_head">' . $l['desc'] . '</span><br /> <span class="sai_exp2">' . $l['desc_exp'] . '</span> </td> <td valign="top"> <input type="text" name="desc" size="40" value="' . aPOSTval('desc', '') . '" /> </td> </tr> <tr> <td> <span class="sai_head">' . $l['ver'] . '</span><br /> <span class="sai_exp2">' . $l['ver_exp'] . '</span> </td> <td valign="top"> <input type="text" name="ver" size="30" value="' . aPOSTval('ver', '') . '" /> </td> </tr> <tr> <td> <span class="sai_head">' . $l['cat'] . '</span><br /> <span class="sai_exp2">' . $l['cat_exp'] . '</span> </td> <td valign="top"> <select name="cat">'; foreach ($categories as $k => $v) { echo '<option value="' . $k . '" ' . (optPOST('cat') == $k ? 'selected="selected"' : '') . '> ' . $l['cat_php_' . $k] . ' </option>'; } echo '</select> </td> </tr> <tr> <td colspan="3"> <p align="center"><input type="submit" name="add_submit" value="' . $l['add_submit'] . '" class="sai_graybluebut" /></p> </td> </tr> </table> </form>'; softfooter(); }
function proxy_theme() { global $theme, $globals, $user, $l, $langs, $skins, $error, $saved; softheader($l['<title>']); echo '<div class="sai_heading" align="center"> ' . $l['proxyhead'] . '</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="editeproxysettings" method="post" action=""> <table width="95%" cellpadding="10" cellspacing="1" class="sai_reviewform" style="margin:0px auto;" border="0"> <tr> <td width="10%"> </td> </tr> <tr> <td width="10%"> </td> <td width="45%"> <span class="sai_head">' . $l['proxy_check'] . '</span> </td> <td> <input type="checkbox" name="proxy_check" ' . POSTchecked('proxy_check', $globals['proxy_check']) . ' /> </td> </tr> <tr> <td width="10%"> </td> <td width="45%"> <span class="sai_head">' . $l['proxy_ip'] . '</span> </td> <td valign="top"> <input type="text" name="proxy_ip" size="30" value="' . aPOSTval('proxy_ip', $globals['proxy_ip']) . '" /> </td> </tr> <tr> <td> </td> <td> <span class="sai_head">' . $l['proxy_port'] . '</span> </td> <td valign="top"> <input type="text" name="proxy_port" size="30" value="' . aPOSTval('proxy_port', $globals['proxy_port']) . '" /> </td> </tr> <tr> <td> </td> <td> <span class="sai_head">' . $l['proxy_user'] . '</span> </td> <td valign="top"> <input type="text" name="proxy_user" size="30" value="' . aPOSTval('proxy_user', $globals['proxy_user']) . '" /> </td> </tr> <tr> <td> </td> <td> <span class="sai_head">' . $l['proxy_pass'] . '</span> </td> <td valign="top"> <input type="password" name="proxy_pass" size="30" value="' . aPOSTval('proxy_pass', $globals['proxy_pass']) . '" /> </td> </tr> <tr> <td colspan="4"> <p align="center"><input type="submit" name="editproxysettings" value="' . $l['edit_settings'] . '" class="sai_graybluebut"/></p> </td> </tr> </table><br /><br /> <div class="notebox" style="width:95%;"> <font class="bboxtxt">' . $l['tcp_note'] . '</font> </div> </form>'; softfooter(); }
function settings_theme() { global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error; global $installations, $langs, $saved; softheader($l['<title>']); echo ' <link rel="stylesheet" type="text/css" href="' . $theme['url'] . '/spectrum.css?' . $GLOBALS['globals']['version'] . '" /> <form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="" id="editsettings" class="form-horizontal"> <div class="bg"><br /> <div class="row sai_main_head" style="width:100%;" align="center"> <div class="col-sm-6 col-xs-6" style="padding:0px 10px 0 0; text-align:right;"> <i class="fa sai-settings fa-2x" style="color:#00A0D2;"></i> </div> <div class="col-sm-6 col-xs-6" style="padding-top:5px; padding-left:0; text-align:left;">' . $l['settings'] . '</div> </div><hr>'; error_handle($error, '100%'); if (!empty($saved)) { echo '<div class="alert alert-success" style="padding:10px;font-size:15px;"><center><img src="' . $theme['images'] . 'message_success.gif"> ' . $l['settings_saved'] . '</div></center>'; } echo ' <div class="row"> <div class="col-sm-5"> <label for="choose_lang" class="sai_head">' . $l['choose_lang'] . '</label> <span class="sai_exp">' . $l['exp_lang'] . '</span> </div> <div class="col-sm-7"> <select name="language" id="choose_lang" class="form-control">'; foreach ($langs as $k => $v) { echo '<option value="' . $v . '" ' . (empty($_POST['language']) && (empty($user['language']) ? $globals['language'] : $user['language']) == $v ? 'selected="selected"' : (trim($_POST['language']) == $v ? 'selected="selected"' : '')) . '>' . _ucfirst($v) . '</option>'; } echo '</select> </div> </div><br /><!---row end---> <div class="row"> <div class="col-sm-5"> <label for="timezone" class="sai_head">' . $l['timezone'] . '</label> </div> <div class="col-sm-7"> <select name="timezone" id="timezone" class="form-control"> <option value="-12" ' . ($user['timezone'] == -12 ? 'selected="selected"' : '') . '>(GMT -12:00) Eniwetok, Kwajalein</option> <option value="-11" ' . ($user['timezone'] == -11 ? 'selected="selected"' : '') . '>(GMT -11:00) Midway Island, Samoa</option> <option value="-10" ' . ($user['timezone'] == -10 ? 'selected="selected"' : '') . '>(GMT -10:00) Hawaii</option> <option value="-9" ' . ($user['timezone'] == -9 ? 'selected="selected"' : '') . '>(GMT -9:00) Alaska</option> <option value="-8" ' . ($user['timezone'] == -8 ? 'selected="selected"' : '') . '>(GMT -8:00) Pacific Time (US & Canada)</option> <option value="-7" ' . ($user['timezone'] == -7 ? 'selected="selected"' : '') . '>(GMT -7:00) Mountain Time (US & Canada)</option> <option value="-6" ' . ($user['timezone'] == -6 ? 'selected="selected"' : '') . '>(GMT -6:00) Central Time (US & Canada), Mexico City</option> <option value="-5" ' . ($user['timezone'] == -5 ? 'selected="selected"' : '') . '>(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima</option> <option value="-4" ' . ($user['timezone'] == -4 ? 'selected="selected"' : '') . '>(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option> <option value="-3.5" ' . ($user['timezone'] == -3.5 ? 'selected="selected"' : '') . '>(GMT -3:30) Newfoundland</option> <option value="-3" ' . ($user['timezone'] == -3 ? 'selected="selected"' : '') . '>(GMT -3:00) Brazil, Buenos Aires, Georgetown</option> <option value="-2" ' . ($user['timezone'] == -2 ? 'selected="selected"' : '') . '>(GMT -2:00) Mid-Atlantic</option> <option value="-1" ' . ($user['timezone'] == -1 ? 'selected="selected"' : '') . '>(GMT -1:00 hour) Azores, Cape Verde Islands</option> <option value="+0" ' . ($user['timezone'] == '+0' ? 'selected="selected"' : '') . '>(GMT) Western Europe Time, London, Lisbon, Casablanca</option> <option value="1" ' . ($user['timezone'] == 1 ? 'selected="selected"' : '') . '>(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option> <option value="2" ' . ($user['timezone'] == 2 ? 'selected="selected"' : '') . '>(GMT +2:00) Kaliningrad, South Africa</option> <option value="3" ' . ($user['timezone'] == 3 ? 'selected="selected"' : '') . '>(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option> <option value="3.5" ' . ($user['timezone'] == 3.5 ? 'selected="selected"' : '') . '>(GMT +3:30) Tehran</option> <option value="4" ' . ($user['timezone'] == 4 ? 'selected="selected"' : '') . '>(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option> <option value="4.5" ' . ($user['timezone'] == 4.5 ? 'selected="selected"' : '') . '>(GMT +4:30) Kabul</option> <option value="5" ' . ($user['timezone'] == 5 ? 'selected="selected"' : '') . '>(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option> <option value="5.5" ' . ($user['timezone'] == 5.5 ? 'selected="selected"' : '') . '>(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option> <option value="6" ' . ($user['timezone'] == 6 ? 'selected="selected"' : '') . '>(GMT +6:00) Almaty, Dhaka, Colombo</option> <option value="6.5" ' . ($user['timezone'] == 6.5 ? 'selected="selected"' : '') . '>(GMT +6:30) Yangon, Myanmar</option> <option value="7" ' . ($user['timezone'] == 7 ? 'selected="selected"' : '') . '>(GMT +7:00) Bangkok, Hanoi, Jakarta</option> <option value="8" ' . ($user['timezone'] == 8 ? 'selected="selected"' : '') . '>(GMT +8:00) Beijing, Perth, Singapore, Hong Kong, Taiwan</option> <option value="9" ' . ($user['timezone'] == 9 ? 'selected="selected"' : '') . '>(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option> <option value="9.5" ' . ($user['timezone'] == 9.5 ? 'selected="selected"' : '') . '>(GMT +9:30) Adelaide, Darwin</option> <option value="10" ' . ($user['timezone'] == 10 ? 'selected="selected"' : '') . '>(GMT +10:00) Eastern Australia, Guam, Vladivostok</option> <option value="11" ' . ($user['timezone'] == 11 ? 'selected="selected"' : '') . '>(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option> <option value="12" ' . ($user['timezone'] == 12 ? 'selected="selected"' : '') . '>(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option> <option value="0" ' . (empty($user['timezone']) ? 'selected="selected"' : '') . '>' . $l['default_timezone'] . '</option> </select> </div> </div><br /> <div class="row"> <div class="col-sm-5"> <label class="sai_head">' . $l['arrange_domain'] . '</label> <span class="sai_exp">' . $l['exp_arrange_domain'] . '</span> </div> <div class="col-sm-7"> <input type="checkbox" name="arrange_domain" id="arrange_domain" ' . POSTchecked('arrange_domain', $user['arrange_domain']) . ' /> </div> </div><br />'; if ($theme['this_theme'] == 'modern' && empty($globals['off_customize_theme'])) { echo ' <div class="row"> <div class="col-sm-5"> <label class="sai_head">' . $l['use_custom_color'] . '</label> <span class="sai_exp">' . $l['exp_use_custom_color'] . '</span> </div> <div class="col-sm-7"> <input type="checkbox" name="user_defined_color" id="user_defined_color" ' . POSTchecked('user_defined_color', $user['user_defined_color']) . ' onchange="change_div(this.id);" /> </div> </div><br /> <div id="show_color_option" ' . (!empty($user['user_defined_color']) ? '' : 'style="display:none;"') . '> <div class="row"> <div class="col-sm-5"> <label class="sai_head">' . $l['left_panel_bg'] . '</label> <span class="sai_exp">' . $l['left_panel_bg_exp'] . '</span> </div> <div class="col-sm-7"> <input type="color" name="color" id="left_panel_bg" class="changecolor"/> <input type="hidden" name="left_panel_bg" value="' . aPOSTval('left_panel_bg', $user['color_theme']['left_panel_bg']) . '" id="hidden_left_panel_bg"> <input type="color" name="color" id="left_panel_cathead_hover" class="changecolor" /> <input type="hidden" name="left_panel_cathead_hover" value="' . aPOSTval('left_panel_cathead_hover', $user['color_theme']['left_panel_cathead_hover']) . '" id="hidden_left_panel_cathead_hover"> </div> </div><br /> <div class="row"> <div class="col-sm-5"> <label class="sai_head">' . $l['text_color'] . '</label> <span class="sai_exp">' . $l['text_color_exp'] . '</span> </div> <div class="col-sm-7"> <input type="color" name="color" id="left_panel_cathead" class="changecolor"/> <input type="hidden" name="left_panel_cathead" value="' . aPOSTval('left_panel_cathead', $user['color_theme']['left_panel_cathead']) . '" id="hidden_left_panel_cathead"> <input type="color" name="color" id="left_panel_scriptname" class="changecolor"/> <input type="hidden" name="left_panel_scriptname" value="' . aPOSTval('left_panel_scriptname', $user['color_theme']['left_panel_scriptname']) . '" id="hidden_left_panel_scriptname"> </div> </div><br /> </div></br>'; } echo ' <p align="center"> <input type="submit" class="flat-butt" name="editsettings" value="' . $l['edit_settings'] . '" /><br /><img id="waiting" src="' . $theme['images'] . 'progress.gif" style="display:none"> </p><br /> </div><br /><!--end of bg class--> </form>'; if ($theme['this_theme'] == 'modern') { echo ' <script src="' . $theme['url'] . '/js/spectrum.js" type="text/javascript"></script> <script type="text/javascript"> function change_div(id){ //alert($_(id).checked); if($_(id).checked == true){ $("#show_color_option").show(); }else{ $("#show_color_option").hide(); } } function reset_theme(){ $("#user_defined_color").val("0"); $("#editsettings").submit(); } 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 of user $("#user_defined_color").val("1"); // For changing text colors of category heading if(id == "left_panel_cathead"){ $(".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_left_panel_cathead").val(hexColor); } // For changing text colors of category heading hover color if(id == "left_panel_cathead_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_left_panel_cathead_hover").val(hexColor); }catch(e){ // do nothing } } // For changing text colors of script names if(id == "left_panel_scriptname"){ $(".softlinks li a").css("color", hexColor); // set the hidden value so that it can be saved $("#hidden_left_panel_scriptname").val(hexColor); } // For changing background color if(id == "left_panel_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_left_panel_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)"] ]; '; foreach ($user['color_theme'] as $kc => $vc) { echo '$(function() { $("#' . $kc . '").spectrum({ allowEmpty:true, color : "' . $vc . '", 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 }); });'; } echo ' </script>'; } // END OF "if($theme['this_theme'] == 'modern'){" softfooter(); }
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">×</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">×</a> <a href="' . $globals['index'] . 'act=editdetail&insid=' . $insid . '&updateversion=1" style="text-decoration:none;"><img src="' . $theme['images'] . 'notice.gif" /> ' . 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" /> ' . $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(); }