infrastructure for supporting pages/groups
This commit is contained in:
parent
36e1afa6ae
commit
f5a8a92df1
10
boot.php
10
boot.php
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
define ( 'BUILD_ID', 1007 );
|
define ( 'BUILD_ID', 1008 );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.0' );
|
||||||
|
|
||||||
define ( 'EOL', "<br />\r\n" );
|
define ( 'EOL', "<br />\r\n" );
|
||||||
|
@ -20,6 +20,14 @@ define ( 'REL_VIP', 1);
|
||||||
define ( 'REL_FAN', 2);
|
define ( 'REL_FAN', 2);
|
||||||
define ( 'REL_BUD', 3);
|
define ( 'REL_BUD', 3);
|
||||||
|
|
||||||
|
|
||||||
|
// page/profile types
|
||||||
|
|
||||||
|
define ( 'PAGE_NORMAL', 0 );
|
||||||
|
define ( 'PAGE_AUTO_FAN', 1 );
|
||||||
|
define ( 'PAGE_AUTO_FAN_RW', 2 );
|
||||||
|
define ( 'PAGE_AUTO_BUD', 3 );
|
||||||
|
|
||||||
// Maximum number of "people who like (or don't like) this"
|
// Maximum number of "people who like (or don't like) this"
|
||||||
// that we will list by name
|
// that we will list by name
|
||||||
|
|
||||||
|
|
18
database.sql
18
database.sql
|
@ -351,12 +351,18 @@ CREATE TABLE IF NOT EXISTS `user` (
|
||||||
`prvkey` text NOT NULL,
|
`prvkey` text NOT NULL,
|
||||||
`spubkey` text NOT NULL,
|
`spubkey` text NOT NULL,
|
||||||
`sprvkey` text NOT NULL,
|
`sprvkey` text NOT NULL,
|
||||||
`verified` tinyint(1) unsigned NOT NULL DEFAULT '0', `blocked`
|
`verified` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||||
tinyint(1) unsigned NOT NULL DEFAULT '0', `notify-flags` int(11)
|
`blocked` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||||
unsigned NOT NULL DEFAULT '65535', `pwdreset` char(255) NOT NULL,
|
`notify-flags` int(11) unsigned NOT NULL DEFAULT '65535',
|
||||||
`allow_cid` mediumtext NOT NULL, `allow_gid` mediumtext NOT NULL,
|
`page-flags` int(11) unsigned NOT NULL DEFAULT '0',
|
||||||
`deny_cid` mediumtext NOT NULL, `deny_gid` mediumtext NOT NULL,
|
`pwdreset` char(255) NOT NULL,
|
||||||
PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
`allow_cid` mediumtext NOT NULL,
|
||||||
|
`allow_gid` mediumtext NOT NULL,
|
||||||
|
`deny_cid` mediumtext NOT NULL,
|
||||||
|
`deny_gid` mediumtext NOT NULL,
|
||||||
|
PRIMARY KEY (`uid`),
|
||||||
|
KEY `nickname` (`nickname`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `register` (
|
CREATE TABLE IF NOT EXISTS `register` (
|
||||||
|
|
|
@ -63,3 +63,8 @@ function update_1006() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function update_1007() {
|
||||||
|
q("ALTER TABLE `user` ADD `page-flags` INT NOT NULL DEFAULT '0' AFTER `notify-flags`");
|
||||||
|
q("ALTER TABLE `user` ADD INDEX ( `nickname` )");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user