* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
require('inc/libs/security_functions.php');
// Init start time
-$GLOBALS['__start_time'] = microtime(true);
+$GLOBALS['__start_time'] = microtime(TRUE);
// Set module output mode
$GLOBALS['__module'] = 'surfbar';
);
// Load template for "stats" page
- loadTemplate('surfbar_frame_stats', false, $content);
+ loadTemplate('surfbar_frame_stats', FALSE, $content);
} elseif ((!isFullPage()) && (getRequestElement('frame') == 'textlinks')) {
// Prepare content
$content = array(
);
// Load template for "stats" page
- loadTemplate('surfbar_frame_textlinks', false, $content);
+ loadTemplate('surfbar_frame_textlinks', FALSE, $content);
} else {
// Prepare content
$content = array(
'start' => str_repeat('X', strlen(getSurfbarRestartTime())),
- 'autostart' => (isSurfbarAutoStartEnbaled()) ? 'true' : 'false'
+ 'autostart' => (isSurfbarAutoStartEnabled()) ? 'true' : 'false'
);
// Load template for stopped surfbar
- loadTemplate('surfbar_stopped', false, $content);
+ loadTemplate('surfbar_stopped', FALSE, $content);
}
} elseif ((isGetRequestElementSet('check')) && (isGetRequestElementSet('id')) && (isGetRequestElementSet('salt'))) {
// Dummy next id get
//* DEBUG: */ exit('nextId='.$nextId);
// Is there a valid id?
- if ($nextId > 0) {
+ if (isValidId($nextId)) {
// Then prepare other content
$content = array(
'url_id' => $nextId,
- 'xxx' => str_repeat('X', strlen(gerSurfbarReloadTime($nextId))),
+ 'xxx' => str_repeat('X', strlen(getSurfbarWaitingTime($nextId))),
);
// Update salt (double-call lock!) and statistics
$templateName = determineSurfbarTemplateName();
// Load that template
- //* DEBUG: */ exit('templateName=' . $templateName . '<br /><strong>content</strong>=<pre>' . print_r($content, true) . '</pre>');
- loadTemplate($templateName, false, $content);
+ //* DEBUG: */ exit('templateName=' . $templateName . '<br /><strong>content</strong>=<pre>' . print_r($content, TRUE) . '</pre>');
+ loadTemplate($templateName, FALSE, $content);
}
// Load footer