|
Revision 85, 1.6 kB
(checked in by sven, 3 years ago)
|
fixed some html and some whitespace. more defaulting to default icon.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
global $page_owner; |
|---|
| 4 |
$url = url; |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
if ($page_owner != -1) { |
|---|
| 8 |
$run_result .= run("profile:user:info"); |
|---|
| 9 |
} |
|---|
| 10 |
|
|---|
| 11 |
if ((!defined("logged_on") || logged_on == 0) && $page_owner == -1) { |
|---|
| 12 |
|
|---|
| 13 |
$body = <<< END |
|---|
| 14 |
<li> |
|---|
| 15 |
<form action="{$url}_users/action_redirection.php" method="post"> |
|---|
| 16 |
END; |
|---|
| 17 |
|
|---|
| 18 |
if (public_reg == true) { |
|---|
| 19 |
$reg_link = '<a href="' . $url . '_invite/register.php">'. gettext("Register") .'</a> |'; |
|---|
| 20 |
} else { |
|---|
| 21 |
$reg_link = ""; |
|---|
| 22 |
} |
|---|
| 23 |
|
|---|
| 24 |
$body .= run("templates:draw",array( |
|---|
| 25 |
'template' => -1, |
|---|
| 26 |
'context' => 'sidebarholder', |
|---|
| 27 |
'title' => gettext("Log On"), |
|---|
| 28 |
'submenu' => '', |
|---|
| 29 |
'body' => ' |
|---|
| 30 |
<table> |
|---|
| 31 |
<tr> |
|---|
| 32 |
<td align="right"><p> |
|---|
| 33 |
<label>' . gettext("Username") . ' <input type="text" name="username" id="username" style="size: 200px" /></label><br /> |
|---|
| 34 |
<label>' . gettext("Password") . ' <input type="password" name="password" id="password" style="size: 200px" /> |
|---|
| 35 |
</label></p> |
|---|
| 36 |
</td> |
|---|
| 37 |
</tr> |
|---|
| 38 |
<tr> |
|---|
| 39 |
<td align="right"><p> |
|---|
| 40 |
<input type="hidden" name="action" value="log_on" /> |
|---|
| 41 |
<label>' . gettext("Log on") . ':<input type="submit" name="submit" value="'.gettext("Go").'" /></label><br /><br /> |
|---|
| 42 |
<label><input type="checkbox" name="remember" checked="checked" /> |
|---|
| 43 |
' . gettext("Remember Login") . '</label><br /> |
|---|
| 44 |
<small> |
|---|
| 45 |
' . $reg_link . ' |
|---|
| 46 |
<a href="' . $url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a> |
|---|
| 47 |
</small></p> |
|---|
| 48 |
</td> |
|---|
| 49 |
</tr> |
|---|
| 50 |
|
|---|
| 51 |
</table> |
|---|
| 52 |
|
|---|
| 53 |
' |
|---|
| 54 |
) |
|---|
| 55 |
); |
|---|
| 56 |
$body .= "</form></li>"; |
|---|
| 57 |
|
|---|
| 58 |
$run_result .= $body; |
|---|
| 59 |
|
|---|
| 60 |
} |
|---|
| 61 |
|
|---|
| 62 |
?> |
|---|
| 63 |
|
|---|