Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
config.php
Package: Generateur_v13.rar [view]
Upload User: feiyaoda
Upload Date: 2016-11-21
Package Size: 9556k
Code Size: 3k
Category:
WEB Mail
Development Platform:
PHP
- <?php
- define('FS_FOLDER_UNREADABLE',1000);
- // mysql
- define('DB_LIST_DB_FORBIDDEN',2000);
- define('DB_SERVER_UNREACHABLE',2001);
- define('DB_NO_DB',2002);
- include('./functions.php');
- include('./extensions/phpmyexplorer.func.php');
- include('./extensions/international.class.php');
- include('./extensions/pref.class.php');
- /*
- * current pat version
- */
- $PAT_VERSION = '';
- /*
- * creating $_INI array from config file
- */
- $pref = new_pref('file');
- $_INI = $pref->INI_fetch();
- if ('' == $_INI['use_theme']) $_INI['use_theme'] = 'standard';
- $_INT['theme_path'] = './themes/'.$_INI['use_theme'].'/';
- if ('' == $_INI['use_language']) $_INI['use_language'] = 'frensh';
- $_INT['lang_path'] = './lang/'.$_INI['use_language'].'/';
- if ($_INI['verbose'] && !$config_no_output)
- echo html_comment('theme : '.$_INT['theme_path'].' language : '.$_INT['lang_path']);
- $get_string = new intertionalize($_INT['lang_path']);
- if ($_INI['use_gzip_output_compression'])
- {
- ob_start('ob_gzhandler');
- if ($_INI['verbose'] && !$config_no_output)
- echo html_comment($get_string->get('ob_gz_start'));
- }
- else echo html_comment($get_string->get('no_output_compression'));
- if ($_INI['verbose'] && !$config_no_output)
- echo html_comment(sprintf($get_string->get('ini_values'),count($_INI)));
- /*
- * setting all functions that are disabled by system
- *
- */
- if ($_INI['disabled_functions'])
- {
- $parts = explode (',',$_INI['disabled_functions']);
- foreach ($parts as $id => $function_name)
- {
- $function_name = trim($function_name);
- if ('' != $function_name) $_DISABLED_FUNCTIONS[$function_name] = true;
- }
- }
- else
- {
- // try to guess and do it alone
- }
- /*
- * realpath alternative. look at functions file for more explainations
- */
- if ($_DISABLED_FUNCTIONS['realpath'])
- {
- set_absolute_reference_folder(__FILE__);
- if ($_INI['verbose'] && !$config_no_output)
- echo html_comment(sprintf($get_string->get('use_realpath_alt'),get_absolute_reference_folder()));
- }
- // $_PHP_EXT
- if (function_exists('gzencode')) $_PHP_EXT['gzip_encode'] = true;
- if (function_exists('gzcompress')) $_PHP_EXT['gzip_compress'] = true;
- if (function_exists('gzcompress')) $_PHP_EXT['gzip'] = true;
- if (function_exists('bzcompress')) $_PHP_EXT['bzip2'] = true;
- if (function_exists('zip_open')) $_PHP_EXT['zip'] = true;
- if (function_exists('imagecreate')) $_PHP_EXT['gd'] = true;
- if (function_exists('ini_get')) $_PHP_EXT['ini_read'] = true;
- if (function_exists('ini_set')) $_PHP_EXT['ini_write'] = true;
- /*
- * ini_set and ini_get workaround
- *
- * this is to know if php ini values can be changed (if functions are disabled e.g.)
- */
- // to know if iniget and ini set works
- // -2 : unknown
- // -1 : failed
- // 0 : changed result not known
- // 1 : ok
- $_INI['ini_changes'] = -2;
- if ($_PHP_EXT['ini_write'])
- {
- if($_INI['overwrite_post_size'])
- {
- ini_set('file_uploads',true);
- ini_set('upload_max_filesize',$_INI['overwrite_post_size']);
- ini_set('post_max_size',$_INI['overwrite_post_size']);
- $_INI['ini_changes'] = 0;
- }
- }
- // checking that it has worked
- if ($_PHP_EXT['ini_read'])
- {
- if($_INI['overwrite_post_size'])
- {
- if (ini_get('upload_max_filesize') == $_INI['overwrite_post_size'])
- $_INI['ini_changes'] = 1;
- else
- $_INI['ini_changes'] = -1;
- }
- }