[xoops-cvslog 3689] CVS update: xoops2jp/html/install/class

Back to archive index

onokazu onoka****@users*****
2006年 7月 27日 (木) 08:52:33 JST


Index: xoops2jp/html/install/class/settingmanager.php
diff -u xoops2jp/html/install/class/settingmanager.php:1.2 xoops2jp/html/install/class/settingmanager.php:1.2.18.1
--- xoops2jp/html/install/class/settingmanager.php:1.2	Fri Mar 18 21:52:14 2005
+++ xoops2jp/html/install/class/settingmanager.php	Thu Jul 27 08:52:33 2006
@@ -29,7 +29,7 @@
 * setting manager for XOOPS installer
 *
 * @author Haruki Setoyama  <haruk****@plane*****>
-* @version $Id: settingmanager.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
+* @version $Id: settingmanager.php,v 1.2.18.1 2006/07/26 23:52:33 onokazu Exp $
 * @access public
 **/
 class setting_manager {
@@ -72,7 +72,8 @@
             if ( substr($filepath, -1) == "/" ) {
                 $filepath = substr($filepath, 0, -1);
             }
-            $protocol = ($_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
+            $protocol = 
+(!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://';
             $this->xoops_url = (!empty($filepath)) ? $protocol.$_SERVER['HTTP_HOST']."/".$filepath : $protocol.$_SERVER['HTTP_HOST'];
         }
     }
@@ -268,7 +269,7 @@
 
     function getDBList()
     {
-		return array('mysql');
+        return array('mysql');
         //$dirname = '../class/database/';
         //$dirlist = array();
         //if (is_dir($dirname) && $handle = opendir($dirname)) {


xoops-cvslog メーリングリストの案内
Back to archive index