Ejemplo n.º 1
0
    $GLOBALS["VERBOSE"] = true;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["settings"])) {
    main_settings();
    exit;
}
if (isset($_POST["RootDir"])) {
    main_settings_save();
    exit;
}
if (isset($_GET["ipaddr-field"])) {
    field_ipaddr();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = "{virtual_server} » {$_GET["hostname"]}";
    $hostname = $_GET["hostname"];
    if ($hostname == null) {
        $title = "{virtual_server} » {add}";
    }
    $title = $tpl->_ENGINE_parse_body($title);
    $html = "YahooWin3(650,'{$page}?tabs=yes&hostname={$hostname}','{$title}')";
    echo $html;
Ejemplo n.º 2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.samba.aliases.inc');

	if(isset($_GET["debug-page"])){ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);$GLOBALS["VERBOSE"]=true;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["settings"])){main_settings();exit;}
	if(isset($_POST["RootDir"])){main_settings_save();exit;}
	if(isset($_GET["ipaddr-field"])){field_ipaddr();exit;}

	js();
function js(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$title="{virtual_server}&nbsp;&raquo;&nbsp;{$_GET["hostname"]}";
	$hostname=$_GET["hostname"];
	if($hostname==null){$title="{virtual_server}&nbsp;&raquo;&nbsp;{add}";}
	$title=$tpl->_ENGINE_parse_body($title);
	$html="YahooWin3(650,'$page?tabs=yes&hostname=$hostname','$title')";
	echo $html;	
	}
	
function tabs(){
		$page=CurrentPageName();
		$tpl=new templates();
		$array["settings"]='{main_settings}';
		if($_GET["hostname"]<>null){
			$array["shares"]='{shared_folders}';