|
Revision 7, 1.7 kB
(checked in by sven, 3 years ago)
|
snapshot of elgg 0.1.2a
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
global $page_owner; |
|---|
| 4 |
$url = url; |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
$run_result .= "<div class=\"box_user\">"; |
|---|
| 8 |
if ($page_owner != -1) { |
|---|
| 9 |
|
|---|
| 10 |
if ($page_owner != $_SESSION['userid']) { |
|---|
| 11 |
$run_result .= run("users:infobox", array("Profile Owner",array($page_owner))); |
|---|
| 12 |
} else { |
|---|
| 13 |
$run_result .= run("users:infobox", array("You",array($page_owner))); |
|---|
| 14 |
} |
|---|
| 15 |
} |
|---|
| 16 |
$run_result .= "</div>"; |
|---|
| 17 |
|
|---|
| 18 |
if ((!defined("logged_on") || logged_on == 0) && $page_owner == -1) { |
|---|
| 19 |
|
|---|
| 20 |
$body = <<< END |
|---|
| 21 |
|
|---|
| 22 |
<form action="{$url}_users/action_redirection.php" method="post"> |
|---|
| 23 |
END; |
|---|
| 24 |
$body .= run("templates:draw",array( |
|---|
| 25 |
'template' => -1, |
|---|
| 26 |
'context' => 'infobox', |
|---|
| 27 |
'name' => 'Log On', |
|---|
| 28 |
'contents' => " |
|---|
| 29 |
<table> |
|---|
| 30 |
<tr> |
|---|
| 31 |
<td align=\"right\"> |
|---|
| 32 |
<label>Username <input type=\"text\" name=\"username\" id=\"username\" style=\"size: 200px\" /> |
|---|
| 33 |
</label> |
|---|
| 34 |
</td> |
|---|
| 35 |
</tr> |
|---|
| 36 |
<tr> |
|---|
| 37 |
<td align=\"right\"> |
|---|
| 38 |
<label>Password <input type=\"password\" name=\"password\" id=\"password\" style=\"size: 200px\" /> |
|---|
| 39 |
</label> |
|---|
| 40 |
</td> |
|---|
| 41 |
</tr> |
|---|
| 42 |
<tr> |
|---|
| 43 |
<td align=\"right\"> |
|---|
| 44 |
<input type=\"hidden\" name=\"action\" value=\"log_on\" /> |
|---|
| 45 |
<label>Log on: <input type=\"submit\" name=\"submit\" value=\"Go\" /></label><br /> |
|---|
| 46 |
<small> |
|---|
| 47 |
<a href=\"{$url}_invite/register.php\">Register</a> | |
|---|
| 48 |
<a href=\"{$url}_invite/forgotten_password.php\">Forgotten password</a> |
|---|
| 49 |
</small> |
|---|
| 50 |
</td> |
|---|
| 51 |
</tr> |
|---|
| 52 |
|
|---|
| 53 |
</table> |
|---|
| 54 |
|
|---|
| 55 |
" |
|---|
| 56 |
) |
|---|
| 57 |
); |
|---|
| 58 |
$body .= "</form>"; |
|---|
| 59 |
|
|---|
| 60 |
$run_result .= $body; |
|---|
| 61 |
|
|---|
| 62 |
} |
|---|
| 63 |
|
|---|
| 64 |
?> |
|---|
| 65 |
|
|---|