Хранилища Subversion kbase

Редакция

Редакция 23 | Редакция 27 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 23 Редакция 24
Строка 18... Строка 18...
18
18
19
                $ID = $auth->getUserID($_SESSION["sign"], $_SESSION["hash"]);
19
                $ID = $auth->getUserID($_SESSION["sign"], $_SESSION["hash"]);
20
                if ($ID===0) {
20
                if ($ID===0) {
21
                        $return  = "<div id='yousign'><a href='sign.php?action=signup'>"._("Signup")."</a>";
21
                        $return  = "<div id='yousign'><a href='sign.php?action=signup'>"._("Signup")."</a>";
22
                        $return .= "&bull; <form action='process.php' method='post'>";
22
                        $return .= "&bull; <form action='process.php' method='post'>";
-
 
23
                        $return .= "<input type='hidden' name='action' value='signin'>";
23
                        $return .= _("Login:")." <input type='text' name='login'> ";
24
                        $return .= _("E-mail:")." <input type='text' name='login'> ";
24
                        $return .= _("Password:")." <input type='password' name='passwd'>";
25
                        $return .= _("Password:")." <input type='password' name='passwd'>";
25
                        $return .= "<input type='submit' value='"._("Enter")."'></form></div>";
26
                        $return .= "<input type='submit' value='"._("Enter")."'></form></div>";
26
                } else {
27
                } else {
27
                        $member = $auth->getUserInfo($ID);
28
                        $member = $auth->getUserInfo($ID);
28
                        $return  = "<div id='yousign'>".$member["RealName"]." [<a href='sign.php?action=exit'>"._("Exit")."</a>]</div>";
29
                        $return  = "<div id='yousign'>".$member["RealName"]." [<a href='sign.php?action=exit'>"._("Exit")."</a>]</div>";
29
                }
30
                }
30
                return $return;
31
                return $return;
31
        }
32
        }
-
 
33
-
 
34
        function showSignupForm() {
-
 
35
                $return  = "<form action='process.php' method='post'>";
-
 
36
                $return .= "<fieldset><input type='hidden' name='action' value='signup'>";
-
 
37
                $return .= _("E-mail:")." <input type='text' name='login'><br>";
-
 
38
                $return .= _("Password:")." <input type='password' name='passwd'><br>";
-
 
39
                $return .= _("Password (again):")." <input type='password' name='passwdag'><br>";
-
 
40
                $return .= _("Real name:")." <input type='text' name='realname'><br>";
-
 
41
                $return .= "<input type='submit' value='"._("Register")."'></fieldset></form>";
-
 
42
-
 
43
                return $return;
-
 
44
        }
32
}
45
}
33
46
34
?>
47
?>