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 / installer [ 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]
09 Aug 2002 19:53:10postnuke_official/html/modules/installerpnadmin.php,1.6,1.7Paul Rosania
 more progress on installer

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

Modified Files:
	pnadmin.php 
Log Message:
more progress on installer


Index: pnadmin.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/installer/pnadmin.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pnadmin.php	8 Aug 2002 19:34:07 -0000	1.6
--- pnadmin.php	9 Aug 2002 19:53:08 -0000	1.7
***************
*** 34,37 ****
--- 34,55 ----
      }
      
+     // load modules API
+     $res = pnModAPILoad('modules', 'admin');
+     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
+         return;
+     }
+     
+     // initialize & activate adminpanels module
+     $res = pnModAPIFunc('modules', 'admin', 'initialise', array('regid' => pnModGetIDFromName('adminpanels')));
+     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
+         return;
+     }
+     
+     $res = pnModAPIFunc('modules', 'admin', 'setstate', array('regid' => pnModGetIDFromName('adminpanels'),
+                                                               'state' => _PNMODULE_STATE_ACTIVE));
+     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
+         return;
+     }
+     
      pnRedirect(pnModURL('installer', 'admin', 'create_administrator'));
      return array();
***************
*** 74,78 ****
      }
      */
!     pnRedirect(pnModURL('blocks', 'admin'));
  }
  
--- 92,163 ----
      }
      */
!     pnRedirect(pnModURL('installer', 'admin', 'finish'));
! }
! 
! function installer_admin_finish()
! {
!     $res = pnModAPILoad('blocks', 'admin');
!     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
!         return;
!     }
!     
!     // Load up database
!     list($dbconn) = pnDBGetConn();
!     $pntable = pnDBGetTables();
!     $block_groups_table          = $pntable['block_groups'];
!     
!     $query = "SELECT    pn_id as id
!               FROM      $block_groups_table
!               WHERE     pn_name = 'left'";
! 
!     $result = $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;
!     }
! 
!     // Freak if we don't get one and only one result
!     if ($result->PO_RecordCount() != 1) {
!         $msg = pnML("Group 'left' not found.");
!         pnExceptionSet(PN_SYSTEM_EXCEPTION, 'BAD_PARAM',
!                        new SystemException(__FILE__.'('.__LINE__.'): '.$msg));
!         return NULL;
!     }
! 
!     list ($group_id) = $result->fields;
!     
!     $type_id = pnBlockTypeExists('adminpanels', 'adminmenu');
!     
!     $block_id = pnModAPIFunc('blocks',
!                              'admin',
!                              'create_instance', array('title'    => 'Admin',
!                                                       'type'     => $type_id,
!                                                       'group'    => $group_id,
!                                                       'template' => '',
!                                                       'state'    => 2));
!     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
!         return;
!     }
!     
!     $msg = pnML('Reminder message body will go here.');
!     
!     $type_id = pnBlockTypeExists('base', 'html');
!     $block_id = pnModAPIFunc('blocks',
!                              'admin',
!                              'create_instance', array('title'    => 'Reminder',
!                                                       'content'  => $msg,
!                                                       'type'     => $type_id,
!                                                       'group'    => $group_id,
!                                                       'template' => '',
!                                                       'state'    => 2));
!     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
!         return;
!     }
!     
!     return array();
  }
  


Directory filter : [ all ] / postnuke_official / html / modules / installer [ 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