X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=surfbar.php;h=d94497b2a06c45529d8d1a78d8665c5cbbd1cd2d;hp=8efa7bb61ad9979f02b8e5af99bd05ba52c84e46;hb=4373e155854012d687fdfcae4c69d1a940883fab;hpb=dffad9e811f8728d2672630a009fe2f8736c3837 diff --git a/surfbar.php b/surfbar.php index 8efa7bb61a..d94497b2a0 100644 --- a/surfbar.php +++ b/surfbar.php @@ -16,7 +16,7 @@ * $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 * @@ -140,7 +140,7 @@ if ((isSurfbarReloadFull()) || ((!isFullPage()) && (in_array(getRequestElement(' // Prepare content $content = array( 'start' => str_repeat('X', strlen(getSurfbarRestartTime())), - 'autostart' => (isSurfbarAutoStartEnbaled()) ? 'true' : 'false' + 'autostart' => (isSurfbarAutoStartEnabled()) ? 'true' : 'false' ); // Load template for stopped surfbar @@ -184,11 +184,11 @@ if ((isSurfbarReloadFull()) || ((!isFullPage()) && (in_array(getRequestElement(' //* 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