function editini_theme() { global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $list, $done, $iapps, $filename, $apps, $phpversion; // For Updating Entire File if (optGET('ajaxphpini')) { // Error if (!empty($error)) { echo '0' . current($error); return false; } // Success if (!empty($done)) { echo '1' . $l['change_final_file']; return true; } } // On PHP Version Change if (optGET('ajaxdom')) { showconf(); return true; } softheader($l['<title>']); echo '<br /><center class="sai_tit"><img src="' . $theme['a_images'] . 'php_conf.gif" /> ' . $l['phpinihead'] . '</center><br /> <script language="javascript" type="text/javascript"><!-- // --><![CDATA[ $(document).ready(function(){ //For multiple version $("#phpversion").change(function(){ $("#changedom").css("display", ""); var version = $(this).val(); $.ajax({ type: "POST", url: window.location+"&ajaxdom=1&phpversion="+version, success: function(data){ $("#changedom").css("display", "none"); $("#dispconf").html(data); } }); }); }); // ]]></script> <table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" > <tr> <td width="35%"> <span class="sai_head">' . $l['version'] . '</span> </td> <td> <select class="input" name="phpversion" id="phpversion"> <option value="1_1" ' . POSTselect('phpversion', '1_1', 1) . '>' . $apps['1']['name'] . '</option> <option value="2_1" ' . POSTselect('phpversion', '2_1') . '>' . $apps['2']['name'] . '</option> <option value="45_1" ' . POSTselect('phpversion', '45_1') . '>' . $apps['45']['name'] . '</option> <option value="124_1" ' . POSTselect('phpversion', '124_1') . '>' . $apps['124']['name'] . '</option> </select> <img id="changedom" src="' . $theme['images'] . 'progress.gif" style="display:none" /> </td> </tr> </table> <div id="dispconf">'; showconf(); echo '</div>'; softfooter(); }
function php_ext_theme() { global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $list, $done, $apps, $ext_list, $iapps; // Make the AJAX CALL if (optGET('ajaxphpext')) { // Is there an Error ? if (!empty($error)) { echo '0' . current($error); return false; } // Success Message if (!empty($done)) { echo '1' . $l['success_msg']; return true; } } softheader($l['<title>']); echo '<br /><center class="sai_tit"><img src="' . $theme['a_images'] . 'php_ext.gif" /> ' . $l['php_ext_head'] . '</center><br /> <script language="javascript" type="text/javascript"><!-- // --><![CDATA[ $(document).ready(function(){ // For updating entire file $("#savephpext").click(function(){ $("#progress_img").css("display", ""); var extensions = []; ids = new Array("' . implode('", "', array_keys($ext_list['php_ext'])) . '"); for(x in ids){ if($_("extlist["+ids[x]+"]").checked){ extensions[x] = ids[x]; } } function isEmpty(str) { return (!str || 0 === str.length); } if(isEmpty(extensions)){ extensions = ["disableall"]; } $.ajax({ type: "POST", url: window.location+"&ajaxphpext=1&save_ext=1", data: "extensions="+extensions, // Checking for error success: function(data){ $("#progress_img").css("display", "none"); var result = data.substring(0,1); if(result == "1"){ var msg = data.substring(1); message_box.show_message( "Done ",msg,2); } if(result == "0"){ var msg = data.substring(1); message_box.show_message( "Error",msg,1); } }, error: function() { message_box.show_message("Error",\'' . $l['connect_error'] . '\',1); } }); return false; }); }); // ]]></script>'; if (empty($iapps['1_1']) && empty($iapps['2_1']) && empty($iapps['45_1']) && empty($iapps['124_1'])) { echo '<br /><br /> <center><span class="sai_tit">' . $l['no_php'] . '</span></center>'; } else { echo '<div id="dispconf">'; showconf(); echo '</div>'; } softfooter(); }
function extra_conf_theme() { global $user, $globals, $l, $theme, $softpanel, $iscripts, $error, $done, $domain_list, $file_list, $domain_name, $iapps, $w_list; // To update domains links if (optGET('ajaxdom')) { showconf(); return true; } // For delete if (optGET('ajaxdel')) { if (!empty($error)) { echo '0' . current($error); return false; } if (!empty($done)) { echo '1' . $l['delete']; showconf(); return true; } } softheader($l['<title>']); error_handle($error); if (!empty($done)) { echo '<div class="sai_success">' . $done . '</div>'; } echo '<center class="sai_tit"> <img src="' . $theme['a_images'] . 'extra_conf.gif" /> ' . $l['head'] . ' </center> <form accept-charset="' . $globals['charset'] . '" action="" method="post" name="mxentry" id="editform" enctype = "multipart/form-data" > <table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" > <tr> <td> <span class="sai_head">' . $l['domain'] . '</span><br /> </td> <td> <select class="input" name="selectdomain" id="selectdomain">'; foreach ($domain_list as $key => $value) { if ($domain_name == $key) { echo '<option value=' . $key . ' selected="selected" >' . $key . '</option>'; } else { echo '<option value=' . $key . '>' . $key . '</option>'; } } echo '</select> <img id="changedom" src="' . $theme['images'] . 'progress.gif" style="display:none"></td> </tr> <tr> <td> <span class="sai_head">' . $l['webserver'] . '</span><br /> </td> <td> <select class="input" name="selectweb" id="selectweb">'; foreach ($w_list as $key => $value) { echo '<option value=' . $key . '>' . $value . '</option>'; } echo '</select></td> </tr> <tr> <td> <span class="sai_head">' . $l['destination'] . '</span><br /> </td> <td> <input type="file" name="destination_upload" id="destination_upload" size="30" /> </td> </tr> <tr> <td colspan="2"> <p align="center"> <input type="hidden" name="create_record" value="1" /> <input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="create_record" class="sai_graybluebut" id="submitrec"/> <img id="createrec" src="' . $theme['images'] . 'progress.gif" style="display:none"> </p> </td> </tr> </table> </form> <center> </br></br> <span class="sai_head">' . $l['record_table'] . ' <span id="domain_file">' . $domain_name . '</span></span> <br /><br /><br /> </center> <div id="showrectab">'; showconf(); echo '</div> <script language="javascript" type="text/javascript"><!-- // --><![CDATA[ $(document).ready(function(){ $("#selectdomain").change(function(){ $("#changedom").css("display", ""); var domain = $(this).val(); $.ajax({ type: "POST", url: window.location+"&ajaxdom=1&domain_name="+domain, success: function(data){ $("#changedom").css("display", "none"); $("#showrectab").html(data); $("#domain_file").html(domain); } }); }); }); // ]]></script>'; softfooter(); }