]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-sql_patches.php
wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / extensions / ext-sql_patches.php
index c2c69b44947a4548f5cbba3eb7d3a54d7b3701c0..30003309040534a8b6a207397e93e3429ded3ba7 100644 (file)
@@ -529,42 +529,42 @@ default: // Do stuff when extension is loaded
 
        // When the sql_patches is not installed we cannot load it's configuration... *sigh*
        if (GET_EXT_VERSION("sql_patches") != "") {
-               $CONFIG['ext_autopurge']     = $DUMMY['ext_autopurge'];
-               $CONFIG['mails_page']        = $DUMMY['mails_page'];
-               $CONFIG['index_home']        = $DUMMY['index_home'];
-               $CONFIG['verbose_sql']       = $DUMMY['verbose_sql'];
-               $CONFIG['middot']            = $DUMMY['menu_blur_spacer'];
-               $CONFIG['reg_points_mode']   = $DUMMY['reg_points_mode'];
-               $CONFIG['index_delay']       = $DUMMY['index_delay'];
-               $CONFIG['index_cookie']      = $DUMMY['index_cookie'];
-               $CONFIG['def_refid']         = $DUMMY['def_refid'];
-               $CONFIG['refid_target']      = $DUMMY['refid_target'];
-               $CONFIG['default_theme']     = $DUMMY['default_theme'];
-               $CONFIG['title_decoration']  = $DUMMY['enable_title_deco'];
-               $CONFIG['title_mod_show']    = $DUMMY['enable_mod_title'];
-               $CONFIG['title_what_show']   = $DUMMY['enable_what_title'];
-               $CONFIG['title_left']        = $DUMMY['title_left'];
-               $CONFIG['title_middle']      = $DUMMY['title_middle'];
-               $CONFIG['title_right']       = $DUMMY['title_right'];
-               $CONFIG['mad_counter']       = $DUMMY['mad_count'];
-               $CONFIG['last_mad']          = $DUMMY['mad_timestamp'];
-               $CONFIG['css_php']           = $DUMMY['css_php'];
-               $CONFIG['guest_menu']        = $DUMMY['guest_menu'];
-               $CONFIG['member_menu']       = $DUMMY['member_menu'];
-               $CONFIG['youre_here']        = $DUMMY['youre_here'];
-               $CONFIG['img_type']          = $DUMMY['img_type'];
-               $CONFIG['stats_limit']       = $DUMMY['stats_limit'];
-               $CONFIG['admin_menu']        = $DUMMY['admin_menu'];
-               $CONFIG['admin_menu_sorter'] = $DUMMY['admin_menu_sorter'];
-               $CONFIG['salt_length']       = $DUMMY['salt_length'];
-               $CONFIG['pass_scramble']     = trim($DUMMY['pass_scramble']);
-               $CONFIG['file_hash']         = trim($DUMMY['file_hash']);
-               $CONFIG['master_salt']       = trim($DUMMY['master_salt']);
-               $CONFIG['secret_key']        = "";
-               $CONFIG['show_timings']      = $DUMMY['show_timings'];
+               $_CONFIG['ext_autopurge']     = $DUMMY['ext_autopurge'];
+               $_CONFIG['mails_page']        = $DUMMY['mails_page'];
+               $_CONFIG['index_home']        = $DUMMY['index_home'];
+               $_CONFIG['verbose_sql']       = $DUMMY['verbose_sql'];
+               $_CONFIG['middot']            = $DUMMY['menu_blur_spacer'];
+               $_CONFIG['reg_points_mode']   = $DUMMY['reg_points_mode'];
+               $_CONFIG['index_delay']       = $DUMMY['index_delay'];
+               $_CONFIG['index_cookie']      = $DUMMY['index_cookie'];
+               $_CONFIG['def_refid']         = $DUMMY['def_refid'];
+               $_CONFIG['refid_target']      = $DUMMY['refid_target'];
+               $_CONFIG['default_theme']     = $DUMMY['default_theme'];
+               $_CONFIG['title_decoration']  = $DUMMY['enable_title_deco'];
+               $_CONFIG['title_mod_show']    = $DUMMY['enable_mod_title'];
+               $_CONFIG['title_what_show']   = $DUMMY['enable_what_title'];
+               $_CONFIG['title_left']        = $DUMMY['title_left'];
+               $_CONFIG['title_middle']      = $DUMMY['title_middle'];
+               $_CONFIG['title_right']       = $DUMMY['title_right'];
+               $_CONFIG['mad_counter']       = $DUMMY['mad_count'];
+               $_CONFIG['last_mad']          = $DUMMY['mad_timestamp'];
+               $_CONFIG['css_php']           = $DUMMY['css_php'];
+               $_CONFIG['guest_menu']        = $DUMMY['guest_menu'];
+               $_CONFIG['member_menu']       = $DUMMY['member_menu'];
+               $_CONFIG['youre_here']        = $DUMMY['youre_here'];
+               $_CONFIG['img_type']          = $DUMMY['img_type'];
+               $_CONFIG['stats_limit']       = $DUMMY['stats_limit'];
+               $_CONFIG['admin_menu']        = $DUMMY['admin_menu'];
+               $_CONFIG['admin_menu_sorter'] = $DUMMY['admin_menu_sorter'];
+               $_CONFIG['salt_length']       = $DUMMY['salt_length'];
+               $_CONFIG['pass_scramble']     = trim($DUMMY['pass_scramble']);
+               $_CONFIG['file_hash']         = trim($DUMMY['file_hash']);
+               $_CONFIG['master_salt']       = trim($DUMMY['master_salt']);
+               $_CONFIG['secret_key']        = "";
+               $_CONFIG['show_timings']      = $DUMMY['show_timings'];
 
                // Read key from secret file
-               if ((empty($CONFIG['file_hash'])) || (empty($CONFIG['master_salt'])) || (empty($CONFIG['pass_scramble'])))
+               if ((empty($_CONFIG['file_hash'])) || (empty($_CONFIG['master_salt'])) || (empty($_CONFIG['pass_scramble'])))
                {
                        // Maybe need setup of secret key!
                        require_once(PATH."inc/gen_sql_patches.php");
@@ -580,12 +580,12 @@ default: // Do stuff when extension is loaded
                }
 
                // Test again
-               if ((!empty($CONFIG['file_hash'])) && (!empty($CONFIG['master_salt'])) && (!empty($CONFIG['pass_scramble'])))
+               if ((!empty($_CONFIG['file_hash'])) && (!empty($_CONFIG['master_salt'])) && (!empty($_CONFIG['pass_scramble'])))
                {
                        // File hash fas generated so we can also file the secret file... hopefully.
-                       if ((file_exists(PATH."inc/.secret/.".$CONFIG['file_hash'])) && (is_readable(PATH."inc/.secret/.".$CONFIG['file_hash'])))
+                       if ((file_exists(PATH."inc/.secret/.".$_CONFIG['file_hash'])) && (is_readable(PATH."inc/.secret/.".$_CONFIG['file_hash'])))
                        {
-                               $CONFIG['secret_key'] = implode("", file(PATH."inc/.secret/.".$CONFIG['file_hash']));
+                               $_CONFIG['secret_key'] = implode("", file(PATH."inc/.secret/.".$_CONFIG['file_hash']));
                        }
                         else
                        {
@@ -602,11 +602,11 @@ default: // Do stuff when extension is loaded
                define('_MAX'    , $DUMMY['rand_no']);
        } else {
                // Set some lame ;-) default settings
-               $CONFIG['def_refid'] = 0;
-               $CONFIG['title_decoration'] = 'N';
-               $CONFIG['title_mod_show']   = 'Y';
-               $CONFIG['title_middle']     = "-";
-               //$CONFIG['verbose_sql']      = 'N';
+               $_CONFIG['def_refid'] = 0;
+               $_CONFIG['title_decoration'] = 'N';
+               $_CONFIG['title_mod_show']   = 'Y';
+               $_CONFIG['title_middle']     = "-";
+               //$_CONFIG['verbose_sql']      = 'N';
                define('MT_WORD' , DEFAULT_MT_WORD );
                define('MT_WORD2', DEFAULT_MT_WORD2);
                define('POINTS'  , DEFAULT_POINTS);