Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / modules / base [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
03 Aug 2002 10:23:19 | postnuke_official/html/modules/base | pninit.php,1.3,1.4 | John Robeson |
starting the blocks addition... couldn't test due to install.pnt being present in seabreeze |
Update of /home/cvsroot/postnuke_official/html/modules/base In directory ns7.hostnuke.net:/tmp/cvs-serv21052/html/modules/base Modified Files: pninit.php Log Message: starting the blocks addition... couldn't test due to install.pnt being present in seabreeze Index: pninit.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/modules/base/pninit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pninit.php 3 Aug 2002 05:05:01 -0000 1.3 --- pninit.php 3 Aug 2002 10:23:17 -0000 1.4 *************** *** 342,348 **** return NULL; } ! // *_admin_menu // *_block_groups // *_block_instances // *_block_types --- 342,444 ---- return NULL; } ! // *_admin_menu + $query = pnDBCreateTable($prefix . '_admin_menu', + array('pn_amid' => array('type' => 'integer', + 'null' => false, + 'default' => '0', + 'increment' => true, + 'primary_key' => true), + 'pn_name' => array('type' => 'varchar', + 'size' => 32, + 'null' => false, + 'default' => ''), + 'pn_category' => array('type' => 'varchar', + 'size' => 32, + 'null' => false, + 'default' => ''), + 'pn_weight' => array('type' => 'integer', + 'null' => false, + 'default' => '0'), + 'pn_flag' => array('type' => 'tinyint', + 'size' => 2, + 'null' => false, + 'default' => '1'))); + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = pnDBCreateIndex($prefix . '_admin_menu', + array('name' => 'pn_amid_index', + 'fields' => array('pn_amid'), + 'unique' => 'false')); + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + // *_block_groups + $query = pnDBCreateTable($prefix . '_users', + array('pn_uid' => array('type' => 'integer', + 'null' => false, + 'default' => '', + 'increment' => true, + 'primary_key' => true), + 'pn_name' => array('type' => 'varchar', + 'size' => 255, + 'null' => false, + 'default' => ''), + 'pn_template' => array('type' => 'varchar', + 'size' => 255, + 'null' => false, + 'default' => ''))); + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = pnDBCreateIndex($prefix . '_block_groups', + array('name' => 'pn_id_index', + 'fields' => array('pn_id'), + 'unique' => 'false')); + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = pnDBCreateIndex($prefix . '_block_groups', + array('name' => 'pn_namoe_index', + 'fields' => array('pn_name'), + 'unique' => 'true')); + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } // *_block_instances // *_block_types *************** *** 378,382 **** 'size' => 64, 'null' => false, ! 'default' => ''),)); $dbconn->Execute($query); --- 474,478 ---- 'size' => 64, 'null' => false, ! 'default' => ''))); $dbconn->Execute($query); *************** *** 501,505 **** --- 597,712 ---- // Fill language list + // Fill admin menu + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (1, 'adminpanels', 'Global', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (2, 'authsystem', 'Global', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (3, 'autolinks', 'Global', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (4, 'base', 'Global', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (5, 'blocks', 'Global', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (6, 'comments', 'Content', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (7, 'groups', 'Users & Groups', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (8, 'modules', 'Global', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (9, 'permissions', 'Users & Groups', 0, 1);"; + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } + + $query = "INSERT INTO {$prefix}_admin_menu (pn_amid, pn_name, pn_category, pn_weight, pn_flag) VALUES (10, 'users', 'Users & Groups', 0, 1);"; + + $dbconn->Execute($query); + + // Check for db errors + if ($dbconn->ErrorNo() != 0) { + $msg = pnMLByKey('DATABASE_ERROR', $dbconn->ErrorMsg(), $query); + pnExceptionSet(PN_SYSTEM_EXCEPTION, 'DATABASE_ERROR', + new SystemException(__FILE__.'('.__LINE__.'): '.$msg)); + return NULL; + } // Set up blocks
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |