Project

General

Profile

« Previous | Next » 

Revision 109

Added by stefan about 19 years ago

Added new setting 'wb_version' which is not changeable in admin>>settings but allows for easier upgrade scripts in the future.

View differences:

save.php
403 403
	       . ' ';
404 404
	$database->query($pages);
405 405
	
406
	require(WB_PATH.'/admin/interface/version.php');
407
	
406 408
	// Settings table
407 409
	$settings="CREATE TABLE `".TABLE_PREFIX."settings` ( `setting_id` INT NOT NULL auto_increment,
408 410
		`name` VARCHAR( 255 ) NOT NULL ,
409 411
		`value` TEXT NOT NULL ,
410 412
		PRIMARY KEY ( `setting_id` ) )";
411 413
	$database->query($settings);
412
	$settings_rows=	"INSERT INTO `".TABLE_PREFIX."settings` VALUES ('', 'website_title', '$website_title'),"
414
	$settings_rows=	"INSERT INTO `".TABLE_PREFIX."settings` VALUES "
415
	." ('', 'wb_version', '".VERSION."'),"
416
	." ('', 'website_title', '$website_title'),"
413 417
	." ('', 'website_description', ''),"
414 418
	." ('', 'website_keywords', ''),"
415 419
	." ('', 'website_header', ''),"

Also available in: Unified diff