Example #1
0
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} » {$_GET["hostname"]}";
    $hostname = $_GET["hostname"];
    if ($hostname == null) {
        $title = "{virtual_server} » {add}";
Example #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["strict_allocate"])){main_settings_save();exit;}
	

	js();
function js(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$title="{file_sharing_behavior}&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}';
		
		while (list ($num, $ligne) = each ($array) ){
<?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}';