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 03:35:39postnuke_official/html/modules/installerpnadminapi.php,1.1,1.2Paul Rosania
 fixed config.php modification function in installer and switched to preg (faster)

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

Modified Files:
	pnadminapi.php 
Log Message:
fixed config.php modification function in installer and switched to preg (faster)


Index: pnadminapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/installer/pnadminapi.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pnadminapi.php	4 Aug 2002 04:32:27 -0000	1.1
--- pnadminapi.php	9 Aug 2002 03:35:36 -0000	1.2
***************
*** 127,139 ****
          $system = 0;
      }
  
!     $config_php = ereg_replace('\[\'dbtype\'\]\s*=\s*(\'|\")(.*)\\1;', "['dbtype'] = '$dbtype';", $config_php);
!     $config_php = ereg_replace('\[\'dbhost\'\]\s*=\s*(\'|\")(.*)\\1;', "['dbhost'] = '$dbhost';", $config_php);
!     $config_php = ereg_replace('\[\'dbuname\'\]\s*=\s*(\'|\")(.*)\\1;', "['dbuname'] = '$dbuname';", $config_php);
!     $config_php = ereg_replace('\[\'dbpass\'\]\s*=\s*(\'|\")(.*)\\1;', "['dbpass'] = '$dbpass';", $config_php);
!     $config_php = ereg_replace('\[\'dbname\'\]\s*=\s*(\'|\")(.*)\\1;', "['dbname'] = '$dbname';", $config_php);
!     $config_php = ereg_replace('\[\'prefix\'\]\s*=\s*(\'|\")(.*)\\1;', "['prefix'] = '$prefix';", $config_php);
!     $config_php = ereg_replace('\[\'system\'\]\s*=\s*(\'|\")(.*)\\1;', "['system'] = '$system';", $config_php);
! 
      $fp = fopen ('config.php', 'w+');
      fwrite ($fp, $config_php);
--- 127,143 ----
          $system = 0;
      }
+     
+     $dbuname = base64_encode($dbuname);
+     $dbpass = base64_encode($dbpass);
  
!     $config_php = preg_replace('/\[\'dbtype\'\]\s*=\s*(\'|\")(.*)\\1;/', "['dbtype'] = '$dbtype';", $config_php);
!     $config_php = preg_replace('/\[\'dbhost\'\]\s*=\s*(\'|\")(.*)\\1;/', "['dbhost'] = '$dbhost';", $config_php);
!     $config_php = preg_replace('/\[\'dbuname\'\]\s*=\s*(\'|\")(.*)\\1;/', "['dbuname'] = '$dbuname';", $config_php);
!     $config_php = preg_replace('/\[\'dbpass\'\]\s*=\s*(\'|\")(.*)\\1;/', "['dbpass'] = '$dbpass';", $config_php);
!     $config_php = preg_replace('/\[\'dbname\'\]\s*=\s*(\'|\")(.*)\\1;/', "['dbname'] = '$dbname';", $config_php);
!     $config_php = preg_replace('/\[\'prefix\'\]\s*=\s*(\'|\")(.*)\\1;/', "['prefix'] = '$prefix';", $config_php);
!     $config_php = preg_replace('/\[\'system\'\]\s*=\s*(\'|\")(.*)\\1;/', "['system'] = '$system';", $config_php);
!     $config_php = preg_replace('/\[\'encoded\'\]\s*=\s*(\'|\")(.*)\\1;/', "['encoded'] = '1';", $config_php);
!     
      $fp = fopen ('config.php', 'w+');
      fwrite ($fp, $config_php);


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