More HTML rewrites
[mailer.git] / surfbar.php
index 8194064e4a21c565c488c4665abb0440eead29e0..2249305aaae7ee7fc02f2e0c83d7768b226f80a4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 09/05/2008 *
- * ===============                              Last change: 09/05/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 09/05/2008 *
+ * ===================                          Last change: 09/05/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : surfbar.php                                      *
@@ -44,7 +44,7 @@ $GLOBALS['startTime'] = microtime(true);
 
 // Set module
 $GLOBALS['module'] = 'surfbar';
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = '0';
 $GLOBALS['header_sent'] = 3;
 
 // Load the required file(s)
@@ -56,7 +56,7 @@ setContentType('text/html');
 // Is a frame active?
 if (isGetRequestElementSet('frame')) {
        // Then we need to set header_sent to 0
-       $GLOBALS['header_sent'] = 0;
+       $GLOBALS['header_sent'] = '0';
 } // END - if
 
 // Only logged in users may use this surfbar!
@@ -111,7 +111,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestElementSet('frame')) && (in_a
        loadIncludeOnce('inc/header.php');
 
        // Load template
-       if (((isGetRequestElementSet('frame')) && (getRequestElement('frame') == 'stop')) || (!isGetRequestElementSet('frame'))) {
+       if (((isGetRequestElementSet('frame')) && (getRequestElement('frame') == 'stop2')) || (!isGetRequestElementSet('frame'))) {
                // Load template for "start" page
                loadTemplate('surfbar_frame_start');
 
@@ -150,7 +150,6 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestElementSet('frame')) && (in_a
        } else {
                // Prepare content
                $content = array(
-                       'restart'   => getConfig('surfbar_restart_time'),
                        'start'     => str_repeat('X', strlen(getConfig('surfbar_restart_time'))),
                        'autostart' => (getConfig('surfbar_autostart') == 'Y') ? 'true' : 'false'
                );
@@ -216,7 +215,7 @@ if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isGetRequestElementSet('frame')) && (in_a
                        SURFBAR_UPDATE_SALT_STATS();
                } else {
                        // Load new URL
-                       SURFBAR_RELOAD_TO_STOP_PAGE('stop2');
+                       SURFBAR_RELOAD_TO_STOP_PAGE('stop');
                }
        } elseif ((isGetRequestElementSet('frame')) && (getRequestElement('frame') == 'start')) {
                // Starter frame found so let the footer display