[xoops-cvslog 4523] CVS update: xoops2jp/html

Back to archive index

Minahito minah****@users*****
2006年 9月 17日 (日) 11:54:03 JST


Index: xoops2jp/html/mainfile.dist.php
diff -u xoops2jp/html/mainfile.dist.php:1.2.8.1 xoops2jp/html/mainfile.dist.php:1.2.8.2
--- xoops2jp/html/mainfile.dist.php:1.2.8.1	Wed Apr 12 23:23:42 2006
+++ xoops2jp/html/mainfile.dist.php	Sun Sep 17 11:54:03 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: mainfile.dist.php,v 1.2.8.1 2006/04/12 14:23:42 onokazu Exp $
+// $Id: mainfile.dist.php,v 1.2.8.2 2006/09/17 02:54:03 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -38,34 +38,17 @@
     // Example: define('XOOPS_URL', 'http://url_to_xoops_directory');
     define('XOOPS_URL', 'http://');
 
-    define('XOOPS_CHECK_PATH', 0);
-    // Protect against external scripts execution if safe mode is not enabled
-    if ( XOOPS_CHECK_PATH && !@ini_get('safe_mode') ) {
-        if ( function_exists('debug_backtrace') ) {
-            $xoopsScriptPath = debug_backtrace();
-            if ( !count($xoopsScriptPath) ) {
-                die("XOOPS path check: this file cannot be requested directly");
-            }
-            $xoopsScriptPath = $xoopsScriptPath[0]['file'];
-        } else {
-            $xoopsScriptPath = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] :  $_SERVER['SCRIPT_FILENAME'];
-        }
-        if ( DIRECTORY_SEPARATOR != '/' ) {
-            // IIS6 may double the \ chars
-            $xoopsScriptPath = str_replace( strpos( $xoopsScriptPath, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsScriptPath);
-        }
-        if ( strcasecmp( substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace( DIRECTORY_SEPARATOR, '/', XOOPS_ROOT_PATH)) ) {
-            exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
-        }
-    }
-
     // Database
     // Choose the database to be used
     define('XOOPS_DB_TYPE', 'mysql');
 
     // Table Prefix
     // This prefix will be added to all new tables created to avoid name conflict in the database. If you are unsure, just use the default 'xoops'.
-    define('XOOPS_DB_PREFIX', 'xoops');
+    define('XOOPS_DB_PREFIX', '');
+
+	// SALT
+	// This plays a supplementary role to generate secret code and token.
+    define('XOOPS_SALT', '');
 
     // Database Hostname
     // Hostname of the database server. If you are unsure, 'localhost' works in most cases.


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