Cleaning up code to match coding guidelines
| | |
| | | |
| | | while($row = mysql_fetch_array($result)) |
| | | { |
| | | ### Hier ALLES Aktivieren bei Primary Nameserver TEIL 1 ################################################################################# |
| | | //## Hier ALLES Aktivieren bei Primary Nameserver TEIL 1 ################################################################################# |
| | | $varx11=substr($row["origin"],0,-1); |
| | | $filename="/var/cache/bind/".$varx11; |
| | | if (file_exists($filename)) { |
| | |
| | | fclose($f); |
| | | $arr2=array(); |
| | | $arr3=array(); |
| | | ### ENDE Primärer Nameserver TEIL 2 ##################################################################################################### |
| | | //## ENDE Primärer Nameserver TEIL 2 ##################################################################################################### |
| | | |
| | | ### Hier ALLES Aktivieren bei Secondary Nameserver ###################################################################################### |
| | | # $tmp1 = substr($row["ns"],0,-1); |
| | | # $tmp2 = substr($row["origin"],0,-1); |
| | | //## Hier ALLES Aktivieren bei Secondary Nameserver ###################################################################################### |
| | | // $tmp1 = substr($row["ns"],0,-1); |
| | | // $tmp2 = substr($row["origin"],0,-1); |
| | | |
| | | # if (!isset($dnscache[$tmp1])) $nsip = hostname2ipfunktion($tmp1) ; |
| | | # else $nsip=$dnscache[$tmp1] ; |
| | | // if (!isset($dnscache[$tmp1])) $nsip = hostname2ipfunktion($tmp1) ; |
| | | // else $nsip=$dnscache[$tmp1] ; |
| | | |
| | | # if ($nsip == $tmp1) |
| | | # { |
| | | # echo "$tmp2 $tmp1 Not a valid Nameserver"; |
| | | # echo "\n"; |
| | | # } |
| | | # else |
| | | # { |
| | | # $dnscache[$tmp1]=$nsip; |
| | | # $arr1[$x11]="zone \"".$tmp2."\" in { type slave; file \"".$tmp2."\"; masters {".$nsip."; }; };\n"; |
| | | # $x11=$x11+1; |
| | | # } |
| | | ### ENDE Secondary Nameserver ########################################################################################################### |
| | | // if ($nsip == $tmp1) |
| | | // { |
| | | // echo "$tmp2 $tmp1 Not a valid Nameserver"; |
| | | // echo "\n"; |
| | | // } |
| | | // else |
| | | // { |
| | | // $dnscache[$tmp1]=$nsip; |
| | | // $arr1[$x11]="zone \"".$tmp2."\" in { type slave; file \"".$tmp2."\"; masters {".$nsip."; }; };\n"; |
| | | // $x11=$x11+1; |
| | | // } |
| | | //## ENDE Secondary Nameserver ########################################################################################################### |
| | | } |
| | | |
| | | unlink ("/etc/bind/named.conf.local"); |
| | |
| | | fclose($fx); |
| | | system("rndc reconfig >/dev/null 2>&1"); |
| | | |
| | | ### ANFANG Primärer Namerserver TEIL 2 ################################################################################################## |
| | | //## ANFANG Primärer Namerserver TEIL 2 ################################################################################################## |
| | | $serialsearch=date("Ymd"); |
| | | $resultx13 = mysql_query("SELECT origin,serial FROM dns_soa WHERE serial LIKE '$serialsearch%' ORDER BY origin ASC;"); |
| | | while ($rowx13=mysql_fetch_array($resultx13)) { |
| | | $serial_ist=($rowx13["serial"]); |
| | | $zone=substr($rowx13["origin"],0,-1); |
| | | # echo "zone: ".$zone." ist: ".$serial_ist." vergleich: ".$serialvergleich[$zone]."\n"; |
| | | // echo "zone: ".$zone." ist: ".$serial_ist." vergleich: ".$serialvergleich[$zone]."\n"; |
| | | if ($serialvergleich[$zone] != $serial_ist) { |
| | | $reload=system("rndc reload $zone >/dev/null 2>&1"); |
| | | } |
| | | } |
| | | ### ENDE Primärer NamerserverTEIL 2 ###################################################################################################### |
| | | //## ENDE Primärer NamerserverTEIL 2 ###################################################################################################### |
| | | ?> |
| | |
| | | <?php |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Re-Create webalizer statistics |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | |
| | | $sql = "SELECT domain_id, domain, document_root FROM web_domain WHERE server_id = ".$conf["server_id"]; |
| | |
| | | } |
| | | |
| | | //** Include the library with the basic installer functions |
| | | require_once('lib/install.lib.php'); |
| | | require_once 'lib/install.lib.php'; |
| | | |
| | | //** Include the library with the basic updater functions |
| | | require_once('lib/update.lib.php'); |
| | | require_once 'lib/update.lib.php'; |
| | | |
| | | //** Include the base class of the installer class |
| | | require_once('lib/installer_base.lib.php'); |
| | | require_once 'lib/installer_base.lib.php'; |
| | | |
| | | //** Ensure that current working directory is install directory |
| | | $cur_dir = getcwd(); |
| | |
| | | //** Get distribution identifier |
| | | $dist = get_distname(); |
| | | |
| | | include_once("/usr/local/ispconfig/server/lib/config.inc.php"); |
| | | include_once "/usr/local/ispconfig/server/lib/config.inc.php"; |
| | | $conf_old = $conf; |
| | | unset($conf); |
| | | |
| | | if($dist['id'] == '') die('Linux distribution or version not recognized.'); |
| | | |
| | | //** Include the distribution-specific installer class library and configuration |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php'); |
| | | include_once('dist/lib/'.$dist['id'].'.lib.php'); |
| | | include_once('dist/conf/'.$dist['id'].'.conf.php'); |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once 'dist/lib/'.$dist['baseid'].'.lib.php'; |
| | | include_once 'dist/lib/'.$dist['id'].'.lib.php'; |
| | | include_once 'dist/conf/'.$dist['id'].'.conf.php'; |
| | | |
| | | //** Get hostname |
| | | exec('hostname -f', $tmp_out); |
| | |
| | | $inst->find_installed_apps(); |
| | | |
| | | //** Initialize the MySQL server connection |
| | | include_once('lib/mysql.lib.php'); |
| | | include_once 'lib/mysql.lib.php'; |
| | | |
| | | //** Database update is a bit brute force and should be rebuild later ;) |
| | | |
| | |
| | | $clientdb_host = ''; |
| | | $clientdb_user = ''; |
| | | $clientdb_password = ''; |
| | | include_once("/usr/local/ispconfig/server/lib/mysql_clientdb.conf"); |
| | | include_once "/usr/local/ispconfig/server/lib/mysql_clientdb.conf"; |
| | | $conf["mysql"]["admin_user"] = $clientdb_user; |
| | | $conf["mysql"]["admin_password"] = $clientdb_password; |
| | | $clientdb_host = ''; |
| | |
| | | copy('tpl/dovecot_fail2ban_jail.local.master','/etc/fail2ban/jail.local'); |
| | | */ |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | if ($dh = opendir($dir)) { |
| | | while (($file = readdir($dh)) !== false) { |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/mods-available/'.$file); |
| | | include_once $install_dir.'/server/mods-available/'.$file; |
| | | $module_name = substr($file,0,-8); |
| | | $tmp = new $module_name; |
| | | if($tmp->onInstall()) { |
| | |
| | | if($conf['apache']['installed'] == true && $file == 'nginx_plugin.inc.php') continue; |
| | | if($conf['nginx']['installed'] == true && $file == 'apache2_plugin.inc.php') continue; |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/plugins-available/'.$file); |
| | | include_once $install_dir.'/server/plugins-available/'.$file; |
| | | $plugin_name = substr($file,0,-8); |
| | | $tmp = new $plugin_name; |
| | | if($tmp->onInstall()) { |
| | |
| | | * -D displaydotfiles |
| | | * -H dontresolve |
| | | */ |
| | | |
| | | |
| | | $content = preg_replace('/MISC_OTHER="[^"]+"/', 'MISC_OTHER="-b -A -E -Z -D -H -O clf:'.$logdir.'/transfer.log"', $content); |
| | | |
| | | $this->write_config_file($conf['pureftpd']['config_file'], $content); |
| | |
| | | if ($dh = opendir($dir)) { |
| | | while (($file = readdir($dh)) !== false) { |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/mods-available/'.$file); |
| | | include_once $install_dir.'/server/mods-available/'.$file; |
| | | $module_name = substr($file,0,-8); |
| | | $tmp = new $module_name; |
| | | if($tmp->onInstall()) { |
| | |
| | | if($conf['apache']['installed'] == true && $file == 'nginx_plugin.inc.php') continue; |
| | | if($conf['nginx']['installed'] == true && $file == 'apache2_plugin.inc.php') continue; |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/plugins-available/'.$file); |
| | | include_once $install_dir.'/server/plugins-available/'.$file; |
| | | $plugin_name = substr($file,0,-8); |
| | | $tmp = new $plugin_name; |
| | | if(method_exists($tmp,'onInstall') && $tmp->onInstall()) { |
| | |
| | | if(@is_dir('/usr/local/ispconfig/interface/web/domain')) exec('rm -rf /usr/local/ispconfig/interface/web/domain'); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | if ($dh = opendir($dir)) { |
| | | while (($file = readdir($dh)) !== false) { |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/mods-available/'.$file); |
| | | include_once $install_dir.'/server/mods-available/'.$file; |
| | | $module_name = substr($file,0,-8); |
| | | $tmp = new $module_name; |
| | | if($tmp->onInstall()) { |
| | |
| | | if($conf['apache']['installed'] == true && $file == 'nginx_plugin.inc.php') continue; |
| | | if($conf['nginx']['installed'] == true && $file == 'apache2_plugin.inc.php') continue; |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/plugins-available/'.$file); |
| | | include_once $install_dir.'/server/plugins-available/'.$file; |
| | | $plugin_name = substr($file,0,-8); |
| | | $tmp = new $plugin_name; |
| | | if($tmp->onInstall()) { |
| | |
| | | echo "\n\n>> Initial configuration \n\n"; |
| | | |
| | | //** Include the library with the basic installer functions |
| | | require_once('lib/install.lib.php'); |
| | | require_once 'lib/install.lib.php'; |
| | | |
| | | //** Include the base class of the installer class |
| | | require_once('lib/installer_base.lib.php'); |
| | | require_once 'lib/installer_base.lib.php'; |
| | | |
| | | //** Ensure that current working directory is install directory |
| | | $cur_dir = getcwd(); |
| | |
| | | if($dist['id'] == '') die('Linux distribution or version not recognized.'); |
| | | |
| | | //** Include the distribution-specific installer class library and configuration |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php'); |
| | | include_once('dist/lib/'.$dist['id'].'.lib.php'); |
| | | include_once('dist/conf/'.$dist['id'].'.conf.php'); |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once 'dist/lib/'.$dist['baseid'].'.lib.php'; |
| | | include_once 'dist/lib/'.$dist['id'].'.lib.php'; |
| | | include_once 'dist/conf/'.$dist['id'].'.conf.php'; |
| | | |
| | | //**************************************************************************************************** |
| | | //** Installer Interface |
| | |
| | | |
| | | |
| | | //** Initializing database connection |
| | | include_once('lib/mysql.lib.php'); |
| | | include_once 'lib/mysql.lib.php'; |
| | | $inst->db = new db(); |
| | | |
| | | //** Begin with standard or expert installation |
| | |
| | | Function to find the hash file for timezone detection |
| | | (c) 2012 Marius Cramer, pixcept KG, m.cramer@pixcept.de |
| | | */ |
| | | |
| | | |
| | | function find_hash_file($hash, $dir, $basedir = '') { |
| | | $res = opendir($dir); |
| | | if(!$res) return false; |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | Function to get the timezone of the Linux system |
| | | (c) 2012 Marius Cramer, pixcept KG, m.cramer@pixcept.de |
| | |
| | | } |
| | | |
| | | public function warning($msg) { |
| | | echo('WARNING: '.$msg."\n"); |
| | | echo 'WARNING: '.$msg."\n"; |
| | | } |
| | | |
| | | public function simple_query($query, $answers, $default) { |
| | |
| | | } |
| | | |
| | | /** Create the database for ISPConfig */ |
| | | |
| | | |
| | | public function configure_database() { |
| | | global $conf; |
| | | |
| | |
| | | if ($dh = opendir($dir)) { |
| | | while (($file = readdir($dh)) !== false) { |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/mods-available/'.$file); |
| | | include_once $install_dir.'/server/mods-available/'.$file; |
| | | $module_name = substr($file,0,-8); |
| | | $tmp = new $module_name; |
| | | if($tmp->onInstall()) { |
| | |
| | | if($conf['apache']['installed'] == true && $file == 'nginx_plugin.inc.php') continue; |
| | | if($conf['nginx']['installed'] == true && $file == 'apache2_plugin.inc.php') continue; |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | include_once($install_dir.'/server/plugins-available/'.$file); |
| | | include_once $install_dir.'/server/plugins-available/'.$file; |
| | | $plugin_name = substr($file,0,-8); |
| | | $tmp = new $plugin_name; |
| | | if(method_exists($tmp,'onInstall') && $tmp->onInstall()) { |
| | |
| | | |
| | | return $tContents; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | $this->errorLocation = $location; |
| | | if($this->errorNumber && $this->show_error_messages) |
| | | { |
| | | echo('<br /><b>'.$this->errorLocation.'</b><br />'.$this->errorMessage); |
| | | echo '<br /><b>'.$this->errorLocation.'</b><br />'.$this->errorMessage; |
| | | flush(); |
| | | } |
| | | } |
| | |
| | | class installer_patch_update { |
| | | protected function onBeforeSQL() { |
| | | } |
| | | |
| | | protected function onAfterSQL() { |
| | | } |
| | | |
| | | } |
| | | |
| | | //* DB dump function |
| | |
| | | //* Load php patch file and instantiate object |
| | | if(is_file($php_patch_filename)) { |
| | | $php_patch_class_name = 'upd_'.str_pad($next_db_version, 4, '0', STR_PAD_LEFT); |
| | | include_once($php_patch_filename); |
| | | include_once $php_patch_filename; |
| | | if(class_exists($php_patch_class_name)) { |
| | | $php_patch = new $php_patch_class_name; |
| | | } else { |
| | |
| | | public function onBeforeSQL() { |
| | | // Do something |
| | | } |
| | | |
| | | public function onAfterSQL() { |
| | | // Do something |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | echo "\n\n>>This script tries to repair the client rights \n\n"; |
| | | |
| | | //** Include the library with the basic installer functions |
| | | require_once('lib/install.lib.php'); |
| | | require_once 'lib/install.lib.php'; |
| | | |
| | | //** Include the library with the basic updater functions |
| | | require_once('lib/update.lib.php'); |
| | | require_once 'lib/update.lib.php'; |
| | | |
| | | //** Include the base class of the installer class |
| | | require_once('lib/installer_base.lib.php'); |
| | | require_once 'lib/installer_base.lib.php'; |
| | | |
| | | //** Ensure that current working directory is install directory |
| | | $cur_dir = getcwd(); |
| | |
| | | //** Get distribution identifier |
| | | $dist = get_distname(); |
| | | |
| | | include_once("/usr/local/ispconfig/server/lib/config.inc.php"); |
| | | include_once "/usr/local/ispconfig/server/lib/config.inc.php"; |
| | | $conf_old = $conf; |
| | | unset($conf); |
| | | |
| | | if($dist['id'] == '') die('Linux distribution or version not recognized.'); |
| | | |
| | | //** Include the distribution-specific installer class library and configuration |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php'); |
| | | include_once('dist/lib/'.$dist['id'].'.lib.php'); |
| | | include_once('dist/conf/'.$dist['id'].'.conf.php'); |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once 'dist/lib/'.$dist['baseid'].'.lib.php'; |
| | | include_once 'dist/lib/'.$dist['id'].'.lib.php'; |
| | | include_once 'dist/conf/'.$dist['id'].'.conf.php'; |
| | | |
| | | //** Get hostname |
| | | exec('hostname -f', $tmp_out); |
| | |
| | | $clientdb_host = ''; |
| | | $clientdb_user = ''; |
| | | $clientdb_password = ''; |
| | | include_once("/usr/local/ispconfig/server/lib/mysql_clientdb.conf"); |
| | | include_once "/usr/local/ispconfig/server/lib/mysql_clientdb.conf"; |
| | | $conf["mysql"]["admin_user"] = $clientdb_user; |
| | | $conf["mysql"]["admin_password"] = $clientdb_password; |
| | | $clientdb_host = ''; |
| | |
| | | $inst = new installer(); |
| | | |
| | | //** Initialize the MySQL server connection |
| | | include_once('lib/mysql.lib.php'); |
| | | include_once 'lib/mysql.lib.php'; |
| | | |
| | | //* initialize the database |
| | | $inst->db = new db(); |
| | |
| | | echo "\n".str_repeat('-',80)."\n"; |
| | | echo "\n\n>> Uninstall \n\n"; |
| | | |
| | | require("/usr/local/ispconfig/server/lib/config.inc.php"); |
| | | require("/usr/local/ispconfig/server/lib/app.inc.php"); |
| | | require "/usr/local/ispconfig/server/lib/config.inc.php"; |
| | | require "/usr/local/ispconfig/server/lib/app.inc.php"; |
| | | |
| | | // Delete the ISPConfig database |
| | | // $app->db->query("DROP DATABASE '".$conf["db_database"]."'"); |
| | |
| | | echo "\n".str_repeat('-',80)."\n"; |
| | | echo "\n\n>> Uninstall \n\n"; |
| | | |
| | | require("/usr/local/ispconfig/server/lib/config.inc.php"); |
| | | require("/usr/local/ispconfig/server/lib/app.inc.php"); |
| | | require "/usr/local/ispconfig/server/lib/config.inc.php"; |
| | | require "/usr/local/ispconfig/server/lib/app.inc.php"; |
| | | |
| | | // Delete the ISPConfig database |
| | | // $app->db->query("DROP DATABASE '".$conf["db_database"]."'"); |
| | |
| | | echo "\n\n>> Update \n\n"; |
| | | |
| | | //** Include the library with the basic installer functions |
| | | require_once('lib/install.lib.php'); |
| | | require_once 'lib/install.lib.php'; |
| | | |
| | | //** Include the library with the basic updater functions |
| | | require_once('lib/update.lib.php'); |
| | | require_once 'lib/update.lib.php'; |
| | | |
| | | //** Include the base class of the installer class |
| | | require_once('lib/installer_base.lib.php'); |
| | | require_once 'lib/installer_base.lib.php'; |
| | | |
| | | //** Ensure that current working directory is install directory |
| | | $cur_dir = getcwd(); |
| | |
| | | //** Get distribution identifier |
| | | $dist = get_distname(); |
| | | |
| | | include_once("/usr/local/ispconfig/server/lib/config.inc.php"); |
| | | include_once "/usr/local/ispconfig/server/lib/config.inc.php"; |
| | | $conf_old = $conf; |
| | | unset($conf); |
| | | |
| | | if($dist['id'] == '') die('Linux distribution or version not recognized.'); |
| | | |
| | | //** Include the distribution-specific installer class library and configuration |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once('dist/lib/'.$dist['baseid'].'.lib.php'); |
| | | include_once('dist/lib/'.$dist['id'].'.lib.php'); |
| | | include_once('dist/conf/'.$dist['id'].'.conf.php'); |
| | | if(is_file('dist/lib/'.$dist['baseid'].'.lib.php')) include_once 'dist/lib/'.$dist['baseid'].'.lib.php'; |
| | | include_once 'dist/lib/'.$dist['id'].'.lib.php'; |
| | | include_once 'dist/conf/'.$dist['id'].'.conf.php'; |
| | | |
| | | //** Get hostname |
| | | exec('hostname -f', $tmp_out); |
| | |
| | | |
| | | |
| | | //** Initialize the MySQL server connection |
| | | include_once('lib/mysql.lib.php'); |
| | | include_once 'lib/mysql.lib.php'; |
| | | |
| | | //** Database update is a bit brute force and should be rebuild later ;) |
| | | |
| | |
| | | $clientdb_host = ''; |
| | | $clientdb_user = ''; |
| | | $clientdb_password = ''; |
| | | include_once("/usr/local/ispconfig/server/lib/mysql_clientdb.conf"); |
| | | include_once "/usr/local/ispconfig/server/lib/mysql_clientdb.conf"; |
| | | $conf["mysql"]["admin_user"] = $clientdb_user; |
| | | $conf["mysql"]["admin_password"] = $clientdb_password; |
| | | $clientdb_host = ''; |
| | |
| | | $classname = trim($classname); |
| | | //* Class is not loaded so load it |
| | | if(!array_key_exists($classname, $this->_loaded_classes)) { |
| | | include_once(ISPC_CLASS_PATH."/$classname.inc.php"); |
| | | include_once ISPC_CLASS_PATH."/$classname.inc.php"; |
| | | $this->$classname = new $classname(); |
| | | $this->_loaded_classes[$classname] = true; |
| | | } |
| | |
| | | if(is_array($fl)) { |
| | | foreach($fl as $file) { |
| | | $file = trim($file); |
| | | include_once(ISPC_CLASS_PATH."/$file.inc.php"); |
| | | include_once ISPC_CLASS_PATH."/$file.inc.php"; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** Priority values are: 0 = DEBUG, 1 = WARNING, 2 = ERROR */ |
| | | |
| | | |
| | | public function log($msg, $priority = 0) { |
| | | global $conf; |
| | | if($priority >= $this->_conf['log_priority']) { |
| | |
| | | $filename = ISPC_ROOT_PATH.'/'.$filename; |
| | | if(substr($filename,-4) != '.lng') $this->error('Language file has wrong extension.'); |
| | | if(file_exists($filename)) { |
| | | @include($filename); |
| | | @include $filename; |
| | | if(is_array($wb)) { |
| | | if(is_array($this->_wb)) { |
| | | $this->_wb = array_merge($this->_wb,$wb); |
| | |
| | | * @param $interface_mode act in interface (true) or server mode (false) |
| | | * @param $log_prefix a prefix to set before all log entries |
| | | */ |
| | | |
| | | |
| | | public function __construct($app, $log_prefix = 'APS: ', $interface_mode = false) |
| | | { |
| | | $this->log_prefix = $log_prefix; |
| | |
| | | $this->packages_dir = ISPC_ROOT_PATH.'/aps_packages'; |
| | | $this->interface_pkg_dir = ISPC_ROOT_PATH.'/web/sites/aps_meta_packages'; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Converts a given value to it's native representation in 1024 units |
| | |
| | | $unit = array('Bytes', 'KB', 'MB', 'GB', 'TB'); |
| | | return @round($value/pow(1024, ($i = floor(log($value, 1024)))), 2).' '.$unit[$i]; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Determine a specific xpath from a given SimpleXMLElement handle. If the |
| | |
| | | |
| | | return $ret; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | require_once('aps_base.inc.php'); |
| | | require_once 'aps_base.inc.php'; |
| | | |
| | | @set_time_limit(0); |
| | | @ignore_user_abort(1); |
| | |
| | | * @param $app the application instance (db handle + log method) |
| | | * @param $interface_mode act in interface (true) or server mode (false) |
| | | */ |
| | | |
| | | |
| | | public function __construct($app, $interface_mode = false) |
| | | { |
| | | parent::__construct($app, 'APS crawler: ', $interface_mode); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Before the cron is executed, make sure all necessary options are set |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | catch(Exception $e) |
| | | { |
| | | $app->log($this->log_prefix.'Aborting execution because '.$e->getMessage(), LOGLEVEL_ERROR); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Remove a directory recursively |
| | |
| | | return $ret; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Fetch binary data from a given array |
| | | * The data is retrieved in binary mode and |
| | |
| | | curl_multi_close($mh); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * A method to build query URLs out of a list of vendors |
| | | * |
| | |
| | | $array_item = str_replace(' ', '%20', $array_item); |
| | | $array_item = str_replace('http://', '', $array_item); |
| | | $array_item = '/'.$this->aps_version.'.atom?vendor='.$array_item.'&pageSize=100'; |
| | | return($array_item); |
| | | return $array_item; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * The main method which performs the actual crawling |
| | |
| | | ' apps from the repo. Downloaded '.$apps_updated. |
| | | ' updates, '.$apps_downloaded.' new apps'); |
| | | } |
| | | |
| | | catch(Exception $e) |
| | | { |
| | | $app->log($this->log_prefix.$e->getMessage(), LOGLEVEL_ERROR); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Read in all possible packages from the interface packages folder and |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | catch(Exception $e) |
| | | { |
| | | $app->log($this->log_prefix.$e->getMessage(), LOGLEVEL_ERROR); |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Add missing package URLs to database |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | catch(Exception $e) |
| | | { |
| | | $app->log($this->log_prefix.$e->getMessage(), LOGLEVEL_ERROR); |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | require_once('aps_base.inc.php'); |
| | | require_once 'aps_base.inc.php'; |
| | | |
| | | class ApsGUIController extends ApsBase |
| | | { |
| | |
| | | * |
| | | * @param $app the application instance (db handle) |
| | | */ |
| | | |
| | | |
| | | public function __construct($app) |
| | | { |
| | | parent::__construct($app); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Reads in a package metadata file and registers it's namespaces |
| | |
| | | |
| | | return $sxe; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Applies a RegEx pattern onto a location path in order to secure it against |
| | |
| | | return $location; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Gets the CustomerID (ClientID) which belongs to a specific domain |
| | | * |
| | |
| | | |
| | | return $customerid; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Returns the server_id for an already installed instance. Is actually |
| | |
| | | |
| | | return $webserver_id; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Finds out if there is a newer package version for |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Validates a given instance ID |
| | | * |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Creates a new database record for the package instance and |
| | |
| | | $app->db->datalogUpdate('aps_instances', "instance_status = ".INSTANCE_INSTALL, 'id', $InstanceID); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Sets the status of an instance to "should be removed" and creates a |
| | | * datalog entry to give the ISPConfig server a real removal advice |
| | |
| | | $app->db->datalogUpdate('aps_instances', "instance_status = ".INSTANCE_REMOVE, 'id', $instanceid); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Sets the status of an instance to "installation planned" and creates a |
| | |
| | | |
| | | return $settings; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Validates the user input according to the settings array and |
| | |
| | | return $ret; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Read the metadata of a package and returns some content |
| | | * |
| | |
| | | |
| | | return $pkg; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * @author (original tools.inc.php) Oliver Vogel www.muv.com |
| | | */ |
| | | |
| | | |
| | | class client_templates { |
| | | |
| | | |
| | | /** |
| | | * - check for old-style templates and change to new style |
| | |
| | | function apply_client_templates($clientId) { |
| | | global $app; |
| | | |
| | | include('../client/form/client.tform.php'); |
| | | include '../client/form/client.tform.php'; |
| | | |
| | | /* |
| | | * Get the master-template for the client |
| | |
| | | } |
| | | unset($form); |
| | | } |
| | | |
| | | } |
| | |
| | | $this->dbPass = $conf["db_password"]; |
| | | $this->connect(); |
| | | } |
| | | |
| | | function __destruct() { |
| | | $this->closeConn(); |
| | | } |
| | |
| | | $this->errorLocation = $location; |
| | | if($this->errorNumber && $this->show_error_messages) |
| | | { |
| | | echo('<br /><b>'.$this->errorLocation.'</b><br />'.$this->errorMessage); |
| | | echo '<br /><b>'.$this->errorLocation.'</b><br />'.$this->errorMessage; |
| | | flush(); |
| | | } |
| | | } |
| | |
| | | * @version 1.1 |
| | | */ |
| | | |
| | | |
| | | class form { |
| | | |
| | | |
| | | |
| | | /** |
| | | * Definition der Tabelle (array) |
| | |
| | | */ |
| | | var $tableDef; |
| | | |
| | | |
| | | |
| | | /** |
| | | * Private |
| | | * @var action |
| | | */ |
| | | var $action; |
| | | |
| | | |
| | | |
| | | /** |
| | | * Tabellenname (String) |
| | |
| | | */ |
| | | var $table_name; |
| | | |
| | | |
| | | |
| | | /** |
| | | * Debug Variable |
| | | * @var debug |
| | | */ |
| | | var $debug = 0; |
| | | |
| | | |
| | | |
| | | /** |
| | | * name des primary Field der Tabelle (string) |
| | | * @var table_index |
| | | */ |
| | | var $table_index; |
| | | |
| | | |
| | | |
| | | /** |
| | | * enthält die Fehlermeldung bei Überprüfung |
| | |
| | | var $dateformat = "d.m.Y"; |
| | | var $formDef; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Laden der Tabellendefinition |
| | | * |
| | |
| | | function loadTableDef($file) { |
| | | global $app,$conf; |
| | | |
| | | include_once($file); |
| | | include_once $file; |
| | | $this->tableDef = $table; |
| | | $this->table_name = $table_name; |
| | | $this->table_index = $table_index; |
| | |
| | | function loadFormDef($file) { |
| | | global $app,$conf; |
| | | |
| | | include_once($file); |
| | | include_once $file; |
| | | $this->formDef = $form; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Record für Ausgabe in Formularen vorbereiten. |
| | |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Record in "maschinen lesbares" Format überführen |
| | | * und Werte gegen reguläre Ausdrücke prüfen. |
| | |
| | | } |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * SQL Statement für Record erzeugen. |
| | |
| | | return $sql; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Debugging arrays. |
| | | * |
| | |
| | | if($islist){ |
| | | $json = '[' . implode(',', array_map(array($this, "json_encode"), $data) ) . ']'; |
| | | } else { |
| | | $items = Array(); |
| | | $items = array(); |
| | | foreach( $data as $key => $value ) { |
| | | $items[] = $this->json_encode("$key") . ':' . $this->json_encode($value); |
| | | } |
| | | $json = '{' . implode(',', $items) . '}'; |
| | | } |
| | | } elseif(is_string($data)){ |
| | | # Escape non-printable or Non-ASCII characters. |
| | | # I also put the \\ character first, as suggested in comments on the 'addclashes' page. |
| | | // Escape non-printable or Non-ASCII characters. |
| | | // I also put the \\ character first, as suggested in comments on the 'addclashes' page. |
| | | $string = '"'.addcslashes($data, "\\\"\n\r\t/".chr(8).chr(12)).'"'; |
| | | $json = ''; |
| | | $len = strlen($string); |
| | | # Convert UTF-8 to Hexadecimal Codepoints. |
| | | // Convert UTF-8 to Hexadecimal Codepoints. |
| | | for($i = 0; $i < $len; $i++){ |
| | | $char = $string[$i]; |
| | | $c1 = ord($char); |
| | | |
| | | # Single byte; |
| | | // Single byte; |
| | | if($c1 <128){ |
| | | $json .= ($c1 > 31) ? $char : sprintf("\\u%04x", $c1); |
| | | continue; |
| | | } |
| | | |
| | | # Double byte |
| | | // Double byte |
| | | $c2 = ord($string[++$i]); |
| | | if(($c1 & 32) === 0){ |
| | | $json .= sprintf("\\u%04x", ($c1 - 192) * 64 + $c2 - 128); |
| | | continue; |
| | | } |
| | | |
| | | # Triple |
| | | // Triple |
| | | $c3 = ord($string[++$i]); |
| | | if(($c1 & 16) === 0){ |
| | | $json .= sprintf("\\u%04x", (($c1 - 224) <<12) + (($c2 - 128) << 6) + ($c3 - 128)); |
| | | continue; |
| | | } |
| | | |
| | | # Quadruple |
| | | // Quadruple |
| | | $c4 = ord($string[++$i]); |
| | | if(($c1 & 8) === 0){ |
| | | $u = (($c1 & 15) << 2) + (($c2>>4) & 3) - 1; |
| | |
| | | } |
| | | } |
| | | } else { |
| | | # int, floats, bools, null |
| | | // int, floats, bools, null |
| | | $json = strtolower(var_export($data, true)); |
| | | } |
| | | return $json; |
| | |
| | | /** IDN converter wrapper. |
| | | * all converter classes should be placed in ISPC_CLASS_PATH.'/idn/' |
| | | */ |
| | | |
| | | |
| | | private function _idn_encode_decode($domain, $encode = true) { |
| | | if($domain == '') return ''; |
| | | if(preg_match('/^[0-9\.]+$/', $domain)) return $domain; // may be an ip address - anyway does not need to bee encoded |
| | |
| | | */ |
| | | |
| | | if(!is_object($this->idn_converter) || $this->idn_converter_name != 'idna_convert.class') { |
| | | include_once(ISPC_CLASS_PATH.'/idn/idna_convert.class.php'); |
| | | include_once ISPC_CLASS_PATH.'/idn/idna_convert.class.php'; |
| | | $this->idn_converter = new idna_convert(array('idn_version' => 2008)); |
| | | $this->idn_converter_name = 'idna_convert.class'; |
| | | } |
| | |
| | | */ |
| | | |
| | | if(!is_object($this->idn_converter) || $this->idn_converter_name != 'idna_convert.class') { |
| | | include_once(ISPC_CLASS_PATH.'/idn/idna_convert.class.php'); |
| | | include_once ISPC_CLASS_PATH.'/idn/idna_convert.class.php'; |
| | | $this->idn_converter = new idna_convert(array('idn_version' => 2008)); |
| | | $this->idn_converter_name = 'idna_convert.class'; |
| | | } |
| | |
| | | } |
| | | return ($section == '') ? $this->config['global'] : $this->config['global'][$section]; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | |
| | | */ |
| | | |
| | | require_once(realpath(dirname(__FILE__)) . '/remoting.inc.php'); |
| | | require_once realpath(dirname(__FILE__)) . '/remoting.inc.php'; |
| | | |
| | | class fakeserver { |
| | | private $faultMessage; |
| | |
| | | $this->faultText = null; |
| | | return $ret; |
| | | } |
| | | |
| | | } |
| | | |
| | | class importer extends remoting { |
| | |
| | | { |
| | | return array(); // we have no sessions here |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * @package pxFramework |
| | | * |
| | | */ |
| | | |
| | | |
| | | class ispcmail { |
| | | |
| | | /**#@+ |
| | |
| | | private $user_agent = 'ISPConfig/3 (Mailer Class)'; |
| | | /**#@-*/ |
| | | |
| | | |
| | | |
| | | /** |
| | | * set the mail charset |
| | | */ |
| | |
| | | * |
| | | * @access public |
| | | */ |
| | | |
| | | /** |
| | | * if set to true smtp is used instead of mail() to send emails |
| | | * @see mail |
| | | */ |
| | | private $use_smtp = false; |
| | | |
| | | /** |
| | | * the smtp helo string - use the mail server name here! |
| | | */ |
| | | private $smtp_helo = ''; |
| | | |
| | | /** |
| | | * the smtp server to send mails |
| | | */ |
| | | private $smtp_host = ''; |
| | | |
| | | /** |
| | | * the smtp port |
| | | */ |
| | | private $smtp_port = 25; |
| | | |
| | | /** |
| | | * if the smtp server needs authentication you can set the smtp user here |
| | | */ |
| | | private $smtp_user = ''; |
| | | |
| | | /** |
| | | * if the smtp server needs authentication you can set the smtp password here |
| | | */ |
| | | private $smtp_pass = ''; |
| | | |
| | | /** |
| | | * If you want to use tls/ssl specify it here |
| | | */ |
| | |
| | | * How many mails should be sent via one single smtp connection |
| | | */ |
| | | private $smtp_max_mails = 20; |
| | | |
| | | /** |
| | | * Should the mail be signed |
| | | */ |
| | | private $sign_email = false; |
| | | |
| | | /** |
| | | * The cert and key to use for email signing |
| | | */ |
| | |
| | | private $sign_cert = ''; |
| | | private $sign_bundle = ''; |
| | | private $_is_signed = false; |
| | | |
| | | /** |
| | | * get disposition notification |
| | | */ |
| | |
| | | public function __destruct() { |
| | | $this->finish(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Set option |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** Detect the helo string if none given |
| | | * |
| | | */ |
| | |
| | | if($this->smtp_helo == '') $this->smtp_helo = 'localhost'; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Set options |
| | | * |
| | |
| | | public function setOptions($options) { |
| | | foreach($options as $key => $value) $this->setOption($key, $value); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Read a file's contents |
| | |
| | | |
| | | return $content; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * set smtp connection encryption |
| | |
| | | $this->headers["$header"] = $value; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * get a mail header value |
| | | * |
| | |
| | | if(strtolower($header) == 'bcc') $header = 'Bcc'; |
| | | elseif(strtolower($header) == 'cc') $header = 'Cc'; |
| | | elseif(strtolower($header) == 'from') $header = 'From'; |
| | | return (isset($this->headers["$header"]) ? $this->headers["$header"] : ''); |
| | | return isset($this->headers["$header"]) ? $this->headers["$header"] : ''; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Set email sender |
| | |
| | | $this->setHeader('From', $header); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Set mail subject |
| | | * |
| | |
| | | $this->setHeader('Subject', $subject); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get current mail subject |
| | | * |
| | |
| | | public function getSubject() { |
| | | return $this->headers['Subject']; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Set mail content |
| | |
| | | $this->text_part = $text; |
| | | $this->html_part = $html; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Read and attach a file |
| | |
| | | $this->attachFile($this->read_File($filename), $display_name); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Attach a file |
| | | * |
| | |
| | | ); |
| | | $this->attachments[] = $attachment; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * @access private |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function to sign an email body |
| | | */ |
| | |
| | | return '=' . strtoupper(dechex(ord($matches[1]))); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function to encode a header if necessary |
| | | * according to RFC2047 |
| | |
| | | |
| | | return $input; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function to encode the subject if necessary |
| | |
| | | |
| | | return $input; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * @access private |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * @access private |
| | | */ |
| | |
| | | $response = @fgets($this->_smtp_conn, 515); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Send the mail to one or more recipients |
| | |
| | | return $result; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Close mail connections |
| | | * |
| | |
| | | |
| | | return; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | if(!is_file($file)){ |
| | | die("List-Definition: $file not found."); |
| | | } |
| | | require_once($file); |
| | | require_once $file; |
| | | $this->listDef = $liste; |
| | | $this->module = $module; |
| | | |
| | |
| | | //* Set local Language File |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_'.$this->listDef['name'].'_list.lng'; |
| | | if(!file_exists($lng_file)) $lng_file = 'lib/lang/en_'.$this->listDef['name'].'_list.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | $this->wordbook = $wb; |
| | | |
| | |
| | | * @param record = Dataset as array |
| | | * @return array key => value array for the value field of a form |
| | | */ |
| | | |
| | | |
| | | private function getDatasourceData($field) |
| | | { |
| | | global $app; |
| | |
| | | global $app, $conf; |
| | | |
| | | //* Add Global Limit from selectbox |
| | | if(!empty($_POST['search_limit']) AND $app->functions->intval($_POST['search_limit']) > 0){ |
| | | if(!empty($_POST['search_limit']) and $app->functions->intval($_POST['search_limit']) > 0){ |
| | | $_SESSION['search']['limit'] = $app->functions->intval($_POST['search_limit']); |
| | | } |
| | | |
| | |
| | | $b = $aTwo[$sKey]; |
| | | if(is_string($a)) $a = strtolower($a); |
| | | if(is_string($b)) $b = strtolower($b); |
| | | if($a < $b) return ($sDir == 'DESC' ? 1 : -1); |
| | | elseif($a > $b) return ($sDir == 'DESC' ? -1 : 1); |
| | | if($a < $b) return $sDir == 'DESC' ? 1 : -1; |
| | | elseif($a > $b) return $sDir == 'DESC' ? -1 : 1; |
| | | } |
| | | return 0; |
| | | } |
| | |
| | | $lng_file = ISPC_LIB_PATH.'/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | if(!file_exists($lng_file)) |
| | | $lng_file = ISPC_LIB_PATH.'/lang/en.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | //* Limit each page |
| | |
| | | $app->tpl_defaults(); |
| | | $app->tpl->pparse(); |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | } |
| | | |
| | | if(is_file($lng_file)) { |
| | | include_once($lng_file); |
| | | include_once $lng_file; |
| | | } else { |
| | | $wb = array(); |
| | | } |
| | |
| | | |
| | | //** load the plugins |
| | | foreach($tmp_plugins as $plugin_name => $file) { |
| | | include_once($plugins_dir.$file); |
| | | include_once $plugins_dir.$file; |
| | | if($this->debug) $app->log('Loading plugin: '.$plugin_name,LOGLEVEL_DEBUG); |
| | | $app->loaded_plugins[$plugin_name] = new $plugin_name; |
| | | $app->loaded_plugins[$plugin_name]->onLoad(); |
| | |
| | | |
| | | if(is_file($plugin_file)) { |
| | | if(!isset($app->loaded_plugins[$plugin_name])) { |
| | | include_once($plugin_file); |
| | | include_once $plugin_file; |
| | | $app->loaded_plugins[$plugin_name] = new $plugin_name; |
| | | } |
| | | |
| | |
| | | |
| | | //* Loading language file |
| | | $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_web_backup_list.lng"; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $listTpl->setVar($wb); |
| | | |
| | | $message = ''; |
| | |
| | | |
| | | // Loading language field |
| | | $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->listform->listDef['name']."_list.lng"; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $listTpl->setVar($wb); |
| | | |
| | | |
| | |
| | | return $listTpl->grab(); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | |
| | | $sql = "DELETE FROM remote_session WHERE remote_session = '$session_id'"; |
| | | $app->db->query($sql); |
| | | return ($app->db->affectedRows() == 1); |
| | | return $app->db->affectedRows() == 1; |
| | | } |
| | | |
| | | |
| | |
| | | @param string section of the config field in the server table. Could be 'web', 'dns', 'mail', 'dns', 'cron', etc |
| | | @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | |
| | | public function server_get($session_id, $server_id, $section ='') { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'server_get')) { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Change domains status |
| | | * @param int session id |
| | |
| | | * @return mixed false if error |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | public function sites_web_domain_set_status($session_id, $primary_id, $status) { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'sites_web_domain_set_status')) { |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get sys_user information by username |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Get All client_id's from database |
| | | * @param int session_id |
| | |
| | | return get_class_methods($this); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all databases by user |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | |
| | | return $all; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all client templates |
| | | * @param int session id |
| | |
| | | $result = $app->db->queryAllRecords($sql); |
| | | return $result; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all DNS zone by user |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all dns records for a zone |
| | |
| | | * @param string status active or inactive string |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | public function dns_zone_set_status($session_id, $primary_id, $status) { |
| | | global $app; |
| | | if(!$this->checkPerm($session_id, 'dns_zone_set_status')) { |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * |
| | | */ |
| | | |
| | | |
| | | class remoting_lib { |
| | | |
| | | |
| | | |
| | | /** |
| | | * Definition of the database table (array) |
| | |
| | | function loadFormDef($file) { |
| | | global $app,$conf; |
| | | |
| | | include($file); |
| | | include $file; |
| | | |
| | | $this->formDef = $form; |
| | | unset($this->formDef['tabs']); |
| | |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the key => value array of a form filled from a datasource definitiom |
| | | * |
| | |
| | | * @param record = Dataset as array |
| | | * @return key => value array for the value field of a form |
| | | */ |
| | | |
| | | function getDatasourceData($field, $record) { |
| | | global $app; |
| | | |
| | |
| | | return $values; |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | /** |
| | |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * process the filters for a given field. |
| | | * |
| | |
| | | * @param filter_event = 'SAVE'or 'SHOW' |
| | | * @return record |
| | | */ |
| | | |
| | | function filterField($field_name, $field_value, $filters, $filter_event) { |
| | | |
| | | global $app; |
| | |
| | | return $returnval; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * process the validators for a given field. |
| | | * |
| | |
| | | * @param validatoors = Array of validators |
| | | * @return record |
| | | */ |
| | | |
| | | function validateField($field_name, $field_value, $validators) { |
| | | |
| | | global $app; |
| | |
| | | if(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $field_value)){ |
| | | $groups=explode(".",$field_value); |
| | | foreach($groups as $group){ |
| | | if($group<0 OR $group>255) |
| | | if($group<0 or $group>255) |
| | | $vip=0; |
| | | } |
| | | }else{$vip=0;} |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Create SQL statement |
| | | * |
| | |
| | | if(!is_file($file)){ |
| | | die("List-Definition: $file not found."); |
| | | } |
| | | include_once($file); |
| | | include_once $file; |
| | | $this->listDef = $liste; |
| | | $this->module = $module; |
| | | |
| | |
| | | * @param record = Dataset as array |
| | | * @return key => value array for the value field of a form |
| | | */ |
| | | |
| | | |
| | | public function getDatasourceData($field) |
| | | { |
| | |
| | | } |
| | | return $record; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | // Language File setzen |
| | | $lng_file = ISPC_WEB_PATH.'/lang/lib/lang/'.$_SESSION['s']['language'].'_list.lng'; |
| | | if(!file_exists($lng_file)) $lng_file = ISPC_WEB_PATH.'/lang/lib/lang/en_'.'_list.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$app->searchform->listDef['name']."_search.lng"; |
| | | if(!file_exists($lng_file)) $lng_file = 'lib/lang/en_'.$app->searchform->listDef['name']."_search.lng"; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | $app->tpl->setVar("form_action",$app->searchform->listDef["file"]); |
| | | |
| | |
| | | $app->tpl_defaults(); |
| | | $app->tpl->pparse(); |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * @todo phpDoc comments |
| | | */ |
| | | |
| | | |
| | | /** |
| | | * SimplePie Name |
| | | */ |
| | |
| | | */ |
| | | class simplepie |
| | | { |
| | | |
| | | /** |
| | | * @var array Raw data |
| | | * @access private |
| | |
| | | */ |
| | | var $strip_htmltags = array('base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style'); |
| | | |
| | | |
| | | /** |
| | | * The SimplePie class contains feed level data and options |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Used for converting object to a string |
| | | */ |
| | |
| | | { |
| | | return md5(serialize($this->data)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Remove items that link back to this before destroying this object |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Force the given data/URL to be treated as a feed no matter what it |
| | | * appears like |
| | |
| | | { |
| | | $this->force_feed = (bool) $enable; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * This is the URL of the feed you want to parse. |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Provides an instance of SimplePie_File to use as a feed |
| | | * |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to use a string of RSS/Atom data instead of a remote feed. |
| | | * |
| | |
| | | $this->raw_data = $data; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to override the default timeout for fetching remote feeds. |
| | | * |
| | |
| | | $this->timeout = (int) $timeout; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Forces SimplePie to use fsockopen() instead of the preferred cURL |
| | | * functions. |
| | |
| | | { |
| | | $this->force_fsockopen = (bool) $enable; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Outputs the raw XML content of the feed, after it has gone through |
| | |
| | | $this->xml_dump = (bool) $enable; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Enables/disables caching in SimplePie. |
| | | * |
| | |
| | | $this->cache = (bool) $enable; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the length of time (in seconds) that the contents of a feed |
| | | * will be cached. |
| | |
| | | { |
| | | $this->cache_duration = (int) $seconds; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the length of time (in seconds) that the autodiscovered feed |
| | |
| | | $this->autodiscovery_cache_duration = (int) $seconds; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the file system location where the cached files should be stored. |
| | | * |
| | |
| | | $this->cache_location = (string) $location; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Determines whether feed items should be sorted into reverse chronological order. |
| | | * |
| | |
| | | { |
| | | $this->order_by_date = (bool) $enable; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to override the character encoding reported by the feed. |
| | |
| | | $this->input_encoding = false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set how much feed autodiscovery to do |
| | |
| | | $this->autodiscovery = (int) $level; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for caching. |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for auto-discovery. |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for XML parsing. |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for remote file fetching. |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for data sanitization. |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for handling feed items. |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for handling author data. |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for handling category data. |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for feed enclosures. |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for <media:text> captions |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for <media:copyright> |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for <media:credit> |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for <media:rating> |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for <media:restriction> |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses for content-type sniffing. |
| | | * Useful when you are overloading or extending SimplePie's default classes. |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to change which class SimplePie uses item sources. |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Allows you to override the default user agent string. |
| | | * |
| | |
| | | { |
| | | $this->useragent = (string) $ua; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set callback function to create cache filename with |
| | |
| | | $this->cache_name_function = $function; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set javascript query string parameter |
| | |
| | | $this->javascript = false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set options to make SP as fast as possible. Forgoes a |
| | |
| | | $this->set_image_handler(false); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set maximum number of feeds to check with autodiscovery |
| | |
| | | $this->sanitize->strip_comments($strip); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set element/attribute key/value pairs of HTML attributes |
| | | * containing URLs that need to be resolved relative to the feed |
| | |
| | | { |
| | | $this->sanitize->set_url_replacements($element_attribute); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the handler to enable the display of cached favicons. |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the handler to enable the display of cached images. |
| | | * |
| | |
| | | $this->image_handler = ''; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the limit for items returned per-feed with multifeeds. |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Return the error message for the occured error |
| | | * |
| | |
| | | return $this->data['type']; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Returns the URL for the favicon of the feed's website. |
| | | * |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @todo If we have a perm redirect we should return the new URL |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Creates the subscribe_* methods' return data |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Added for parity between the parent-level and the item/entry-level. |
| | | */ |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @static |
| | | */ |
| | |
| | | { |
| | | return $a->get_date('U') <= $b->get_date('U'); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @static |
| | |
| | | return array(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Item |
| | |
| | | { |
| | | return md5(serialize($this->data)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Remove items that link back to this before destroying this object |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @todo Add ability to prefer one type of content over another (in a media group). |
| | | */ |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Grabs all available enclosures (podcasts, etc.) |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Creates the add_to_* methods' return data |
| | | * |
| | |
| | | { |
| | | return $this->add_to_service('http://www.technorati.com/search/'); |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Source |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Added for parity between the parent-level and the item/entry-level. |
| | | */ |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Author |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Category |
| | |
| | | return $this->get_term(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Enclosure |
| | |
| | | return $this->embed($options, true); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * @todo If the dimensions for media:content are defined, use them when width/height are set to 'auto'. |
| | | */ |
| | |
| | | return $type; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Caption |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Credit |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Copyright |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Rating |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Restriction |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_HTTP_Parser |
| | | { |
| | | |
| | | /** |
| | | * HTTP Version |
| | | * |
| | |
| | | */ |
| | | var $value = ''; |
| | | |
| | | |
| | | /** |
| | | * Create an instance of the class with the input data |
| | | * |
| | |
| | | $this->data = $data; |
| | | $this->data_length = strlen($this->data); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse the input data |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Check whether there is data beyond the pointer |
| | | * |
| | |
| | | { |
| | | return (bool) ($this->position < $this->data_length); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * See if the next character is LWS |
| | |
| | | && isset($this->data[$this->position + 1]) |
| | | && ($this->data[$this->position + 1] === "\x09" || $this->data[$this->position + 1] === "\x20"))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse the HTTP version |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse the status code |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse the reason phrase |
| | | * |
| | |
| | | $this->position += $len + 1; |
| | | $this->state = 'new_line'; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Deal with a new line, shifting data around as needed |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse a header name |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse LWS, replacing consecutive LWS characters with a single space |
| | | * |
| | |
| | | } while ($this->has_data() && $this->is_linear_whitespace()); |
| | | $this->value .= "\x20"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * See what state to move to while within non-quoted header values |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse a header value while outside quotes |
| | | * |
| | |
| | | $this->position += $len; |
| | | $this->state = 'value'; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * See what state to move to while within quoted header values |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse a header value while within quotes |
| | | * |
| | |
| | | $this->state = 'value'; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse an escaped character within quotes |
| | | * |
| | |
| | | $this->state = 'quote'; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse the body |
| | | * |
| | |
| | | $this->body = substr($this->data, $this->position); |
| | | $this->state = 'emit'; |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_gzdecode |
| | | { |
| | | |
| | | /** |
| | | * Compressed data |
| | | * |
| | |
| | | */ |
| | | var $comment; |
| | | |
| | | |
| | | /** |
| | | * Don't allow anything to be set |
| | | * |
| | |
| | | { |
| | | trigger_error("Cannot write property $name", E_USER_ERROR); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the compressed string and related properties |
| | |
| | | $this->compressed_data = $data; |
| | | $this->compressed_size = strlen($data); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Decode the GZIP stream |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Cache |
| | | { |
| | | |
| | | |
| | | /** |
| | | * Don't call the constructor. Please. |
| | | * |
| | |
| | | { |
| | | trigger_error('Please call SimplePie_Cache::create() instead of the constructor', E_USER_ERROR); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Create a new SimplePie_Cache object |
| | |
| | | return new SimplePie_Cache_File($location, $filename, $extension); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Cache_File |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Cache_DB |
| | |
| | | } |
| | | return array(serialize($data->data), $items_by_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Cache_MySQL extends SimplePie_Cache_DB |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Misc |
| | |
| | | return $message; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * If a file has been cached, retrieve and display it. |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Remove bad UTF-8 bytes |
| | | * |
| | |
| | | return ''; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Converts a Windows-1252 encoded string to a UTF-8 encoded string |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Strip HTML comments |
| | | * |
| | |
| | | $decoder = new SimplePie_Decode_HTML_Entities($data); |
| | | return $decoder->parse(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Remove RFC822 comments |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Converts a unicode codepoint to a UTF-8 character |
| | | * |
| | |
| | | return "\xEF\xBF\xBD"; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Re-implementation of PHP 5's stripos() |
| | |
| | | return strpos(strtolower($haystack), $needle, $offset); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Similar to parse_str() |
| | |
| | | } |
| | | <?php |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_Decode_HTML_Entities |
| | | { |
| | | |
| | | /** |
| | | * Data to be parsed |
| | | * |
| | |
| | | */ |
| | | var $position = 0; |
| | | |
| | | |
| | | /** |
| | | * Create an instance of the class with the input data |
| | | * |
| | |
| | | { |
| | | $this->data = $data; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse the input data |
| | |
| | | } |
| | | return $this->data; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Consume the next byte |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Consume a range of characters |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Unconsume one byte |
| | | * |
| | |
| | | $this->consumed = substr($this->consumed, 0, -1); |
| | | $this->position--; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Decode an entity |
| | |
| | | break; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_IRI |
| | | { |
| | | |
| | | /** |
| | | * Scheme |
| | | * |
| | |
| | | */ |
| | | var $valid = array(); |
| | | |
| | | |
| | | /** |
| | | * Return the entire IRI when you try and read the object as a string |
| | | * |
| | |
| | | { |
| | | return $this->get_iri(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Create a new IRI object, from a specified string |
| | |
| | | return $target; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse an IRI into scheme/authority/path/query/fragment segments |
| | | * |
| | |
| | | } |
| | | return array('scheme' => $match[2], 'authority' => $match[4], 'path' => $match[5], 'query' => $match[7], 'fragment' => $match[9]); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Remove dot segments from a path |
| | |
| | | } |
| | | return $output . $input; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Replace invalid character with percent encoding |
| | |
| | | return $string; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Check if the object represents a valid IRI |
| | | * |
| | |
| | | { |
| | | return array_sum($this->valid) === count($this->valid); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the scheme. Returns true on success, false on failure (if there are |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the authority. Returns true on success, false on failure (if there are |
| | | * any invalid characters). |
| | |
| | | return $this->set_userinfo($userinfo) && $this->set_host($authority) && $this->set_port($port); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the userinfo. |
| | | * |
| | |
| | | $this->valid[__FUNCTION__] = true; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the host. Returns true on success, false on failure (if there are |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the port. Returns true on success, false on failure (if there are |
| | | * any invalid characters). |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the path. |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the query. |
| | | * |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set the fragment. |
| | | * |
| | |
| | | $this->valid[__FUNCTION__] = true; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the complete IRI |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the scheme |
| | | * |
| | |
| | | { |
| | | return $this->scheme; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the complete authority |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the user information |
| | | * |
| | |
| | | { |
| | | return $this->userinfo; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the host |
| | |
| | | return $this->host; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the port |
| | | * |
| | |
| | | { |
| | | return $this->port; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the path |
| | |
| | | return $this->path; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the query |
| | | * |
| | |
| | | return $this->query; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the fragment |
| | | * |
| | |
| | | { |
| | | return $this->fragment; |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_Net_IPv6 |
| | | { |
| | | |
| | | |
| | | /** |
| | | * Removes a possible existing netmask specification of an IP address. |
| | | * |
| | |
| | | } |
| | | return $addr; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Uncompresses an IPv6 address |
| | |
| | | return $uip; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Splits an IPv6 address into the IPv6 and a possible IPv4 part |
| | | * |
| | |
| | | return array($ip, ''); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Checks an IPv6 address |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_Parse_Date |
| | | { |
| | | |
| | | /** |
| | | * Input data |
| | | * |
| | |
| | | */ |
| | | var $user = array(); |
| | | |
| | | |
| | | /** |
| | | * Create new SimplePie_Parse_Date object, and set self::day_pcre, |
| | | * self::month_pcre, and self::built_in |
| | |
| | | return $object; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse a date |
| | | * |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Add a callback method to parse a date |
| | | * |
| | |
| | | trigger_error('User-supplied function must be a valid callback', E_USER_WARNING); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse a superset of W3C-DTF (allows hyphens and colons to be omitted, as |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Remove RFC822 comments |
| | | * |
| | |
| | | |
| | | return $output; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse RFC2822's date format |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse RFC850's date format |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse C99's asctime()'s date format |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse dates using strtotime() |
| | | * |
| | |
| | | return $strtotime; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_Content_Type_Sniffer |
| | | { |
| | | |
| | | /** |
| | | * File object |
| | | * |
| | |
| | | * @access private |
| | | */ |
| | | var $file; |
| | | |
| | | |
| | | /** |
| | | * Create an instance of the class with the input file |
| | |
| | | { |
| | | $this->file = $file; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the Content-Type of the specified file |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Sniff text or binary |
| | | * |
| | |
| | | return 'text/plain'; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Sniff unknown |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Sniff images |
| | | * |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Sniff HTML |
| | |
| | | |
| | | return 'text/html'; |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | class SimplePie_XML_Declaration_Parser |
| | | { |
| | | |
| | | /** |
| | | * XML Version |
| | | * |
| | |
| | | */ |
| | | var $position = 0; |
| | | |
| | | |
| | | /** |
| | | * Create an instance of the class with the input data |
| | | * |
| | |
| | | $this->data = $data; |
| | | $this->data_length = strlen($this->data); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Parse the input data |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Check whether there is data beyond the pointer |
| | | * |
| | |
| | | { |
| | | return (bool) ($this->position < $this->data_length); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Advance past any whitespace |
| | |
| | | $this->position += $whitespace; |
| | | return $whitespace; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Read value |
| | |
| | | $this->state = false; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Locator |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |
| | | |
| | | class SimplePie_Parser |
| | |
| | | } |
| | | return $cache[$string]; |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | $this->output_encoding = (string) $encoding; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Set element/attribute key/value pairs of HTML attributes |
| | |
| | | return ''; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * |
| | | */ |
| | | |
| | | |
| | | class tform { |
| | | |
| | | /** |
| | |
| | | function loadFormDef($file,$module = '') { |
| | | global $app,$conf; |
| | | |
| | | include($file); |
| | | include $file; |
| | | $this->formDef = $form; |
| | | |
| | | $this->module = $module; |
| | | $wb = array(); |
| | | |
| | | include_once(ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng'); |
| | | include_once ISPC_ROOT_PATH.'/lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | |
| | | if(is_array($wb)) $wb_global = $wb; |
| | | |
| | | if($module == '') { |
| | | $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_".$this->formDef["name"].".lng"; |
| | | if(!file_exists($lng_file)) $lng_file = "lib/lang/en_".$this->formDef["name"].".lng"; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | } else { |
| | | $lng_file = "../$module/lib/lang/".$_SESSION["s"]["language"]."_".$this->formDef["name"].".lng"; |
| | | if(!file_exists($lng_file)) $lng_file = "../$module/lib/lang/en_".$this->formDef["name"].".lng"; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | } |
| | | |
| | | if(is_array($wb_global)) { |
| | |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Get the key => value array of a form filled from a datasource definitiom |
| | | * |
| | |
| | | * @param record = Dataset as array |
| | | * @return key => value array for the value field of a form |
| | | */ |
| | | |
| | | function getDatasourceData($field, $record) { |
| | | global $app; |
| | | |
| | |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Rewrite the record data to be stored in the database |
| | | * and check values with regular expressions. |
| | |
| | | return $new_record; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * process the filters for a given field. |
| | | * |
| | |
| | | * @param filter_event = 'SAVE'or 'SHOW' |
| | | * @return record |
| | | */ |
| | | |
| | | function filterField($field_name, $field_value, $filters, $filter_event) { |
| | | |
| | | global $app; |
| | |
| | | return $returnval; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * process the validators for a given field. |
| | | * |
| | |
| | | * @param validatoors = Array of validators |
| | | * @return record |
| | | */ |
| | | |
| | | function validateField($field_name, $field_value, $validators) { |
| | | |
| | | global $app; |
| | |
| | | if(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $field_value)){ |
| | | $groups=explode(".",$field_value); |
| | | foreach($groups as $group){ |
| | | if($group<0 OR $group>255) |
| | | if($group<0 or $group>255) |
| | | $vip=0; |
| | | } |
| | | }else{$vip=0;} |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Create SQL statement |
| | |
| | | return $sql; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Debugging arrays. |
| | | * |
| | |
| | | if(@stristr($this->formDef["auth_preset"]["perm_other"],$perm)) $result = true; |
| | | |
| | | // if preset == 0, everyone can insert a record of this type |
| | | if($this->formDef["auth_preset"]["userid"] == 0 AND $this->formDef["auth_preset"]["groupid"] == 0 AND (@stristr($this->formDef["auth_preset"]["perm_user"],$perm) OR @stristr($this->formDef["auth_preset"]["perm_group"],$perm))) $result = true; |
| | | if($this->formDef["auth_preset"]["userid"] == 0 and $this->formDef["auth_preset"]["groupid"] == 0 and (@stristr($this->formDef["auth_preset"]["perm_user"], $perm) or @stristr($this->formDef["auth_preset"]["perm_group"], $perm))) $result = true; |
| | | |
| | | return $result; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Generate HTML for DATETIME fields. |
| | | * |
| | |
| | | |
| | | return $out; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * Function called on page submit |
| | | */ |
| | | |
| | | |
| | | function onSubmit() { |
| | | global $app, $conf; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on data update |
| | | */ |
| | | |
| | | function onUpdate() { |
| | | global $app, $conf; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function called on data insert |
| | | */ |
| | | |
| | | function onInsert() { |
| | | global $app, $conf; |
| | | |
| | |
| | | /** |
| | | * Function called on data insert or update error |
| | | */ |
| | | |
| | | function onError() { |
| | | global $app, $conf; |
| | | |
| | |
| | | $this->onShow(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on data delete |
| | | */ |
| | | |
| | | function onDelete() { |
| | | global $app, $conf,$list_def_file,$tform_def_file; |
| | | |
| | | include_once($list_def_file); |
| | | include_once $list_def_file; |
| | | |
| | | // Loading tform framework |
| | | if(!is_object($app->tform)) $app->uses('tform'); |
| | |
| | | global $app, $conf; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function to print the form content |
| | | */ |
| | | |
| | | function onPrintForm() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Function to print the form content |
| | | */ |
| | | |
| | | function onMailSendForm() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on page show |
| | | */ |
| | | |
| | | function onShow() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on new record |
| | | */ |
| | | |
| | | function onShowNew() { |
| | | global $app, $conf; |
| | | |
| | |
| | | $app->tpl->setVar($record); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Function called on edit record |
| | | */ |
| | | |
| | | function onShowEdit() { |
| | | global $app, $conf; |
| | | |
| | |
| | | |
| | | $lng_file = "lib/lang/".$conf["language"]."_".$formDef['name'].".lng"; |
| | | if(is_file($lng_file)) { |
| | | include($lng_file); |
| | | include $lng_file; |
| | | } else { |
| | | $wb = array(); |
| | | } |
| | |
| | | fclose($fp); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | if(!$domain || !$domain['domain_id']) return false; |
| | | return $domain['domain']; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * @see vlibTemplate.html |
| | | */ |
| | | |
| | | |
| | | /* vim: set expandtab tabstop=4 shiftwidth=4: */ |
| | | // +----------------------------------------------------------------------+ |
| | | // | PHP version 4.0 | |
| | |
| | | if (!defined('vlibTemplateClassLoaded')) { |
| | | |
| | | define('vlibTemplateClassLoaded', 1); |
| | | include_once (ISPC_CLASS_PATH.'/tpl_error.inc.php'); |
| | | include_once (ISPC_CLASS_PATH.'/tpl_ini.inc.php'); |
| | | include_once ISPC_CLASS_PATH.'/tpl_error.inc.php'; |
| | | include_once ISPC_CLASS_PATH.'/tpl_ini.inc.php'; |
| | | |
| | | class tpl{ |
| | | |
| | |
| | | 'hexentity' => array('open' => '$this->_escape_hex(' ,'close'=> ', true)') |
| | | ); |
| | | |
| | | |
| | | |
| | | /** open and close tags used for formatting */ |
| | | private $FORMAT_TAGS = array( |
| | | 'strtoupper' => array('open' => 'strtoupper(', 'close'=> ')'), |
| | |
| | | /** operators allowed when using extended TMPL_IF syntax */ |
| | | private $allowed_if_ops = array('==','!=','<>','<','>','<=','>='); |
| | | |
| | | |
| | | |
| | | /** dbs allowed by vlibTemplate::setDbLoop(). */ |
| | | private $allowed_loop_dbs = array('MYSQL','POSTGRESQL','INFORMIX','INTERBASE','INGRES', |
| | | 'MSSQL','MSQL','OCI8','ORACLE','OVRIMOS','SYBASE'); |
| | | |
| | | |
| | | |
| | | /** root directory of vlibTemplate automagically filled in */ |
| | | private $VLIBTEMPLATE_ROOT = null; |
| | | |
| | | |
| | | |
| | | /** contains current directory used when doing recursive include */ |
| | | private $_currentincludedir = array(); |
| | | |
| | | |
| | | |
| | | /** current depth of includes */ |
| | | private $_includedepth = 0; |
| | | |
| | | |
| | | |
| | | /** full path to tmpl file */ |
| | | private $_tmplfilename = null; |
| | | |
| | | |
| | | |
| | | /** file data before it's parsed */ |
| | | private $_tmplfile = null; |
| | | |
| | | |
| | | |
| | | /** parsed version of file, ready for eval()ing */ |
| | | private $_tmplfilep = null; |
| | | |
| | | |
| | | |
| | | /** eval()ed version ready for printing or whatever */ |
| | | private $_tmploutput = null; |
| | | |
| | | |
| | | |
| | | /** array for variables to be kept */ |
| | | private $_vars = array(); |
| | | |
| | | |
| | | |
| | | /** array where loop variables are kept */ |
| | | private $_arrvars = array(); |
| | |
| | | /** array which holds the current namespace during parse */ |
| | | private $_namespace = array(); |
| | | |
| | | |
| | | |
| | | /** variable is set to true once the template is parsed, to save re-parsing everything */ |
| | | private $_parsed = false; |
| | | |
| | | |
| | | |
| | | /** array holds all unknowns vars */ |
| | | private $_unknowns = array(); |
| | | |
| | | |
| | | |
| | | /** microtime when template parsing began */ |
| | | private $_firstparsetime = null; |
| | | |
| | | |
| | | |
| | | /** total time taken to parse template */ |
| | | private $_totalparsetime = null; |
| | | |
| | | |
| | | |
| | | /** name of current loop being passed in */ |
| | | private $_currloopname = null; |
| | | |
| | | |
| | | |
| | | /** rows with the above loop */ |
| | | private $_currloop = array(); |
| | | |
| | | |
| | | |
| | | /** define vars to avoid warnings */ |
| | | private $_debug = null; |
| | | private $_cache = null; |
| | | |
| | | |
| | | |
| | | /** array which holds the dynamic Includes */ |
| | | private $_dyninclude = array(); |
| | |
| | | /*-----------------------------------------------------------------------------\ |
| | | | public functions | |
| | | \-----------------------------------------------------------------------------*/ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Sets dynamic includes to be used by the template |
| | |
| | | */ |
| | | public function unknownsExist() |
| | | { |
| | | return (!empty($this->_unknowns)); |
| | | return !empty($this->_unknowns); |
| | | } |
| | | |
| | | /** |
| | |
| | | private function _getMicrotime() |
| | | { |
| | | list($msec, $sec) = explode(' ',microtime()); |
| | | return ((float)$msec + (float)$sec); |
| | | return (float)$msec + (float)$sec; |
| | | } |
| | | |
| | | /** |
| | |
| | | vlibTemplate if the user is quickly bypassing the vlibTemplateCache class. |
| | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
| | | function clearCache() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'clearCache()');} |
| | | |
| | | function recache() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'recache()');} |
| | | |
| | | function setCacheLifeTime() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'setCacheLifeTime()');} |
| | | |
| | | function setCacheExtension() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'setCacheExtension()');} |
| | | |
| | | } // << end class Def |
| | | |
| | | //include_once (ISPC_CLASS_PATH.'/vlibTemplate/debug.php'); |
| | | include_once (ISPC_CLASS_PATH.'/tpl_cache.inc.php'); |
| | | include_once ISPC_CLASS_PATH.'/tpl_cache.inc.php'; |
| | | |
| | | } // << end if(!defined()).. |
| | | ?> |
| | |
| | | * @access public |
| | | */ |
| | | |
| | | |
| | | class tplc extends tpl { |
| | | |
| | | /*-----------------------------------------------------------------------------\ |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: recache |
| | | * alias for clearCache(). |
| | |
| | | function recache() { |
| | | return $this->clearCache(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setCacheLifeTime |
| | |
| | | $this->OPTIONS['CACHE_LIFETIME'] = $int; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setCacheExtension |
| | |
| | | /*----------------------------------------\ |
| | | Private Functions |
| | | -----------------------------------------*/ |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _checkCache |
| | |
| | | return $this->OPTIONS['CACHE_DIRECTORY'].'/'.md5('vlibCachestaR'.realpath($tmplfile)).'.'.$this->OPTIONS['CACHE_EXTENSION']; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _createCache |
| | | * creates the cached file |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _prepareDirs |
| | | * prepares the directory structure |
| | |
| | | * @access private |
| | | */ |
| | | |
| | | |
| | | class vlibTemplateError { |
| | | |
| | | /*-----------------------------------------------------------------------------\ |
| | |
| | | } |
| | | return; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * @access private |
| | | */ |
| | | |
| | | |
| | | /* vim: set expandtab tabstop=4 shiftwidth=4: */ |
| | | // +----------------------------------------------------------------------+ |
| | | // | PHP version 4.0 | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | include_once('validate_datetime.inc.php'); |
| | | include_once 'validate_datetime.inc.php'; |
| | | |
| | | class validate_autoresponder extends validate_datetime |
| | | { |
| | | function start_date($field_name, $field_value, $validator) |
| | | { |
| | | # save field value for later use in end_date() |
| | | // save field value for later use in end_date() |
| | | $this->start_date = $field_value; |
| | | |
| | | if ($this->_datetime_selected($field_value)) { |
| | | # We just require a start date be set |
| | | // We just require a start date be set |
| | | return; |
| | | } |
| | | if($_POST['autoresponder'] == 'y') { |
| | |
| | | return $_msg; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | if(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $cur_value)) { |
| | | $groups = explode(".", $cur_value); |
| | | foreach($groups as $group){ |
| | | if($group<0 OR $group>255) |
| | | if($group<0 or $group>255) |
| | | $valid=false; |
| | | } |
| | | } else { |
| | |
| | | * @param array $field_value |
| | | * @return bool |
| | | */ |
| | | |
| | | |
| | | function _datetime_selected($field_value) |
| | | { |
| | | if (is_array($field_value) && count($field_value) >= 5) |
| | | { |
| | | $result = array_filter($field_value, create_function('$dt_unit', 'return ($dt_unit > 0);')); |
| | | return (count($result) !== 0); |
| | | return count($result) !== 0; |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Check wordbook for the existence of an |
| | |
| | | return $errmsg; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Helper function - filter the contents of the |
| | | * selectors and return the resulting unix timestamp. |
| | |
| | | |
| | | return mktime($hour, $minute, $second, $month, $day, $year); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * The minimum requirement to submit a datetime field |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Check that the selected datetime is in the future. |
| | | * |
| | |
| | | return $this->is_greater($field_name, $field_value, $validator); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Compare the selected datetime to a timestamp |
| | | * parsed via the validator array (key: compare). |
| | |
| | | } |
| | | return true; // admin may always add wildcard domain |
| | | } |
| | | |
| | | } |
| | |
| | | //** Web-only |
| | | if( !empty($_SERVER['DOCUMENT_ROOT']) ) { |
| | | |
| | | Header("Pragma: no-cache"); |
| | | Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate"); |
| | | Header("Content-Type: text/html; charset=utf-8"); |
| | | header("Pragma: no-cache"); |
| | | header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate"); |
| | | header("Content-Type: text/html; charset=utf-8"); |
| | | |
| | | ini_set('register_globals',0); |
| | | } |
| | |
| | | * @author (original tools.inc.php) Oliver Vogel www.muv.com |
| | | */ |
| | | |
| | | |
| | | class clients_template_plugin { |
| | | |
| | | var $plugin_name = 'clients_template_plugin'; |
| | |
| | | $app->uses('client_templates'); |
| | | $app->client_templates->apply_client_templates($page_form->id); |
| | | } |
| | | |
| | | } |
| | |
| | | * @author Marius Cramer <m.cramer@pixcept.de> pixcept KG 2012 |
| | | */ |
| | | |
| | | |
| | | class sites_web_database_user_plugin { |
| | | |
| | | var $plugin_name = 'sites_web_database_user_plugin'; |
| | |
| | | } |
| | | //$app->db->query("UPDATE web_database_user SET server_id = '" . $app->functions->intval($conf['server_id']) . "' WHERE database_user_id = ".$page_form->id); |
| | | } |
| | | |
| | | } |
| | |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | |
| | | class sites_web_domain_plugin { |
| | | |
| | | var $plugin_name = 'sites_web_domain_plugin'; |
| | |
| | | $sql = "UPDATE web_domain SET system_user = '$system_user', system_group = '$system_group', document_root = '$document_root', allow_override = '$htaccess_allow_override', php_open_basedir = '$php_open_basedir' WHERE domain_id = ".$page_form->id; |
| | | $app->db->query($sql); |
| | | } |
| | | |
| | | } |
| | |
| | | * @author Julio Montoya <gugli100@gmail.com> BeezNest 2010 |
| | | */ |
| | | |
| | | |
| | | class sites_web_vhost_subdomain_plugin { |
| | | |
| | | var $plugin_name = 'sites_web_vhost_subdomain_plugin'; |
| | |
| | | $sql = "UPDATE web_domain SET sys_groupid = ".$app->functions->intval($parent_domain['sys_groupid']).",system_user = '$system_user', system_group = '$system_group', document_root = '$document_root', allow_override = '$htaccess_allow_override', php_open_basedir = '$php_open_basedir' WHERE domain_id = ".$page_form->id; |
| | | $app->db->query($sql); |
| | | } |
| | | |
| | | } |
| | |
| | | * @author Till Brehm, projektfarm GmbH |
| | | */ |
| | | |
| | | |
| | | class vm_openvz_plugin { |
| | | |
| | | var $plugin_name = 'vm_openvz_plugin'; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | unset($rec); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | $handle = @opendir(ISPC_WEB_PATH."/$md/form"); |
| | | while ($file = @readdir ($handle)) { |
| | | if ($file != '.' && $file != '..' && substr($file, 0, 1) != '.') { |
| | | include_once(ISPC_WEB_PATH."/$md/form/$file"); |
| | | include_once ISPC_WEB_PATH."/$md/form/$file"; |
| | | if(isset($form['db_history']) && $form['db_history'] == 'yes') { |
| | | $tmp_id = $form['db_table']; |
| | | $db_tables[$tmp_id] = $form['db_table']; |
| | |
| | | 'width' => 80, |
| | | 'template' => 'templates/dbsync_edit.htm', |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'jobname' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ) |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/directive_snippets_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/filesync_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'jobname' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ) |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/firewall_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/groups_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'rows' => '5', |
| | | 'cols' => '30' |
| | | ) |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | if(is_array($modules)) { |
| | | foreach($modules as $mt) { |
| | | if(is_file(ISPC_WEB_PATH.'/'.$mt.'/lib/remote.conf.php')) { |
| | | include(ISPC_WEB_PATH."/$mt/lib/remote.conf.php"); |
| | | include ISPC_WEB_PATH."/$mt/lib/remote.conf.php"; |
| | | } |
| | | } |
| | | } |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/remote_user_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'remote_userid' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'cols' => '30' |
| | | ) |
| | | |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/server_edit_services.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => '1', |
| | | 'value' => array(0 => 'No', 1 => 'Yes') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 70, |
| | | 'template' => "templates/server_config_server_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'auto_network_configuration' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 60, |
| | | 'template' => "templates/server_config_mail_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'module' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_config_getmail_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'getmail_config_dir' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 60, |
| | | 'template' => "templates/server_config_web_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_type' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 60, |
| | | 'template' => "templates/server_config_dns_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'bind_user' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_config_fastcgi_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'fastcgi_starter_path' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_config_jailkit_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'jailkit_chroot_home' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '1000' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_config_vlogger_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'config_dir' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_config_cron_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'init_script' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_config_rescue_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'try_rescue' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n', 1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_ip_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_php_name_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_php_fastcgi_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'php_fastcgi_binary' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/server_php_fpm_edit.htm", |
| | | 'fields' => array( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'php_fpm_init_script' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/software_package_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'package_title' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/software_repo_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'repo_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | 'width' => 70, |
| | | 'template' => "templates/system_config_sites_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'dbname_prefix' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 70, |
| | | 'template' => "templates/system_config_mail_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'enable_custom_login' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 70, |
| | | 'template' => "templates/system_config_domains_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'use_domain_module' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | |
| | | 'default' => '', |
| | | 'value' => '' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 70, |
| | | 'template' => "templates/system_config_misc_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'dashboard_atom_url_admin' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => '', |
| | | 'value' => '' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/tpl_default_basic.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'username' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => 'templates/users_user_edit.htm', |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'username' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ) |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | /* |
| | |
| | | 'width' => 80, |
| | | 'template' => 'templates/users_groups_edit.htm', |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'default_group' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'cols' => '' |
| | | ) |
| | | |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_add.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | if(is_file($langfile)) { |
| | | |
| | | // Load the english language file |
| | | include($masterfile); |
| | | include $masterfile; |
| | | if(isset($wb) && is_array($wb)) { |
| | | $wb_master = $wb; |
| | | unset($wb); |
| | |
| | | |
| | | // Load the incomplete language file |
| | | $wb = array(); |
| | | include($langfile); |
| | | include $langfile; |
| | | |
| | | $n = 0; |
| | | foreach($wb_master as $key => $val) { |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_complete.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | $app->tpl->setVar(array('module' => $module,'lang_file' => $lang_file, 'lang' => $lang, 'msg' => $msg)); |
| | | |
| | | if($module == 'global') { |
| | | include(ISPC_LIB_PATH."/lang/$lang_file"); |
| | | include ISPC_LIB_PATH."/lang/$lang_file"; |
| | | $file_path = ISPC_LIB_PATH."/lang/$lang_file"; |
| | | } else { |
| | | include(ISPC_WEB_PATH."/$module/lib/lang/$lang_file"); |
| | | include ISPC_WEB_PATH."/$module/lib/lang/$lang_file"; |
| | | $file_path = ISPC_WEB_PATH."/$module/lib/lang/$lang_file"; |
| | | } |
| | | $app->tpl->setVar("file_path", $file_path); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_edit.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_export.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | function normalize_string($string, $quote, $allow_special = false) { |
| | | $escaped = false; |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_import.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_language_list.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | foreach($modules as $mt) { |
| | | if(is_file($mt.'/lib/admin.conf.php')) { |
| | | $options = array(); |
| | | include_once(ISPC_WEB_PATH."/$mt/lib/admin.conf.php"); |
| | | include_once ISPC_WEB_PATH."/$mt/lib/admin.conf.php"; |
| | | if(is_array($options)) { |
| | | foreach($options as $opt) { |
| | | $module['nav'][] = $opt; |
| | |
| | | */ |
| | | |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /* Check permissions for module */ |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | */ |
| | | |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_login_as.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | echo ' |
| | | <br /> <br /> <br /> <br /> |
| | |
| | | |
| | | //die('Function has been removed.'); |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_remote_action.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | /* |
| | | * We need a list of all Servers |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_remote_action.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | /* |
| | | * We need a list of all Servers |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | // Customisations for the page actions will be defined here |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | | $page->onDelete(); |
| | | |
| | |
| | | $tform_def_file = 'form/remote_user.tform.php'; |
| | | |
| | | // include the core configuration and application classes |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Check the module permissions and redirect if not allowed. |
| | | if(!stristr($_SESSION['s']['user']['modules'],'admin')) { |
| | |
| | | <?php |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Path to the list definition file |
| | | $list_def_file = 'list/remote_user.list.php'; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | unset($rec); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | unset($rec); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | $app->tpl->setVar('server_id',$install_server_id); |
| | | |
| | | |
| | | include_once('lib/lang/en_software_package_install.lng'); |
| | | include_once 'lib/lang/en_software_package_install.lng'; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | $app->tpl->setLoop('records',$packages); |
| | | |
| | | $language = (isset($_SESSION['s']['language']))?$_SESSION['s']['language']:$conf['language']; |
| | | include_once('lib/lang/'.$language.'_software_package_list.lng'); |
| | | include_once 'lib/lang/'.$language.'_software_package_list.lng'; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | $app->tpl->setLoop('records',$records_out); |
| | | |
| | | $language = (isset($_SESSION['s']['language']))?$_SESSION['s']['language']:$conf['language']; |
| | | include_once('lib/lang/'.$language.'_software_update_list.lng'); |
| | | include_once 'lib/lang/'.$language.'_software_update_list.lng'; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../lib/config.inc.php'); |
| | | require_once('../lib/app.inc.php'); |
| | | require_once '../lib/config.inc.php'; |
| | | require_once '../lib/app.inc.php'; |
| | | |
| | | //* Import module variable |
| | | $mod = $_REQUEST["mod"]; |
| | |
| | | |
| | | //* Load module configuration into the session. |
| | | if(is_file($mod."/lib/module.conf.php")) { |
| | | include_once($mod."/lib/module.conf.php"); |
| | | include_once $mod."/lib/module.conf.php"; |
| | | |
| | | $menu_dir = ISPC_WEB_PATH.'/' . $mod . '/lib/menu.d'; |
| | | |
| | |
| | | //** Go through all files in the menu dir |
| | | while (($file = readdir($dh)) !== false) { |
| | | if ($file != '.' && $file != '..' && substr($file, -9, 9) == '.menu.php' && $file != 'dns_resync.menu.php') { |
| | | include_once($menu_dir . '/' . $file); |
| | | include_once $menu_dir . '/' . $file; |
| | | } |
| | | } |
| | | } |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | $app->tpl->newTemplate("form.tpl.htm"); |
| | | $app->tpl->setInclude('content_tpl', 'templates/client_del.htm'); |
| | | |
| | | include_once($list_def_file); |
| | | include_once $list_def_file; |
| | | |
| | | // Load table definition from file |
| | | $app->tform->loadFormDef($tform_def_file); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_client_del.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | if(isset($conf['demo_mode']) && $conf['demo_mode'] != true && $this->dataRecord["locked"] != $this->oldDataRecord['locked']) { |
| | | /** lock all the things like web, mail etc. - easy to extend */ |
| | | |
| | | |
| | | // get tmp_data of client |
| | | $client_data = $app->db->queryOneRecord('SELECT `tmp_data` FROM `client` WHERE `client_id` = ' . $this->id); |
| | | |
| | |
| | | |
| | | parent::onAfterUpdate(); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_client_message.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $msg = ''; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | /* |
| | | * We can only delete domains if they are NOT in use |
| | |
| | | $app->error($wb['error_domain_in webuse']); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | class page_action extends tform_actions { |
| | | |
| | |
| | | $app->db->query("UPDATE domain SET sys_groupid = $client_group_id, sys_perm_group = 'ru' WHERE domain_id = ".$this->id); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/client_edit_address.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'company_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/client_edit_limits.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'template_master' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/client_circle_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'circle_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/client_template_edit_template.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'template_type' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/client_template_edit_limits.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'limit_maildomain' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/domain_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'domain' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/reseller_edit_address.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'company_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => "templates/reseller_edit_limits.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'template_master' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('client'); |
| | |
| | | |
| | | parent::onAfterUpdate(); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../lib/config.inc.php'); |
| | | require_once('../lib/app.inc.php'); |
| | | require_once '../lib/config.inc.php'; |
| | | require_once '../lib/app.inc.php'; |
| | | |
| | | /* |
| | | $module = $_REQUEST["s_mod"]; |
| | |
| | | |
| | | if(is_file(ISPC_WEB_PATH."/$module/$page.php")) { |
| | | |
| | | include_once(ISPC_WEB_PATH."/$module/$page.php"); |
| | | include_once ISPC_WEB_PATH."/$module/$page.php"; |
| | | |
| | | $classname = $module.'_'.$page; |
| | | $page = new $classname(); |
| | |
| | | if(!preg_match("/^[a-z]{2,20}$/i", $page)) die('target page name contains unallowed chars.'); |
| | | |
| | | if(is_file(ISPC_WEB_PATH."/$module/$page.php")) { |
| | | include_once(ISPC_WEB_PATH."/$module/$page.php"); |
| | | include_once ISPC_WEB_PATH."/$module/$page.php"; |
| | | |
| | | $classname = $module.'_'.$page; |
| | | $page = new $classname(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dashboard'); |
| | |
| | | $search_fields = array(); |
| | | $desc_fields = array(); |
| | | if(is_file('../'.$module.'/form/'.$section.'.tform.php')){ |
| | | include_once('../'.$module.'/form/'.$section.'.tform.php'); |
| | | include_once '../'.$module.'/form/'.$section.'.tform.php'; |
| | | |
| | | $category_title = $form["title"]; |
| | | $form_file = $form["action"]; |
| | |
| | | |
| | | if(is_array($results) && !empty($results)){ |
| | | $lng_file = '../'.$module.'/lib/lang/'.$_SESSION['s']['language'].'_'.$section.'.lng'; |
| | | if(is_file($lng_file)) include($lng_file); |
| | | if(is_file($lng_file)) include $lng_file; |
| | | $result_array['cheader'] = array('title' => $category_title, |
| | | 'total' => count($results), |
| | | 'limit' => count($results) |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dashboard'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | //* set Default - Values |
| | |
| | | if ($file != '.' && $file != '..' && !is_dir($file)) { |
| | | $dashlet_name = substr($file,0,-4); |
| | | $dashlet_class = 'dashlet_'.$dashlet_name; |
| | | include_once(ISPC_WEB_PATH.'/dashboard/dashlets/'.$file); |
| | | include_once ISPC_WEB_PATH.'/dashboard/dashlets/'.$file; |
| | | $dashlet_list[$dashlet_name] = new $dashlet_class; |
| | | } |
| | | } |
| | |
| | | |
| | | $wb = array(); |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_limits.lng'; |
| | | if(is_file($lng_file)) include($lng_file); |
| | | if(is_file($lng_file)) include $lng_file; |
| | | $tpl->setVar($wb); |
| | | |
| | | if($app->auth->is_admin()) { |
| | |
| | | |
| | | $wb = array(); |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_mailquota.lng'; |
| | | if(is_file($lng_file)) include($lng_file); |
| | | if(is_file($lng_file)) include $lng_file; |
| | | $tpl->setVar($wb); |
| | | |
| | | $tmp_rec = $app->db->queryAllRecords("SELECT data from monitor_data WHERE type = 'email_quota' ORDER BY created DESC"); |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | $wb = array(); |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_modules.lng'; |
| | | if(is_file($lng_file)) include($lng_file); |
| | | if(is_file($lng_file)) include $lng_file; |
| | | $tpl->setVar($wb); |
| | | |
| | | /* |
| | |
| | | foreach($modules as $mt) { |
| | | if(is_file('../' . $mt . '/lib/module.conf.php')) { |
| | | if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.'); |
| | | include_once('../' . $mt.'/lib/module.conf.php'); |
| | | include_once '../' . $mt.'/lib/module.conf.php'; |
| | | /* We don't want to show the dashboard */ |
| | | if ($mt != 'dashboard') { |
| | | $module_title = $app->lng($module['title']); |
| | |
| | | return $tpl->grab(); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | $wb = array(); |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_quota.lng'; |
| | | if(is_file($lng_file)) include($lng_file); |
| | | if(is_file($lng_file)) include $lng_file; |
| | | $tpl->setVar($wb); |
| | | |
| | | $tmp_rec = $app->db->queryAllRecords("SELECT data from monitor_data WHERE type = 'harddisk_quota' ORDER BY created DESC"); |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); |
| | | if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.'); |
| | |
| | | $form_new = $_POST["form"]; |
| | | |
| | | if(@is_file($filename)) { |
| | | include_once($filename); |
| | | include_once $filename; |
| | | $tabs = $form["tabs"]; |
| | | unset($form["tabs"]); |
| | | $form_new["tabs"] = $tabs; |
| | |
| | | // bestehenden Datensatz anzeigen |
| | | if($error == '') { |
| | | // es liegt ein Fehler vor |
| | | include_once("../".$module_name."/form/".$form_name.".tform.php"); |
| | | include_once "../".$module_name."/form/".$form_name.".tform.php"; |
| | | //$tabs = $form["tabs"]; |
| | | unset($form["tabs"]); |
| | | $record = $form; |
| | |
| | | |
| | | $app->tpl->setVar($record); |
| | | |
| | | include_once("lib/lang/".$_SESSION["s"]["language"]."_form_edit.lng"); |
| | | include_once "lib/lang/".$_SESSION["s"]["language"]."_form_edit.lng"; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | // Defaultwerte setzen |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('designer'); |
| | |
| | | |
| | | function getinfo($file, $form_file, $bgcolor) { |
| | | $module_name = $file; |
| | | include(ISPC_WEB_PATH."/$file/form/$form_file"); |
| | | include ISPC_WEB_PATH."/$file/form/$form_file"; |
| | | return array( 'name' => $form['name'], |
| | | 'title' => $form['title'], |
| | | 'description' => $form['description'], |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_form_list.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('designer'); |
| | |
| | | if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$module_name)) die("module_name contains invalid chars."); |
| | | if(!preg_match('/^[A-Za-z0-9_]{1,50}$/',$form_name)) die("form_name contains invalid chars."); |
| | | |
| | | include_once("../".$module_name."/form/".$form_name.".tform.php"); |
| | | include_once "../".$module_name."/form/".$form_name.".tform.php"; |
| | | $tabs = $form["tabs"]; |
| | | unset($form["tabs"]); |
| | | $record = $form; |
| | |
| | | |
| | | // loading language file |
| | | $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_form_show.lng"; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | // baue Tabs navi |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); |
| | | if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.'); |
| | |
| | | $module_new = $_POST["module"]; |
| | | |
| | | if(@is_file($filename)) { |
| | | include_once($filename); |
| | | include_once $filename; |
| | | $navi = $module["nav"]; |
| | | unset($module); |
| | | $module_new["nav"] = $navi; |
| | |
| | | // bestehenden Datensatz anzeigen |
| | | if($error == '') { |
| | | // es liegt ein Fehler vor |
| | | include_once("../".$id."/lib/module.conf.php"); |
| | | include_once "../".$id."/lib/module.conf.php"; |
| | | //$navi = $module["nav"]; |
| | | unset($module["nav"]); |
| | | $record = $module; |
| | |
| | | |
| | | $app->tpl->setVar($record); |
| | | |
| | | include_once("lib/lang/".$_SESSION["s"]["language"]."_module_edit.lng"); |
| | | include_once "lib/lang/".$_SESSION["s"]["language"]."_module_edit.lng"; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | // Defaultwerte setzen |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('designer'); |
| | |
| | | if ($file != '.' && $file != '..') { |
| | | if(@is_dir(ISPC_WEB_PATH."/$file")) { |
| | | if(is_file(ISPC_WEB_PATH."/$file/lib/module.conf.php") and $file != 'login') { |
| | | include_once(ISPC_WEB_PATH."/$file/lib/module.conf.php"); |
| | | include_once ISPC_WEB_PATH."/$file/lib/module.conf.php"; |
| | | $modules_list[] = array( 'module' => $module['name'], |
| | | 'title' => $module['title'], |
| | | 'bgcolor' => ($bgcolor == '#FFFFFF') ? '#EEEEEE' : '#FFFFFF' |
| | |
| | | |
| | | //* loading language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_module_list.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); |
| | | |
| | |
| | | $filename = "../".$module_name."/lib/module.conf.php"; |
| | | |
| | | if(!@is_file($filename)) die("File not found: $filename"); |
| | | include_once($filename); |
| | | include_once $filename; |
| | | |
| | | unset($module["nav"][$nav_id]); |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Security checkpoint |
| | | if($_SESSION['s']['user']['typ'] != 'admin'){ |
| | |
| | | if(!@is_file($filename)){ |
| | | die("File not found: $filename"); |
| | | } |
| | | include_once($filename); |
| | | include_once $filename; |
| | | |
| | | $items = ($action == 'UPDATE') ? $module['nav'][$nav_id]['items'] : array(); |
| | | |
| | |
| | | if($nav_id != '') { |
| | | //* Data record exists |
| | | if($error == '') { |
| | | include_once('../'.$module_name.'/lib/module.conf.php'); |
| | | include_once '../'.$module_name.'/lib/module.conf.php'; |
| | | $record = $module['nav'][$nav_id]; |
| | | } else { |
| | | //* error |
| | |
| | | |
| | | $app->tpl->setVar($record); |
| | | |
| | | include_once('lib/lang/'.$_SESSION['s']['language'].'_module_nav_edit.lng'); |
| | | include_once 'lib/lang/'.$_SESSION['s']['language'].'_module_nav_edit.lng'; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); |
| | | |
| | |
| | | $filename = "../".$module_name."/lib/module.conf.php"; |
| | | |
| | | if(!@is_file($filename)) die("File not found: $filename"); |
| | | include_once($filename); |
| | | include_once $filename; |
| | | |
| | | if($dir == 'up' and $nav_id > 0) { |
| | | $tmp = $module["nav"][$nav_id - 1]; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); |
| | | if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.'); |
| | |
| | | $filename = "../".$module_name."/lib/module.conf.php"; |
| | | |
| | | if(!@is_file($filename)) die("File not found: $filename"); |
| | | include_once($filename); |
| | | include_once $filename; |
| | | |
| | | unset($module["nav"][$nav_id]["items"][$item_id]); |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); |
| | | if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.'); |
| | |
| | | $filename = "../".$module_name."/lib/module.conf.php"; |
| | | |
| | | if(!@is_file($filename)) die("File not found: $filename"); |
| | | include_once($filename); |
| | | include_once $filename; |
| | | |
| | | $tmp = array('title' =>$_POST["title"], |
| | | 'target' => $_POST["target"], |
| | |
| | | // bestehenden Datensatz anzeigen |
| | | if($error == '') { |
| | | // es liegt ein Fehler vor |
| | | include_once("../".$module_name."/lib/module.conf.php"); |
| | | include_once "../".$module_name."/lib/module.conf.php"; |
| | | $record = $module["nav"][$nav_id]["items"][$item_id]; |
| | | } else { |
| | | // ein Fehler |
| | |
| | | |
| | | $app->tpl->setVar($record); |
| | | |
| | | include_once("lib/lang/".$_SESSION["s"]["language"]."_module_nav_item_edit.lng"); |
| | | include_once "lib/lang/".$_SESSION["s"]["language"]."_module_nav_item_edit.lng"; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | // Defaultwerte setzen |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); |
| | | if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.'); |
| | |
| | | $filename = "../".$module_name."/lib/module.conf.php"; |
| | | |
| | | if(!@is_file($filename)) die("File not found: $filename"); |
| | | include_once($filename); |
| | | include_once $filename; |
| | | |
| | | if($dir == 'up' and $item_id > 0) { |
| | | $tmp = $module["nav"][$nav_id]["items"][$item_id - 1]; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('designer'); |
| | |
| | | $module_name = $_REQUEST["id"]; |
| | | if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$module_name)) die("id contains invalid chars."); |
| | | |
| | | include_once("../".$module_name."/lib/module.conf.php"); |
| | | include_once "../".$module_name."/lib/module.conf.php"; |
| | | $navi = $module["nav"]; |
| | | unset($module["nav"]); |
| | | $record = $module; |
| | | |
| | | // loading language file |
| | | $lng_file = "lib/lang/".$_SESSION["s"]["user"]["language"]."_module_show.lng"; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | // baue Modul navi |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | } |
| | | |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_import.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | // Import the zone-file |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $app->db->datalogDelete('dns_slave','id',$rec['id']); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $app->db->datalogDelete('dns_rr','id',$rec['id']); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $serial = $app->validate_dns->increase_serial($soa["serial"]); |
| | | $app->db->datalogUpdate('dns_soa', "serial = $serial", 'id', $soa_id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('dns'); |
| | |
| | | $app->tpl->setVar("title",'DNS Wizard'); |
| | | |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dns_wizard.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl_defaults(); |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_a_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_aaaa_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_alias_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_cname_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_hinfo_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_mx_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_ns_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_ptr_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_rp_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_slave_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'Y', |
| | | 'value' => array(0 => 'N',1 => 'Y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_soa_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'Y', |
| | | 'value' => array(0 => 'N',1 => 'Y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_records_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ), |
| | | 'plugins' => array ( |
| | | 'dns_records' => array ( |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_srv_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_template_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'Y', |
| | | 'value' => array(0 => 'N',1 => 'Y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/dns_txt_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '10' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | $tform_def_file = 'form/faq.tform.php'; |
| | | |
| | | // Include the base libraries |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Check module permissions |
| | | if(!stristr($_SESSION['s']['user']['modules'],'help')) { |
| | |
| | | $tform_def_file = 'form/faq.tform.php'; |
| | | |
| | | // include the core configuration and application classes |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Check the module permissions and redirect if not allowed. |
| | | if(!stristr($_SESSION['s']['user']['modules'],'help')) { |
| | |
| | | <?php |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Path to the list definition file |
| | | $list_def_file = 'list/faq_list.php'; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Path to the list definition file |
| | | $list_def_file = "list/faq_manage_questions_list.php"; |
| | |
| | | $app->uses('listform_actions'); |
| | | |
| | | //* Optional limit |
| | | #$app->listform_actions->SQLExtWhere = "recipient_id = ".$_SESSION['s']['user']['userid']; |
| | | //$app->listform_actions->SQLExtWhere = "recipient_id = ".$_SESSION['s']['user']['userid']; |
| | | |
| | | //* Start the form rendering and action ahndling |
| | | $app->listform_actions->onLoad(); |
| | |
| | | $tform_def_file = 'form/faq_sections.tform.php'; |
| | | |
| | | // Include the base libraries |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Check module permissions |
| | | if(!stristr($_SESSION['s']['user']['modules'],'help')) { |
| | |
| | | $tform_def_file = 'form/faq_sections.tform.php'; |
| | | |
| | | // include the core configuration and application classes |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Check the module permissions and redirect if not allowed. |
| | | if(!stristr($_SESSION['s']['user']['modules'],'help')) { |
| | |
| | | <?php |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Path to the list definition file |
| | | $list_def_file = 'list/faq_sections_list.php'; |
| | |
| | | 'width' => 100, // Tab width |
| | | 'template' => "templates/support_message_edit.htm", // Template file name |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'recipient_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '30' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | $liste['table_idx'] = 'hf_id'; |
| | | |
| | | // Search Field Prefix |
| | | #$liste['search_prefix'] = 'search_'; |
| | | //$liste['search_prefix'] = 'search_'; |
| | | |
| | | // Records per page |
| | | $liste['records_per_page']= 100; |
| | |
| | | $liste['table_idx'] = 'hf_id'; |
| | | |
| | | // Search Field Prefix |
| | | #$liste['search_prefix'] = 'search_'; |
| | | //$liste['search_prefix'] = 'search_'; |
| | | |
| | | // Records per page |
| | | $liste['records_per_page']= 30; |
| | |
| | | $liste['table_idx'] = 'hfs_id'; |
| | | |
| | | // Search Field Prefix |
| | | #$liste['search_prefix'] = 'search_'; |
| | | //$liste['search_prefix'] = 'search_'; |
| | | |
| | | // Records per page |
| | | $liste['records_per_page'] = 100; |
| | |
| | | $tform_def_file = 'form/support_message.tform.php'; |
| | | |
| | | //* Include the base libraries |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('help'); |
| | |
| | | $tform_def_file = 'form/support_message.tform.php'; |
| | | |
| | | //* include the basic application and configuration files |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('help'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Path to the list definition file |
| | | $list_def_file = "list/support_message.list.php"; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('help'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../lib/config.inc.php'); |
| | | require_once('../lib/app.inc.php'); |
| | | require_once '../lib/config.inc.php'; |
| | | require_once '../lib/app.inc.php'; |
| | | |
| | | if(!isset($_SESSION['s']['module']['name'])) $_SESSION['s']['module']['name'] = 'login'; |
| | | |
| | |
| | | <?php |
| | | session_start(); |
| | | include('../../lib/config.inc.php'); |
| | | include '../../lib/config.inc.php'; |
| | | header('Content-Type: text/javascript; charset=utf-8'); // the config file sets the content type header so we have to override it here! |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/app.inc.php'; |
| | | $lang = (isset($_SESSION['s']['language']) && $_SESSION['s']['language'] != '')?$_SESSION['s']['language']:'en'; |
| | | include_once(ISPC_ROOT_PATH.'/web/strengthmeter/lib/lang/'.$lang.'_strengthmeter.lng'); |
| | | include_once ISPC_ROOT_PATH.'/web/strengthmeter/lib/lang/'.$lang.'_strengthmeter.lng'; |
| | | |
| | | $app->uses('ini_parser,getconf'); |
| | | $server_config_array = $app->getconf->get_global_config(); |
| | |
| | | }) |
| | | } |
| | | }); |
| | | |
| | |
| | | |
| | | error_reporting(E_ALL|E_STRICT); |
| | | |
| | | require_once('../lib/config.inc.php'); |
| | | require_once('../lib/app.inc.php'); |
| | | require_once '../lib/config.inc.php'; |
| | | require_once '../lib/app.inc.php'; |
| | | |
| | | ?> |
| | |
| | | $_SESSION["s"]['theme'] = $_SESSION['s']['user']['theme']; |
| | | |
| | | if(is_file($_SESSION['s']['user']['startmodule'].'/lib/module.conf.php')) { |
| | | include_once($_SESSION['s']['user']['startmodule'].'/lib/module.conf.php'); |
| | | include_once $_SESSION['s']['user']['startmodule'].'/lib/module.conf.php'; |
| | | $menu_dir = ISPC_WEB_PATH.'/' . $_SESSION['s']['user']['startmodule'] . '/lib/menu.d'; |
| | | |
| | | if (is_dir($menu_dir)) { |
| | |
| | | //** Go through all files in the menu dir |
| | | while (($file = readdir($dh)) !== false) { |
| | | if ($file != '.' && $file != '..' && substr($file, -9, 9) == '.menu.php' && $file != 'dns_resync.menu.php') { |
| | | include_once($menu_dir . '/' . $file); |
| | | include_once $menu_dir . '/' . $file; |
| | | } |
| | | } |
| | | } |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /* |
| | | * Check if the logout is forced |
| | |
| | | //header("Location: ../index.php?phpsessid=".$_SESSION["s"]["id"]); |
| | | |
| | | if($_SESSION["s"]["site"]["logout"] != '') { |
| | | echo('URL_REDIRECT:'.$_SESSION["s"]["site"]["logout"]); |
| | | echo 'URL_REDIRECT:'.$_SESSION["s"]["site"]["logout"]; |
| | | } else { |
| | | if($conf["interface_logout_url"] != '') { |
| | | echo('URL_REDIRECT:'.$conf["interface_logout_url"]); |
| | | echo 'URL_REDIRECT:'.$conf["interface_logout_url"]; |
| | | } else { |
| | | echo('URL_REDIRECT:index.php'); |
| | | echo 'URL_REDIRECT:index.php'; |
| | | } |
| | | } |
| | | // Destroy the session completely now |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | // Loading the template |
| | | $app->uses('tpl'); |
| | |
| | | |
| | | $app->tpl_defaults(); |
| | | |
| | | include(ISPC_ROOT_PATH.'/web/login/lib/lang/'.$_SESSION['s']['language'].'.lng'); |
| | | include ISPC_ROOT_PATH.'/web/login/lib/lang/'.$_SESSION['s']['language'].'.lng'; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | if(isset($_POST['username']) && $_POST['username'] != '' && $_POST['email'] != '' && $_POST['username'] != 'admin') { |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_alias_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_aliasdomain_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_blacklist_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_content_filter_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_domain_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_domain_catchall_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_forward_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_get_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_mailinglist_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_relay_recipient_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_spamfilter_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_transport_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_mailbox_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(1 => 'y',0 => 'n') |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_autoresponder_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'autoresponder_subject' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'errmsg'=> 'autoresponder_end_date_isgreater'), |
| | | ), |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_mailfilter_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'move_junk' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ), |
| | | 'plugins' => array ( |
| | | 'filter_records' => array ( |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_custom_rules_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'custom_mailfilter' => array ( |
| | | 'datatype' => 'TEXT', |
| | | 'formtype' => 'TEXTAREA', |
| | |
| | | 'cols' => '30', |
| | | 'rows' => '15' |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_filter_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'mailuser_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | #'value' => array('contains'=>'contains_txt','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with') |
| | | //'value' => array('contains'=>'contains_txt','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with') |
| | | 'value' => array('contains'=>'contains_txt','is' => 'is_txt','begins'=>'begins_with_txt','ends'=>'ends_with_txt') |
| | | ), |
| | | 'searchterm' => array ( |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_whitelist_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_blacklist_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_config_server_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'ip_address' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_config_mail_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'module' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '15' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_config_getmail_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'getmail_config_dir' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '40', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_policy_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'policy_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => 'N', |
| | | 'value' => array('N' => 'No','Y' => 'Yes') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_quarantine_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'virus_quarantine_to' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_taglevel_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'spam_tag_level' => array ( |
| | | 'datatype' => 'DOUBLE', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_other_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'addr_extension_virus' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'maxlength' => '255' |
| | | ), |
| | | |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_users_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'value' => array('Y' => 'Yes','N' => 'No') |
| | | ), |
| | | |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/spamfilter_whitelist_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | unset($rec); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | $app->auth->check_module_permissions('mail'); |
| | | |
| | | $app->uses('listform_actions'); |
| | | # $app->listform_actions->SQLExtWhere = "access = 'OK'"; |
| | | // $app->listform_actions->SQLExtWhere = "access = 'OK'"; |
| | | |
| | | $app->listform_actions->onLoad(); |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | $sql = 'SELECT '.$select.$extselect.' FROM '.$app->listform->listDef['table'].($app->listform->listDef['additional_tables'] != ''? ','.$app->listform->listDef['additional_tables'] : '')."$join WHERE $sql_where $order_by_sql $limit_sql"; |
| | | return $sql; |
| | | } |
| | | |
| | | } |
| | | |
| | | $list = new list_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | */ |
| | | |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | } |
| | | |
| | | $app->tform_actions = new page_action; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | } |
| | | |
| | | $app->tform_actions = new page_action; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | } |
| | | |
| | | $app->tform_actions = new page_action; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | } |
| | | |
| | | $app->tform_actions = new page_action; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | $rec['id'] = $rec[$this->idx_key]; |
| | | return $rec; |
| | | } |
| | | |
| | | } |
| | | |
| | | $list = new list_action; |
| | |
| | | */ |
| | | |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mail'); |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_autoresponder_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'autoresponder_subject' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'errmsg'=> 'autoresponder_end_date_isgreater'), |
| | | ), |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_cc_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'cc' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_filter_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'mailuser_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | | 'default' => '', |
| | | #'value' => array('contains'=>'contains_txt','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with') |
| | | //'value' => array('contains'=>'contains_txt','is' => 'Is','begins'=>'Begins with','ends'=>'Ends with') |
| | | 'value' => array('contains'=>'contains_txt','is' => 'is_txt','begins'=>'begins_with_txt','ends'=>'ends_with_txt') |
| | | ), |
| | | 'searchterm' => array ( |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_password_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'password' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'PASSWORD', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/mail_user_spamfilter_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | |
| | | ################################## |
| | | # END Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // END Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_index.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $sql = "SELECT * FROM mail_user WHERE mailuser_id = ".$_SESSION['s']['user']['mailuser_id']; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('mailuser'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /* Check permissions for module */ |
| | | $app->auth->check_module_permissions('monitor'); |
| | |
| | | global $app; |
| | | |
| | | /** The data of all Servers as (sorted by name) array */ |
| | | |
| | | |
| | | $serverData = array(); |
| | | |
| | | /* |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../lib/config.inc.php'); |
| | | require_once('../lib/app.inc.php'); |
| | | require_once '../lib/config.inc.php'; |
| | | require_once '../lib/app.inc.php'; |
| | | |
| | | $app->uses('tpl'); |
| | | |
| | |
| | | foreach($modules as $mt) { |
| | | if(is_file($mt.'/lib/module.conf.php')) { |
| | | if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.'); |
| | | include_once($mt.'/lib/module.conf.php'); |
| | | include_once $mt.'/lib/module.conf.php'; |
| | | $language = (isset($_SESSION['s']['user']['language']))?$_SESSION['s']['user']['language']:$conf['language']; |
| | | $app->load_language_file('web/'.$mt.'/lib/'.$language.'.lng'); |
| | | $active = ($module['name'] == $_SESSION['s']['module']['name']) ? 1 : 0; |
| | |
| | | } |
| | | } else { |
| | | //* Loading Login Module |
| | | include_once('login/lib/module.conf.php'); |
| | | include_once 'login/lib/module.conf.php'; |
| | | $_SESSION['s']['module'] = $module; |
| | | $topnav[] = array( 'title' => 'Login', |
| | | 'active' => 1); |
| | |
| | | if(isset($_GET['nav']) && $_GET['nav'] == 'side') { |
| | | |
| | | if(isset($_SESSION['s']['module']['name']) && is_file($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php')) { |
| | | include_once($_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php'); |
| | | include_once $_SESSION['s']['module']['name'].'/lib/custom_menu.inc.php'; |
| | | } else { |
| | | |
| | | $app->tpl->newTemplate('sidenav.tpl.htm'); |
| | |
| | | <?php |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | $conf['start_session'] = false; |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.'); |
| | | |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | $conf['start_session'] = false; |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | if($conf['demo_mode'] == true) $app->error('This function is disabled in demo mode.'); |
| | | |
| | |
| | | if( $islist ) { |
| | | $json = '[' . implode(',', array_map('__json_encode', $data) ) . ']'; |
| | | } else { |
| | | $items = Array(); |
| | | $items = array(); |
| | | foreach( $data as $key => $value ) { |
| | | $items[] = __json_encode("$key") . ':' . __json_encode($value); |
| | | } |
| | | $json = '{' . implode(',', $items) . '}'; |
| | | } |
| | | } elseif( is_string($data) ) { |
| | | # Escape non-printable or Non-ASCII characters. |
| | | # I also put the \\ character first, as suggested in comments on the 'addcslashes' page. |
| | | // Escape non-printable or Non-ASCII characters. |
| | | // I also put the \\ character first, as suggested in comments on the 'addcslashes' page. |
| | | $string = '"' . addcslashes($data, "\\\"\n\r\t/" . chr(8) . chr(12)) . '"'; |
| | | $json = ''; |
| | | $len = strlen($string); |
| | | # Convert UTF-8 to Hexadecimal Codepoints. |
| | | // Convert UTF-8 to Hexadecimal Codepoints. |
| | | for( $i = 0; $i < $len; $i++ ) { |
| | | |
| | | $char = $string[$i]; |
| | | $c1 = ord($char); |
| | | |
| | | # Single byte; |
| | | // Single byte; |
| | | if( $c1 <128 ) { |
| | | $json .= ($c1 > 31) ? $char : sprintf("\\u%04x", $c1); |
| | | continue; |
| | | } |
| | | |
| | | # Double byte |
| | | // Double byte |
| | | $c2 = ord($string[++$i]); |
| | | if ( ($c1 & 32) === 0 ) { |
| | | $json .= sprintf("\\u%04x", ($c1 - 192) * 64 + $c2 - 128); |
| | | continue; |
| | | } |
| | | |
| | | # Triple |
| | | // Triple |
| | | $c3 = ord($string[++$i]); |
| | | if( ($c1 & 16) === 0 ) { |
| | | $json .= sprintf("\\u%04x", (($c1 - 224) <<12) + (($c2 - 128) << 6) + ($c3 - 128)); |
| | | continue; |
| | | } |
| | | |
| | | # Quadruple |
| | | // Quadruple |
| | | $c4 = ord($string[++$i]); |
| | | if( ($c1 & 8 ) === 0 ) { |
| | | $u = (($c1 & 15) << 2) + (($c2>>4) & 3) - 1; |
| | |
| | | } |
| | | } |
| | | } else { |
| | | # int, floats, bools, null |
| | | // int, floats, bools, null |
| | | $json = strtolower(var_export( $data, true )); |
| | | } |
| | | return $json; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | //require_once('classes/class.base.php'); // for constants |
| | | $app->load('aps_base'); |
| | | |
| | |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //require_once('classes/class.crawler.php'); |
| | | $app->load('aps_crawler'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | $app->load('aps_guicontroller'); |
| | | |
| | | // Check the module permissions |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | //require_once('classes/class.guicontroller.php'); |
| | | $app->load('aps_guicontroller'); |
| | | |
| | |
| | | |
| | | // Load the language file |
| | | $lngfile = 'lib/lang/'.$_SESSION['s']['language'].'_aps.lng'; |
| | | require_once($lngfile); |
| | | require_once $lngfile; |
| | | $app->tpl->setVar($wb); |
| | | $app->load_language_file('web/sites/'.$lngfile); |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | //require_once('classes/class.base.php'); // for constants |
| | | $app->load('aps_base'); |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | //require_once('classes/class.guicontroller.php'); |
| | | $app->load('aps_guicontroller'); |
| | | |
| | |
| | | |
| | | // Load the language file |
| | | $lngfile = 'lib/lang/'.$_SESSION['s']['language'].'_aps.lng'; |
| | | require_once($lngfile); |
| | | require_once $lngfile; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $gui = new ApsGUIController($app); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_aps_update_packagelist.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | |
| | | if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission')); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | $app->uses('sites_database_plugin'); |
| | | //$app->sites_database_plugin->processDatabaseDelete($this->id); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | */ |
| | | |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | $app->db->datalogUpdate('web_database','database_ro_user_id=NULL','database_id', $rec['database_id']); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/cron_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/database_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '60', |
| | | 'searchable' => 2 |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/database_user_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/ftp_user_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/ftp_user_advanced.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'uid' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '7', |
| | | 'maxlength' => '7' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/ftp_user_advanced_client.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'dir' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/shell_user_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'value' => '', |
| | | 'maxlength' => '600' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/shell_user_advanced.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'puser' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/web_aliasdomain_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_aliasdomain_advanced.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'proxy_directives' => array ( |
| | | 'datatype' => 'TEXT', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_domain_edit.htm", |
| | | 'readonly' => $web_domain_edit_readonly, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_domain_redirect.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'redirect_type' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_domain_ssl.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'ssl_state' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => '', |
| | | 'value' => array('' => 'none_txt', 'save' => 'save_certificate_txt', 'create' => 'create_certificate_txt','del' => 'delete_certificate_txt') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | } |
| | |
| | | 'template' => "templates/web_domain_stats.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'stats_password' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'PASSWORD', |
| | |
| | | 'default' => 'webalizer', |
| | | 'value' => array('webalizer' => 'Webalizer', 'awstats' => 'AWStats') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_domain_backup.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'backup_interval' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => '', |
| | | 'value' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ), |
| | | 'plugins' => array ( |
| | | 'backup_records' => array ( |
| | |
| | | 'template' => "templates/web_domain_advanced.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'document_root' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/web_folder_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/web_folder_user_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/web_subdomain_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_subdomain_advanced.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'proxy_directives' => array ( |
| | | 'datatype' => 'TEXT', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_vhost_subdomain_edit.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_vhost_subdomain_redirect.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'redirect_type' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_vhost_subdomain_ssl.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'ssl_state' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'default' => '', |
| | | 'value' => array('' => 'none_txt', 'save' => 'save_certificate_txt', 'create' => 'create_certificate_txt','del' => 'delete_certificate_txt') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | } |
| | |
| | | 'template' => "templates/web_vhost_subdomain_stats.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'stats_password' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'PASSWORD', |
| | |
| | | 'default' => 'webalizer', |
| | | 'value' => array('webalizer' => 'Webalizer', 'awstats' => 'AWStats') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'template' => "templates/web_vhost_subdomain_backup.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'backup_interval' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => '', |
| | | 'value' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10' => '10') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ), |
| | | 'plugins' => array ( |
| | | 'backup_records' => array ( |
| | |
| | | 'template' => "templates/web_vhost_subdomain_advanced.htm", |
| | | 'readonly' => false, |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'document_root' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/webdav_user_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | ?> |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | |
| | | |
| | | // CMD menu |
| | | if($app->auth->get_client_limit($userid,'shell_user') != 0 OR $app->auth->get_client_limit($userid,'cron') != 0) |
| | | if($app->auth->get_client_limit($userid, 'shell_user') != 0 or $app->auth->get_client_limit($userid, 'cron') != 0) |
| | | { |
| | | $items=array(); |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | $rec['id'] = $rec[$this->idx_key]; |
| | | return $rec; |
| | | } |
| | | |
| | | } |
| | | |
| | | $list = new list_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | $app->db->datalogDelete('web_folder','web_folder_id',$rec['web_folder_id']); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | } |
| | | unset($records); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | |
| | | parent::onSubmit(); |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | <?php |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | $sql = 'SELECT '.$select.$extselect.' FROM '.$app->listform->listDef['table'].($app->listform->listDef['additional_tables'] != ''? ','.$app->listform->listDef['additional_tables'] : '')."$join WHERE $sql_where $order_by_sql $limit_sql"; |
| | | return $sql; |
| | | } |
| | | |
| | | } |
| | | |
| | | $list = new list_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('sites'); |
| | |
| | | function onAfterUpdate() { |
| | | global $app, $conf; |
| | | } |
| | | |
| | | } |
| | | |
| | | $page = new page_action; |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | 'width' => 80, |
| | | 'template' => 'templates/interface_settings.htm', |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'startmodule' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ) |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => 'templates/interface_settings.htm', |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'startmodule' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ) |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 80, |
| | | 'template' => 'templates/user_settings.htm', |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Beginn Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // Beginn Datenbankfelder |
| | | //################################# |
| | | 'passwort' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'PASSWORD', |
| | |
| | | 'rows' => '', |
| | | 'cols' => '' |
| | | ) |
| | | ################################## |
| | | # ENDE Datenbankfelder |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datenbankfelder |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_import_ispconfig.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | if(isset($_POST['connected'])) { |
| | |
| | | $app->tpl_defaults(); |
| | | $app->tpl->pparse(); |
| | | |
| | | ########################################################### |
| | | //########################################################## |
| | | |
| | | function start_domain_import($mail_domain) { |
| | | global $app, $conf, $client, $msg, $error, $remote_session_id; |
| | |
| | | |
| | | global $app, $conf; |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /** |
| | | * |
| | | * @param db $exdb |
| | | * @return array |
| | | */ |
| | | |
| | | |
| | | function read_limit_data($exdb) { |
| | | $limits = array(); |
| | | // Limits |
| | |
| | | return $limits; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * |
| | | * @param array $limits |
| | |
| | | } |
| | | |
| | | function yes_no($num, $reverse = false) { |
| | | return (($num == 1 && !$reverse) || ($num != 1 && $reverse) ? 'y' : 'n'); |
| | | return ($num == 1 && !$reverse) || ($num != 1 && $reverse) ? 'y' : 'n'; |
| | | } |
| | | |
| | | // taken from the web_domain_edit.php |
| | |
| | | |
| | | global $app, $conf; |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('tools'); |
| | |
| | | $app->tpl->setInclude('content_tpl', 'templates/index.htm'); |
| | | |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_index.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | $app->tpl->setVar($wb); |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('tools'); |
| | |
| | | function onAfterInsert() { |
| | | $this->onAfterUpdate(); |
| | | } |
| | | |
| | | function onAfterUpdate() { |
| | | if($this->_theme_changed == true) { |
| | | // not the best way, but it works |
| | |
| | | 'link' => 'tools/interface_settings.php', |
| | | 'html_id' => 'interface_settings'); |
| | | |
| | | if(file_exists(ISPC_WEB_PATH.'/tools/lib/interface.d/tpl_' . $_SESSION['s']['user']['app_theme'] . '.menu.php')) include_once(ISPC_WEB_PATH.'/tools/lib/interface.d/tpl_' . $_SESSION['s']['user']['app_theme'] . '.menu.php'); |
| | | if(file_exists(ISPC_WEB_PATH.'/tools/lib/interface.d/tpl_' . $_SESSION['s']['user']['app_theme'] . '.menu.php')) include_once ISPC_WEB_PATH.'/tools/lib/interface.d/tpl_' . $_SESSION['s']['user']['app_theme'] . '.menu.php'; |
| | | |
| | | $module['nav'][] = array( 'title' => 'Interface', |
| | | 'open' => 1, |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_resync.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | //* Resyncing websites |
| | |
| | | |
| | | global $app, $conf; |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('tools'); |
| | |
| | | $app->tpl->setInclude('content_tpl', 'templates/tpl_default.htm'); |
| | | |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_tpl_default.lng'; |
| | | include($lng_file); |
| | | include $lng_file; |
| | | |
| | | $app->tpl->setVar($wb); |
| | | |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('tools'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/openvz_ip_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'default' => 'n', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/openvz_ostemplate_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'template_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'cols' => '30', |
| | | 'searchable' => 2 |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/openvz_template_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'template_name' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'rows' => '10', |
| | | 'cols' => '30' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/openvz_template_advanced_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'numproc' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/openvz_vm_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'server_id' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'SELECT', |
| | |
| | | 'cols' => '30', |
| | | 'searchable' => 2 |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | |
| | |
| | | 'width' => 100, |
| | | 'template' => "templates/openvz_vm_advanced_edit.htm", |
| | | 'fields' => array ( |
| | | ################################## |
| | | # Begin Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // Begin Datatable fields |
| | | //################################# |
| | | 'veid' => array ( |
| | | 'datatype' => 'INTEGER', |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'width' => '30', |
| | | 'maxlength' => '255' |
| | | ), |
| | | ################################## |
| | | # ENDE Datatable fields |
| | | ################################## |
| | | //################################# |
| | | // ENDE Datatable fields |
| | | //################################# |
| | | ) |
| | | ); |
| | | } |
| | |
| | | All rights reserved. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | |
| | | //* load language file |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_openvz_action.lng'; |
| | | include_once($lng_file); |
| | | include_once $lng_file; |
| | | $app->tpl->setVar($wb); |
| | | |
| | | $app->tpl->setVar('id',$vm_id); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('vm'); |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | require_once('../../lib/config.inc.php'); |
| | | require_once('../../lib/app.inc.php'); |
| | | require_once '../../lib/config.inc.php'; |
| | | require_once '../../lib/app.inc.php'; |
| | | |
| | | /****************************************** |
| | | * Begin Form configuration |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | <?php |
| | | |
| | | require('soap_config.php'); |
| | | require 'soap_config.php'; |
| | | |
| | | |
| | | $client = new SoapClient(null, array('location' => $soap_location, |
| | |
| | | */ |
| | | |
| | | define('SCRIPT_PATH', dirname($_SERVER["SCRIPT_FILENAME"])); |
| | | require(SCRIPT_PATH."/lib/config.inc.php"); |
| | | require(SCRIPT_PATH."/lib/app.inc.php"); |
| | | require SCRIPT_PATH."/lib/config.inc.php"; |
| | | require SCRIPT_PATH."/lib/app.inc.php"; |
| | | |
| | | set_time_limit(0); |
| | | ini_set('error_reporting', E_ALL & ~E_NOTICE); |
| | |
| | | $app->uses('ini_parser,file,services,getconf,system'); |
| | | |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // store the mailbox statistics in the database |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | $parse_mail_log = false; |
| | | $sql = "SELECT mailuser_id,maildir FROM mail_user WHERE server_id = ".$conf['server_id']; |
| | |
| | | if($last_line) file_put_contents($state_file, $last_line); |
| | | } |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Create webalizer statistics |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | function setConfigVar( $filename, $varName, $varValue, $append = 0 ) { |
| | | if($lines = @file($filename)) { |
| | |
| | | exec("$webalizer -c $webalizer_conf -n $domain -s $domain -r $domain -q -T -p -o $statsdir $logfile"); |
| | | } |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Create awstats statistics |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | $sql = "SELECT domain_id, domain, document_root, web_folder, type, system_user, system_group, parent_domain_id FROM web_domain WHERE (type = 'vhost' or type = 'vhostsubdomain') and stats_type = 'awstats' AND server_id = ".$conf['server_id']; |
| | | $records = $app->db->queryAllRecords($sql); |
| | |
| | | } |
| | | |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Make the web logfiles directories world readable to enable ftp access |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | if(is_dir('/var/log/ispconfig/httpd')) exec('chmod +r /var/log/ispconfig/httpd/*'); |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Manage and compress web logfiles and create traffic statistics |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | $sql = "SELECT domain_id, domain, type, document_root, web_folder, parent_domain_id FROM web_domain WHERE (type = 'vhost' or type = 'vhostsubdomain') AND server_id = ".$conf['server_id']; |
| | | $records = $app->db->queryAllRecords($sql); |
| | |
| | | } |
| | | unset($tmp_hostname); |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Rotate the ispconfig.log file |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | // rotate the ispconfig.log when it exceeds a size of 10 MB |
| | | $logfile = $conf['ispconfig_log_dir'].'/ispconfig.log'; |
| | |
| | | exec("cat /dev/null > $logfile"); |
| | | } |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Cleanup website tmp directories |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | $sql = "SELECT domain_id, domain, document_root, system_user FROM web_domain WHERE server_id = ".$conf['server_id']; |
| | | $records = $app->db->queryAllRecords($sql); |
| | |
| | | } |
| | | } |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Cleanup logs in master database (only the "master-server") |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | if ($app->dbmaster == $app->db) { |
| | | /** 7 days */ |
| | | |
| | | |
| | | $tstamp = time() - (60*60*24*7); |
| | | |
| | | /* |
| | |
| | | } |
| | | } |
| | | |
| | | ######### |
| | | //######## |
| | | // function for sending notification emails |
| | | ######### |
| | | //######## |
| | | function send_notification_email($template, $placeholders, $recipients) { |
| | | global $conf; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // enforce traffic quota (run only on the "master-server") |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | if ($app->dbmaster == $app->db) { |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // send website quota warnings by email |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | if ($app->dbmaster == $app->db) { |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // send mail quota warnings by email |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | if ($app->dbmaster == $app->db) { |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // deactivate virtual servers (run only on the "master-server") |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | if ($app->dbmaster == $app->db) { |
| | | $current_date = date('Y-m-d'); |
| | |
| | | |
| | | } |
| | | |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | // Create website backups |
| | | ####################################################################################################### |
| | | //###################################################################################################### |
| | | |
| | | $server_config = $app->getconf->get_server_config($conf['server_id'], 'server'); |
| | | $backup_dir = $server_config['backup_dir']; |
| | |
| | | $records = $app->db->queryAllRecords($sql); |
| | | if(is_array($records)) { |
| | | |
| | | include('lib/mysql_clientdb.conf'); |
| | | include 'lib/mysql_clientdb.conf'; |
| | | |
| | | foreach($records as $rec) { |
| | | |
| | |
| | | foreach($cl as $classname) { |
| | | if(!@is_object($this->$classname)) { |
| | | if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM || !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) { |
| | | include_once($conf['classpath'].'/'.$classname.'.inc.php'); |
| | | include_once $conf['classpath'].'/'.$classname.'.inc.php'; |
| | | $this->$classname = new $classname; |
| | | } |
| | | } |
| | |
| | | if(is_array($cl)) { |
| | | foreach($cl as $classname) { |
| | | if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM || !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) { |
| | | include_once($conf['classpath'].'/'.$classname.'.inc.php'); |
| | | include_once $conf['classpath'].'/'.$classname.'.inc.php'; |
| | | } else { |
| | | die('Unable to load: '.$conf['classpath'].'/'.$classname.'.inc.php'); |
| | | } |
| | |
| | | * @param $interface_mode act in interface (true) or server mode (false) |
| | | * @param $log_prefix a prefix to set before all log entries |
| | | */ |
| | | |
| | | |
| | | public function __construct($app, $log_prefix = 'APS: ', $interface_mode = false) |
| | | { |
| | | $this->log_prefix = $log_prefix; |
| | |
| | | $this->packages_dir = ISPC_ROOT_PATH.'/aps_packages'; |
| | | $this->interface_pkg_dir = ISPC_ROOT_PATH.'/web/sites/aps_meta_packages'; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Converts a given value to it's native representation in 1024 units |
| | |
| | | $unit = array('Bytes', 'KB', 'MB', 'GB', 'TB'); |
| | | return @round($value/pow(1024, ($i = floor(log($value, 1024)))), 2).' '.$unit[$i]; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Determine a specific xpath from a given SimpleXMLElement handle. If the |
| | |
| | | |
| | | return $ret; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | require_once('aps_base.inc.php'); |
| | | require_once 'aps_base.inc.php'; |
| | | |
| | | @set_time_limit(0); |
| | | @ignore_user_abort(1); |
| | |
| | | * @param $app the application instance (db handle + log method) |
| | | * @param $interface_mode act in interface (true) or server mode (false) |
| | | */ |
| | | |
| | | |
| | | public function __construct($app, $interface_mode = false) |
| | | { |
| | | parent::__construct($app, 'APS installer: ', $interface_mode); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Before the cron is executed, make sure all necessary options are set |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | catch(Exception $e) |
| | | { |
| | | $app->log('Aborting execution because '.$e->getMessage(), 1); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get a file from a ZIP archive and either return it's content or |
| | |
| | | $zip->close(); |
| | | |
| | | } |
| | | |
| | | catch(Exception $e) |
| | | { |
| | | // The exception message is only interesting for debugging reasons |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Extract the complete directory of a ZIP file |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Setup the environment with data for the install location |
| | | * |
| | |
| | | $this->putenv[] = 'BASE_URL_HOST='.$this->domain; |
| | | $this->putenv[] = 'BASE_URL_PATH='.$this->sublocation.'/'; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Setup a database (if needed) and the appropriate environment variables |
| | |
| | | $this->putenv[] = 'DB_'.$db_id.'_PORT=3306'; |
| | | $this->putenv[] = 'DB_'.$db_id.'_VERSION='.$mysqlver; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Extract all needed files from the package |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all user config variables and set them to environment variables |
| | | * |
| | |
| | | $this->putenv[] = 'SETTINGS_'.$data['name'].'='.$data['value']; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Fetch binary data from a given array |
| | |
| | | } |
| | | curl_multi_close($mh); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * The installation script should be executed |
| | |
| | | WHERE id = "'.$app->db->quote($task['instance_id']).'";'); |
| | | } |
| | | } |
| | | |
| | | catch(Exception $e) |
| | | { |
| | | $app->dbmaster->query('UPDATE aps_instances SET instance_status = "'.INSTANCE_ERROR.'" |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Cleanup: Remove install scripts, remove tasks and update the database |
| | |
| | | chdir($this->local_installpath); |
| | | exec("rm -Rf ".escapeshellarg($this->local_installpath).'install_scripts'); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * The main method which performs the actual package installation |
| | |
| | | |
| | | unset($sxe); |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | } |
| | | return ($section == '') ? $this->config['global'] : $this->config['global'][$section]; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | while (($file = readdir($dh)) !== false) { |
| | | if($file != '.' && $file != '..' && substr($file,-8,8) == '.inc.php') { |
| | | $module_name = substr($file,0,-8); |
| | | include_once($modules_dir.$file); |
| | | include_once $modules_dir.$file; |
| | | if($this->debug) $app->log('Loading Module: '.$module_name,LOGLEVEL_DEBUG); |
| | | $app->loaded_modules[$module_name] = new $module_name; |
| | | $app->loaded_modules[$module_name]->onLoad(); |
| | |
| | | //* get the server_id of the local server |
| | | $server_id = intval($conf["server_id"]); |
| | | |
| | | include_once (SCRIPT_PATH."/lib/remote_action.inc.php"); |
| | | include_once SCRIPT_PATH."/lib/remote_action.inc.php"; |
| | | |
| | | //* SQL query to get all pending actions |
| | | $sql = "SELECT action_id, action_type, action_param " . |
| | |
| | | $server_id = intval($conf['server_id']); |
| | | |
| | | /** The type of the data */ |
| | | |
| | | |
| | | $type = 'server_load'; |
| | | |
| | | /* |
| | |
| | | } |
| | | |
| | | private function _getIntArray($line) { |
| | | |
| | | /** The array of float found */ |
| | | $res = array(); |
| | | /* First build a array from the line */ |
| | |
| | | /** |
| | | * Checks, if the server ist a OpenVZ - Host |
| | | */ |
| | | |
| | | |
| | | public function isOpenVzHost() { |
| | | /* |
| | | * if there is a "/proc/user_beanconters" we have OpenVz "in use" |
| | |
| | | /* ready */ |
| | | return $res; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | |
| | | //** load the plugins |
| | | foreach($tmp_plugins as $plugin_name => $file) { |
| | | include_once($plugins_dir.$file); |
| | | include_once $plugins_dir.$file; |
| | | if($this->debug) $app->log('Loading plugin: '.$plugin_name,LOGLEVEL_DEBUG); |
| | | $app->loaded_plugins[$plugin_name] = new $plugin_name; |
| | | $app->loaded_plugins[$plugin_name]->onLoad(); |
| | |
| | | * |
| | | * @return system |
| | | */ |
| | | |
| | | |
| | | public function system(){ |
| | | //global $go_info; |
| | | //$this->server_id = $go_info['isp']['server_id']; |
| | |
| | | $this->server_conf['shadow_datei'] = '/etc/shadow'; |
| | | $this->server_conf['group_datei'] = '/etc/group'; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the hostname from the server |
| | |
| | | } |
| | | return $hostname; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Add an user to the system |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Update users when someone edit it |
| | | * |
| | |
| | | //* Add the user again |
| | | $this->adduser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Lock the user |
| | |
| | | $this->deluser($user_username); |
| | | $this->adduser($user_username, $uid, $gid, $username, $homedir, $shell, $passwort); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Delete a user from the system |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Add a usergroup to the system |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Update usersgroup in way to delete and add it again |
| | | * |
| | |
| | | $this->delgroup($group); |
| | | $this->addgroup($group, $gid, $members); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Delete a usergroup from the system |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Order usergroups |
| | | * |
| | |
| | | unset($arr); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Find a user / group id |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Check if the users is really a user into the system |
| | | * |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Check if the group is on this system |
| | |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the groups of an user |
| | | * |
| | |
| | | return ''; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get a user password |
| | | * |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the user id from an user |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the group id from an group |
| | | * |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Return info about a group by name |
| | |
| | | return posix_getgrnam($group); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get all information from a user |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Edit the owner of a file |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Add an user to a specific group |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Filter information from the commands |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Strip content from fields |
| | | * |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the content off a file |
| | | * |
| | |
| | | global $app; |
| | | return $app->file->rf($file); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Control services to restart etc |
| | |
| | | return bindec($f1).'.'.bindec($f2).'.'.bindec($f3).'.'.bindec($f4); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Make a broadcast address from an IP number in combination with netmask |
| | | * |
| | |
| | | list($f1,$f2,$f3,$f4) = explode('.', trim($broadcast_bin)); |
| | | return bindec($f1).'.'.bindec($f2).'.'.bindec($f3).'.'.bindec($f4); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the network address information |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Configure the network settings from the system |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Scan the trash for virusses infection |
| | | * |
| | |
| | | chown($datei,'admispconfig'); |
| | | chgrp($datei,'admispconfig'); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the current time |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | if (!defined('vlibTemplateClassLoaded')) { |
| | | define('vlibTemplateClassLoaded', 1); |
| | | |
| | | include_once ($conf['classpath'].'/tpl_error.inc.php'); |
| | | include_once ($conf['classpath'].'/tpl_ini.inc.php'); |
| | | include_once $conf['classpath'].'/tpl_error.inc.php'; |
| | | include_once $conf['classpath'].'/tpl_ini.inc.php'; |
| | | |
| | | /** |
| | | * vlibTemplate is a class used to seperate PHP and HTML. |
| | |
| | | * @access public |
| | | * @see vlibTemplate.html |
| | | */ |
| | | |
| | | |
| | | class tpl { |
| | | |
| | |
| | | var $_debug = null; |
| | | var $_cache = null; |
| | | |
| | | |
| | | |
| | | /** array which holds the dynamic Includes */ |
| | | var $_dyninclude = array(); |
| | | /*-----------------------------------------------------------------------------\ |
| | | | public functions | |
| | | \-----------------------------------------------------------------------------*/ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | $this->_tmplfilename = $tfile; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setVar |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setInclude |
| | | * |
| | |
| | | * @return boolean true/false |
| | | * @access public |
| | | */ |
| | | |
| | | function setInclude($k, $v = null) { |
| | | if(is_array($k)) { |
| | | foreach($k as $key => $val) { |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: unsetVar |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: getVars |
| | | * |
| | |
| | | if (empty($this->_vars)) return false; |
| | | return $this->_vars; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: getVar |
| | |
| | | if (empty($var) || !isset($this->_vars[$var])) return false; |
| | | return $this->_vars[$var]; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setContextVars |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setLoop |
| | | * |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setDbLoop [** EXPERIMENTAL **] |
| | |
| | | */ |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: newLoop |
| | | * |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: addRow |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: addLoop |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: unsetLoop |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: clearVars |
| | | * |
| | |
| | | $this->_vars = array(); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: clearLoops |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: clearAll |
| | | * |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: unknownsExist |
| | | * |
| | |
| | | * @access public |
| | | */ |
| | | function unknownsExist () { |
| | | return (!empty($this->_unknowns)); |
| | | return !empty($this->_unknowns); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: unknowns |
| | |
| | | function unknowns () { |
| | | return $this->unknownsExist(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: getUnknowns |
| | |
| | | function getUnknowns () { |
| | | return $this->_unknowns; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setUnknowns |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setPath |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: getParseTime |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: pprint |
| | | * |
| | |
| | | /*-----------------------------------------------------------------------------\ |
| | | | private functions | |
| | | \-----------------------------------------------------------------------------*/ |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: vlibTemplate |
| | |
| | | if ($this->OPTIONS['GLOBAL_CONTEXT_VARS']) $this->setContextVars(); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** FUNCTION: _getData |
| | | * |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _fileSearch |
| | | * |
| | |
| | | return false; // uh oh, file not found |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _arrayBuild |
| | | * |
| | |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _parseIf |
| | |
| | | } |
| | | return $retstr."); \$_".$tempvar."++) {"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _parseVar |
| | |
| | | break; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _parseTag |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _intParse |
| | | * |
| | |
| | | //set_magic_quotes_runtime($mqrt); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _parse |
| | |
| | | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _setOption |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _setUnknown |
| | | * |
| | |
| | | if (!in_array($var, $this->_unknowns)) array_push($this->_unknowns, $var); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _getMicrotime |
| | | * Returns microtime as a float number |
| | |
| | | */ |
| | | function _getMicrotime () { |
| | | list($msec, $sec) = explode(" ",microtime()); |
| | | return ((float)$msec + (float)$sec); |
| | | return (float)$msec + (float)$sec; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _escape_hex |
| | |
| | | vlibTemplate if the user is quickly bypassing the vlibTemplateCache class. |
| | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ |
| | | function clearCache() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'clearCache()');} |
| | | |
| | | function recache() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'recache()');} |
| | | |
| | | function setCacheLifeTime() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'setCacheLifeTime()');} |
| | | |
| | | function setCacheExtension() {vlibTemplateError::raiseError('VT_WARNING_NOT_CACHE_OBJ', WARNING, 'setCacheExtension()');} |
| | | |
| | | } |
| | | |
| | | //include_once ($conf['classpath'].'/vlibTemplate/debug.php'); |
| | | include_once ($conf['classpath'].'/tpl_cache.inc.php'); |
| | | include_once $conf['classpath'].'/tpl_cache.inc.php'; |
| | | |
| | | } // << end if(!defined()).. |
| | | ?> |
| | |
| | | * @access public |
| | | */ |
| | | |
| | | |
| | | class tplc extends tpl { |
| | | |
| | | /*-----------------------------------------------------------------------------\ |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: recache |
| | | * alias for clearCache(). |
| | |
| | | function recache() { |
| | | return $this->clearCache(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setCacheLifeTime |
| | |
| | | $this->OPTIONS['CACHE_LIFETIME'] = $int; |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: setCacheExtension |
| | |
| | | /*----------------------------------------\ |
| | | Private Functions |
| | | -----------------------------------------*/ |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _checkCache |
| | |
| | | return $this->OPTIONS['CACHE_DIRECTORY'].'/'.md5('vlibCachestaR'.realpath($tmplfile)).'.'.$this->OPTIONS['CACHE_EXTENSION']; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _createCache |
| | | * creates the cached file |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * FUNCTION: _prepareDirs |
| | | * prepares the directory structure |
| | |
| | | * @access private |
| | | */ |
| | | |
| | | |
| | | class vlibTemplateError { |
| | | |
| | | /*-----------------------------------------------------------------------------\ |
| | |
| | | } |
| | | return; |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * @access private |
| | | */ |
| | | |
| | | |
| | | class vlibIni { |
| | | |
| | | /** config vars for vlibTemplate */ |
| | |
| | | * however any of these IPs is allowed to AXFR transfer any of the zones we are masters |
| | | * for. |
| | | */ |
| | | |
| | | |
| | | $tmps = $app->db->queryAllRecords("SELECT DISTINCT xfer FROM dns_soa WHERE active = 'Y' UNION SELECT DISTINCT xfer FROM dns_slave WHERE active = 'Y' "); |
| | | |
| | | //* Make sure the list is never empty |
| | |
| | | $options = "allow-axfr-ips=".implode(",",array_unique(explode(",",$options))); |
| | | $app->log("".$options,LOGLEVEL_DEBUG); |
| | | |
| | | |
| | | |
| | | /** Not an ideal way to use a hardcoded path like that, but currently |
| | | * we have no way to find out where powerdns' configuration files are |
| | | * located, so we have to work on assumption. |
| | |
| | | /* No actions at this time. maybe later... */ |
| | | var $actions_available = array(); |
| | | /** The Tools */ |
| | | |
| | | |
| | | private $_tools = null; |
| | | //** time the script was called |
| | | private $_run_time = null; |
| | |
| | | /** |
| | | * This method searches for scheduled actions and exec then |
| | | */ |
| | | |
| | | |
| | | private function _execActions() { |
| | | global $app; |
| | | global $conf; |
| | |
| | | * stop a service, a admin stopped some days before! To avoid this, we ignore |
| | | * the status (it is only for the interface to show) and use our own maxid |
| | | */ |
| | | include_once (SCRIPT_PATH."/lib/remote_action.inc.php"); |
| | | include_once SCRIPT_PATH."/lib/remote_action.inc.php"; |
| | | |
| | | /* |
| | | * Get all actions this server should execute |
| | |
| | | */ |
| | | //$this->_actionDone($action['action_id'], 'ok'); |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * The monitoring-Data of this module. |
| | | * [0] are the actual data, [1] are the data 1 minnute ago [2] are teh data 2 minuntes... |
| | | */ |
| | | |
| | | |
| | | private $_monitoringData = array(); |
| | | |
| | | /** The rescue-Data of this module. */ |
| | | private $_rescueData = array(); |
| | | |
| | | |
| | | /** |
| | | * This function is called during ispconfig installation to determine |
| | |
| | | return true; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * This function is called when the module is loaded |
| | | */ |
| | | function onLoad() { |
| | | $this->_doRescue(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * This function is called when a change in one of the registered tables is detected. |
| | |
| | | /* Thats it */ |
| | | return $data; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * This gets the rescue-Data, needed for rescuing the system. |
| | |
| | | $this->_rescueDaemon($daemon); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * restarts mysql, if needed |
| | | */ |
| | |
| | | */ |
| | | exec($app->system->getinitcommand($daemon, 'start')); |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | * TODO: Create form for fastcgi configs per site. |
| | | */ |
| | | |
| | | |
| | | if ($data['new']['php'] == 'fast-cgi') { |
| | | |
| | | $fastcgi_starter_path = str_replace('[system_user]',$data['new']['system_user'],$fastcgi_config['fastcgi_starter_path']); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * PHP-FPM |
| | | */ |
| | |
| | | * first we create the script directory if not already created, then copy over the starter script. |
| | | * TODO: we have to fetch the data from the server-settings. |
| | | */ |
| | | |
| | | if ($data['new']['php'] == 'cgi') { |
| | | //$cgi_config = $app->getconf->get_server_config($conf['server_id'], 'cgi'); |
| | | |
| | |
| | | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | |
| | | if(defined('ISPC_ROOT_PATH')) include_once(ISPC_ROOT_PATH.'/lib/classes/aps_installer.inc.php'); |
| | | if(defined('ISPC_ROOT_PATH')) include_once ISPC_ROOT_PATH.'/lib/classes/aps_installer.inc.php'; |
| | | //require_once(ISPC_ROOT_PATH.'/lib/classes/class.installer.php'); |
| | | |
| | | class aps_plugin |
| | |
| | | /** |
| | | * This method gets called when the plugin is loaded |
| | | */ |
| | | |
| | | |
| | | public function onLoad() |
| | | { |
| | | global $app; |
| | |
| | | $app->plugins->registerEvent('aps_instance_update', $this->plugin_name, 'install'); |
| | | $app->plugins->registerEvent('aps_instance_delete', $this->plugin_name, 'delete'); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * (Re-)install a package |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Update an existing instance (currently unused) |
| | | */ |
| | |
| | | { |
| | | } |
| | | */ |
| | | |
| | | |
| | | |
| | | /** |
| | | * Uninstall an instance |
| | |
| | | $aps->installHandler($instanceid, 'install'); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | //* Restore a mysql backup |
| | | if($action_name == 'backup_restore' && $backup['backup_type'] == 'mysql') { |
| | | //* Load sql dump into db |
| | | include('lib/mysql_clientdb.conf'); |
| | | include 'lib/mysql_clientdb.conf'; |
| | | |
| | | if(file_exists($backup_dir.'/'.$backup['filename'])) { |
| | | //$parts = explode('_',$backup['filename']); |
| | |
| | | $app->db->query("DELETE FROM named.records WHERE ispconfig_id = {$data["old"]["id"]} AND type != 'SOA'"); |
| | | //unset($_db); |
| | | } |
| | | |
| | | } // end class |
| | | ?> |
| | |
| | | |
| | | } |
| | | |
| | | ################################################################### |
| | | //################################################################## |
| | | |
| | | function write_named_conf($data, $dns_config) { |
| | | global $app, $conf; |
| | |
| | | /** |
| | | * Setup Jailkit Chroot System If Enabled |
| | | */ |
| | | |
| | | |
| | | if ($data['new']['type'] == "chrooted") |
| | | { |
| | | // load the server configuration options |
| | |
| | | |
| | | if($app->system->is_user($parent_domain['system_user'])) { |
| | | |
| | | |
| | | |
| | | /** |
| | | * Setup Jailkit Chroot System If Enabled |
| | | */ |
| | |
| | | |
| | | /** TODO READ CRON MASTER **/ |
| | | |
| | | |
| | | $this->parent_domain = $parent_domain; |
| | | $this->_write_crontab(); |
| | | |
| | |
| | | global $app, $conf; |
| | | exec('iptables -D xyz'); |
| | | } |
| | | |
| | | } |
| | | |
| | | ?> |
| | |
| | | } elseif(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $db_host)) { |
| | | $groups = explode('.', $db_host); |
| | | foreach($groups as $group){ |
| | | if($group<0 OR $group>255) |
| | | if($group<0 or $group>255) |
| | | $valid=false; |
| | | } |
| | | } else { |
| | |
| | | global $app, $conf; |
| | | |
| | | if($data['new']['type'] == 'mysql') { |
| | | if(!include(ISPC_LIB_PATH.'/mysql_clientdb.conf')) { |
| | | if(!include ISPC_LIB_PATH.'/mysql_clientdb.conf') { |
| | | $app->log('Unable to open'.ISPC_LIB_PATH.'/mysql_clientdb.conf',LOGLEVEL_ERROR); |
| | | return; |
| | | } |
| | |
| | | if($data['new']['active'] == 'n' && $data['old']['active'] == 'n') return; |
| | | |
| | | if($data['new']['type'] == 'mysql') { |
| | | if(!include(ISPC_LIB_PATH.'/mysql_clientdb.conf')) { |
| | | if(!include ISPC_LIB_PATH.'/mysql_clientdb.conf') { |
| | | $app->log('Unable to open'.ISPC_LIB_PATH.'/mysql_clientdb.conf',LOGLEVEL_ERROR); |
| | | return; |
| | | } |
| | |
| | | global $app, $conf; |
| | | |
| | | if($data['old']['type'] == 'mysql') { |
| | | if(!include(ISPC_LIB_PATH.'/mysql_clientdb.conf')) { |
| | | if(!include ISPC_LIB_PATH.'/mysql_clientdb.conf') { |
| | | $app->log('Unable to open'.ISPC_LIB_PATH.'/mysql_clientdb.conf',LOGLEVEL_ERROR); |
| | | return; |
| | | } |
| | |
| | | function db_user_update($event_name,$data) { |
| | | global $app, $conf; |
| | | |
| | | if(!include(ISPC_LIB_PATH.'/mysql_clientdb.conf')) { |
| | | if(!include ISPC_LIB_PATH.'/mysql_clientdb.conf') { |
| | | $app->log('Unable to open'.ISPC_LIB_PATH.'/mysql_clientdb.conf',LOGLEVEL_ERROR); |
| | | return; |
| | | } |
| | |
| | | function db_user_delete($event_name,$data) { |
| | | global $app, $conf; |
| | | |
| | | if(!include(ISPC_LIB_PATH.'/mysql_clientdb.conf')) { |
| | | if(!include ISPC_LIB_PATH.'/mysql_clientdb.conf') { |
| | | $app->log('Unable to open'.ISPC_LIB_PATH.'/mysql_clientdb.conf',LOGLEVEL_ERROR); |
| | | return; |
| | | } |
| | |
| | | $link->query('FLUSH PRIVILEGES;'); |
| | | $link->close(); |
| | | } |
| | | |
| | | } // end class |
| | | |
| | | ?> |
| | |
| | | /** |
| | | * Setup Jailkit Chroot System If Enabled |
| | | */ |
| | | |
| | | |
| | | if ($data['new']['chroot'] == "jailkit") |
| | | { |
| | | |
| | |
| | | $web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$data['new']['parent_domain_id']); |
| | | |
| | | if($app->system->is_user($data['new']['username'])) { |
| | | |
| | | |
| | | |
| | | /** |
| | | * Setup Jailkit Chroot System If Enabled |
| | |
| | | exec("chmod 600 '$sshkeys'"); |
| | | |
| | | } |
| | | |
| | | } // end class |
| | | |
| | | ?> |
| | |
| | | $db_config['database_name'] != '' && |
| | | $db_config['database_host'] != '') { |
| | | |
| | | if(!include(ISPC_LIB_PATH.'/mysql_clientdb.conf')) { |
| | | if(!include ISPC_LIB_PATH.'/mysql_clientdb.conf') { |
| | | $app->log('Unable to open'.ISPC_LIB_PATH.'/mysql_clientdb.conf',LOGLEVEL_ERROR); |
| | | return; |
| | | } |
| | |
| | | return $answer; |
| | | } |
| | | |
| | | require_once('/usr/local/ispconfig/server/lib/config.inc.php'); |
| | | require_once '/usr/local/ispconfig/server/lib/config.inc.php'; |
| | | |
| | | |
| | | echo "\n\n".str_repeat('-',80)."\n"; |
| | |
| | | */ |
| | | |
| | | define('SCRIPT_PATH', dirname($_SERVER["SCRIPT_FILENAME"])); |
| | | require(SCRIPT_PATH."/lib/config.inc.php"); |
| | | require(SCRIPT_PATH."/lib/app.inc.php"); |
| | | require SCRIPT_PATH."/lib/config.inc.php"; |
| | | require SCRIPT_PATH."/lib/app.inc.php"; |
| | | |
| | | set_time_limit(0); |
| | | ini_set('error_reporting', E_ALL & ~E_NOTICE); |
| | |
| | | $app->log('Set Lock: ' . $conf['temppath'] . $conf['fs_div'] . '.ispconfig_lock', LOGLEVEL_DEBUG); |
| | | |
| | | /** Do we need to start the core-modules */ |
| | | |
| | | |
| | | $needStartCore = true; |
| | | |
| | | /* |