function update_zoom() { $page = CurrentPageName(); $tpl = new templates(); $sock = new sockets(); $ini = new Bs_IniHandler(); $ini->loadString(@file_get_contents(dirname(__FILE__) . '/ressources/index.ini')); $users = new usersMenus(); $ArchStruct = $users->ArchStruct; if ($ArchStruct == "32") { $ArchStruct = "i386"; } if ($ArchStruct == "64") { $ArchStruct = "x64"; } $GlobalApplicationsStatus = $sock->APC_GET("GlobalApplicationsStatus", 2); if ($GlobalApplicationsStatus == null) { $GlobalApplicationsStatus = base64_decode($sock->getFrameWork('cmd.php?Global-Applications-Status=yes')); $sock->APC_SAVE("GlobalApplicationsStatus", $GlobalApplicationsStatus); $GLOBALS["GlobalApplicationsStatus"] = $GlobalApplicationsStatus; } $squid_version = ParseAppli($GlobalApplicationsStatus, "APP_SQUID"); $availableversion32 = $ini->_params["NEXT"]["squid32-i386"]; $availableversion64 = $ini->_params["NEXT"]["squid32-x64"]; $availableversion_ufdbguard = $ini->_params["NEXT"]["ufdbGuard"]; $actualversion_ufdbguard = $sock->getFrameWork("squid.php?full-ufdbg-version=yes"); if ($actualversion_ufdbguard == null) { $actualversion_ufdbguard = "0.0.0"; } $availableversion_kav4proxy = $ini->_params["NEXT"]["kav4proxy"]; $actualversion_kav4proxy = ParseAppli($GlobalApplicationsStatus, "APP_KAV4PROXY"); if ($actualversion_kav4proxy == null) { $actualversion_kav4proxy = "0.0.0"; } $q = new blackboxes(); $availableversion32 = $q->last_available_squidx32_version(); $availableversion64 = $q->last_available_squidx64_version(); $html = "\n<div style='width:100%;height:650px;overflow:auto'>\n\n<table style='width:100%;margin-top:15px'>\n<tbody>\n<tr>\n\t<td valign='top' width=1%><img src='img/artica-350px.png'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_ARTICA_AGENT}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available} 32/64bits:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>" . $q->last_available_version() . "</td>\n\t\t\t\t\t</tr>\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{APP_ARTICA_AGENT_TEXT}</div>\n\t\t\t<p> </p>\n\t\t\t<center style='margin:10px'>" . button("{install_upgrade}", "Loadjs('setup.index.progress.php?product=APP_ARTICA_AGENT&start-install=yes')", 14) . "</center>\n\t</td>\n</tr>\n\n\n<table style='width:100%;margin-top:15px'>\n<tbody>\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_squid.jpg'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_SQUID2}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available} 32bits:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion32}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available} 64bits:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion64}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{APP_SQUID_TEXT}</div>\n\t\t\t<p> </p>\n\t\t\t<center style='margin:10px'>" . button("{install_upgrade}", "Loadjs('setup.index.progress.php?product=APP_SQUID32_REPOS&start-install=yes')", 14) . "</center>\n\t</td>\n</tr>\n\n<tr>\n\t<td colspan=2><hr></td>\n</tr>\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_kav4proxy.jpg'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_KAV4PROXY}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion_kav4proxy}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{current}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$actualversion_kav4proxy}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t\t\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{APP_KAV4PROXY_TEXT}</div>\n\t\t\t<p> </p>\n\t\t\t<span id='kav4proxy-install-status'></span>\n\t\t\t<div style='text-align:right;width:100%'>" . imgtootltip("refresh-24.png", "{refresh}", "kav4proxy_install_status()") . "</div>\n\t</td>\n</tr>\n<tr>\n\t<td colspan=2><hr></td>\n</tr>\n<tr>\n\t<td colspan=2><hr></td>\n</tr>\n\n<tr>\n\t<td valign='top' width=1%><img src='img/bg_ufdbguard.png'>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available_software}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{APP_UFDBGUARD}</div></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{available}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$availableversion_ufdbguard}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend style='font-size:13px'>{current}:</td>\n\t\t\t\t\t\t<td style='font-size:14px;font-weight:bold'>{$actualversion_ufdbguard}</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\n\t</td>\n\t<td valign='top'>\n\n\t\t\t<div style='font-size:12px'>{ufdbguard_simple_intro}</div>\n\t\t\t<p> </p>\n\t\t\t<span id='ufdbguard-install-status'></span>\n\t\t\t<div style='text-align:right;width:100%'>" . imgtootltip("refresh-24.png", "{refresh}", "ufdbguard_install_status()") . "</div>\n\t</td>\n</tr>\n\n\n\n</tbody>\n</table>\n</div>\n<script>\n\n</script>\n"; echo $tpl->_ENGINE_parse_body($html); }
function update_node_js() { $page = CurrentPageName(); $tpl = new templates(); $blk = new blackboxes($_GET["nodeid"]); $ve = $blk->last_available_version(); $text = $tpl->javascript_parse_text("{no_update_available}"); if ($ve == null) { echo "alert('{$text}');"; return; } $hostname = $blk->hostname; $text = $tpl->javascript_parse_text("{update} {$hostname} -> {$ve}?"); $t = time(); $html = "\n\tvar x_update{$t}= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tRefreshTab('node_tabs_{$_GET["nodeid"]}');\n\t\t\t}\t\t\n\t\n\t\n\tfunction update{$t}(){\n\t\tvar txt=prompt('{$text}');\n\t\tif(txt){\n\t\t\tvar XHR = new XHRConnection();\n \t\tXHR.appendData('update-node',{$_GET["nodeid"]});\n \t\tXHR.sendAndLoad('{$page}', 'POST',x_update{$t});\n\t\t}\n\t}\t\t\n\t\n\t\n\tupdate{$t}()"; echo $html; }
function LATEST_ARTICA_VERSION() { $f = new blackboxes(); echo "<SUCCESS>" . $f->last_available_version() . "</SUCCESS>"; }