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 /
bind /
themes /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
add_dns_server_theme.php
3.8
KB
-rw-r--r--
2024-04-30 07:56
cluster_dns_zones_theme.php
7.49
KB
-rw-r--r--
2024-09-20 08:35
dns_cluster_theme.php
5.86
KB
-rw-r--r--
2024-04-30 07:56
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 dns_cluster_theme(){ global $theme, $globals, $user, $l, $langs, $skins, $error, $done, $dns_cluster_list, $servers, $dns_roles; error_handle($error); echo ' <div class="soft-smbox col-12 col-md-11 p-3 mx-auto"> <div class="sai_main_head"> <i class="fa fa-sitemap fa-lg me-2"></i>'.__('DNS Cluster').' <span class="search_btn float-end d-none"> <a type="button" class="float-end" data-bs-toggle="modal" data-bs-target="#dns_cluster_settings"><i class="fas fa-cogs"></i></a> </span> </div> </div> <div class="soft-smbox col-12 col-md-11 p-4 mx-auto mt-4"> <div class="modal fade" id="dns_cluster_settings" tabindex="-1" aria-labelledby="dns_soa" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="dns_soa_label">'.__('DNS Cluster Settings').'</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="col-12 mb-2"> '.__('<b>Failure threshold for cluster members:</b> Enter the number of DNSadmin commands that may fail before it disables an unresponsive cluster member. ').' <br> <input class="mb-2 mt-2" type="radio" name="threshold" '.($globals['dns_cluster_threshold'] == 10 ? 'checked' : '').' value="10"> '.__('10 (Default)').' <br> <input class="mb-3" type="radio" name="threshold" '.($globals['dns_cluster_threshold'] != 10 && $globals['dns_cluster_threshold'] != 'unlimited' ? 'checked' : '').' value="custom"> <input type="number" id="custom_value" value="'.($globals['dns_cluster_threshold'] != 10 && $globals['dns_cluster_threshold'] != 'unlimited' ? $globals['dns_cluster_threshold'] : '').'"><br> <input class="mb-2" type="radio" name="threshold" '.($globals['dns_cluster_threshold'] == 'unlimited' ? 'checked' : '').' value="unlimited"> '.__('Keep all cluster members online at all times.').'<br> <div class="mb-2 text-center"> <input type="submit" id="save_threshold" class="btn btn-primary" data-donereload=1 value="'.__('Save').'" /> </div> </div> </div> </div> </div> </div> <div class="row mb-4"> <div class="col-md-6 mb-1"> <form accept-charset="'.$globals['charset'].'" name="cluster_action" method="post" action="" class="form-horizontal" onsubmit="return submitit(this)" data-donereload=1> '.(!empty($globals['dns_cluster_enable']) ? __('DNS Clustering is <b>enabled</b>') : __('DNS Clustering is <b>disabled</b>')).' <input type="submit" name="'.(!empty($globals['dns_cluster_enable']) ? 'disable' : 'enable').'" class="btn btn-primary mx-4" value="'.(!empty($globals['dns_cluster_enable']) ? __('Disable DNS Clustering') : __('Enable DNS Clustering')).'"/> </form> </div> <div class="col-md-6"> <input type="submit" id="configure" class="btn btn-primary float-end" value="'.__('Add Server').'"/> '.(!empty($globals['dns_cluster_enable']) ? '<a href="javascript:void(0)" onclick="submitit($(this).data())" data-sync_all="1" class="btn btn-primary mx-2 float-end">'.__('Sync All Zones').'</a>' : '').' </div> </div>'; if(!empty($globals['dns_cluster_enable'])){ echo ' <div class=" table-responsive"> <table class="table sai_form webuzo-table" id="traceroute_table"> <thead> <tr> <th width="10%">'.__('ID').'</th> <th width="20%">'.__('Hostname / IP Address').'</th> <th width="30%">'.__('Status').'</th> <th width="30%">'.__('DNS Role').'</th> <th width="5%">'.__('Options').'</th> </tr> </thead> <tbody>'; foreach($dns_cluster_list as $k => $v){ echo ' <tr> <td>'.$k.'</td> <td>'.(!empty($v['ip']) ? $v['ip'] : $servers[$k]['ip']).'</td> <td>'.$v['status'].'</td> <td>'.$dns_roles[$v['dns_role']].'</td> <td colspan=2> <a href="'.$globals['admin_url'].'act=add_dns_server&uuid='.$k.'"> <i class="fas fa-pencil-alt edit-icon mx-1"></i> </a> <i class="fas fa-trash delete-icon mx-1" title="Delete" id="did'.$k.'" data-delete_server="'.$k.'" onclick="delete_server(this)"></i> </td> </tr>'; } echo ' </tbody> </table> </div>'; } echo ' </div> <script> $("#configure").click(function(){ window.location.href = "'.$globals['admin_url'].'act=add_dns_server"; }); $("#save_threshold").click(function(){ var threshold; if($("input[name=\"threshold\"]:checked").val() == "custom"){ threshold = $("#custom_value").val(); }else{ threshold = $("input[name=\"threshold\"]:checked").val(); } if(empty(threshold)){ return false; } var d = {"get_threshold": 1, "threshold" : threshold}; submitit(d, {done_reload : window.location.href}); }); function delete_server(el){ var a; var jEle = $(el); var lang = "'.__("Are you sure you want to delete this ?").'"; a = show_message_r(l.warning, lang); a.alert = "alert-warning"; a.confirm.push(function(){ var d = jEle.data(); //Submit the data submitit(d, { done_reload : window.location }); }); show_message(a); } </script>'; }