Project

General

Profile

« Previous | Next » 

Revision 1397

Added by Dietmar over 13 years ago

recoded rediect timer in print_success (tks to Chio)

View differences:

class.wb.php
352 352
	function print_success( $message, $redirect = 'index.php' ) {
353 353
	    global $TEXT;
354 354
	    // fetch redirect timer for sucess messages from settings table
355
	    $redirect_timer = ((defined( 'REDIRECT_TIMER' )) && (REDIRECT_TIMER >= 1500)) ? REDIRECT_TIMER : 0;
355
	    $redirect_timer = ((defined( 'REDIRECT_TIMER' )) && (REDIRECT_TIMER <= 10000)) ? REDIRECT_TIMER : 0;
356 356
	    // add template variables
357 357
	    $tpl = new Template( THEME_PATH.'/templates' );
358 358
	    $tpl->set_file( 'page', 'success.htt' );
......
363 363
	    $tpl->set_var( 'REDIRECT_TIMER', $redirect_timer );
364 364
	    $tpl->set_var( 'NEXT', $TEXT['NEXT'] );
365 365
	    $tpl->set_var( 'BACK', $TEXT['BACK'] );
366
	    if ($redirect_timer == 0) {
366
	    if ($redirect_timer == -1) {
367 367
	        $tpl->set_block( 'show_redirect', '' );
368 368
	    }
369 369
	    else {

Also available in: Unified diff