forked from Hereisaa/ilearning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnormtest.php
39 lines (33 loc) · 891 Bytes
/
normtest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
session_start();
require_once "libs/Smarty.class.php";
$smarty = new Smarty();
/*
if(isset($_SESSION["account"])){
$username = $_SESSION["account"];
}
else{
$username = NULL;
}
if($username==NULL){
$smarty->assign("login", "login");
$smarty->assign("login_text","登入");
$smarty->assign("username","");
$smarty->assign("login_status",0);
}else{
$smarty->assign("login", "logout");
$smarty->assign("login_text","登出");
$smarty->assign("username",$username);
$smarty->assign("login_status",1);
}
*/
$postback = isset($_POST["postback"]);
if ($postback)
{
$_SESSION["test_email"] = $_POST["test_email"];
$smarty->display("normtest.html");
}
else{
$smarty->display("pre_test_page.html");
}
?>