Parcourir la source

Merge pull request #29 from visuddhinanda/master

测试阶段禁止internet注册
visuddhinanda il y a 5 ans
Parent
commit
f441259b11
3 fichiers modifiés avec 10 ajouts et 4 suppressions
  1. 0 1
      app/install/step5.php
  2. 0 3
      app/path.php
  3. 10 0
      app/ucenter/index.php

+ 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");

+ 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;