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] |
09 Aug 2002 13:33:50 | postnuke_official/html/modules/base | pninit.php,1.11,1.12 | Paul Rosania |
broke adminpanels install into its own pninit |
Update of /home/cvsroot/postnuke_official/html/modules/base In directory ns7.hostnuke.net:/tmp/cvs-serv20815/base Modified Files: pninit.php Log Message: broke adminpanels install into its own pninit Index: pninit.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/modules/base/pninit.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pninit.php 9 Aug 2002 02:39:17 -0000 1.11 --- pninit.php 9 Aug 2002 13:33:48 -0000 1.12 *************** *** 342,378 **** 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' => 'integer', ! 'size' => 'tiny', ! '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; ! } ! // *_user_perms $query = pnDBCreateTable($prefix . '_user_perms', --- 342,346 ---- return NULL; } ! // *_user_perms $query = pnDBCreateTable($prefix . '_user_perms', *************** *** 563,655 **** // 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 (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 (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 --- 531,534 ----
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 |