\r
/* default installed plugins and skins */\r
$aConfPlugsToInstall = array('NP_SecurityEnforcer', 'NP_SkinFiles', 'NP_Text');\r
-$aConfSkinsToImport = array('atom', 'rss2.0', 'rsd', 'default');\r
+$aConfSkinsToImport = array('atom', 'rss2.0', 'rsd', 'default', 'defaultadmin');\r
\r
// Check if some important files\r
do_check_files();\r
INSERT INTO nucleus_config VALUES ('DebugVars', '0');\r
INSERT INTO nucleus_config VALUES ('DefaultListSize', '10');\r
INSERT INTO nucleus_config VALUES ('AdminCSS', 'original');\r
+INSERT INTO nucleus_config VALUES ('DefaultAdminSkin', '0');\r
\r
CREATE TABLE nucleus_item (\r
inumber int(11) NOT NULL auto_increment,\r
mcookiekey varchar(40) default NULL,\r
mlocale varchar(20) NOT NULL default '',\r
mautosave tinyint(2) NOT NULL default '1',\r
+ adminskin tinyint(2) NOT NULL default '0',\r
PRIMARY KEY (mnumber),\r
-- UNIQUE KEY mnumber (mnumber),\r
UNIQUE KEY mname (mname)\r
) ENGINE=MyISAM DEFAULT CHARSET=utf8;\r
\r
-INSERT INTO nucleus_member VALUES (1, 'example', 'example', '1a79a4d60de6718e8e5b326e338ae533', 'example@example.org', 'http://localhost:8080/nucleus/', '', 1, 1, 'd767aefc60415859570d64c649257f19', '', 1);\r
+INSERT INTO nucleus_member VALUES (1, 'example', 'example', '1a79a4d60de6718e8e5b326e338ae533', 'example@example.org', 'http://localhost:8080/nucleus/', '', 1, 1, 'd767aefc60415859570d64c649257f19', '', 1, 0);\r
\r
CREATE TABLE nucleus_plugin (\r
pid int(11) NOT NULL auto_increment,\r
switch ( $type )
{
case 'skin':
- $query = "SELECT * FROM %s;";
- $query = sprintf($query, sql_table('adminskin_desc'));
+ $query = "SELECT * FROM %s WHERE sdincmode = 'admin';";
+ $query = sprintf($query, sql_table('skin_desc'));
$res = sql_query($query);
while ( $skinObj = sql_fetch_object($res) )
*/
public function parse_adminskinoverview($templateName = '')
{
- $query = "SELECT * FROM %s ORDER BY sdname;";
- $query = sprintf($query, sql_table('adminskin_desc'));
+ $query = "SELECT * FROM %s WHERE sdincmode = 'admin' ORDER BY sdname;";
+ $query = sprintf($query, sql_table('skin_desc'));
$template['content'] = 'adminskinlist';
$template['tabindex'] = 10;
public function parse_adminskinselectoptions()
{
global $CONF;
- $query = "SELECT sdname as text, sdnumber as value FROM %s;";
- $query = sprintf($query, sql_table('adminskin_desc'));
+ $query = "SELECT sdname as text, sdnumber as value FROM %s WHERE sdincmode = 'admin';";
+ $query = sprintf($query, sql_table('skin_desc'));
$template['name'] = 'adminskin';
$template['selected'] = $CONF['DefaultAdminSkin'];
$skinid = intRequestVar('skinid');
$query = "SELECT stype FROM %s WHERE stype NOT IN (%s) AND sdesc=%d;";
- $query = sprintf($query, sql_table('adminskin'), "'" . implode("', '", $nType) . "'", (integer) $skinid);
+ $query = sprintf($query, sql_table('skin'), "'" . implode("', '", $nType) . "'", (integer) $skinid);
$res = sql_query($query);
if ( $res && sql_num_rows($res) > 0 )