Project

General

Profile

« Previous | Next » 

Revision 929

Added by doc almost 16 years ago

Redirect time for function print_success can now be defined in Settings (ticket #603)

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.8.0 -------------------------------------
14 14
15-Feb-2009 Christian Sommer
15
+	redirect time for function print_success can now be defined in Settings (ticket #603)
15 16
-	removed reload admin tool
16 17
+	added possibility to reload Add-ons via the Add-on section
17 18
14-Feb-2009 Christian Sommer
trunk/wb/upgrade-script.php
157 157
	db_add_key_value($key, $value);
158 158
}
159 159

  
160
/**********************************************************
161
 *  - Adding redirect timer to settings table
162
 */
163
echo "<br />Adding redirect timer to settings table<br />";
164
$cfg = array(
165
	'redirect_timer' => '1500'
166
);
167
foreach($cfg as $key=>$value) {
168
	db_add_key_value($key, $value);
169
}
160 170

  
161 171
/**********************************************************
162 172
 *  - Add field "redirect_type" to table "mod_menu_link"
trunk/wb/admin/interface/success.html
4 4
	{MESSAGE}
5 5
	
6 6
	<script language="javascript" type="text/javascript">
7
		setTimeout("location.href='{REDIRECT}'", 1500);
7
		setTimeout("location.href='{REDIRECT}'", {REDIRECT_TIMER});
8 8
	</script>
9 9
	
10 10
	<noscript>
trunk/wb/admin/settings/index.php
551 551
								'TEXT_INTRO_PAGE' => $TEXT['INTRO_PAGE'],
552 552
								'TEXT_FRONTEND' => $TEXT['FRONTEND'],
553 553
								'TEXT_LOGIN' => $TEXT['LOGIN'],
554
								'TEXT_REDIRECT_AFTER' => $TEXT['REDIRECT_AFTER'],
554 555
								'TEXT_SIGNUP' => $TEXT['SIGNUP'],
555 556
								'TEXT_PHP_ERROR_LEVEL' => $TEXT['PHP_ERROR_LEVEL'],
556 557
								'TEXT_PAGES_DIRECTORY' => $TEXT['PAGES_DIRECTORY'],
trunk/wb/admin/settings/template.html
226 226
		<label for="frontend_login_false">{TEXT_DISABLED}</label>
227 227
	</td>
228 228
</tr>
229
<tr class="advanced">
230
	<td class="setting_name">{TEXT_REDIRECT_AFTER}:</td>
231
	<td class="setting_value" colspan="2">
232
		<input type="text" name="redirect_timer" value="{REDIRECT_TIMER}" />
233
	</td>
234
</tr>
229 235
<tr>
230 236
	<td class="setting_name">{TEXT_SIGNUP}:</td>
231 237
	<td class="setting_value" colspan="2">
trunk/wb/framework/class.wb.php
269 269

  
270 270
	// Print a success message which then automatically redirects the user to another page
271 271
	function print_success($message, $redirect = 'index.php') {
272
		global $TEXT;
272
		global $TEXT, $database;
273
		
274
		// fetch redirect timer for sucess messages from settings table
275
		$table = TABLE_PREFIX . 'settings';
276
		$results = @$database->get_one("SELECT `value` FROM `$table` WHERE `name` = 'redirect_timer'");
277
		$redirect_timer = ($results) ? $results : '1500';
278

  
279
		// add template variables
273 280
		$success_template = new Template(ADMIN_PATH.'/interface');
274 281
		$success_template->set_file('page', 'success.html');
275 282
		$success_template->set_block('page', 'main_block', 'main');
276 283
		$success_template->set_var('MESSAGE', $message);
277 284
		$success_template->set_var('REDIRECT', $redirect);
285
		$success_template->set_var('REDIRECT_TIMER', $redirect_timer);
278 286
		$success_template->set_var('NEXT', $TEXT['NEXT']);
279 287
		$success_template->parse('main', 'main_block', false);
280 288
		$success_template->pparse('output', 'page');
trunk/wb/install/save.php
458 458
	." ('default_timezone', '$default_timezone'),"
459 459
	." ('default_date_format', 'M d Y'),"
460 460
	." ('default_time_format', 'g:i A'),"
461
	." ('redirect_timer', '1500'),"
461 462
	." ('home_folders', 'true'),"
462 463
	." ('default_template', 'round'),"
463 464
	." ('default_charset', 'utf-8'),"
trunk/wb/languages/FI.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'P&auml;ivitetty';
379 379
$TEXT['RESULTS_FOR'] = 'Tulokset';
380 380
$TEXT['TIME'] = 'Aika';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG tyyli';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG muokkain';
383 384
$TEXT['SERVER_EMAIL'] = 'Palvelimen s&auml;hk&ouml;posti';
trunk/wb/languages/EN.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Last Updated By';
379 379
$TEXT['RESULTS_FOR'] = 'Results For';
380 380
$TEXT['TIME'] = 'Time';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Style';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server Email';
trunk/wb/languages/CS.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Posledn&iacute; zm&#283;na:';
379 379
$TEXT['RESULTS_FOR'] = 'V&yacute;sledky pro';
380 380
$TEXT['TIME'] = '&#268;as';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG styl';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Syt&eacute;mov&yacute; e-mail';
trunk/wb/languages/SE.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Senast uppdaterad av';
379 379
$TEXT['RESULTS_FOR'] = 'Resultat f&ouml;r';
380 380
$TEXT['TIME'] = 'Tid';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG stil';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG redigerare';
383 384
$TEXT['SERVER_EMAIL'] = 'Server e-post';
trunk/wb/languages/ES.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Editado por';
379 379
$TEXT['RESULTS_FOR'] = 'Resultados para';
380 380
$TEXT['TIME'] = 'Hora';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'Editor WYSIWYG';
383 384
$TEXT['SERVER_EMAIL'] = 'Servidor de Email';
trunk/wb/languages/FR.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Mis &agrave; jour par';
379 379
$TEXT['RESULTS_FOR'] = 'R&eacute;sultats';
380 380
$TEXT['TIME'] = 'Heure';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'Style WYSIWYG';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'Editeur WYSIWYG';
383 384
$TEXT['SERVER_EMAIL'] = 'Serveur email';
trunk/wb/languages/ET.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Viimati Uuendatud';
379 379
$TEXT['RESULTS_FOR'] = 'Tulemused';
380 380
$TEXT['TIME'] = 'Aeg';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Stiil';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Serveri Email';
trunk/wb/languages/HR.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Zadnje izmjenjen od';
379 379
$TEXT['RESULTS_FOR'] = 'Rezultati za';
380 380
$TEXT['TIME'] = 'Vrijeme';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Style';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server Email';
trunk/wb/languages/NL.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Laatst vernieuwd door';
379 379
$TEXT['RESULTS_FOR'] = 'Resultaten voor';
380 380
$TEXT['TIME'] = 'Tijd';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG-stijl';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG-editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server e-mail';
trunk/wb/languages/PL.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Ostatnio zmienione przez';
379 379
$TEXT['RESULTS_FOR'] = 'Wyniki dla';
380 380
$TEXT['TIME'] = 'Czas';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'Styl WYSIWYG';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'Edytor WYSIWYG';
383 384
$TEXT['SERVER_EMAIL'] = 'E-mail serwera';
trunk/wb/languages/HU.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'M&oacute;dos&iacute;totta';
379 379
$TEXT['RESULTS_FOR'] = 'Keresett';
380 380
$TEXT['TIME'] = 'Id&otilde;';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Style';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Port&aacute;l E-mail c&iacute;me';
trunk/wb/languages/IT.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Ultima modifica di';
379 379
$TEXT['RESULTS_FOR'] = 'Risultati per';
380 380
$TEXT['TIME'] = 'Ora';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Style';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server Email';
trunk/wb/languages/NO.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Sist Endret Av';
379 379
$TEXT['RESULTS_FOR'] = 'Resultat For';
380 380
$TEXT['TIME'] = 'Tid';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Stil';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server Epost';
trunk/wb/languages/LV.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Pedejo reizi mainits';
379 379
$TEXT['RESULTS_FOR'] = 'Rezultati';
380 380
$TEXT['TIME'] = 'Laiks';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG stils';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG redaktors';
383 384
$TEXT['SERVER_EMAIL'] = 'Servera e-pasta adrese';
trunk/wb/languages/CA.php
378 378
$TEXT['LAST_UPDATED_BY'] = '&Uacute;ltima Actualitzaci&oacute; Per';
379 379
$TEXT['RESULTS_FOR'] = 'Resultats De';
380 380
$TEXT['TIME'] = 'Temps';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'Estil WYSIWYG';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Correu del Servidor';
trunk/wb/languages/PT.php
378 378
$TEXT['LAST_UPDATED_BY'] = '&Uacute;ltima atualiza&ccdil;&atilde;o por';
379 379
$TEXT['RESULTS_FOR'] = 'Resultados para';
380 380
$TEXT['TIME'] = 'Hora';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Style';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Servidor de Email';
trunk/wb/languages/DA.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Sidst opdateret af:';
379 379
$TEXT['RESULTS_FOR'] = 'Resultater for';
380 380
$TEXT['TIME'] = 'Tid';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG-stil';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG-editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server email';
trunk/wb/languages/TR.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'Son G&uuml;ncelleyen';
379 379
$TEXT['RESULTS_FOR'] = 'Sonu&ccedil;lar';
380 380
$TEXT['TIME'] = 'Saat';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Style';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server Email';
trunk/wb/languages/RU.php
378 378
$TEXT['LAST_UPDATED_BY'] = '&#1055;&#1086;&#1089;&#1083;&#1077;&#1076;&#1085;&#1077;&#1077; &#1086;&#1073;&#1085;&#1086;&#1074;&#1083;&#1077;&#1085;&#1080;&#1077;: ';
379 379
$TEXT['RESULTS_FOR'] = '&#1056;&#1077;&#1079;&#1091;&#1083;&#1100;&#1090;&#1072;&#1090;&#1099; &#1076;&#1083;&#1103;';
380 380
$TEXT['TIME'] = '&#1042;&#1088;&#1077;&#1084;&#1103;';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG &#1089;&#1090;&#1080;&#1083;&#1100;';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG &#1088;&#1077;&#1076;&#1072;&#1082;&#1090;&#1086;&#1088;';
383 384
$TEXT['SERVER_EMAIL'] = 'Email &#1089;&#1077;&#1088;&#1074;&#1077;&#1088;&#1072;';
trunk/wb/languages/DE.php
378 378
$TEXT['LAST_UPDATED_BY'] = 'zuletzt ge&auml;ndert von';
379 379
$TEXT['RESULTS_FOR'] = 'Ergebnisse f&uuml;r';
380 380
$TEXT['TIME'] = 'Zeit';
381
$TEXT['REDIRECT_AFTER'] = 'Weiterleitung nach';
381 382
$TEXT['WYSIWYG_STYLE'] = 'WYSIWYG Stil';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG Editor';
383 384
$TEXT['SERVER_EMAIL'] = 'Server E-Mail';
trunk/wb/languages/BG.php
378 378
$TEXT['LAST_UPDATED_BY'] = '&#1055;&#1086;&#1089;&#1083;&#1077;&#1076;&#1085;&#1086; &#1086;&#1073;&#1085;&#1086;&#1074;&#1077;&#1085; &#1086;&#1090;';
379 379
$TEXT['RESULTS_FOR'] = '&#1056;&#1077;&#1079;&#1091;&#1083;&#1090;&#1072;&#1090;&#1080; &#1079;&#1072;';
380 380
$TEXT['TIME'] = '&#1063;&#1072;&#1089;';
381
$TEXT['REDIRECT_AFTER'] = 'Redirect after';
381 382
$TEXT['WYSIWYG_STYLE'] = '&#1057;&#1090;&#1080;&#1083; WYSIWYG';
382 383
$TEXT['WYSIWYG_EDITOR'] = 'WYSIWYG &#1088;&#1077;&#1076;&#1072;&#1082;&#1090;&#1086;&#1088;';
383 384
$TEXT['SERVER_EMAIL'] = 'Email &#1085;&#1072; &#1089;&#1098;&#1088;&#1074;&#1098;&#1088;&#1072;';

Also available in: Unified diff