-
Notifications
You must be signed in to change notification settings - Fork 64
/
login.php
45 lines (45 loc) · 1.35 KB
/
login.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
40
41
42
43
44
45
<?php
/**
* ClickHeat : formulaire de connexion / Login form
*
* @author Yvan Taviaud - Dugwood - www.dugwood.com
* @since 03/01/2007
*/
/* Direct call forbidden */
if (!defined('CLICKHEAT_LANGUAGE'))
{
exit;
}
?>
<div class="float-right">
<a href="https://www.dugwood.<?php echo CLICKHEAT_LANGUAGE === 'fr' ? 'fr' : 'com' ?>/clickheat/index.html"><img src="<?php echo CLICKHEAT_PATH ?>images/logo170.png" alt="ClickHeat"/></a><br/>
<span class="flags">
<?php
foreach ($__languages as $lang)
{
echo '<a href="', CLICKHEAT_INDEX_PATH, 'language=', $lang, '"><img src="', CLICKHEAT_PATH, 'images/flags/', $lang, '.png" alt="', $lang, '" /></a> ';
}
?>
</span>
</div>
<div id="clickheat-box">
<h1><?php echo LANG_LOGIN ?></h1>
<br />
<form action="<?php echo CLICKHEAT_INDEX_PATH ?>action=view" method="post">
<table cellpadding="0" cellspacing="5" border="0">
<tr><td><?php echo LANG_USER ?></td><td><input type="text" name="login" size="15" /></td></tr>
<tr><td><?php echo LANG_PASSWORD ?></td><td><input type="password" name="pass" size="15" /></td></tr>
<tr>
<td colspan="2" class="center">
<input type="submit" value="<?php echo LANG_LOGIN ?>" />
<?php
if (isset($_POST['login']))
{
echo '<br /><br /><span class="error">', LANG_LOGIN_ERROR, '</span>';
}
?>
</td>
</tr>
</table>
</form>
</div>