本文整理汇总了PHP中Buildicon64函数的典型用法代码示例。如果您正苦于以下问题:PHP Buildicon64函数的具体用法?PHP Buildicon64怎么用?PHP Buildicon64使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Buildicon64函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: popup
function popup()
{
$sock = new sockets();
$EnableCyrusMasterCluster = $sock->GET_INFO("EnableCyrusMasterCluster");
$CyrusClusterID = $sock->GET_INFO("CyrusClusterID");
$EnableCyrusReplicaCluster = $sock->GET_INFO("EnableCyrusReplicaCluster");
$CyrusClusterPort = $sock->GET_INFO("CyrusClusterPort");
if ($CyrusClusterPort == null) {
$CyrusClusterPort = 2005;
}
if ($CyrusClusterID == null) {
$CyrusClusterID = 1;
}
if ($EnableCyrusReplicaCluster == 1) {
echo popup_as_replica();
exit;
}
if ($EnableCyrusMasterCluster) {
$addreplica = Paragraphe("64-net-server-add.png", "{SET_REPLICA_SERVER}", "{SET_REPLICA_SERVER_TEXT}", "javascript:AddCyrusReplica()");
$sync = Paragraphe("64-syncmbx.png", "{REPLICATE_YOUR_MAILBOXES}", "{REPLICATE_YOUR_MAILBOXES_TEXT}", "javascript:Loadjs('cyrus.sync.client.php')");
}
$rebuild = Buildicon64("DEF_ICO_CYR_REBUILD");
$help_me = Paragraphe("wizard-mail-64.png", "{HELP_ME_RETRANSLATOR}", "{CYRUS_REPLICA_WIZARD_HELP}", "javascript:Loadjs('wizard.cyrus.cluster.php')");
$enable = Paragraphe_switch_img('{ENABLE_CYRUS_CLUSTER_MASTER}', '{ENABLE_CYRUS_CLUSTER_MASTER_TEXT}', 'EnableCyrusMasterCluster', $EnableCyrusMasterCluster, "ENABLE_CYRUS_CLUSTER_MASTER_TEXT", 300);
$form1 = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' class=legend>{listen_cluster_port}:</td>\n\t\t<td valign='top'>" . Field_text('CyrusClusterPort', $CyrusClusterPort, 'width:60px') . "</td>\n\t\t<td> </td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' class=legend>{uid}:</td>\n\t\t<td valign='top'>" . Field_text('CyrusClusterID', $CyrusClusterID, 'width:20px') . "</td>\n\t\t<td valign='top'>" . help_icon('{CyrusClusterID_TEXT}') . "</td>\n\t</tr>\t\n\t</table>";
$form = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>{$enable}</td>\n\t</tr>\n\t<tr>\n\t<td valign='top'>{$form1}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' align='right'><hr>\n\t\t" . button("{edit}", "EnableCyrusMasterCluster()") . "\n\t\t\t\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t";
$html = "<H1>{CYRUS_CLUSTER}</H1>\n\t<div id='wizard_zone'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/128-cluster.png'></td>\n\t<td valign='top'>\n\t<p class=caption>{CYRUS_CLUSTER_EXPLAIN}</p>\n\t{$form}\n\t</td>\n\t<td valign='top'>{$addreplica}<br>{$rebuild}<br>{$sync}<br>{$help_me}</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<br>\n\t\n\t\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
//http://madole.net/pushmail/
}
示例2: popup
function popup()
{
$dev = Buildicon64('DEF_ICO_DEVCONTROL');
$html = "\n\t<H1>{SAMBA_USB_SHARE}</H1>\n\t\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td valign='top' width=1% align='right'>\n\t\t\t\t{$dev}<hr><img src='img/usb-share-128.png'>\n\t\t\t</td>\n\t\t\t<td valign='top' width=99%>\n\t\t\t<p class=caption>{usb_share_explain}</p>\n\t\t\t" . RoundedLightWhite("<div id='usb-list' style='height:200px;width:99%;overflow:auto'></div>") . "\n\t\t</tr>\n\t\t</table>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'fileshares.index.php');
}
示例3: popup
function popup()
{
$list = SHARED_FOLDERS_LIST($_GET["popup"]);
$gp = new groups($_GET["popup"]);
$html = "<H1>{shared_folders} {$gp->groupName}</H1>\n\t<p class=caption>{add_shared_folder_text}</p>\n\t<table style='width:100%' class=table_form>\n\t<tr>\n\t\t<td valign='top' class=legend>{path}:</td>\n\t\t<td valign='top'>" . Field_text('SharedPath', null) . "</td>\n\t\t<td valign='top'><input type='button' style='margin:0px' OnClick=\"javascript:Loadjs('SambaBrowse.php?t=&homeDirectory=&no-shares=yes&field=SharedPath&without-start=no')\" value='{browse}...'></td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=3 align='right'><input type='button' OnClick=\"javascript:SharedPathAdd();\" value='{add_shared_folder} »'>\n\t</tr>\n\t</table>\n\t<br>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%>" . Paragraphe('64-refresh.png', '{rebuild_shared}', '{rebuild_shared_text}', "javascript:SharedFolderRebuild()") . "\n\t\t<br>\n\t\t" . Buildicon64('DEF_ICO_AUTOFS_RESTART') . "\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t" . RoundedLightWhite("<div style='width:100%;height:200px;overflow:auto' id='SharedDiv'>{$list}</div>") . "\n\t\t</td>\n\t</tr>\n\t</table>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "domains.edit.group.php");
}
示例4: popup
function popup()
{
$page = CurrentPageName();
$icon = Buildicon64('DEF_ICO_NTPOL_HOWTO');
$html = "<H1>{NTconfig}</H1>\n<p class=caption>{NTconfig_text}</p>\n<p class=caption>{NTconfig_howto}</p>\n<table style='width:100%'>\n<tr>\n<td valign='top'>\n" . RoundedLightWhite("\n<iframe src='{$page}?iframe=yes' style='width:100%;height:120px;border:0px'></iframe>\n\n") . "</td>\n<td valign='top'>{$icon}</td>\n</tr>\n</table>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "fileshares.index.php");
}
示例5: MYSQL_NO_CONNECTIONS
function MYSQL_NO_CONNECTIONS($q)
{
$a = Paragraphe("warning64.png", "{ERROR_MYSQL_CONNECTION}", $q->mysql_error);
$i = Buildicon64('DEF_ICO_MYSQL_PWD');
$s = Buildicon64("DEF_ICO_MYSQL_USER");
$html = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>{$a}</td>\n\t\t<td valign='top'>{$i}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top'>{$s}</td>\n\t\t<td valign='top'> </td>\n\t</tr>\n\t</table>";
return $html;
}
示例6: external_storage_usb
function external_storage_usb()
{
$list = external_storage_usb_list();
$page = CurrentPageName();
$tpl = new templates();
$html = "\n\t<input type='hidden' id='browser-computers-list' value='{$_GET["set-field"]}'>\n\t<h1>{use_network_storage}</H1>\n\t<table style='width:99%'>\n\t<tr>\n\t<td valign='top' with=70%>\n\t<p class=caption>{use_network_storage_text}</p>\n\t</td>\n\t<td valign='top'>" . Buildicon64("DEF_ICO_ADDCOMP") . "</td>\n\t</tr>\n\t</table>\n\t<hr>\n\t<div style='width:100%;height:300px;overflow:auto;padding:3px;' id='smblistp'>\n\t\t{$list}\n\t</div>\n\t";
echo $tpl->_ENGINE_parse_body($html, "dar.index.php");
}
示例7: popup
function popup()
{
$page = CurrentPageName();
$prefix = str_replace('.', '_', $page);
if ($_GET["computer"] != null) {
$form = form_connection();
}
$browse = Buildicon64('DEF_ICO_BROWSE_COMP');
$usbbrowse = Buildicon64("DEF_ICO_DEVCONTROL");
$mount_list = mount_list();
$html = "<H1>{automount_center}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>{$usbbrowse}<br>{$browse}</td>\n\t<td valign='top'>\n\t\t<div id='form_add'>{$form}</div>\n\t\t<BR>\n\t\t<div style='text-align:right;margin-top:-25px;margin-bottom:5px'>" . imgtootltip("20-refresh.png", '{refresh}', "{$prefix}Reload()") . "</div>\n\t\t\t" . RoundedLightWhite("<div id='mount-list' style='width:100%;height:200px;overflow:auto'>{$mount_list}</div>") . "\n\t</td>\n\t</table>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例8: popup
function popup()
{
$users = new usersMenus();
if (!$users->winexe_installed) {
$warn = Paragraphe("64-infos.png", "{APP_WINEXE_NOT_INSTALLED}", "{APP_WINEXE_NOT_INSTALLED_TEXT}", "javascript:Loadjs('setup.index.progress.php?product=APP_WINEXE&start-install=yes');") . "<br>";
}
$DEF_ICO_REMOTE_STORAGE = Buildicon64("DEF_ICO_REMOTE_STORAGE");
$add = Paragraphe("software-task-64.png", "{ADD_NEW_DEPLOY_TASK}", "{ADD_NEW_DEPLOY_TASK_TEXT}", "javascript:AddRemoteTask()");
$refresh = Paragraphe("64-refresh.png", "{refresh}", "{resfresh_tasks_list}", "javascript:RefreshTaskList()");
$list = task_list($_GET["uid"]);
$html = "<H1>{remote_install}::{$_GET["uid"]}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=1%>{$warn}{$refresh}<br>{$add}<br>{$DEF_ICO_REMOTE_STORAGE}</td>\n\t<td valign='top'>\n\t\t<p class=caption>{remote_install_text}</p>\n\t\t" . RoundedLightWhite("<div id='tk_list' style='width:100%;height:250px;overflow:auto'>{$list}</div>") . "\n\t</td>\n\t</tr>\n\t</table>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'storage.center.php');
}
示例9: popup_index
function popup_index()
{
$sock = new sockets();
$EnablePolicydWeight = $sock->GET_INFO('EnablePolicydWeight');
$EnablePolicydWeight_field = Paragraphe_switch_img('{EnablePolicydWeight}', '{APP_POLICYD_WEIGHT_EXPLAIN}', 'EnablePolicydWeight', $EnablePolicydWeight, "{enable_disable}", 300);
//64-cop-acls.png
//64-cop-rules.png
$demons_settings = Paragraphe("64-cop-rules.png", "{daemon_settings}", "{daemon_settings_text}", "javascript:PolicydDaemonSettings()");
$notif = Paragraphe("64-cop-acls-infos.png", "{APP_POLICYD_WEIGHT} {notifications}", "{PolicydDaemonNotifs}", "javascript:PolicydDaemonNotifs()");
$dnsbl = Paragraphe("64-cop-acls-dnsbl.png", "{DNSBL_settings}", "{DNSBL_settings_text}", "javascript:PolicydDaemonDNSBL()");
$instant = Buildicon64("DEF_ICO_MAIL_IPABLES");
$panel = "\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t<td valign='top'>{$demons_settings}{$notif}{$dnsbl}</td>\n\t\t\t\t<td valign='top'>{$instant}</td>\n\t\t\t\t</tr>\n\t\t\t</table>";
$panel = RoundedLightWhite($panel);
$html = "<H1>{APP_POLICYD_WEIGHT}</H1>\n\t<p class=caption>{APP_POLICYD_WEIGHT_TEXT}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t<div id='enableplicyweightdiv'>\n\t\t\t{$EnablePolicydWeight_field}\n\t\t\t</div>\n\t\t\t<hr>\n\t\t\t<div style='text-align:right'><input type='button' OnClick=\"javascript:EnablePolicydWeight();\" value='{apply} »'></div>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t{$panel}\n\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例10: index_page
function index_page()
{
$page = CurrentPageName();
$sock = new sockets();
$enable_button = null;
$wizard = Paragraphe('64-wizard.png', '{OPENVPN_WIZARD}', '{OPENVPN_WIZARD_TEXT}', "javascript:YahooWin3('500','{$page}?wizard=yes','{OPENVPN_WIZARD}')", null, 210, null, 0, false);
$clients_settings = Paragraphe('global-settings.png', '{OPENVPN_CLIENT_SETTINGS}', '{OPENVPN_CLIENT_SETTINGS_TEXT}', "javascript:OpenVPNClientsSettings()", null, 210, null, 0, false);
$ncc = Paragraphe('64-win-nic-loupe.png', '{NETWORK_CONTROL_CENTER}', '{NETWORK_CONTROL_CENTER_TEXT}', "javascript:OpenVPNNCC()", null, 210, null, 0, false);
$server_connect = Paragraphe('server-connect-64.png', '{OPENVPN_SERVER_CONNECT}', '{OPENVPN_SERVER_CONNECT_TEXT}', "javascript:Loadjs('openvpn.servers-connect.php')", null, 210, null, 0, false);
$artica = Buildicon64("DEF_ICO_OPENVPN_ARTICA_CLIENTS");
$f[] = $server_connect;
$f[] = $ncc;
//$f[]=$artica;
$q = new mysql();
$sql = "SELECT ID,enabled,servername,serverport,connexion_name,connexion_type,routes FROM vpnclient WHERE connexion_type=2 and enabled=1 ORDER BY ID DESC";
$results = $q->QUERY_SQL($sql, "artica_backup");
while ($ligne = mysql_fetch_array($results, MYSQL_ASSOC)) {
$running = $sock->getFrameWork("openvpn.php?is-client-running={$ligne["ID"]}");
if ($running == "TRUE") {
$img_running = "folder-network-64.png";
} else {
$img_running = "folder-network-64-grey.png";
}
if (preg_match("#(.+?):#", $ligne["connexion_name"], $re)) {
$ligne["connexion_name"] = $re[1];
}
$f[] = Paragraphe($img_running, $ligne["connexion_name"], "{manage_your_vpn_client_connection_text}", "javascript:Loadjs('index.openvpn.client.php?ID={$ligne["ID"]}&cname={$ligne["connexion_name"]}')", null, 210, null, 0, false);
}
$vpn = new openvpn();
if (intval($vpn->main_array["GLOBAL"]["ENABLE_SERVER"]) == 0) {
$enable_button = "<center style='margin:30px'>" . button("{enable_service}", "Loadjs('index.openvpn.enable.progress.php')", 42) . "</center>";
}
$status = status(1);
$html = "\n\t<div style='font-size:30px;margin-bottom:20px'>{APP_OPENVPN_TEXT}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=280px><div id='openvpn-status'></div></td>\n\t<td valign='top'>\n\t<div class=explain style='font-size:22px'>{openvpn_whatis}</div>\n\t<br>\n\t{$enable_button}\n\t</td>\n\t</tr>\n\t</table>\n\t<script>\n\t\tfunction RefreshOpenVPNStatus(){\n\t\t\tLoadAjax('openvpn-status','{$page}?openvpn-status=yes');\n\t\t}\n\t\tRefreshOpenVPNStatus();\n\t</script>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例11: main_config_artica
function main_config_artica()
{
//ArticaPerformancesSettings
$sock = new sockets();
$users = new usersMenus();
$page = CurrentPageName();
$MaxtimeBackupMailSizeCalculate = trim($sock->GET_INFO("MaxtimeBackupMailSizeCalculate"));
$systemForkProcessesNumber = intval($sock->GET_INFO("systemForkProcessesNumber"));
if ($systemForkProcessesNumber == 0) {
$systemForkProcessesNumber = 4;
}
$cpulimit = trim($sock->GET_INFO("cpulimit"));
$cpuLimitEnabled = trim($sock->GET_INFO("cpuLimitEnabled"));
$SystemV5CacheEnabled = trim($sock->GET_INFO("SystemV5CacheEnabled"));
$systemMaxOverloaded = trim($sock->GET_INFO("systemMaxOverloaded"));
$SystemLoadNotif = trim($sock->GET_INFO("SystemLoadNotif"));
$DisableLoadAVGQueue = $sock->GET_INFO('DisableLoadAVGQueue');
$oom_kill_allocating_task = $sock->GET_INFO("oom_kill_allocating_task");
$SysTmpDir = $sock->GET_INFO("SysTmpDir");
if ($SysTmpDir == null) {
$SysTmpDir = "/home/artica/tmp";
}
$cgroupsEnabled = $sock->GET_INFO("cgroupsEnabled");
$CGROUPS_INSTALLED = 0;
if ($users->CGROUPS_INSTALLED) {
$CGROUPS_INSTALLED = 1;
}
if (strlen(trim($SystemV5CacheEnabled)) == 0) {
$SystemV5CacheEnabled = 0;
}
if (!is_numeric($cpuLimitEnabled)) {
$sock->SET_INFO("cpuLimitEnabled", 0);
$cpuLimitEnabled = 0;
}
if (!is_numeric($MaxtimeBackupMailSizeCalculate)) {
$MaxtimeBackupMailSizeCalculate = 300;
}
if (!is_numeric($cpulimit)) {
$cpulimit = 0;
}
if (!is_numeric($cgroupsEnabled)) {
$cgroupsEnabled = 0;
}
if (!is_numeric($SystemLoadNotif)) {
$SystemLoadNotif = 0;
}
if (!is_numeric($oom_kill_allocating_task)) {
$oom_kill_allocating_task = 1;
}
if (!is_numeric($DisableLoadAVGQueue)) {
$DisableLoadAVGQueue = 0;
}
if ($users->POSTFIX_INSTALLED) {
$backupmailsize = "<tr>\n\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{MaxtimeBackupMailSizeCalculate}:</td>\n\t<td nowrap>" . Field_text("MaxtimeBackupMailSizeCalculate", $MaxtimeBackupMailSizeCalculate, "width:110px;font-size:22px;padding:3px") . " {minutes}</td>\n\t<td>" . help_icon("{MaxtimeBackupMailSizeCalculate_explain}") . "</td>\n</tr>";
}
$ini = new Bs_IniHandler();
$ini->loadString($sock->GET_INFO("ArticaPerformancesSettings"));
$page = CurrentPageName();
$arrp = array(10 => "{default}", -15 => "{high}", 10 => "{medium}", 12 => "{low}", 19 => '{very_low}');
$cpulimit_array = array(0 => "{no_limit}", 10 => "10%", 20 => "20%", 30 => "30%", 35 => "35%", 40 => "40%", 45 => "45%", 50 => "50%", 55 => "55%", 60 => "60%", 65 => "65%", 70 => "70%", 75 => "75%", 80 => "80%", 85 => "85%", 90 => "90%", 95 => "95%");
$SystemLoadNotif_array = array(0 => "{disabled}", 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 10 => 10, 20 => 20, 30 => 30, 100 => 100);
$arrp = Field_array_Hash($arrp, 'ProcessNice', $ini->_params["PERFORMANCES"]["ProcessNice"], null, null, 0, "font-size:22px");
$cpulimit_f = Field_array_Hash($cpulimit_array, 'cpulimit', $cpulimit, null, null, 0, "font-size:22px");
$arrp_mysql = array(null => "{default}", 0 => "{ISP_MODE}", 1 => "{high}", 2 => "{medium}", 3 => "{low}", 4 => '{very_low}');
$mysql_nice = Field_array_Hash($arrp_mysql, 'MysqlNice', $ini->_params["PERFORMANCES"]["MysqlNice"], null, null, 0, "font-size:22px");
$mysql_nice = "\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{mysql_server_consumption}:</td>\n\t\t\t<td>{$mysql_nice}</td>\n\t\t\t<td>" . help_icon("{mysql_server_text}") . "</td>\n\t\t</tr>";
$mysql_nice = "<input type='hidden' id='MysqlNice' name='MysqlNice' value=''>";
if ($ini->_params["PERFORMANCES"]["NoBootWithoutIP"] == null) {
$ini->_params["PERFORMANCES"]["NoBootWithoutIP"] = 0;
}
if ($ini->_params["PERFORMANCES"]["useIonice"] == null) {
$ini->_params["PERFORMANCES"]["useIonice"] = 1;
}
$icon_schedule = Buildicon64("DEF_ICO_ARTICA_CRON_SCHEDULE");
$icon_phlisight = Paragraphe("philesight-64.png", "{APP_PHILESIGHT}", "{APP_PHILESIGHT_PARAMETERS}", "javascript:Loadjs('philesight.php?js-settings=yes')");
$MaxMailEventsLogs = $sock->GET_INFO("MaxMailEventsLogs");
if ($MaxMailEventsLogs == null) {
$MaxMailEventsLogs = 400000;
}
if ($MaxMailEventsLogs < 100) {
$MaxMailEventsLogs = 4000;
}
$t = time();
$html = "\n<div id=ffm1 style='width:98%' class=form>\n<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{artica_process}:</td>\n\t\t\t<td>{$arrp}</td>\n\t\t\t<td>" . help_icon("{artica_process_explain}") . "</td>\n\t\t</tr>\n\n\t\t\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{cpuLimitEnabled}:</td>\n\t\t\t<td>" . Field_checkbox_design("cpuLimitEnabled", 1, $cpuLimitEnabled, "CheckCPULimit()") . "</td>\n\t\t\t<td>" . help_icon("{cpuLimitEnabled_explain}") . "</td>\n\t\t</tr>\t\t\t\n\t\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{cpulimit}:</td>\n\t\t\t<td>{$cpulimit_f}</td>\n\t\t\t<td>" . help_icon("{artica_cpulimit_explain}") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{SystemLoadNotif}:</td>\n\t\t\t<td>" . Field_array_Hash($SystemLoadNotif_array, "SystemLoadNotif", $SystemLoadNotif, null, null, 0, "font-size:22px") . "</td>\n\t\t\t<td> </td>\n\t\t</tr>\t\t\t\n\t\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{systemMaxOverloaded}:</td>\n\t\t\t<td nowrap style='font-size:22px'>" . Field_text("systemMaxOverloaded", $systemMaxOverloaded, "width:110px;font-size:22px;padding:3px") . " {load}</td>\n\t\t\t<td>" . help_icon("{systemMaxOverloaded_explain}") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{systemForkProcessesNumber}:</td>\n\t\t\t<td nowrap style='font-size:22px'>" . Field_text("systemForkProcessesNumber", $systemForkProcessesNumber, "width:110px;font-size:22px;padding:3px") . " {processes}</td>\n\t\t\t<td>" . help_icon("{systemForkProcessesNumber_explain}") . "</td>\n\t\t</tr>\t\t\n\t\t{$mysql_nice}\n\n\t\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{SystemV5CacheEnabled}:</td>\n\t\t\t<td>" . Field_checkbox_design("SystemV5CacheEnabled", 1, $SystemV5CacheEnabled) . "</td>\n\t\t\t<td>" . help_icon("{SystemV5CacheEnabled_explain}") . "</td>\n\t\t</tr>\t\n\t\t\n\t\t\t\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{useIonice}:</td>\n\t\t\t<td>" . Field_checkbox_design("useIonice", 1, $ini->_params["PERFORMANCES"]["useIonice"]) . "</td>\n\t\t\t<td>" . help_icon("{useIonice_explain}") . "</td>\n\t\t</tr>\n\t\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{NoBootWithoutIP}:</td>\n\t\t\t<td>" . Field_checkbox_design("NoBootWithoutIP", 1, $ini->_params["PERFORMANCES"]["NoBootWithoutIP"]) . "</td>\n\t\t\t<td>" . help_icon("{NoBootWithoutIP_explain}") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{DisableFollowServiceHigerThan1G}:</td>\n\t\t\t<td>" . Field_checkbox_design("DisableFollowServiceHigerThan1G", 1, $ini->_params["PERFORMANCES"]["DisableFollowServiceHigerThan1G"]) . "</td>\n\t\t\t<td>" . help_icon("{DisableFollowServiceHigerThan1G_explain}") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{EnableArticaWatchDog}:</td>\n\t\t\t<td>" . Field_checkbox_design("EnableArticaWatchDog", 1, $sock->GET_INFO('EnableArticaWatchDog')) . "</td>\n\t\t\t<td>" . help_icon("{EnableArticaWatchDog_explain}") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{DisableLoadAVGQueue}:</td>\n\t\t\t<td>" . Field_checkbox_design("DisableLoadAVGQueue", 1, $DisableLoadAVGQueue) . "</td>\n\t\t\t<td>" . help_icon("{DisableLoadAVGQueue_explain}") . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{oom_kill_allocating_task}:</td>\n\t\t\t<td>" . Field_checkbox_design("oom_kill_allocating_task", 1, $oom_kill_allocating_task) . "</td>\n\t\t\t<td>\n\t\t</tr>\n\n\t\t\t\n\t\t{$backupmailsize}\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{MaxEventsInDatabase} (mail):</td>\n\t\t\t<td nowrap>" . Field_text("MaxMailEventsLogs", $MaxMailEventsLogs, "width:150px;font-size:22px;padding:3px") . "</td>\n\t\t\t<td></td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td nowrap width=1% align='right' class=legend style='font-size:22px'>{temp_dir}:</td>\n\t\t\t<td nowrap>" . Field_text("SysTmpDir", $SysTmpDir, "width:320px;font-size:22px;padding:3px") . "</td>\n\t\t\t<td></td>\n\t\t</tr>\t\n\t\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SavePerformancesMasterForm()", 34) . "</td>\n\t\t</tr>\n\t\t</tbody>\n\t\t</table>\n\t\t</form>\n</div>\n\t\t<div id='{$t}-reboot'></div>\t\n\n\t\t\n\n\n\n<script>\n\tvar x_SavePerformancesMasterForm= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\tRefreshTab('main_config_articaproc');\n\t}\n\n\n\tfunction SavePerformancesMasterForm(){\n\t\tvar XHR=XHRParseElements('ffm1');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SavePerformancesMasterForm);\n\t\n\t}\n\n\n\n\n\t\n\t\n\tfunction CheckCPULimit(){\n\t\tdocument.getElementById('cpulimit').disabled=true;\n\t\tif(document.getElementById('cpuLimitEnabled').disabled){return;}\n\t\tif(document.getElementById('cpuLimitEnabled').checked){\n\t\t\tdocument.getElementById('cpulimit').disabled=false;\n\t\t}\n\t}\n\t\n\tfunction LoadRebootSection(){\n\t\tLoadAjax('{$t}-reboot','artica.performances.reboot.php?t={$t}');\n\t\n\t}\n\t\n\n\t\t\n\t\n\n\nCheckCPULimit();\nLoadRebootSection();\n\n</script>\n\n";
$tpl = new templates();
return $tpl->_ENGINE_parse_body($html);
}
示例12: main_settings
function main_settings($noecho = 0)
{
$amavis = new amavis();
$page = CurrentPageName();
$users = new usersMenus();
$users->LoadModulesEnabled();
$array = array("D_PASS" => "{D_PASS}", "D_DISCARD" => "{D_DISCARD}", "D_BOUNCE" => "{D_BOUNCE}");
$kas3 = Paragraphe('folder-caterpillar.png', '{APP_KAS3}', '{KAS3_TEXT}', 'javascript:Loadjs("kas.group.rules.php?ajax=yes")', null, 210, null, 0, true);
$kas3_bad = Paragraphe('folder-caterpillar-grey.png', '{APP_KAS3}', '{feature_disabled}', null, null, 210, null, 0, true);
if ($users->kas_installed) {
if ($users->KasxFilterEnabled) {
$kas = $kas3;
} else {
$kas = $kas3_bad;
}
}
$trustlocal = Paragraphe("network-connection2.png", '{trust_local}', '{trust_local_text}', "javascript:Loadjs('{$page}?script=trustlocal')", null, 210, 100);
$localNetwork = Paragraphe("64-ip-settings.png", '{local_network}', '{local_network_text}', "javascript:Loadjs('{$page}?script=localnetwork')", null, 210, 100);
$filterbhavior = Paragraphe("64-milter-behavior.png", '{filter_behavior}', '{filter_behavior_text}', "javascript:Loadjs('{$page}?script=filterbehavior')", null, 210, 100);
$notification = Paragraphe("mail4-64.png", '{smtp_notification}', '{notification_text}', "javascript:Loadjs('{$page}?script=notification')", null, 210, 100);
$spamassassin = Paragraphe("folder-64-spamassassin-grey.png", '{spamassassin}', '{feature_not_installed}', null, null, 210, 100);
$whitelist = Paragraphe("folder-64-spamassassin-grey.png", '{spamassassin}', '{feature_not_installed}', null, null, 210, 100);
$pieces_jointes = Paragraphe("pieces-jointes.png", '{filter_extension}', '{filter_extension_text}', "javascript:Loadjs('{$page}?script=filterextension')", null, 210, 100);
if ($users->spamassassin_installed) {
$spamassassin = Paragraphe("folder-64-spamassassin.png", '{spamassassin}', '{spamassassin_text}', "javascript:Loadjs('{$page}?script=spamassassin')", null, 210, 100);
}
//$apply=Paragraphe('system-64.png','{apply config}','{APPLY_SETTINGS_AMAVIS}',"javascript:Loadjs('$page?script=apply')",'APPLY_SETTINGS_AMAVIS',210,100);
$apply = Buildicon64("DEF_ICO_AMAVIS_RESTART", 210, 100);
$prepost = Paragraphe("folder-equerre-64.png", '{postfix_hooking}', '{postfix_hooking_text}', "javascript:Loadjs('{$page}?hooking-js=yes')", 'postfix_hooking_text', 210, 100);
$spf = Paragraphe("spf-logo-64.png", '{APP_SPF}', '{APP_SPF_TINY_TEXT}', "javascript:Loadjs('spamassassin.spf.php')", 'APP_SPF_TINY_TEXT', 210, 100);
$users = new usersMenus();
if ($users->CLAMD_INSTALLED) {
$sanesecurity = Paragraphe('folder-64-denywebistes.png', 'SaneSecurity signatures', '{sanesecurity_text}', "javascript:Loadjs('{$page}?sanesecurity-js=yes')", 'sanesecurity_text', 210, 100);
}
$html = "\n\t<H5>{global_settings}</H5>\n\t<table>\n\t\t\t<tr>\n\t\t\t<td valign='top' >{$trustlocal}</td>\n\t\t\t<td valign='top' >{$filterbhavior}</td>\n\t\t\t<td valign='top' >{$apply}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t<td valign='top' >{$pieces_jointes}</td>\n\t\t\t<td valign='top'>{$spf}</td>\n\t\t\t<td valign='top' >{$spamassassin}</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<td valign='top'>{$prepost}</td>\n\t\t\t<td valign='top' >{$notification}</td>\n\t\t\t<td valign='top'>{$sanesecurity}</td>\t\t\t\n\t\t\t</tr>\n\t\t\t\n\t</table>\n\t\n\t\n\t";
$tpl = new templates();
if ($noecho == 0) {
echo $tpl->_ENGINE_parse_body($html);
} else {
return $tpl->_ENGINE_parse_body($html, 'postfix.index.php');
}
}
示例13: admin_system
function admin_system()
{
$users = new usersMenus();
$browse = Buildicon64("DEF_ICO_BROWSE_COMP");
$disks = Paragraphe("64-hd.png", '{internal_hard_drives}', '{internal_hard_drives_text}', "javascript:Loadjs('system.internal.disks.php');", "{internal_hard_drives_text}");
//$frontend_settings=Paragraphe("64-settings.png",'{design_and_tweaks}','{designs_and_tweaks_text}',"javascript:Loadjs('artica.performances.php?cron-js=yes');","{internal_hard_drives_text}");
$memdump = Paragraphe("stats-64.png", '{processes_memory}', '{processes_memory_text}', "javascript:LoadMemDump();", "{processes_memory_text}");
$artica_events = Paragraphe('events-64.png', '{artica_events}', '{artica_events_text}', "javascript:Loadjs('artica.events.php');", "{artica_events_text}");
$phpldapadmin = Paragraphe('phpldap-admin-64.png', '{APP_PHPLDAPADMIN}', '{APP_PHPLDAPADMIN_TEXT}', "javascript:s_PopUpFull('ldap/index.php',1024,800);", "{APP_PHPLDAPADMIN_TEXT}");
$phpmyadmin = Paragraphe('phpmyadmin-64.png', '{APP_PHPMYADMIN}', '{APP_PHPMYADMIN_TEXT}', "javascript:s_PopUpFull('mysql/index.php',1024,800);", "{APP_PHPMYADMIN_TEXT}");
//$artica_settings=Paragraphe('folder-interface-64.png',"{advanced_options}","{advanced_artica_options_text}","javascript:Loadjs('artica.settings.php?js=yes&ByPopup=yes');","{advanced_artica_options_text}");
$ActiveDirectoryConnection = Paragraphe('wink3_bg.png', '{APP_AD_CONNECT}', '{APP_AD_CONNECT_TEXT}', "javascript:Loadjs('ad.connect.php');", "{APP_AD_CONNECT_TEXT}");
//phpmyadmin-64.png
//
$backup = Paragraphe('64-backup.png', '{manage_backups}', '{manage_backups_text}', "javascript:Loadjs('backup.tasks.php');", "{manage_backups_text}");
$users = new usersMenus();
if (!$users->phpldapadmin_installed) {
$phpldapadmin = Paragraphe('phpldap-admin-64-grey.png', '{APP_PHPLDAPADMIN}', '{error_app_not_installed_disabled}', "", "{APP_PHPLDAPADMIN_TEXT}");
}
if (!$users->phpmyadmin_installed) {
$phpmyadmin = Paragraphe('phpmyadmin-grey-64.png', '{APP_PHPMYADMIN}', '{error_app_not_installed_disabled}', "", "{APP_PHPMYADMIN_TEXT}");
}
if ($users->SQUID_INSTALLED) {
$sock = new sockets();
$SQUIDEnable = trim($sock->GET_INFO("SQUIDEnable"));
if (!is_numeric($SQUIDEnable)) {
$SQUIDEnable = 1;
}
if ($SQUIDEnable == 0) {
$reactivate_squid = Paragraphe('warning64.png', '{SQUID_DISABLED}', '{SQUID_DISABLED_TEXT}', "javascript:Loadjs('squid.newbee.php?reactivate-squid=yes')", "{SQUID_DISABLED_TEXT}");
}
}
if ($users->FROM_ISO) {
$FROMISO = Paragraphe('64-CD.png', '{MENU_CONSOLE}', '{MENU_CONSOLE_TEXT}', "javascript:Loadjs('artica.iso.php')", "{MENU_CONSOLE_TEXT}");
}
$tpl = new templates();
$massmailing = Paragraphe('mass-mailing-64.png', '{email_campaigns}', '{APP_MASSMAILING_ENABLE_TEXT}', "javascript:Loadjs('system.enable.massmailing.php');", "{APP_MASSMAILING_ENABLE_TEXT}");
$mysql_settings = $tpl->_ENGINE_parse_body("{mysql_settings}");
$web_interface_settings = Paragraphe("folder-performances-64.png", "{web_interface_settings}", "{web_interface_settings_text}", "javascript:Loadjs('artica.settings.php?js=yes&func-webinterface=yes');");
$SMTP_NOTIFICATIONS_PAGE = Paragraphe("notifications-64.png", "{smtp_notifications}", "{smtp_notifications_text}", "javascript:Loadjs('artica.settings.php?js=yes&func-NotificationsInterface=yes');");
$proxy = Paragraphe("proxy-64.png", "{http_proxy}", "{http_proxy_text}", "javascript:Loadjs('artica.settings.php?js=yes&func-ProxyInterface=yes');");
$logs = Paragraphe("scan-64.png", "{logs_cleaning}", "{logs_cleaning_text}", "javascript:Loadjs('artica.settings.php?js=yes&func-LogsInterface=yes');");
//$mysql=Paragraphe("folder-64-backup.png","{mysql_settings}","{mysql_settings_text}","javascript:MysqlInterface();","$mysql_settings");
$perfs = Paragraphe("perfs-64.png", "{artica_performances}", "{artica_performances_text}", "javascript:Loadjs('artica.performances.php');");
$tr[] = $web_interface_settings;
$tr[] = $SMTP_NOTIFICATIONS_PAGE;
$tr[] = $FROMISO;
$tr[] = $memdump;
$tr[] = $perfs;
$tr[] = $artica_events;
$tr[] = $logs;
$tr[] = $disks;
$tr[] = $browse;
$tr[] = $backup;
$tr[] = $reactivate_squid;
$tr[] = $phpldapadmin;
$tr[] = $phpmyadmin;
$tr[] = $proxy;
//$tr[]=$massmailing;
$html = CompileTr4($tr);
$results = $tpl->_ENGINE_parse_body($html);
writelogs("SET CACHED " . strlen($results) . " bytes", __FILE__, __FUNCTION__, __LINE__);
SET_CACHED(__FILE__, __FUNCTION__, __FUNCTION__, $results);
echo $results;
}
示例14: dhcp_index
function dhcp_index()
{
$page = CurrentPageName();
$config = Paragraphe("64-settings.png", "{APP_DHCP_MAIN_CONF}", "{APP_DHCP_MAIN_CONF_TEXT}", "javascript:YahooWin3(850,'index.gateway.php?show-script=yes','{APP_DHCP_MAIN_CONF}');");
$pxe = Paragraphe("pxe-64.png", "{PXE}", "{PXE_DHCP_MINI_TEXT}", "javascript:PxeConfig();");
$pcs = Buildicon64('DEF_ICO_BROWSE_COMP');
$enable = Paragraphe("check-64.png", "{EnableDHCPServer}", "{EnableDHCPServer_text}", "javascript:Loadjs('{$page}?dhcp-enable-js=yes');", "{EnableDHCPServer_text}");
$title = "<div style='font-size:42px;'>{APP_DHCP}</div>";
$class_from = "form";
if (isset($_GET["miniadm"])) {
$title = null;
$class_from = "TableRemove";
$statuswidth = "width=410px";
}
$html = "\n<div class='BodyContent'>\n\t<table style='width:99%' class={$class_from}>\n\t\t<tr>\n\t\t\t<td valign='top' {$statuswidth}>\n\t\t\t\t{$title}\n\t\t\t\t<div id='dhcp-status'></div>\n\t\t\t</td>\n\t\t\t<td valign='top' style='padding:30px'>\n\t\t\t\t\t<div id='dhcp-enabled' style='margin-bottom:20px'></div>\n\t\t\t\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<td valign='top'>{$config}</td>\n\t\t\t\t\t\t\t<td valign='top'>{$pxe}</td>\n\t\t\t\t\t\t\t<td valign='top'>{$pcs}</td>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t</td>\n\t\t</tr>\n\t</table>\n</div>\n\n<script>\n\tLoadAjax('dhcp-status','{$page}?dhcp-status=yes');\n\tLoadAjax('dhcp-enabled','{$page}?dhcp_enable_popup=yes');\n</script>\n\n\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例15: index
function index()
{
$DEF_ICO_SSL_KEY = Buildicon64('DEF_ICO_SSL_KEY');
$html = "\n\t\t<H1>{tls_title}</H1>\n\t\t" . RoundedLightWhite("\n\t\t<table style='width:100%'>\n\t\t<td valign='top' width=1%'>{$DEF_ICO_SSL_KEY}</td>\n\t\t<td valign='top'><p style='font-size:12px'>{TLS_EXPLAIN}</p></td>\n\t\t</tr>\n\t\t</table>") . "\n\t\t<br>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}