|
|
@@ -284,13 +284,13 @@ define(\"DEBUG_GENERATE\", 3); # [1=ERROR|2=WARN|3=INFO|4=DEBUG|5=TRACE]
|
|
|
define(\"DB_NO_WRITES\", 0); # [0|1] Experimental, use with CAUTION!
|
|
|
define(\'REDIRECTING_DELAY\', \"1\");
|
|
|
define(\'ALLOW_DEPLOYMENT\', 1);
|
|
|
-\\\\\$STATIC_CONFIG = array(\"static_cfg\");
|
|
|
+\\$STATIC_CONFIG = array(\"static_cfg\");
|
|
|
define(\'CHECK_STATIC_SYNTAX\', 1);
|
|
|
-\\\\\$SUPERADMIN_GROUPS = array (\"+admins\");
|
|
|
-\\\\\$ONCALL_GROUPS = array ();
|
|
|
+\\$SUPERADMIN_GROUPS = array (\"+admins\");
|
|
|
+\\$ONCALL_GROUPS = array ();
|
|
|
define(\'CHECK_STATIC_SYNTAX\', 1);
|
|
|
-\\\\\$SUPERADMIN_GROUPS = array (\"+admins\");
|
|
|
-\\\\\$ONCALL_GROUPS = array ();
|
|
|
+\\$SUPERADMIN_GROUPS = array (\"+admins\");
|
|
|
+\\$ONCALL_GROUPS = array ();
|
|
|
define(\'OVERVIEW_QUANTITY_STANDARD\', \"25\");
|
|
|
define(\'SELECT_VALUE_SEPARATOR\', \"::\");
|
|
|
define(\'PASSWD_ENC\', \"clear\");
|
|
|
@@ -317,11 +317,11 @@ alter ignore table nconf.ConfigItems add DEVICES_ID int(11) ; " | mysql -D nconf
|
|
|
-- zapytanie do importu z SE zasobow oraz urzadzen do monitoringu do nconfa do icinga
|
|
|
|
|
|
-- w razie co mozna usunac dodane rekordy w taki sposob
|
|
|
- delete FROM nconf.\\\\\`ConfigValues\\\\\` WHERE \\\\\`A_RECORD_CREATE_AUTHOR\\\\\` like \'SE_IMPORT\';
|
|
|
- delete FROM nconf.\\\\\`ItemLinks\\\\\` WHERE \\\\\`A_RECORD_CREATE_AUTHOR\\\\\` like \'SE_IMPORT\';
|
|
|
- delete FROM nconf.\\\\\`ConfigItems\\\\\` WHERE \\\\\`A_RECORD_CREATE_AUTHOR\\\\\` like \'SE_IMPORT\';
|
|
|
- delete FROM nconf.\\\\\`ConfigAttrs\\\\\` WHERE \\\\\`A_RECORD_CREATE_AUTHOR\\\\\` like \'SE_IMPORT\';
|
|
|
- delete FROM nconf.\\\\\`ConfigClasses\\\\\` WHERE \\\\\`A_RECORD_CREATE_AUTHOR\\\\\` like \'SE_IMPORT\';
|
|
|
+ delete FROM nconf.\\`ConfigValues\\` WHERE \\`A_RECORD_CREATE_AUTHOR\\` like \'SE_IMPORT\';
|
|
|
+ delete FROM nconf.\\`ItemLinks\\` WHERE \\`A_RECORD_CREATE_AUTHOR\\` like \'SE_IMPORT\';
|
|
|
+ delete FROM nconf.\\`ConfigItems\\` WHERE \\`A_RECORD_CREATE_AUTHOR\\` like \'SE_IMPORT\';
|
|
|
+ delete FROM nconf.\\`ConfigAttrs\\` WHERE \\`A_RECORD_CREATE_AUTHOR\\` like \'SE_IMPORT\';
|
|
|
+ delete FROM nconf.\\`ConfigClasses\\` WHERE \\`A_RECORD_CREATE_AUTHOR\\` like \'SE_IMPORT\';
|
|
|
|
|
|
-- bierzemy z zasobow dane tylko takie, ktore nie maja powiazanych DEVICES (bierzemy tylko devices)
|
|
|
insert into nconf.ConfigItems ( id_item , fk_id_class , DEVICES_ID,A_RECORD_CREATE_AUTHOR)
|
|
|
@@ -333,10 +333,10 @@ insert into nconf.ConfigItems ( id_item , fk_id_class , DEVICES_ID,A_RECORD_CREA
|
|
|
insert ignore into nconf.ConfigValues ( attr_value, fk_id_attr, fk_id_item, A_RECORD_CREATE_AUTHOR )
|
|
|
select
|
|
|
if( ConfigAttrs.Attr_name like \'%host_name%\'
|
|
|
- , left(replace(replace(replace(replace(replace(replace(concat(DEV.ID,\'-\',DEV.T_DEVICE_SERIAL,\'-\',DEV.S_HW,\'[\',\\\\\`CLZ\\\\\`.ID,\'] URZADZENIE \', DEV.T_DEVICE_TYPE,\'-\',CLZ.\\\\\`DESC\\\\\`,\' \'),\',\',\'\'),\'/\',\'\'),\'(\',\'\'),\')\',\'\'),\'%\',\'\'),\'?\',\'\'),50)
|
|
|
+ , left(replace(replace(replace(replace(replace(replace(concat(DEV.ID,\'-\',DEV.T_DEVICE_SERIAL,\'-\',DEV.S_HW,\'[\',\\`CLZ\\`.ID,\'] URZADZENIE \', DEV.T_DEVICE_TYPE,\'-\',CLZ.\\`DESC\\`,\' \'),\',\',\'\'),\'/\',\'\'),\'(\',\'\'),\')\',\'\'),\'%\',\'\'),\'?\',\'\'),50)
|
|
|
,
|
|
|
- if( ConfigAttrs.Attr_name like \'alias\', \\\\\`DEV\\\\\`.\\\\\`S_IP\\\\\`,
|
|
|
- if( ConfigAttrs.Attr_name like \'address\', \\\\\`DEV\\\\\`.\\\\\`S_IP\\\\\`,
|
|
|
+ if( ConfigAttrs.Attr_name like \'alias\', \\`DEV\\`.\\`S_IP\\`,
|
|
|
+ if( ConfigAttrs.Attr_name like \'address\', \\`DEV\\`.\\`S_IP\\`,
|
|
|
if( ConfigAttrs.Attr_name like \'host_is_collector\',\'no\',\'\')
|
|
|
)
|
|
|
)
|
|
|
@@ -417,17 +417,17 @@ group by ConfigItems.id_item;
|
|
|
insert into nconf.ConfigItems ( id_item , fk_id_class , CRM_LISTA_ZASOBOW_ID , A_RECORD_CREATE_AUTHOR)
|
|
|
select \'\', 1, CRM_LISTA_ZASOBOW.ID ,\'SE_IMPORT\' from '.$REMOTE_FOLDER_ROOT.'.CRM_LISTA_ZASOBOW
|
|
|
left join nconf.ConfigItems as ConfigItems_2 on ConfigItems_2.CRM_LISTA_ZASOBOW_ID=CRM_LISTA_ZASOBOW.ID
|
|
|
- where CRM_LISTA_ZASOBOW.\\\\\`TYPE\\\\\`=\'SERWER\' and ConfigItems_2.CRM_LISTA_ZASOBOW_ID is null ;
|
|
|
+ where CRM_LISTA_ZASOBOW.\\`TYPE\\`=\'SERWER\' and ConfigItems_2.CRM_LISTA_ZASOBOW_ID is null ;
|
|
|
|
|
|
-- dodajemy zasoby do monitoringu w inteligentny sposob razem z waznymi parametrami - jak to widac w zapytaniu
|
|
|
insert ignore into nconf.ConfigValues ( attr_value, fk_id_attr, fk_id_item , A_RECORD_CREATE_AUTHOR
|
|
|
)
|
|
|
select
|
|
|
if( ConfigAttrs.Attr_name like \'%host_name%\'
|
|
|
- , left(replace(replace(replace(replace(replace(replace(concat(\'[\',\\\\\`CLZ\\\\\`.ID,\'] SERWER \',CLZ.\\\\\`DESC\\\\\`,\' \',CLZ.\\\\\`OPIS\\\\\`),\',\',\'\'),\'/\',\'\'),\'(\',\'\'),\')\',\'\'),\'%\',\'\'),\'?\',\'\'),40)
|
|
|
+ , left(replace(replace(replace(replace(replace(replace(concat(\'[\',\\`CLZ\\`.ID,\'] SERWER \',CLZ.\\`DESC\\`,\' \',CLZ.\\`OPIS\\`),\',\',\'\'),\'/\',\'\'),\'(\',\'\'),\')\',\'\'),\'%\',\'\'),\'?\',\'\'),40)
|
|
|
,
|
|
|
- if( ConfigAttrs.Attr_name like \'alias\', \\\\\`CLZ\\\\\`.\\\\\`DESC\\\\\`,
|
|
|
- if( ConfigAttrs.Attr_name like \'address\', \\\\\`CLZ\\\\\`.\\\\\`DESC\\\\\`,
|
|
|
+ if( ConfigAttrs.Attr_name like \'alias\', \\`CLZ\\`.\\`DESC\\`,
|
|
|
+ if( ConfigAttrs.Attr_name like \'address\', \\`CLZ\\`.\\`DESC\\`,
|
|
|
if( ConfigAttrs.Attr_name like \'host_is_collector\',\'no\',\'\')
|
|
|
)
|
|
|
)
|
|
|
@@ -439,7 +439,7 @@ insert ignore into nconf.ConfigValues ( attr_value, fk_id_attr, fk_id_item , A_R
|
|
|
in (\'host_name\',\'alias\',\'address\',\'notes\',\'notes_url\',\'host_is_collector\',\'action_url\',\'max_check_attempts\',\'check_interval\',\'retry_interval\',\'first_notification_delay\',\'notification_interval\',\'notification_options\',\'active_checks_enabled\',\'passive_checks_enabled\',\'notifications_enabled\',\'check_freshness\',\'freshness_threshold\') and ConfigAttrs.fk_id_class=\'1\'
|
|
|
left join nconf.ConfigItems as ConfigItems on ConfigItems.CRM_LISTA_ZASOBOW_ID=CLZ.ID
|
|
|
left join '.$REMOTE_FOLDER_ROOT.'.DEVICES as DEVICES on DEVICES.CRM_LISTA_ZASOBOW_ID=CLZ.ID
|
|
|
- where CLZ.\\\\\`TYPE\\\\\`=\'SERWER\' and DEVICES.CRM_LISTA_ZASOBOW_ID is NULL;
|
|
|
+ where CLZ.\\`TYPE\\`=\'SERWER\' and DEVICES.CRM_LISTA_ZASOBOW_ID is NULL;
|
|
|
-- dodajemy potrzebne wpisy odnosnie klasy monitorowania
|
|
|
insert ignore into nconf.ItemLinks ( fk_id_item,fk_item_linked2,fk_id_attr , A_RECORD_CREATE_AUTHOR
|
|
|
)
|
|
|
@@ -562,7 +562,7 @@ $cmd[]['rsh']='cat /etc/sudoers |grep "_www ALL = NOPASSWD: /sbin/pfctl" || echo
|
|
|
" >> /etc/sudoers;
|
|
|
cat /etc/sudoers |grep "_www ALL = NOPASSWD: /sbin/pfctl"';
|
|
|
|
|
|
-// $cmd[]['rsh']='echo \\\\\$UID';
|
|
|
+// $cmd[]['rsh']='echo \\$UID';
|
|
|
// $cmd[]['rsh']='echo "Uruchamiam zdalna procedure instalacji SE " |wall ';
|
|
|
$cmd[]['rsh']='launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist'; //wyszukowanie plikow
|
|
|
|
|
|
@@ -794,7 +794,7 @@ chown _www logs/ || exit 1
|
|
|
//ustalenie domyslnych identities na webmailu po zalogowaniu wlasciwych dla domeny
|
|
|
$cmd[]['rsh']='test -n "'.$SERVER_ADDRESS_SHORT.'" && sed -i.bak "s/@DOMAIN_TO_EDIT/@'.$SERVER_ADDRESS_SHORT.'/" /Library/Server/Web/Data/Sites/Default/webmail/loginFromSE.php';
|
|
|
$cmd[]['rsh']='test -n "'.$SERVER_ADDRESS.'" && sed -i.bak "s/@DOMAIN_TO_EDIT/@'.$SERVER_ADDRESS.'/" /Library/Server/Web/Data/Sites/Default/webmail/loginFromSE.php';
|
|
|
- $cmd[]['rsh']='sed -i.bak "s/\/\/\\\\\$RCMAIL->db->query(/\\\\\$RCMAIL->db->query(/" /Library/Server/Web/Data/Sites/Default/webmail/loginFromSE.php';
|
|
|
+ $cmd[]['rsh']='sed -i.bak "s/\/\/\\$RCMAIL->db->query(/\\$RCMAIL->db->query(/" /Library/Server/Web/Data/Sites/Default/webmail/loginFromSE.php';
|
|
|
// $cmd[]['scp_root']=array($INSTALL_ROOT.'/stuff/OfflineIMAP-offlineimap-v6.5.5-0-g8bc2f35.tar',' /Library/Server/Web/Data/Sites/Default/');
|
|
|
// $cmd[]['rsh']='tar -zxpvf /Library/Server/Web/Data/Sites/Default/OfflineIMAP-offlineimap-v6.5.5-0-g8bc2f35.tar* -C /Library/Server/Web/Data/Sites/Default/';
|
|
|
$cmd[]['rsh']='chmod +a "_www allow writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown,add_file,add_subdirectory,delete_child,list,search,file_inherit,directory_inherit" /Library/WebServer/';
|
|
|
@@ -819,129 +819,132 @@ chown _www logs/ || exit 1
|
|
|
$cmd[]['rsh']='cd /Library/Server/Web/Data/Sites/Default/webmail || exit 1
|
|
|
|
|
|
echo "<?
|
|
|
-\\\\$rcmail_config = array();
|
|
|
-\\\\$rcmail_config[\'debug_level\'] = 1;
|
|
|
-\\\\$rcmail_config[\'log_driver\'] = \'file\';
|
|
|
-\\\\$rcmail_config[\'log_date_format\'] = \'d-M-Y H:i:s O\';
|
|
|
-\\\\$rcmail_config[\'syslog_id\'] = \'roundcube\';
|
|
|
-\\\\$rcmail_config[\'syslog_facility\'] = LOG_USER;
|
|
|
-\\\\$rcmail_config[\'smtp_log\'] = true;
|
|
|
-\\\\$rcmail_config[\'log_logins\'] = false;
|
|
|
-\\\\$rcmail_config[\'log_session\'] = false;
|
|
|
-\\\\$rcmail_config[\'sql_debug\'] = false;
|
|
|
-\\\\$rcmail_config[\'imap_debug\'] = false;
|
|
|
-\\\\$rcmail_config[\'ldap_debug\'] = false;
|
|
|
-\\\\$rcmail_config[\'smtp_debug\'] = false;
|
|
|
-\\\\$rcmail_config[\'default_host\'] = \'127.0.0.1\';
|
|
|
-\\\\$rcmail_config[\'default_port\'] = 143;
|
|
|
-\\\\$rcmail_config[\'imap_auth_type\'] = PLAIN;
|
|
|
-\\\\$rcmail_config[\'imap_delimiter\'] = null;
|
|
|
-\\\\$rcmail_config[\'imap_ns_personal\'] = null;
|
|
|
-\\\\$rcmail_config[\'imap_ns_shared\'] = null;
|
|
|
-\\\\$rcmail_config[\'imap_force_caps\'] = false;
|
|
|
-\\\\$rcmail_config[\'imap_force_lsub\'] = false;
|
|
|
-\\\\$rcmail_config[\'imap_force_ns\'] = false;
|
|
|
-\\\\$rcmail_config[\'imap_timeout\'] = 0;
|
|
|
-\\\\$rcmail_config[\'imap_auth_cid\'] = null;
|
|
|
-\\\\$rcmail_config[\'imap_auth_pw\'] = null;
|
|
|
-\\\\$rcmail_config[\'imap_cache\'] = null;
|
|
|
-\\\\$rcmail_config[\'messages_cache\'] = false;
|
|
|
-\\\\$rcmail_config[\'smtp_server\'] = \'127.0.0.1\';
|
|
|
-\\\\$rcmail_config[\'smtp_port\'] = 25;
|
|
|
-\\\\$rcmail_config[\'smtp_user\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'smtp_pass\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'smtp_auth_type\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'smtp_auth_cid\'] = null;
|
|
|
-\\\\$rcmail_config[\'smtp_auth_pw\'] = null;
|
|
|
-\\\\$rcmail_config[\'smtp_helo_host\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'smtp_timeout\'] = 0;
|
|
|
-\\\\$rcmail_config[\'enable_installer\'] = false;
|
|
|
-\\\\$rcmail_config[\'dont_override\'] = array();
|
|
|
-\\\\$rcmail_config[\'support_url\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'skin_logo\'] = null;
|
|
|
-\\\\$rcmail_config[\'auto_create_user\'] = true;
|
|
|
-\\\\$rcmail_config[\'user_aliases\'] = false;
|
|
|
-\\\\$rcmail_config[\'log_dir\'] = \'logs/\';
|
|
|
-\\\\$rcmail_config[\'temp_dir\'] = \'temp/\';
|
|
|
-\\\\$rcmail_config[\'message_cache_lifetime\'] = \'10d\';
|
|
|
-\\\\$rcmail_config[\'force_https\'] = false;
|
|
|
-\\\\$rcmail_config[\'use_https\'] = false;
|
|
|
-\\\\$rcmail_config[\'login_autocomplete\'] = 0;
|
|
|
-\\\\$rcmail_config[\'login_lc\'] = 2;
|
|
|
-\\\\$rcmail_config[\'skin_include_php\'] = false;
|
|
|
-\\\\$rcmail_config[\'display_version\'] = false;
|
|
|
-\\\\$rcmail_config[\'session_lifetime\'] = 10;
|
|
|
-\\\\$rcmail_config[\'session_domain\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'session_name\'] = null;
|
|
|
-\\\\$rcmail_config[\'session_path\'] = null;
|
|
|
-\\\\$rcmail_config[\'session_storage\'] = \'db\';
|
|
|
-\\\\$rcmail_config[\'ip_check\'] = false;
|
|
|
-\\\\$rcmail_config[\'referer_check\'] = false;
|
|
|
-\\\\$rcmail_config[\'x_frame_options\'] = \'sameorigin\';
|
|
|
-\\\\$rcmail_config[\'des_key\'] = \'+oEkJSMxbrsl%C!J1f3AjJK-\';
|
|
|
-\\\\$rcmail_config[\'username_domain\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'mail_domain\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'password_charset\'] = \'ISO-8859-1\';
|
|
|
-\\\\$rcmail_config[\'sendmail_delay\'] = 0;
|
|
|
-\\\\$rcmail_config[\'max_recipients\'] = 0;
|
|
|
-\\\\$rcmail_config[\'max_group_members\'] = 0;
|
|
|
-\\\\$rcmail_config[\'useragent\'] = \'Roundcube Webmail/\'.RCMAIL_VERSION;
|
|
|
-\\\\$rcmail_config[\'product_name\'] = \'webmail\';
|
|
|
-\\\\$rcmail_config[\'include_host_config\'] = false;
|
|
|
-\\\\$rcmail_config[\'generic_message_footer\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'generic_message_footer_html\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'http_received_header\'] = false;
|
|
|
-\\\\$rcmail_config[\'http_received_header_encrypt\'] = false;
|
|
|
-\\\\$rcmail_config[\'mail_header_delimiter\'] = NULL;
|
|
|
-\\\\$rcmail_config[\'line_length\'] = 72;
|
|
|
-\\\\$rcmail_config[\'send_format_flowed\'] = true;
|
|
|
-\\\\$rcmail_config[\'mdn_use_from\'] = false;
|
|
|
-\\\\$rcmail_config[\'identities_level\'] = 0;
|
|
|
-\\\\$rcmail_config[\'client_mimetypes\'] = null; # null == default
|
|
|
-\\\\$rcmail_config[\'mime_magic\'] = null;
|
|
|
-\\\\$rcmail_config[\'mime_types\'] = null;
|
|
|
-\\\\$rcmail_config[\'im_identify_path\'] = null;
|
|
|
-\\\\$rcmail_config[\'im_convert_path\'] = null;
|
|
|
-\\\\$rcmail_config[\'image_thumbnail_size\'] = 240;
|
|
|
-\\\\$rcmail_config[\'contact_photo_size\'] = 160;
|
|
|
-\\\\$rcmail_config[\'email_dns_check\'] = false;
|
|
|
-\\\\$rcmail_config[\'no_save_sent_messages\'] = false;
|
|
|
-\\\\$rcmail_config[\'plugins\'] = array();
|
|
|
-\\\\$rcmail_config[\'message_sort_col\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'message_sort_order\'] = \'DESC\';
|
|
|
-\\\\$rcmail_config[\'list_cols\'] = array(\'subject\', \'status\', \'fromto\', \'date\', \'size\', \'flag\', \'attachment\');
|
|
|
-\\\\$rcmail_config[\'language\'] = null;
|
|
|
-\\\\$rcmail_config[\'date_format\'] = \'Y-m-d\';
|
|
|
-\\\\$rcmail_config[\'date_formats\'] = array(\'Y-m-d\', \'d-m-Y\', \'Y/m/d\', \'m/d/Y\', \'d/m/Y\', \'d.m.Y\', \'j.n.Y\');
|
|
|
-\\\\$rcmail_config[\'time_format\'] = \'H:i\';
|
|
|
-\\\\$rcmail_config[\'time_formats\'] = array(\'G:i\', \'H:i\', \'g:i a\', \'h:i A\');
|
|
|
-\\\\$rcmail_config[\'date_short\'] = \'D H:i\';
|
|
|
-\\\\$rcmail_config[\'date_long\'] = \'Y-m-d H:i\';
|
|
|
-\\\\$rcmail_config[\'drafts_mbox\'] = \'Drafts\';
|
|
|
-\\\\$rcmail_config[\'junk_mbox\'] = \'Junk\';
|
|
|
-\\\\$rcmail_config[\'sent_mbox\'] = \'Sent\';
|
|
|
-\\\\$rcmail_config[\'trash_mbox\'] = \'Trash\';
|
|
|
-\\\\$rcmail_config[\'default_folders\'] = array(\'INBOX\', \'Drafts\', \'Sent\', \'Junk\', \'Trash\');
|
|
|
-\\\\$rcmail_config[\'create_default_folders\'] = false;
|
|
|
-\\\\$rcmail_config[\'protect_default_folders\'] = true;
|
|
|
-\\\\$rcmail_config[\'quota_zero_as_unlimited\'] = false;
|
|
|
-\\\\$rcmail_config[\'enable_spellcheck\'] = true;
|
|
|
-\\\\$rcmail_config[\'spellcheck_dictionary\'] = false;
|
|
|
-\\\\$rcmail_config[\'spellcheck_engine\'] = \'googie\';
|
|
|
-\\\\$rcmail_config[\'spellcheck_uri\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'spellcheck_languages\'] = NULL;
|
|
|
-\\\\$rcmail_config[\'spellcheck_ignore_caps\'] = false;
|
|
|
-\\\\$rcmail_config[\'spellcheck_ignore_nums\'] = false;
|
|
|
-\\\\$rcmail_config[\'spellcheck_ignore_syms\'] = false;
|
|
|
-\\\\$rcmail_config[\'recipients_separator\'] = \',\';
|
|
|
-\\\\$rcmail_config[\'max_pagesize\'] = 200;
|
|
|
-\\\\$rcmail_config[\'min_refresh_interval\'] = 60;
|
|
|
-\\\\$rcmail_config[\'upload_progress\'] = false;
|
|
|
-\\\\$rcmail_config[\'undo_timeout\'] = 0;
|
|
|
-\\\\$rcmail_config[\'address_book_type\'] = \'sql\';
|
|
|
-\\\\$rcmail_config[\'ldap_public\'] = array();
|
|
|
-
|
|
|
-\\\\$rcmail_config[\'ldap_public\'][\'localhost\'] = array(
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+\$rcmail_config = array();
|
|
|
+\$rcmail_config[\'debug_level\'] = 1;
|
|
|
+\$rcmail_config[\'log_driver\'] = \'file\';
|
|
|
+\$rcmail_config[\'log_date_format\'] = \'d-M-Y H:i:s O\';
|
|
|
+\$rcmail_config[\'syslog_id\'] = \'roundcube\';
|
|
|
+\$rcmail_config[\'syslog_facility\'] = LOG_USER;
|
|
|
+\$rcmail_config[\'smtp_log\'] = true;
|
|
|
+\$rcmail_config[\'log_logins\'] = false;
|
|
|
+\$rcmail_config[\'log_session\'] = false;
|
|
|
+\$rcmail_config[\'sql_debug\'] = false;
|
|
|
+\$rcmail_config[\'imap_debug\'] = false;
|
|
|
+\$rcmail_config[\'ldap_debug\'] = false;
|
|
|
+\$rcmail_config[\'smtp_debug\'] = false;
|
|
|
+\$rcmail_config[\'default_host\'] = \''.$SERVER_ADDRESS_SHORT.'\';
|
|
|
+\$rcmail_config[\'default_port\'] = 143;
|
|
|
+\$rcmail_config[\'imap_auth_type\'] = PLAIN;
|
|
|
+\$rcmail_config[\'imap_delimiter\'] = null;
|
|
|
+\$rcmail_config[\'imap_ns_personal\'] = null;
|
|
|
+\$rcmail_config[\'imap_ns_shared\'] = null;
|
|
|
+\$rcmail_config[\'imap_force_caps\'] = false;
|
|
|
+\$rcmail_config[\'imap_force_lsub\'] = false;
|
|
|
+\$rcmail_config[\'imap_force_ns\'] = false;
|
|
|
+\$rcmail_config[\'imap_timeout\'] = 0;
|
|
|
+\$rcmail_config[\'imap_auth_cid\'] = null;
|
|
|
+\$rcmail_config[\'imap_auth_pw\'] = null;
|
|
|
+\$rcmail_config[\'imap_cache\'] = null;
|
|
|
+\$rcmail_config[\'messages_cache\'] = false;
|
|
|
+\$rcmail_config[\'smtp_server\'] = \'127.0.0.1\';
|
|
|
+\$rcmail_config[\'smtp_port\'] = 25;
|
|
|
+\$rcmail_config[\'smtp_user\'] = \'\';
|
|
|
+\$rcmail_config[\'smtp_pass\'] = \'\';
|
|
|
+\$rcmail_config[\'smtp_auth_type\'] = \'\';
|
|
|
+\$rcmail_config[\'smtp_auth_cid\'] = null;
|
|
|
+\$rcmail_config[\'smtp_auth_pw\'] = null;
|
|
|
+\$rcmail_config[\'smtp_helo_host\'] = \'\';
|
|
|
+\$rcmail_config[\'smtp_timeout\'] = 0;
|
|
|
+\$rcmail_config[\'enable_installer\'] = false;
|
|
|
+\$rcmail_config[\'dont_override\'] = array();
|
|
|
+\$rcmail_config[\'support_url\'] = \'\';
|
|
|
+\$rcmail_config[\'skin_logo\'] = null;
|
|
|
+\$rcmail_config[\'auto_create_user\'] = true;
|
|
|
+\$rcmail_config[\'user_aliases\'] = false;
|
|
|
+\$rcmail_config[\'log_dir\'] = \'logs/\';
|
|
|
+\$rcmail_config[\'temp_dir\'] = \'temp/\';
|
|
|
+\$rcmail_config[\'message_cache_lifetime\'] = \'10d\';
|
|
|
+\$rcmail_config[\'force_https\'] = false;
|
|
|
+\$rcmail_config[\'use_https\'] = false;
|
|
|
+\$rcmail_config[\'login_autocomplete\'] = 0;
|
|
|
+\$rcmail_config[\'login_lc\'] = 2;
|
|
|
+\$rcmail_config[\'skin_include_php\'] = false;
|
|
|
+\$rcmail_config[\'display_version\'] = false;
|
|
|
+\$rcmail_config[\'session_lifetime\'] = 10;
|
|
|
+\$rcmail_config[\'session_domain\'] = \'\';
|
|
|
+\$rcmail_config[\'session_name\'] = null;
|
|
|
+\$rcmail_config[\'session_path\'] = null;
|
|
|
+\$rcmail_config[\'session_storage\'] = \'db\';
|
|
|
+\$rcmail_config[\'ip_check\'] = false;
|
|
|
+\$rcmail_config[\'referer_check\'] = false;
|
|
|
+\$rcmail_config[\'x_frame_options\'] = \'sameorigin\';
|
|
|
+\$rcmail_config[\'des_key\'] = \'+oEkJSMxbrsl%C!J1f3AjJK-\';
|
|
|
+\$rcmail_config[\'username_domain\'] = \'\';
|
|
|
+\$rcmail_config[\'mail_domain\'] = \'\';
|
|
|
+\$rcmail_config[\'password_charset\'] = \'ISO-8859-1\';
|
|
|
+\$rcmail_config[\'sendmail_delay\'] = 0;
|
|
|
+\$rcmail_config[\'max_recipients\'] = 0;
|
|
|
+\$rcmail_config[\'max_group_members\'] = 0;
|
|
|
+\$rcmail_config[\'useragent\'] = \'Roundcube Webmail/\'.RCMAIL_VERSION;
|
|
|
+\$rcmail_config[\'product_name\'] = \'webmail\';
|
|
|
+\$rcmail_config[\'include_host_config\'] = false;
|
|
|
+\$rcmail_config[\'generic_message_footer\'] = \'\';
|
|
|
+\$rcmail_config[\'generic_message_footer_html\'] = \'\';
|
|
|
+\$rcmail_config[\'http_received_header\'] = false;
|
|
|
+\$rcmail_config[\'http_received_header_encrypt\'] = false;
|
|
|
+\$rcmail_config[\'mail_header_delimiter\'] = NULL;
|
|
|
+\$rcmail_config[\'line_length\'] = 72;
|
|
|
+\$rcmail_config[\'send_format_flowed\'] = true;
|
|
|
+\$rcmail_config[\'mdn_use_from\'] = false;
|
|
|
+\$rcmail_config[\'identities_level\'] = 0;
|
|
|
+\$rcmail_config[\'client_mimetypes\'] = null; # null == default
|
|
|
+\$rcmail_config[\'mime_magic\'] = null;
|
|
|
+\$rcmail_config[\'mime_types\'] = null;
|
|
|
+\$rcmail_config[\'im_identify_path\'] = null;
|
|
|
+\$rcmail_config[\'im_convert_path\'] = null;
|
|
|
+\$rcmail_config[\'image_thumbnail_size\'] = 240;
|
|
|
+\$rcmail_config[\'contact_photo_size\'] = 160;
|
|
|
+\$rcmail_config[\'email_dns_check\'] = false;
|
|
|
+\$rcmail_config[\'no_save_sent_messages\'] = false;
|
|
|
+\$rcmail_config[\'plugins\'] = array();
|
|
|
+\$rcmail_config[\'message_sort_col\'] = \'\';
|
|
|
+\$rcmail_config[\'message_sort_order\'] = \'DESC\';
|
|
|
+\$rcmail_config[\'list_cols\'] = array(\'subject\', \'status\', \'fromto\', \'date\', \'size\', \'flag\', \'attachment\');
|
|
|
+\$rcmail_config[\'language\'] = null;
|
|
|
+\$rcmail_config[\'date_format\'] = \'Y-m-d\';
|
|
|
+\$rcmail_config[\'date_formats\'] = array(\'Y-m-d\', \'d-m-Y\', \'Y/m/d\', \'m/d/Y\', \'d/m/Y\', \'d.m.Y\', \'j.n.Y\');
|
|
|
+\$rcmail_config[\'time_format\'] = \'H:i\';
|
|
|
+\$rcmail_config[\'time_formats\'] = array(\'G:i\', \'H:i\', \'g:i a\', \'h:i A\');
|
|
|
+\$rcmail_config[\'date_short\'] = \'D H:i\';
|
|
|
+\$rcmail_config[\'date_long\'] = \'Y-m-d H:i\';
|
|
|
+\$rcmail_config[\'drafts_mbox\'] = \'Drafts\';
|
|
|
+\$rcmail_config[\'junk_mbox\'] = \'Junk\';
|
|
|
+\$rcmail_config[\'sent_mbox\'] = \'Sent\';
|
|
|
+\$rcmail_config[\'trash_mbox\'] = \'Trash\';
|
|
|
+\$rcmail_config[\'default_folders\'] = array(\'INBOX\', \'Drafts\', \'Sent\', \'Junk\', \'Trash\');
|
|
|
+\$rcmail_config[\'create_default_folders\'] = false;
|
|
|
+\$rcmail_config[\'protect_default_folders\'] = true;
|
|
|
+\$rcmail_config[\'quota_zero_as_unlimited\'] = false;
|
|
|
+\$rcmail_config[\'enable_spellcheck\'] = true;
|
|
|
+\$rcmail_config[\'spellcheck_dictionary\'] = false;
|
|
|
+\$rcmail_config[\'spellcheck_engine\'] = \'googie\';
|
|
|
+\$rcmail_config[\'spellcheck_uri\'] = \'\';
|
|
|
+\$rcmail_config[\'spellcheck_languages\'] = NULL;
|
|
|
+\$rcmail_config[\'spellcheck_ignore_caps\'] = false;
|
|
|
+\$rcmail_config[\'spellcheck_ignore_nums\'] = false;
|
|
|
+\$rcmail_config[\'spellcheck_ignore_syms\'] = false;
|
|
|
+\$rcmail_config[\'recipients_separator\'] = \',\';
|
|
|
+\$rcmail_config[\'max_pagesize\'] = 200;
|
|
|
+\$rcmail_config[\'min_refresh_interval\'] = 60;
|
|
|
+\$rcmail_config[\'upload_progress\'] = false;
|
|
|
+\$rcmail_config[\'undo_timeout\'] = 0;
|
|
|
+\$rcmail_config[\'address_book_type\'] = \'sql\';
|
|
|
+\$rcmail_config[\'ldap_public\'] = array();
|
|
|
+
|
|
|
+\$rcmail_config[\'ldap_public\'][\'localhost\'] = array(
|
|
|
\'name\' => \'localhost\',
|
|
|
\'hosts\' => array(\'127.0.0.1\'),
|
|
|
\'port\' => 389,
|
|
|
@@ -964,85 +967,85 @@ chown _www logs/ || exit 1
|
|
|
\'fuzzy_search\' => true
|
|
|
);
|
|
|
|
|
|
-\\\\$rcmail_config[\'autocomplete_addressbooks\'] = array(\'sql\',\'localhost\');
|
|
|
-\\\\$rcmail_config[\'autocomplete_min_length\'] = 1;
|
|
|
-\\\\$rcmail_config[\'autocomplete_threads\'] = 0;
|
|
|
-\\\\$rcmail_config[\'autocomplete_max\'] = 15;
|
|
|
-\\\\$rcmail_config[\'address_template\'] = \'{street}<br/>{locality} {zipcode}<br/>{country} {region}\';
|
|
|
-\\\\$rcmail_config[\'addressbook_search_mode\'] = 0;
|
|
|
-\\\\$rcmail_config[\'default_charset\'] = \'ISO-8859-1\';
|
|
|
-\\\\$rcmail_config[\'skin\'] = \'larry\';
|
|
|
-\\\\$rcmail_config[\'mail_pagesize\'] = 50;
|
|
|
-\\\\$rcmail_config[\'addressbook_pagesize\'] = 50;
|
|
|
-\\\\$rcmail_config[\'addressbook_sort_col\'] = \'surname\';
|
|
|
-\\\\$rcmail_config[\'addressbook_name_listing\'] = 0;
|
|
|
-\\\\$rcmail_config[\'timezone\'] = \'auto\';
|
|
|
-\\\\$rcmail_config[\'prefer_html\'] = true;
|
|
|
-\\\\$rcmail_config[\'show_images\'] = 0;
|
|
|
-\\\\$rcmail_config[\'message_extwin\'] = false;
|
|
|
-\\\\$rcmail_config[\'compose_extwin\'] = false;
|
|
|
-\\\\$rcmail_config[\'htmleditor\'] = 0;
|
|
|
-\\\\$rcmail_config[\'prettydate\'] = true;
|
|
|
-\\\\$rcmail_config[\'draft_autosave\'] = 300;
|
|
|
-\\\\$rcmail_config[\'preview_pane\'] = false;
|
|
|
-\\\\$rcmail_config[\'preview_pane_mark_read\'] = 0;
|
|
|
-\\\\$rcmail_config[\'logout_purge\'] = false;
|
|
|
-\\\\$rcmail_config[\'logout_expunge\'] = false;
|
|
|
-\\\\$rcmail_config[\'inline_images\'] = true;
|
|
|
-\\\\$rcmail_config[\'mime_param_folding\'] = 0;
|
|
|
-\\\\$rcmail_config[\'skip_deleted\'] = false;
|
|
|
-\\\\$rcmail_config[\'read_when_deleted\'] = true;
|
|
|
-\\\\$rcmail_config[\'flag_for_deletion\'] = false;
|
|
|
-\\\\$rcmail_config[\'refresh_interval\'] = 60;
|
|
|
-\\\\$rcmail_config[\'check_all_folders\'] = false;
|
|
|
-\\\\$rcmail_config[\'display_next\'] = true;
|
|
|
-\\\\$rcmail_config[\'autoexpand_threads\'] = 0;
|
|
|
-\\\\$rcmail_config[\'reply_mode\'] = 0;
|
|
|
-\\\\$rcmail_config[\'strip_existing_sig\'] = true;
|
|
|
-\\\\$rcmail_config[\'show_sig\'] = 1;
|
|
|
-\\\\$rcmail_config[\'force_7bit\'] = false;
|
|
|
-\\\\$rcmail_config[\'delete_always\'] = false;
|
|
|
-\\\\$rcmail_config[\'delete_junk\'] = false;
|
|
|
-\\\\$rcmail_config[\'mdn_requests\'] = 0;
|
|
|
-\\\\$rcmail_config[\'mdn_default\'] = 0;
|
|
|
-\\\\$rcmail_config[\'dsn_default\'] = 0;
|
|
|
-\\\\$rcmail_config[\'reply_same_folder\'] = false;
|
|
|
-\\\\$rcmail_config[\'forward_attachment\'] = false;
|
|
|
-\\\\$rcmail_config[\'default_addressbook\'] = null;
|
|
|
-\\\\$rcmail_config[\'spellcheck_before_send\'] = false;
|
|
|
-\\\\$rcmail_config[\'autocomplete_single\'] = false;
|
|
|
-\\\\$rcmail_config[\'default_font\'] = \'\';
|
|
|
+\$rcmail_config[\'autocomplete_addressbooks\'] = array(\'sql\',\'localhost\');
|
|
|
+\$rcmail_config[\'autocomplete_min_length\'] = 1;
|
|
|
+\$rcmail_config[\'autocomplete_threads\'] = 0;
|
|
|
+\$rcmail_config[\'autocomplete_max\'] = 15;
|
|
|
+\$rcmail_config[\'address_template\'] = \'{street}<br/>{locality} {zipcode}<br/>{country} {region}\';
|
|
|
+\$rcmail_config[\'addressbook_search_mode\'] = 0;
|
|
|
+\$rcmail_config[\'default_charset\'] = \'ISO-8859-1\';
|
|
|
+\$rcmail_config[\'skin\'] = \'larry\';
|
|
|
+\$rcmail_config[\'mail_pagesize\'] = 50;
|
|
|
+\$rcmail_config[\'addressbook_pagesize\'] = 50;
|
|
|
+\$rcmail_config[\'addressbook_sort_col\'] = \'surname\';
|
|
|
+\$rcmail_config[\'addressbook_name_listing\'] = 0;
|
|
|
+\$rcmail_config[\'timezone\'] = \'auto\';
|
|
|
+\$rcmail_config[\'prefer_html\'] = true;
|
|
|
+\$rcmail_config[\'show_images\'] = 0;
|
|
|
+\$rcmail_config[\'message_extwin\'] = false;
|
|
|
+\$rcmail_config[\'compose_extwin\'] = false;
|
|
|
+\$rcmail_config[\'htmleditor\'] = 0;
|
|
|
+\$rcmail_config[\'prettydate\'] = true;
|
|
|
+\$rcmail_config[\'draft_autosave\'] = 300;
|
|
|
+\$rcmail_config[\'preview_pane\'] = false;
|
|
|
+\$rcmail_config[\'preview_pane_mark_read\'] = 0;
|
|
|
+\$rcmail_config[\'logout_purge\'] = false;
|
|
|
+\$rcmail_config[\'logout_expunge\'] = false;
|
|
|
+\$rcmail_config[\'inline_images\'] = true;
|
|
|
+\$rcmail_config[\'mime_param_folding\'] = 0;
|
|
|
+\$rcmail_config[\'skip_deleted\'] = false;
|
|
|
+\$rcmail_config[\'read_when_deleted\'] = true;
|
|
|
+\$rcmail_config[\'flag_for_deletion\'] = false;
|
|
|
+\$rcmail_config[\'refresh_interval\'] = 60;
|
|
|
+\$rcmail_config[\'check_all_folders\'] = false;
|
|
|
+\$rcmail_config[\'display_next\'] = true;
|
|
|
+\$rcmail_config[\'autoexpand_threads\'] = 0;
|
|
|
+\$rcmail_config[\'reply_mode\'] = 0;
|
|
|
+\$rcmail_config[\'strip_existing_sig\'] = true;
|
|
|
+\$rcmail_config[\'show_sig\'] = 1;
|
|
|
+\$rcmail_config[\'force_7bit\'] = false;
|
|
|
+\$rcmail_config[\'delete_always\'] = false;
|
|
|
+\$rcmail_config[\'delete_junk\'] = false;
|
|
|
+\$rcmail_config[\'mdn_requests\'] = 0;
|
|
|
+\$rcmail_config[\'mdn_default\'] = 0;
|
|
|
+\$rcmail_config[\'dsn_default\'] = 0;
|
|
|
+\$rcmail_config[\'reply_same_folder\'] = false;
|
|
|
+\$rcmail_config[\'forward_attachment\'] = false;
|
|
|
+\$rcmail_config[\'default_addressbook\'] = null;
|
|
|
+\$rcmail_config[\'spellcheck_before_send\'] = false;
|
|
|
+\$rcmail_config[\'autocomplete_single\'] = false;
|
|
|
+\$rcmail_config[\'default_font\'] = \'\';
|
|
|
" > config/main.inc.php
|
|
|
';
|
|
|
|
|
|
$cmd[]['rsh']='cd /Library/Server/Web/Data/Sites/Default/webmail || exit 1
|
|
|
echo "<?
|
|
|
-\\\\$rcmail_config = array();
|
|
|
-\\\\$rcmail_config[\'db_dsnw\'] = \'mysql://webmail:webmail666@127.0.0.1/webmail\';
|
|
|
-\\\\$rcmail_config[\'db_dsnr\'] = \'\';
|
|
|
-\\\\$rcmail_config[\'db_persistent\'] = false;
|
|
|
+\$rcmail_config = array();
|
|
|
+\$rcmail_config[\'db_dsnw\'] = \'mysql://webmail:webmail666@127.0.0.1/webmail\';
|
|
|
+\$rcmail_config[\'db_dsnr\'] = \'\';
|
|
|
+\$rcmail_config[\'db_persistent\'] = false;
|
|
|
|
|
|
// you can define specific table names used to store webmail data
|
|
|
-\\\\$rcmail_config[\'db_table_users\'] = \'users\';
|
|
|
-\\\\$rcmail_config[\'db_table_identities\'] = \'identities\';
|
|
|
-\\\\$rcmail_config[\'db_table_contacts\'] = \'contacts\';
|
|
|
-\\\\$rcmail_config[\'db_table_contactgroups\'] = \'contactgroups\';
|
|
|
-\\\\$rcmail_config[\'db_table_contactgroupmembers\'] = \'contactgroupmembers\';
|
|
|
-\\\\$rcmail_config[\'db_table_session\'] = \'session\';
|
|
|
-\\\\$rcmail_config[\'db_table_cache\'] = \'cache\';
|
|
|
-\\\\$rcmail_config[\'db_table_cache_index\'] = \'cache_index\';
|
|
|
-\\\\$rcmail_config[\'db_table_cache_thread\'] = \'cache_thread\';
|
|
|
-\\\\$rcmail_config[\'db_table_cache_messages\'] = \'cache_messages\';
|
|
|
-\\\\$rcmail_config[\'db_table_dictionary\'] = \'dictionary\';
|
|
|
-\\\\$rcmail_config[\'db_table_searches\'] = \'searches\';
|
|
|
-\\\\$rcmail_config[\'db_table_system\'] = \'system\';
|
|
|
+\$rcmail_config[\'db_table_users\'] = \'users\';
|
|
|
+\$rcmail_config[\'db_table_identities\'] = \'identities\';
|
|
|
+\$rcmail_config[\'db_table_contacts\'] = \'contacts\';
|
|
|
+\$rcmail_config[\'db_table_contactgroups\'] = \'contactgroups\';
|
|
|
+\$rcmail_config[\'db_table_contactgroupmembers\'] = \'contactgroupmembers\';
|
|
|
+\$rcmail_config[\'db_table_session\'] = \'session\';
|
|
|
+\$rcmail_config[\'db_table_cache\'] = \'cache\';
|
|
|
+\$rcmail_config[\'db_table_cache_index\'] = \'cache_index\';
|
|
|
+\$rcmail_config[\'db_table_cache_thread\'] = \'cache_thread\';
|
|
|
+\$rcmail_config[\'db_table_cache_messages\'] = \'cache_messages\';
|
|
|
+\$rcmail_config[\'db_table_dictionary\'] = \'dictionary\';
|
|
|
+\$rcmail_config[\'db_table_searches\'] = \'searches\';
|
|
|
+\$rcmail_config[\'db_table_system\'] = \'system\';
|
|
|
|
|
|
// you can define specific sequence names used in PostgreSQL
|
|
|
-\\\\$rcmail_config[\'db_sequence_users\'] = \'user_ids\';
|
|
|
-\\\\$rcmail_config[\'db_sequence_identities\'] = \'identity_ids\';
|
|
|
-\\\\$rcmail_config[\'db_sequence_contacts\'] = \'contact_ids\';
|
|
|
-\\\\$rcmail_config[\'db_sequence_contactgroups\'] = \'contactgroups_ids\';
|
|
|
-\\\\$rcmail_config[\'db_sequence_searches\'] = \'search_ids\';
|
|
|
+\$rcmail_config[\'db_sequence_users\'] = \'user_ids\';
|
|
|
+\$rcmail_config[\'db_sequence_identities\'] = \'identity_ids\';
|
|
|
+\$rcmail_config[\'db_sequence_contacts\'] = \'contact_ids\';
|
|
|
+\$rcmail_config[\'db_sequence_contactgroups\'] = \'contactgroups_ids\';
|
|
|
+\$rcmail_config[\'db_sequence_searches\'] = \'search_ids\';
|
|
|
// end db config file
|
|
|
" > config/db.inc.php';
|
|
|
|
|
|
@@ -1475,22 +1478,22 @@ function INSTALL_GETCOMMANDS_MYADMIN($ADMIN_USERNAME,$SERVER_ADDRESS_IP,$ADMIN_U
|
|
|
mv phpMyAdmin-* garbage || exit 1 ';
|
|
|
$cmd[]['rsh']='cd /Library/Server/Web/Data/Sites/Default/garbage || exit 1
|
|
|
echo "<?
|
|
|
-\\\\\$i = 0;
|
|
|
-\\\\\$i++;
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'verbose\'] = \''.$SERVER_ADDRESS.'\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'host\'] = \'127.0.0.1\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'port\'] = \'\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'socket\'] = \'\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'connect_type\'] = \'tcp\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'extension\'] = \'mysqli\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'auth_type\'] = \'cookie\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'user\'] = \'root\';
|
|
|
-\\\\\$cfg[\'Servers\'][\\\\\$i][\'password\'] = \'\';
|
|
|
-\\\\\$cfg[\'blowfish_secret\'] = \'51bc5c5b538ff0.23201365\';
|
|
|
-\\\\\$cfg[\'DefaultLang\'] = \'en\';
|
|
|
-\\\\\$cfg[\'ServerDefault\'] = 1;
|
|
|
-\\\\\$cfg[\'UploadDir\'] = \'\';
|
|
|
-\\\\\$cfg[\'SaveDir\'] = \'\';
|
|
|
+\\$i = 0;
|
|
|
+\\$i++;
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'verbose\'] = \''.$SERVER_ADDRESS.'\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'host\'] = \'127.0.0.1\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'port\'] = \'\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'socket\'] = \'\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'connect_type\'] = \'tcp\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'extension\'] = \'mysqli\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'auth_type\'] = \'cookie\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'user\'] = \'root\';
|
|
|
+\\$cfg[\'Servers\'][\\$i][\'password\'] = \'\';
|
|
|
+\\$cfg[\'blowfish_secret\'] = \'51bc5c5b538ff0.23201365\';
|
|
|
+\\$cfg[\'DefaultLang\'] = \'en\';
|
|
|
+\\$cfg[\'ServerDefault\'] = 1;
|
|
|
+\\$cfg[\'UploadDir\'] = \'\';
|
|
|
+\\$cfg[\'SaveDir\'] = \'\';
|
|
|
?>
|
|
|
" > config.inc.php || exit 1
|
|
|
|