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]
12 Aug 2002 23:44:43postnuke_official/html/modules/installerpnadminapi.php,1.2,1.3John Robeson
 the installer now creates a database .. but it is mysql specific until we write a database connection wrapper that doesn't need a database specified like ADONewConnection

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

Modified Files:
	pnadminapi.php 
Log Message:
the installer now creates a database .. but it is mysql specific until we write a database connection wrapper that doesn't need a database specified like ADONewConnection


Index: pnadminapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/installer/pnadminapi.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pnadminapi.php	9 Aug 2002 03:35:36 -0000	1.2
--- pnadminapi.php	12 Aug 2002 23:44:41 -0000	1.3
***************
*** 31,35 ****
  }
  
! function installer_adminapi_phase3() {
      global $HTTP_POST_VARS;
      if ($HTTP_POST_VARS['agree'] != 'agree') {
--- 31,36 ----
  }
  
! function installer_adminapi_phase3() 
! {
      global $HTTP_POST_VARS;
      if ($HTTP_POST_VARS['agree'] != 'agree') {
***************
*** 41,49 ****
  }
  
! function installer_adminapi_phase4() {
      return array('database_host' => 'localhost',
                   'database_username' => 'root',
                   'database_password' => '',
!                  'database_name' => 'Ragnarok',
                   'database_prefix' => 'pn',
                   'database_types' => array('mysql'    => 'MySQL',
--- 42,51 ----
  }
  
! function installer_adminapi_phase4() 
! {
      return array('database_host' => 'localhost',
                   'database_username' => 'root',
                   'database_password' => '',
!                  'database_name' => 'adam_baum',
                   'database_prefix' => 'pn',
                   'database_types' => array('mysql'    => 'MySQL',
***************
*** 51,55 ****
  }
  
! function installer_adminapi_phase5() {
      global $HTTP_POST_VARS;
      
--- 53,58 ----
  }
  
! function installer_adminapi_phase5() 
! {
      global $HTTP_POST_VARS;
      
***************
*** 60,68 ****
      $prefix = $HTTP_POST_VARS['install_database_prefix'];
      $dbtype = $HTTP_POST_VARS['install_database_type'];
-     
      if (isset($HTTP_POST_VARS['install_create_database'])) {
!         $create = true;
!     } else {
!         $create = false;
      }
      
--- 63,78 ----
      $prefix = $HTTP_POST_VARS['install_database_prefix'];
      $dbtype = $HTTP_POST_VARS['install_database_type'];
      if (isset($HTTP_POST_VARS['install_create_database'])) {
!     //Ugly Switch... until we write a database connection wrapper
!     //Needed because ADONewConnection requires a database to connect to
!         switch($dbtype){
!             case 'mysql':
!             //TODO: add error checking (prolly wait til the connection wrapper)
!             mysql_connect($dbhost,$dbuser,$dbpass);
!             break;
!         } 
!        
!         //TODO: add error checking and replace with pnDBCreateDB
!         mysql_create_db($dbname);
      }
      


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