]> git.mxchange.org Git - mailer.git/blobdiff - surfbar.php
Old config.php is now automatically updated to new config-local.php format, several...
[mailer.git] / surfbar.php
index ae518872b55dcacb762de6beef15db49f5966e64..7a328c8f202d4ccf3ac92540cce4ae11fbb2b759 100644 (file)
@@ -52,12 +52,12 @@ $GLOBALS['output_mode'] = 0;
 $msg = null;
 
 // Load the required file(s)
-require('inc/config.php');
+require('inc/config-global.php');
 
 // Is the script installed?
 if (isInstalled()) {
        // Only logged in users may use this surfbar!
-       REDIRECT_ON_UNINSTALLED_EXTENSION('surfbar');
+       redirectOnUninstalledExtension('surfbar');
 
        // No member?
        if (!IS_MEMBER()) {
@@ -118,10 +118,10 @@ if (isInstalled()) {
                                'restart'   => getConfig('surfbar_restart_time'),
                                'start'     => str_repeat('X', strlen(getConfig('surfbar_restart_time'))),
                                'autostart' => (getConfig('surfbar_autostart') == 'Y') ? 'true' : 'false'
-                       );
+                               );
 
-                       // Load template for stopped surfbar
-                       LOAD_TEMPLATE('surfbar_stopped', false, $content);
+                               // Load template for stopped surfbar
+                               LOAD_TEMPLATE('surfbar_stopped', false, $content);
                }
        } elseif ((REQUEST_ISSET_GET(('check'))) && (REQUEST_ISSET_GET('id')) && (REQUEST_ISSET_GET(('salt')))) {
                // Dummy next id get