Location: PHPKode > projects > Exero CMS > upload/install/resource/install_insert_data.php
<?
/*========================================*\
| Exero CMS                                |
|==========================================|
|          http://ecms.getox.net           |
|https://sourceforge.net/projects/exerocms/|
|==========================================|
|     Exero CMS is released under the      |
|     GNU General Public License (GPL)     |
| opensource.org/licenses/gpl-license.php  |
\*========================================*/

$insertgroups['1'] = "admin_items";
$insertgroups['2'] = "admin_modules";
$insertgroups['3'] = "admin_permissions";
$insertgroups['4'] = "admin_sessions";
$insertgroups['5'] = "blocks";
$insertgroups['6'] = "custompages";
$insertgroups['7'] = "globalmodules";
$insertgroups['8'] = "groups";
$insertgroups['9'] = "items";
$insertgroups['10'] = "modules";
$insertgroups['12'] = "modulesettings";
$insertgroups['13'] = "news";
$insertgroups['14'] = "news_cats";
$insertgroups['15'] = "permissions";
$insertgroups['16'] = "settings";

$querys[] = "INSERT INTO `admin_items` VALUES (1, 'Link [Module]', 'link_module');";
$querys[] = "INSERT INTO `admin_items` VALUES (2, 'Link [Other]', 'link_other');";
$querys[] = "INSERT INTO `admin_items` VALUES (3, 'Image', 'image');";

$querys[] = "INSERT INTO `admin_modules` VALUES ('news', 'News', 'news.php');";

$querys[] = "INSERT INTO `admin_permissions` VALUES ('1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1');";

$querys[] = "INSERT INTO `blocks` VALUES (1, 'main', 'Main', 'left', '1', '1', '', '5', '1,2,3','1');";
$querys[] = "INSERT INTO `blocks` VALUES (2, 'community', 'Community', 'left', '1', '2', '', '3,2,1,4,7', '1,2,3','1');";
$querys[] = "INSERT INTO `blocks` VALUES (3, 'pages', 'Pages', 'left', '0', '3', '', '', '1,2,3','0');";
$querys[] = "INSERT INTO `blocks` VALUES (4, 'admin', 'Administration', 'left', '1', '3', '', '6', '1','1');";

$querys[] = "INSERT INTO `groups` VALUES (1, 'Administrators', 'Administrator', '1');";
$querys[] = "INSERT INTO `groups` VALUES (2, 'Members', 'Member', '0');";
$querys[] = "INSERT INTO `groups` VALUES (3, 'Guests', 'Guest', '0');";

$querys[] = "INSERT INTO `items` VALUES (1, 'UserCP', 'link_module', 'usercp', '', '1,2');";
$querys[] = "INSERT INTO `items` VALUES (2, 'Register', 'link_module', 'community', 'register', '3');";
$querys[] = "INSERT INTO `items` VALUES (3, 'Login', 'link_module', 'community', 'login', '3');";
$querys[] = "INSERT INTO `items` VALUES (4, 'Logout', 'link_module', 'community', 'logout', '1,2');";
$querys[] = "INSERT INTO `items` VALUES (5, 'Home', 'link_module', 'rooturl', '', '1,3,2');";
$querys[] = "INSERT INTO `items` VALUES (6, 'AdminCP', 'link_module', 'admin', '', '1');";
$querys[] = "INSERT INTO `items` VALUES (7, 'Members', 'link_module', 'community', 'members', '1,3,2');";

$querys[] = "INSERT INTO `modules` VALUES (3, 'page', 'Custom Pages', 'pages', 'pages', '1', '0', '', '', '');";
$querys[] = "INSERT INTO `modules` VALUES (4, 'news', 'News', 'news', '', '1', '1', 'index.php', '', '');";
$querys[] = "INSERT INTO `modules` VALUES (8, 'usercp', 'UserCP', 'usercp', 'user', '1', '1', 'index.php', '', '');";
$querys[] = "INSERT INTO `modules` VALUES (9, 'community', 'Community', 'community', 'community', '1', '1', 'login.php,register.php,members.php', '', '');";

$querys[] = "INSERT INTO `modulesettings` VALUES ('news', 'Posts Visible', 'postsvisible', '5', 'text', '', '1');";
$querys[] = "INSERT INTO `modulesettings` VALUES ('news', 'Posting Groups', 'postinggroups', '1', 'groupselect', '', '1');";
$querys[] = "INSERT INTO `modulesettings` VALUES ('news', 'Enable Comments', 'enablecomments', '1', 'yesno', '', '1');";
$querys[] = "INSERT INTO `modulesettings` VALUES ('news', 'Avatars on Comments', 'avatarsoncomments', '1', 'yesno', '', '1');";

$querys[] = "INSERT INTO `news_cats` VALUES (1, 'Default', '/images/news/default.gif');";

$querys[] = "INSERT INTO `permissions` VALUES (1, 'community', '', 'none', '1,2,3');";
$querys[] = "INSERT INTO `permissions` VALUES (2, 'community', 'login', 'community', '1,2,3');";
$querys[] = "INSERT INTO `permissions` VALUES (3, 'community', 'register', 'community', '1,2,3');";
$querys[] = "INSERT INTO `permissions` VALUES (4, 'community', 'members_list', 'community', '1,2,3');";
$querys[] = "INSERT INTO `permissions` VALUES (5, 'community', 'profile', 'community', '1,2,3');";
$querys[] = "INSERT INTO `permissions` VALUES (6, 'usercp', '', 'none', '1,2,6');";
$querys[] = "INSERT INTO `permissions` VALUES (7, 'news', '', 'none', '1,2,3');";
$querys[] = "INSERT INTO `permissions` VALUES (8, 'news', 'post_comments', 'news', ',1,2');";

$querys[] = "INSERT INTO `settings` VALUES ('sitetitle', 'Exero CMS');";
$querys[] = "INSERT INTO `settings` VALUES ('defaultmod', 'news/index.php');";
$querys[] = "INSERT INTO `settings` VALUES ('cookiepath', '/');";
$querys[] = "INSERT INTO `settings` VALUES ('cookiedomain', '');";
$querys[] = "INSERT INTO `settings` VALUES ('timeformat', 'h:i A');";
$querys[] = "INSERT INTO `settings` VALUES ('dateformat', 'm-d-Y');";
$querys[] = "INSERT INTO `settings` VALUES ('dateformatbig', 'l jS F Y');";
$querys[] = "INSERT INTO `settings` VALUES ('siteactive', '1');";
$querys[] = "INSERT INTO `settings` VALUES ('mod_rewrite', '1');";
$querys[] = "INSERT INTO `settings` VALUES ('appver', '1.0.1.1');";
$querys[] = "INSERT INTO `settings` VALUES ('newsvisible', '5');";
$querys[] = "INSERT INTO `settings` VALUES ('maintmessage', 'Website is down for Maintenance.');";
$querys[] = "INSERT INTO `settings` VALUES ('defaulttheme', 'Default');";
?>
Return current item: Exero CMS