function step1()
{
    $user = new usersMenus();
    $html = "\n\t<table style='width:600px' align=center>\n<tr>\n<td width=1% valign='top'><img src='img/bg_wizard.jpg'>\n</td>\n<td valign='top'>\n\t<div style='padding:5px;margin:5px'>\n\t\t<H4>{wizard1_welcome}</H4>\n\t<p>{wizard1_welcome_text}</p>\n</td>\n</tr>\n<tr>\n<td valign='top' colspan=2>" . wizard2() . "\n\n</td>\n</tr>\n</table>";
    $JS["JS"][] = "js/artica_wizard.js";
    $JS["JS"][] = "postfix.js";
    $tpl = new template_users('{create_org_postfix}', $html, 0, 0, 0, 0, $JS);
    echo $tpl->web_page;
}
function wizard3()
{
    if (!isset($_SESSION["WIZINSTANCE"]["WIZIPADDR"])) {
        wizard2();
        exit;
    }
    $page = CurrentPageName();
    $tpl = new templates();
    $ldap = new clladp();
    $ous = $ldap->hash_get_ou(true);
    $ous[null] = "{none}";
    $html = "<strong style='font-size:16px'>{Interface}:{$_SESSION["WIZINSTANCE"]["WIZINTERFACE"]}&nbsp;|&nbsp;{$_SESSION["WIZINSTANCE"]["WIZIPADDR"]}/{$_SESSION["WIZINSTANCE"]["WIZIPMASK"]}</strong>\n\t<div class=explain style='font-size:14px'>{welcome_new_instance_wizard_organdname}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{organization}:</td>\n\t\t<td>" . Field_array_Hash($ous, "WIZOU", $_SESSION["WIZINSTANCE"]["WIZOU"], "style:font-size:16px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:14px'>{hostname}:</td>\n\t\t<td>" . field_text("WIZHOST", $_SESSION["WIZINSTANCE"]["WIZHOST"], "font-size:16px;width:240px;font-weight:bolder") . "</td>\n\t</tr>\t\n\t<tr>\n\t<tr>\n\t\t<td colspan=2><hr></td>\n\t</tr>\n\t<tr>\n\t\n\t\t<td align='left'>" . button("{previous}", "LoadAjax('new_instance_wizard','{$page}?wiz2=yes');", 16) . "</td>\n\t\t<td colspan=2 align='right'>" . button("{next}", "WIZ_WIZHOST()", 16) . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\n\t<script>\n\tvar XWIZ_WIZ_WIZHOST= function (obj) {\n\t var results=obj.responseText;\n\t if(results.length>3){alert(results);return;}\n\t \tWIZMULTI4();\n\t}\t\n\t\n\tfunction WIZ_WIZHOST(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('WIZOU',document.getElementById('WIZOU').value);\n\t\tXHR.appendData('WIZHOST',document.getElementById('WIZHOST').value);\n\t\tAnimateDiv('new_instance_wizard');\n\t\tXHR.sendAndLoad('{$page}', 'POST',XWIZ_WIZ_WIZHOST);\t\n\t}\n\t\n\t</script>\t\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
	
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.ccurl.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.mysql.syslogs.inc');
	

	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["wizard1"])){wizard1();exit;}
	if(isset($_GET["wizard2"])){wizard2();exit;}
	if(isset($_GET["wizard3"])){wizard3();exit;}
	if(isset($_GET["wizard4"])){wizard4();exit;}
	if(isset($_GET["wizard5"])){wizard5();exit;}
	if(isset($_GET["wizard6"])){wizard6();exit;}
	if(isset($_GET["wizard7"])){wizard7();exit;}
	if(isset($_GET["wizard8"])){wizard8();exit;}
	if(isset($_GET["wizard9"])){wizard9();exit;}
	if(isset($_GET["wizard10"])){wizard10();exit;}
	if(isset($_GET["wizard11"])){wizard11();exit;}
	if(isset($_GET["wizard12"])){wizard12();exit;}
	
	if(isset($_POST["EnableRemoteStatisticsAppliance"])){Save();exit;}
	if(isset($_POST["SERVER"])){wizard_save();exit;}
	if(isset($_POST["SquidDBListenPort"])){wizard_save();exit;}
js();
Exemple #4
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.main_cf.inc';
$user = new usersMenus();
$tpl = new templates();
if ($user->AsArticaAdministrator == false) {
    echo $tpl->_ENGINE_parse_body('{no_privileges}');
}
if (isset($_GET["wizard1"])) {
    wizard1();
    exit;
}
if (isset($_GET["wizard2"])) {
    wizard2();
    exit;
}
if (isset($_GET["wizard3"])) {
    wizard3();
    exit;
}
if (isset($_GET["wizard4"])) {
    wizard4();
    exit;
}
if (isset($_GET["wizard5"])) {
    wizard5();
    exit;
}
if (isset($_GET["wizard6"])) {
    wizard6();