1
|
<?
|
2
|
@$spojeni = Pg_Connect ("user=vautor dbname=klinopis");
|
3
|
if (! $spojeni)
|
4
|
{
|
5
|
echo ("Nepodařilo se připojit k databázi!<BR>\n");
|
6
|
exit;
|
7
|
}
|
8
|
$msg = Pg_Exec ($spojeni, "SELECT autor, menu FROM c_autor WHERE kod='$autor'");
|
9
|
if (! Pg_NumRows ($msg) )
|
10
|
{
|
11
|
@$res = Pg_Exec ($spojeni, "INSERT INTO BadEntry (datum, ip, host, popis) VALUES ('".Date ("Y-m-d H:i:s")."', '$REMOTE_ADDR', '$REMOTE_HOST', 'Vstup neznameho autora do MENU.php3')");
|
12
|
|
13
|
Pg_Close ($spojeni);
|
14
|
Header ("Location: ./enter.html");
|
15
|
exit;
|
16
|
}
|
17
|
else
|
18
|
List ($jmeno, $menu) = Pg_Fetch_Row ($msg, 0);
|
19
|
Pg_Close ($spojeni);
|
20
|
?>
|
21
|
<html>
|
22
|
<head>
|
23
|
<META content=text/html; http-equiv=Content-Type>
|
24
|
<title>Editorial system - klinopis.cz</title>
|
25
|
</head>
|
26
|
|
27
|
<BODY bgcolor="#FFFFFF" text="#000000">
|
28
|
<h2><center>
|
29
|
<FONT FACE="Verdana, Arial" color=#3399ff>Welcome to the editorial system of www.klinopis.cz</center></font></h2>
|
30
|
<?
|
31
|
echo ("<p><SMALL>You are successfully logged in, your name is: $jmeno</SMALL></p>");
|
32
|
?>
|
33
|
<hr>
|
34
|
<fieldset>
|
35
|
<form>
|
36
|
<BR>
|
37
|
<INPUT TYPE="Button" VALUE="Bring me back" onClick="history.go(-2)">
|
38
|
</form>
|
39
|
</fieldset>
|
40
|
<hr>
|
41
|
<fieldset>
|
42
|
<form action="../index.html">
|
43
|
<br>
|
44
|
<input type=submit value="Sign off">
|
45
|
</form>
|
46
|
</fieldset>
|
47
|
<!-- <script language="Javascript"> if (top.location == self.location) { top.location = 'index.html' } </script> //-->
|
48
|
</body>
|
49
|
</html>
|