Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
softaculous /
apps /
php-common /
themes /
enduser /
Delete
Unzip
Name
Size
Permission
Date
Action
multi_php_theme.php
3.8
KB
-rw-r--r--
2024-05-02 06:51
multiphp_ini_editor_theme.php
7.38
KB
-rw-r--r--
2024-05-02 06:51
pear_module_theme.php
5.57
KB
-rw-r--r--
2024-04-30 08:04
php_extension_theme.php
8.85
KB
-rw-r--r--
2025-04-22 03:44
php_pear_theme.php
9.51
KB
-rw-r--r--
2024-05-02 06:51
Save
Rename
<?php ////////////////////////////////////////////////////////////// //=========================================================== // WEBUZO CONTROL PANEL // Inspired by the DESIRE to be the BEST OF ALL // ---------------------------------------------------------- // Started by: Pulkit // Date: 10th Jan 2009 // Time: 21:00 hrs // Site: https://webuzo.com/ (WEBUZO) // ---------------------------------------------------------- // Please Read the Terms of Use at https://webuzo.com/terms // ---------------------------------------------------------- //=========================================================== // (c) Softaculous Ltd. //=========================================================== ////////////////////////////////////////////////////////////// if(!defined('SOFTACULOUS')){ die('Hacking Attempt'); } function phpc_php_extension_theme(){ global $theme, $globals, $user, $langs, $skins, $error, $saved, $list, $done, $apps, $ext_list, $iapps,$installed_php; echo ' <div class="card soft-card p-3 mb-4"> <div class="sai_main_head"> <img src="'.$theme['images'].'php_ext.png" class="me-1"/>'.__('PHP Extensions').' </div> </div> <div class="card soft-card p-4 col-12 mb-4">'; error_handle($error); if(empty($error)){ echo ' <div class="modal fade" id="modInstallation_modal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="modInstallation" aria-hidden="true"> <div class="modal-dialog modal-dialog-scrollable modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title text-break" id="modInstallation">'.__('Processing').' - <b> <span id="modName"></span></b> - <span id="modAction"></span></h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="text-center pearProcess"> <div class="spinner-border" style="width: 3rem; height: 3rem;" role="status"> <span class="visually-hidden">'.__('Loading...').'</span> </div> </div> <textarea class="form-control log" readonly="readonly" style="height:150px; width:100%; overflow:auto; resize: none;display:none" id="modIntallLog"> </textarea> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary" data-bs-dismiss="modal">'.__('Ok').'</button> </div> </div> </div> </div> <div class="section">'; $is_php_installed = group_iapp_ids('php'); if(empty($is_php_installed)){ echo ' <div class="sai_head text-center"> <h4>'.__('PHP is not installed on your server.').'</h4> </div>'; }else{ echo ' <div id="dispconf">'; $default_php = $globals['WU_DEFAULT_PHP']; if(!empty($default_php)){ $php = get_app_record($default_php); } echo ' <form accept-charset="'.$globals['charset'].'" name="php_extensions" method="post" action="" id="editphpext" onsubmit="return submitExtForm(this)"> <div class="row my-2"> <div class="col-12 col-lg-3"> <label class="sai_head">'.__('Select PHP Verison').'</label> </div> <div class="col-12 col-lg-7"> <select name="php_version" id="php_version" class="form-select"> '; $selected_php = !empty(optREQ('php')) ? optREQ('php') : $php.'_1'; foreach ($installed_php as $k => $v) { echo '<option value="'.$k.'" '.(($selected_php == $k) ? 'selected' : '').'>'.$v.'</option>'; } echo ' </select> </div> <div class="col-12 col-lg-2"> <button type="button" name="reset_ext" class="btn btn-danger" title="If clicked PHP extensions will reset to default." onclick="reset_extensions(this)">Reset Extensions</button> </div> </div> <div class="sai_sub_head text-center my-3">'.__('This page allows you to Enable Extensions for ').'<span id="d_phpversion">'.$apps[$iapps[$selected_php]['aid']]['name'].'</span></div> <div class="alert alert-warning mb-3"> <span>'.__('You can refer to the {$0}Custom Extension Docs{$1} to add custom Extensions in PHP. Admin enabled extension\'s, can not be disabled !', ['<a href="https://webuzo.com/docs/how-tos/custom-php-extensions/" target="_blank">', '</a>']).'</span> </div> <div class="table-responsive"> <table border="0" cellpadding="8" cellspacing="0" class="table webuzo-table td_font"> <thead> <tr> <th colspan="4" class="text-start">'.__('Extensions Enabled:').' <span id="enabled">'.$ext_list['enabled_count'].'</span> '.__('Disabled:').' <span id="disabled">'.$ext_list['disabled_count'].'</span> </th> <th colspan="4" class="text-end">'.__('Select All').' <input type="checkbox" id="check_all_ext"/> </th> </tr> </thead> <tbody id="ext_list">'; echo ' </tbody> </table> <br >'; // Admin Enabled extension echo ' <table border="0" cellpadding="8" cellspacing="0" class="table webuzo-table td_font"> <thead> <tr> <th colspan="8" class="text-start">Admin Enabled Extensions</th> </tr> </thead> <tbody id="admin_ext_list"> </table> </div> <div class="text-center mt-2"> <input type="submit" value="'.__('Save').'" name="save_ext" class="btn btn-primary" id="savephpext" /> </div> </form> </div>'; } } echo ' </div> <script language="javascript" type="text/javascript"> $(document).ready(function () { var data = {ext_list: '.json_encode($ext_list['php_ext']).', admin_ext_list: '.json_encode($ext_list['admin_enable_ext']).'}; create_ext_table(data); // Check/uncheck all checkboxes when #check_all_ext is toggled $("#check_all_ext").on("click", function () { if(this.checked === true){ $(".check_ext:not(:disabled)").prop("checked", true); }else{ $(".check_ext:not(:disabled)").prop("checked", false); } }); // Handle individual checkbox interactions $(".ext_box").on("click", function(e){ if(e.target === this){ var checkbox = $(this).find("input"); // Only toggle if the checkbox is not disabled if(!checkbox.prop("disabled")){ checkbox.prop("checked", !checkbox.prop("checked")); $(this).toggleClass("selected"); } }else{ var checkbox = $(this).find("input"); // Prevent toggling the .selected class for disabled checkboxes if (!checkbox.prop("disabled")) { $(this).toggleClass("selected"); } } }); }); $("#php_version").change(function(){ var jEle = $(this); var option = $(this).val(); if(!empty(option)){ window.location = "'.$globals['index'].'act='.$GLOBALS['act'].'&php="+option; } d = {php:option, ext_list:1, admin_ext_list:1}; submitit(d,{ handle:function(data, p){ $("#d_phpversion").html($("#php_version option:selected").text()); $("#enabled").text(data.enabled_count); $("#disabled").text(data.disabled_count); create_ext_table(data); } }); }); function submitExtForm(ele){ var d = {}; var extensions = []; $(".check_ext").each(function () { if ($(this).is(":checked")) { var ext = $(this).data("ext"); extensions.push(ext); } }); if(extensions.length === 0 ){ extensions = ["disableall"]; } var php = $("#php_version option:selected").val(); d.extensions = extensions.join(","); d.php = php; d.save = 1; submitit(d, {done_reload : window.location.href}); return false; } function reset_extensions(ele){ var jEle = $(ele); var d = {}; var a = show_message_r(l.warning, "'.__('Are you sure you want to reset the php Extensions to Admin preference(Admin disabled extension will get list here.) ?').'"); a.alert = "alert-warning"; a.confirm.push(function(){ var php = $("#php_version option:selected").val(); d.php = php; d.reset = 1; submitit(d, {done_reload : window.location.href}); }); show_message(a); } function generateTableRows(list, inputName, inputClass, isDisabled = false){ var tmphtml = "<tr>", counter = 0; $.each(list, function(key, value){ counter++; tmphtml += \'<td width="3%" class="ext_box" style="padding-top: 15px; position:relative">\'; tmphtml += \'<input type="checkbox" name="\'+ inputName + \'[\'+ key + \']" id="\'+ inputName + \'[\'+ key + \']" value="1" \' + (value != 1 ? "" : "checked") + \' data-ext="\'+ key + \'" class="\' + inputClass + \'" \' + (isDisabled ? "checked disabled" : "") + \'></td>\'; tmphtml += \'<td width="22%"><label for="\'+ inputName + \'[\'+ key + \']"><span class="sai_head">\'+ key + \'</span></label></td>\'; if (counter % 4 === 0) { tmphtml += "</tr><tr>"; } }); tmphtml += "</tr>"; return tmphtml; } function create_ext_table(data){ // Generate tables $("#ext_list").html(generateTableRows(data.ext_list, "extlist", "check_ext")); $("#admin_ext_list").html(generateTableRows(data.admin_ext_list, "admin_extlist", "admin_check_ext", true)); } </script>'; }