* -------------------------------------------------------------------- *
* Kurzbeschreibung : Die Surfbar selbst *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $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 *
redirectToUrl($url);
} else {
// Load header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
// Is there a 'code' provided?
if (isGetRequestElementSet('code')) {
$GLOBALS['__header_sent'] = 2;
// Load footer
- loadIncludeOnce('inc/footer.php');
+ loadPageFooter();
}
} else {
// Redirect
if ((isSurfbarReloadFull()) || ((!isFullPage()) && (in_array(getRequestElement('frame'), array('stop', 'stop2', 'stats', 'textlinks'))))) {
// Reload-lock is full, surfbar stopped so...
// Load header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
// Load template
if (((!isFullPage()) && (getRequestElement('frame') == 'stop2')) || (isFullPage())) {
// Prepare content
$content = array(
'start' => str_repeat('X', strlen(getSurfbarRestartTime())),
- 'autostart' => (isSurfbarAutoStartEnbaled()) ? 'true' : 'false'
+ 'autostart' => (isSurfbarAutoStartEnabled()) ? 'true' : 'false'
);
// Load template for stopped surfbar
} // END - if
// Load header to avoid a bug
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
} else {
// Reload to stop frame!
redirectToSurfbarStopPage();
}
- // All done, so fix notice for footer.php
+ // All done, so fix notice for loadTemplateFooter()
$GLOBALS['__footer_sent'] = 1;
} else {
// Prepare content
//* 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(getSurfbarReloadTime($nextId))),
+ 'xxx' => str_repeat('X', strlen(getSurfbarWaitingTime($nextId))),
);
// Update salt (double-call lock!) and statistics
}
// Load header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
// Determine template name
$templateName = determineSurfbarTemplateName();
// Load footer
$GLOBALS['__footer_sent'] = 3;
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>