<?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.pure-ftpd.inc'); if(isset($_GET["js"])){js();exit;} $user=new usersMenus(); if($user->PUREFTP_INSTALLED==false){header('location:users.index.php');exit();} if(($user->AsSystemAdministrator==false) OR ($user->AsSambaAdministrator)==false){header('location:users.index.php');exit();} if(isset($_GET["SaveGeneralSettings"])){SaveGeneralSettings();exit;} if(isset($_GET["main"])){main_switch();exit;} if(isset($_GET["pure-ftpd-page"])){main_js();exit;} if(isset($_GET["pure-js"])){main_config_pureftpd_js();exit;} main_page(); function js(){ $user=new usersMenus(); if($user->PUREFTP_INSTALLED==false){die("alert('product not installed')");} if(($user->AsSystemAdministrator==false) OR ($user->AsSambaAdministrator)==false){die("alert('No privileges')");} if(is_file("js/pureftpd.js")){$jsadd=file_get_contents("js/pureftpd.js");}; $page=CurrentPageName(); $html=" function PureFtpdLoad(){ YahooWin('700','$page?pure-ftpd-page=yes');
if($_GET["dar-index-tab"]=="dar"){echo index_dar();exit;} if($_GET["dar-index-tab"]=="rsync"){echo index_rsync();exit;} if(isset($_GET["perform-run-backup"])){run_backup_perform();exit;} if(isset($_GET["js"])){echo js();exit;} if(isset($_GET["js-logs"])){echo js();exit;} if(isset($_GET["index-page"])){echo index();exit;} if(isset($_GET["dar-settings"])){echo global_settings();exit;} if(isset($_GET["dar-target"])){echo WhatToBackup();exit;} if(isset($_GET["dar-params"])){echo dar_settings();exit;} if(isset($_GET["exclude-types"])){echo dar_exclude_types();exit;} if(isset($_GET["hsched"])){echo SaveBackupSettings();exit;} if(isset($_GET["dar_file"])){echo SaveGeneralSettings();exit;} if(isset($_GET["shares_folders"])){echo SaveBackupSettings();exit;} if(isset($_GET["exclude-shared-folders"])){echo samba_excludes_shared();exit;} if(isset($_GET["exclude-homes-folders"])){echo homes_excludes();exit;} if(isset($_GET["ExcludeSMBFolder"])){samba_excludes_shared_save();exit;} if(isset($_GET["ExcludeHomesFolder"])){homes_excludes_save();exit;} if(isset($_GET["minimal_compress"])){echo SaveBackupSettings();exit;} if(isset($_GET["exclude-type-list"])){echo dar_exclude_types_list();exit;} if(isset($_GET["AddExcludeDarFileType"])){dar_exclude_types_add();exit;} if(isset($_GET["user-defined-folders"])){echo user_defined();exit;}
include_once 'ressources/class.artica.inc'; include_once 'ressources/class.ini.inc'; include_once 'ressources/class.sqlgrey.inc'; $user = new usersMenus(); if ($_GET["hostname"] == null) { $hostname = $users->hostname; $_GET["hostname"] = $hostname; } else { $hostname = $_GET["hostname"]; } if ($user->AsPostfixAdministrator == false) { header('location:users.index.php'); exit; } if (isset($_GET["SaveGeneralSettings"])) { SaveGeneralSettings(); exit; } if (isset($_GET["main"])) { main_switch(); exit; } if (isset($_GET["AddFqdnWL"])) { main_wl_fqdn_add(); exit; } if (isset($_GET["DelFqdnWL"])) { main_wl_fqdn_del(); exit; } if (isset($_GET["AddIPWL"])) {