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

Back to archive index

onokazu onoka****@users*****
2006年 7月 27日 (木) 09:17:17 JST


Index: xoops2jp/html/header.php
diff -u xoops2jp/html/header.php:1.6 xoops2jp/html/header.php:1.7
--- xoops2jp/html/header.php:1.6	Mon May  1 11:37:26 2006
+++ xoops2jp/html/header.php	Thu Jul 27 09:17:17 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: header.php,v 1.6 2006/05/01 02:37:26 onokazu Exp $
+// $Id: header.php,v 1.7 2006/07/27 00:17:17 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -30,6 +30,14 @@
 }
 include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php';
 if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/theme.php')) {
+    //
+    // Fall back on simple protector of common.php by checking the constant that
+    // is defined in common.php
+    //
+    if (!defined("XOOPS_CACHE_PATH")) {
+        die();
+    }
+
     // the old way..
     $xoopsOption['theme_use_smarty'] = 0;
     if (file_exists(XOOPS_THEME_PATH.'/'.$xoopsConfig['theme_set'].'/language/lang-'.$xoopsConfig['language'].'.php')) {
Index: xoops2jp/html/index.php
diff -u xoops2jp/html/index.php:1.2 xoops2jp/html/index.php:1.3
--- xoops2jp/html/index.php:1.2	Fri Mar 18 21:51:55 2005
+++ xoops2jp/html/index.php	Thu Jul 27 09:17:17 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: index.php,v 1.2 2005/03/18 12:51:55 onokazu Exp $
+// $Id: index.php,v 1.3 2006/07/27 00:17:17 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -34,6 +34,14 @@
  **/
 include "mainfile.php";
 
+//
+// Fall back on simple protector of common.php by checking the constant that
+// is defined in common.php
+//
+if (!defined("XOOPS_CACHE_PATH")) {
+    die();
+}
+
 //check if start page is defined
 if ( isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--" ) {
 	header('Location: '.XOOPS_URL.'/modules/'.$xoopsConfig['startpage'].'/');
Index: xoops2jp/html/misc.php
diff -u xoops2jp/html/misc.php:1.6 xoops2jp/html/misc.php:1.7
--- xoops2jp/html/misc.php:1.6	Mon Oct 24 20:44:16 2005
+++ xoops2jp/html/misc.php	Thu Jul 27 09:17:17 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: misc.php,v 1.6 2005/10/24 11:44:16 onokazu Exp $
+// $Id: misc.php,v 1.7 2006/07/27 00:17:17 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -26,7 +26,18 @@
 //  ------------------------------------------------------------------------ //
 
 include "mainfile.php";
+
+//
+// Fall back on simple protector of common.php by checking the constant that
+// is defined in common.php
+//
+if (!defined("XOOPS_CACHE_PATH")) {
+    die();
+}
+
 include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/misc.php';
+
+
 $action = isset($_GET['action']) ? trim($_GET['action']) : '';
 $action = isset($_POST['action']) ? trim($_POST['action']) : $action;
 $type = isset($_GET['type']) ? trim($_GET['type']) : '';


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