Przeglądaj źródła

Merge branch 'master' of https://github.com/visuddhinanda/mint

Bhikkhu-Kosalla 5 lat temu
rodzic
commit
2abc697f14

+ 0 - 1
app/install/step5.php

@@ -81,7 +81,6 @@ if(file_exists(_DIR_PALICANON_TEMPLET_)){
 		echo "缺少".(217-$iCount)."个文件<br>";
 		echo '<a href="db_insert_templet.php">生成数据库</a>';
 	}
-	
 }
 else{
 	echo "模板数据库目录不存在<br>";

+ 0 - 3
app/path.php

@@ -49,9 +49,6 @@ define("_DIR_APP_" , __DIR__."/../app");
 define("_DIR_LANGUAGE_" , __DIR__."/../app/public/lang");
 define("_DIR_BOOK_INDEX_" , __DIR__."/../app/public/book_index");
 
-
-
-
 /*user data*/
 define("_DIR_USER_BASE_" , __DIR__."/../tmp/user");
 define("_DIR_USER_IMG_" , __DIR__."/../tmp/user/media/3");

+ 1 - 1
app/studio/dictadmin/3rd/phpliteadmin.config.php

@@ -13,7 +13,7 @@
 $password = 'dhamma';
 
 //directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
-$directory = '../../../../appdata/dict/3rd';
+$directory = '../../../../tmp/appdata/dict/3rd';
 
 //whether or not to scan the subdirectories of the above directory infinitely deep
 $subdirectories = false;

+ 1 - 1
app/studio/dictadmin/palicanon/phpliteadmin.config.php

@@ -13,7 +13,7 @@
 $password = 'dhamma';
 
 //directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
-$directory = "../../../../appdata/palicanon";
+$directory = "../../../../tmp/appdata/palicanon";
 
 //whether or not to scan the subdirectories of the above directory infinitely deep
 $subdirectories = false;

+ 1 - 1
app/studio/dictadmin/system/phpliteadmin.config.php

@@ -13,7 +13,7 @@
 $password = 'dhamma';
 
 //directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
-$directory = '../../../../appdata/dict/system';
+$directory = '../../../../tmp/appdata/dict/system';
 
 //whether or not to scan the subdirectories of the above directory infinitely deep
 $subdirectories = false;

+ 1 - 1
app/studio/dictadmin/term/phpliteadmin.config.php

@@ -13,7 +13,7 @@
 $password = 'dhamma';
 
 //directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
-$directory = "../../../../appdata/dict/dhammaterm";
+$directory = "../../../../tmp/appdata/dict/dhammaterm";
 
 //whether or not to scan the subdirectories of the above directory infinitely deep
 $subdirectories = false;

+ 1 - 1
app/studio/dictadmin/user/phpliteadmin.config.php

@@ -13,7 +13,7 @@
 $password = 'dhamma';
 
 //directory relative to this file to search for databases (if false, manually list databases in the $databases variable)
-$directory = "../../../../user";
+$directory = "../../../../tmp/user";
 
 //whether or not to scan the subdirectories of the above directory infinitely deep
 $subdirectories = false;

+ 10 - 0
app/ucenter/index.php

@@ -32,6 +32,11 @@ require_once "../public/function.php";
 		}
 		case "new":
 		{
+			$host = $_SERVER['HTTP_HOST'];
+			if(strpos ($host,"wikipali.org") !== FALSE){
+				echo "网站正处于开发阶段。目前不支持注册。";
+				exit;
+			}
 			break;
 		}
 	}
@@ -303,7 +308,12 @@ require_once "../public/function.php";
 	</div>	
 	<div id="login_right">
 		<div id = "login_form_div" class="fun_block" >
+		
 		<?php
+					$host = $_SERVER['HTTP_HOST'];
+					if(strpos ($host,"wikipali.org") !== FALSE){
+						echo "网站正处于开发阶段。目前不支持注册。";
+					}
 		if(isset($error_comm)){
 			echo '<div class="form_error">';
 			echo $error_comm;