예제 #1
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.ini.inc');
	include_once('ressources/class.samba.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.computers.inc');
	include_once('ressources/class.pdns.inc');
	
	

	
	if(!CheckSambaRights()){die();}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["SimpleShareSearch"])){SimpleShareSearch();exit;}
	if(isset($_GET["SimpleShareAddCompForm"])){SimpleShareAddCompForm();exit;}
	if(isset($_GET["computername_add"])){SimpleShareAddComputerLDAP();exit;}
	if(isset($_GET["SharedList"])){SharedList();exit;}
	if(isset($_GET["add-uid"])){SimpleShareAddCompToPath();exit;}
	if(isset($_GET["del-uid"])){SimpleShareDelCompToPath();exit;}
	js();
	
function js(){
	$tpl=new templates();
	$simple_share=$tpl->_ENGINE_parse_body("{simple_share}");
	$page=CurrentPageName();
	$html="
	
	YahooWin2('500','$page?popup=yes&path={$_GET["path"]}','$simple_share');
	
예제 #2
0
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.samba.inc';
include_once 'ressources/class.user.inc';
include_once 'ressources/class.kav4samba.inc';
if (isset($_GET["verbose"])) {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
    $GLOBALS["VERBOSE"] = true;
}
if (isset($_GET["debug-page"])) {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
    $GLOBALS["VERBOSE"] = true;
}
if (!CheckSambaRights()) {
    $tpl = new templates();
    $ERROR_NO_PRIVS = $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
    echo "<H1>{$ERROR_NO_PRIVS}</H1>";
    die;
}
if (isset($_GET["domains-show"])) {
    domains_show();
    exit;
}
if (isset($_GET["domains-show-list"])) {
    domains_show_list();
    exit;
}
if (isset($_GET["domain-info"])) {
    domain_info();
예제 #3
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.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.samba.inc');
	include_once('ressources/class.user.inc');
	include_once('ressources/class.kav4samba.inc');
	
	if(isset($_GET["debug-page"])){ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);$GLOBALS["VERBOSE"]=true;}

	$tpl=new templates();
	$ERROR_NO_PRIVS=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
	if(!CheckSambaRights()){echo "<H1>$ERROR_NO_PRIVS</H1>";die();}
	if( isset($_POST['upload']) ){main_kav4samba_LicenceUploaded();exit();}
	if(isset($_GET["FolderDelete"])){folder_delete();exit;}
	if(isset($_GET["mkdirp"])){mkdirp();exit;}
	if(isset($_GET["TreeRightInfos"])){TreeRightInfos();exit;}
	if(isset($_GET["userlists"])){echo folder_security_list_users();exit;}
	if(isset($_GET["AddUserToFolder"])){folder_security_adduser();exit;}
	if(isset($_GET["SaveUseridPrivileges"])){folder_security_save_priv();exit;}
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_POST["ChangeShareNameOrg"])){folder_change_sharename();exit;}
	
	if(!CheckSambaUniqueRights()){echo "<H1>$ERROR_NO_PRIVS</H1>";die();}
	if(isset($_GET["RestartServices"])){restart_services();exit;}
	if(isset($_GET["script"])){popup_js();exit;}
	if(isset($_GET["popup"])){popup_page();exit;}
	if(isset($_GET["SaveGeneralSettings"])){SaveConf();exit;}
	if(isset($_GET["status"])){echo main_status();exit;}