Project

General

Profile

« Previous | Next » 

Revision 546

Added by doc almost 17 years ago

added the "users in multiple groups" feature (closes parts of ticket #546)

View differences:

save.php
457 457
	// Users table
458 458
	$users = 'CREATE TABLE `'.TABLE_PREFIX.'users` ( `user_id` INT NOT NULL auto_increment,'
459 459
	       . ' `group_id` INT NOT NULL DEFAULT \'0\','
460
	       . ' `groups_id` VARCHAR( 255 ) NOT NULL DEFAULT \'0\','
460 461
	       . ' `active` INT NOT NULL DEFAULT \'0\','
461 462
	       . ' `username` VARCHAR( 255 ) NOT NULL DEFAULT \'\' ,'
462 463
	       . ' `password` VARCHAR( 255 ) NOT NULL DEFAULT \'\' ,'
......
517 518
	$insert_admin_group = "INSERT INTO `".TABLE_PREFIX."groups` VALUES ('1', 'Administrators', '$full_system_permissions', '', '')";
518 519
	$database->query($insert_admin_group);
519 520
	// Admin user
520
	$insert_admin_user = "INSERT INTO `".TABLE_PREFIX."users` (user_id,group_id,active,username,password,email,display_name) VALUES ('1','1','1','$admin_username','".md5($admin_password)."','$admin_email','Administrator')";
521
	$insert_admin_user = "INSERT INTO `".TABLE_PREFIX."users` (user_id,group_id,groups_id,active,username,password,email,display_name) VALUES ('1','1','1','1','$admin_username','".md5($admin_password)."','$admin_email','Administrator')";
521 522
	$database->query($insert_admin_user);
522 523
	
523 524
	// Search header

Also available in: Unified diff