comparison search.php @ 3:bc6ce492f15d

add passwd in search page, php error log
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 25 Jun 2015 17:43:28 +0200
parents 45cbafdec56e
children c3c31d031945
comparison
equal deleted inserted replaced
2:45cbafdec56e 3:bc6ce492f15d
1 <?php 1 <?php
2
3 include_once('config/Lib_mb_utf8.php'); 2 include_once('config/Lib_mb_utf8.php');
4 include_once('config/config.php'); 3 include_once('config/config.php');
5 include_once('search_function.php'); 4 include_once('search_function.php');
6
7 ?> 5 ?>
8 6
9 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 7 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
10 <html> 8 <html>
11 <head> 9 <head>
13 <link href="search.css" type="text/css" rel="stylesheet"/> 11 <link href="search.css" type="text/css" rel="stylesheet"/>
14 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> 12 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
15 <script src="search.js" charset="utf-8"></script> 13 <script src="search.js" charset="utf-8"></script>
16 </head> 14 </head>
17 <body> 15 <body>
16 <script type="text/javascript">
17 // prompt to ask the password when open page
18 var password = "3333";
19 var string = prompt("Please enter password", "");
20 if(string!=password) {
21 alert("Wrong password!");
22 window.location="http://localgazetteers.mpiwg-berlin.mpg.de";
23 }
24 </script>
25
18 <form action='search.php' method='POST'> 26 <form action='search.php' method='POST'>
19 關鍵字: <input type="text" name="keyword" size="100"> (若要搜尋多筆關鍵字請用半型逗號,隔開)<br> 27 關鍵字: <input type="text" name="keyword" size="100"> (若要搜尋多筆關鍵字請用半型逗號,隔開)<br>
20 將結果輸出至: <input type="text" name="filename" size="40">.html (請用英文非空白字元命名)<br> 28 將結果輸出至: <input type="text" name="filename" size="40">.html (請用英文非空白字元命名)<br>
21 <input type="submit" name="search" value="搜尋"> 29 <input type="submit" name="search" value="搜尋">
22 </form> 30 </form>