Xaraya / Postnuke CVS Notices - Message

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 Notice

Directory filter : [ all ] / postnuke_official / html / modules / blocks [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
08 Aug 2002 19:31:55postnuke_official/html/modules/blockspninit.php,1.2,1.3Paul Rosania
 more initialization

Update of /home/cvsroot/postnuke_official/html/modules/blocks
In directory ns7.hostnuke.net:/tmp/cvs-serv13537/blocks

Modified Files:
	pninit.php 
Log Message:
more initialization


Index: pninit.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/blocks/pninit.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pninit.php	6 Aug 2002 15:47:33 -0000	1.2
--- pninit.php	8 Aug 2002 19:31:53 -0000	1.3
***************
*** 92,96 ****
                                                               'null'        => true,
                                                               'default'     => NULL),
!                                    'pn_content'     => array('type'        => 'text'),
                                     'pn_template'    => array('type'        => 'varchar',
                                                               'size'        => 255,
--- 92,98 ----
                                                               'null'        => true,
                                                               'default'     => NULL),
!                                    'pn_content'     => array('type'        => 'text',
!                                                              'null'        => false,
!                                                              'default'     => ''),
                                     'pn_template'    => array('type'        => 'varchar',
                                                               'size'        => 255,
***************
*** 198,201 ****
--- 200,250 ----
          return NULL;
      }
+     
+     // *_userblocks
+     $query = pnDBCreateTable($prefix . '_userblocks',
+                              array('pn_uid'         => array('type'    => 'integer',
+                                                              'null'    => false,
+                                                              'default' => '0'),
+                                    'pn_bid'         => array('type'    => 'varchar',
+                                                              'size'    => 32,
+                                                              'null'    => false,
+                                                              'default' => '0'),
+                                    'pn_active'      => array('type'    => 'integer',
+                                                              'size'    => 'tiny',
+                                                              'null'    => false,
+                                                              'default' => '1'),
+                                    'pn_last_update' => array('type'    => 'timestamp',
+                                                              'null'    => 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 . '_userblocks',
+                              array('name'   => 'pn_uidbid_index',
+                                    'fields' => array('pn_uid', 'pn_bid'),
+                                    '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;
+     }
+     
+     // Create default block groups/instances
+     pnModAPILoad('blocks', 'admin');
+     pnModAPIFunc('blocks', 'admin', 'create_group', array('name' => 'left'));
+     pnModAPIFunc('blocks', 'admin', 'create_group', array('name'     => 'right',
+                                                           'template' => 'right'));
+     
  
      // Register BL tags


Directory filter : [ all ] / postnuke_official / html / modules / blocks [ view in CVS ]

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