From 9975f5a70d6cf4a32030525e8a1b4c127c6a8d99 Mon Sep 17 00:00:00 2001 From: domen111 Date: Sun, 26 Apr 2015 17:55:43 +0800 Subject: [PATCH] Fix some php notice and change some template --- login.php | 2 +- template/header.php | 4 ++-- template/main.php | 8 +------- template/signup.php | 6 +++--- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/login.php b/login.php index caefe14..5ab1cbb 100644 --- a/login.php +++ b/login.php @@ -12,7 +12,7 @@ $expire = 0; else $expire = time()+60*60*24*$config["session"]["expire"]; - setcookie("login",$hash,$expire,$config["session"]["cookie_path"],$config["session"]["domain"],false,true); + setcookie("login",$hash,$expire,$config["session"]["cookie_path"],$config["session"]["cookie_domain"],false,true); //set DB $db = PDO_prepare("INSERT INTO `table:session` (`id`, `expire`, `cookie`) VALUES (:id, DATE_ADD(CURDATE(),INTERVAL :expire DAY), :cookie)"); diff --git a/template/header.php b/template/header.php index e737f0a..b61109b 100644 --- a/template/header.php +++ b/template/header.php @@ -27,11 +27,11 @@
     - 首頁 + Home
- + () logout diff --git a/template/main.php b/template/main.php index 1012c7f..49dc605 100644 --- a/template/main.php +++ b/template/main.php @@ -6,13 +6,7 @@
- - your nickname:
- your account: - logout - - login - +This is the homepage of TFcis Login Integration System.
diff --git a/template/signup.php b/template/signup.php index 98516eb..8c7a5f6 100644 --- a/template/signup.php +++ b/template/signup.php @@ -7,11 +7,11 @@
- Account: ">
+ Account: ">
Password:
Confirm:
- Nickname: ">
- E-mail: ">
+ Nickname: ">
+ E-mail: ">