Update of /cvsroot/phpslash/phpslash-dev/public_html
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29803
Modified Files:
config-dist.ini.php config-dist.php
Log Message:
changed the way that config.ini files are included. now the realm for virtualization is limitless and all .php and include files can be shared accross multiple virtualhosts from the same installation of psl. Simply name your oconfig.ini files config-FQDN.ini.php
Index: config-dist.ini.php
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/public_html/config-dist.ini.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** config-dist.ini.php 17 Nov 2004 17:39:44 -0000 1.26
--- config-dist.ini.php 17 Nov 2004 19:16:34 -0000 1.27
***************
*** 113,116 ****
--- 113,118 ----
;;
;; The base URL for the PHPSlash site. (no trailing slashes here)
+ ;; Could also be the full path as seen from the browser:
+ ;; i.e. http://domain.com/phpslash/public_html OR /phpslash/public_html
rooturl = "<ROOT_URL>"
;;
Index: config-dist.php
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/public_html/config-dist.php,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** config-dist.php 17 Nov 2004 17:35:01 -0000 1.38
--- config-dist.php 17 Nov 2004 19:16:34 -0000 1.39
***************
*** 8,14 ****
*/
! // Specify full path to ini file
! $psl_inifile = "config.ini.php";
!
// end of required configuration. config.ini.php contains the phpSlash
// configuration variables.
--- 8,24 ----
*/
! // Specify full path to ini file (use trailing slashes)
! $psl_inifile_path = ""; // i.e. /path/to/dir/
! // NOTE: You should not need to change the following:
! // This automagically detect what virtual-host we are using
! // or fallback to standard config.ini.php if needed:
! $psl_inifile = $psl_inifile_path."config-".$_SERVER['SERVER_NAME'].".ini.php";
! if ( !is_file("$psl_inifile") )
! {
! /* fall back to a nice default */
! $psl_inifile = "config.ini.php";
! }
! // DEBUG: print($psl_inifile);
! // DEBUG: exit(1);
// end of required configuration. config.ini.php contains the phpSlash
// configuration variables.
|