Initial commit

This commit is contained in:
Péntek Sándor
2016-06-18 10:07:35 +02:00
commit 41c686945a
398 changed files with 36832 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
echo "<ul>";
echo "<li><a href='".get_profile_link()."'>$user[userName]$_locale[s_profile]</a></li>";
if ($user['userLevel'] > 1) echo "<li><a href='".get_site_link()."/admin'>$_locale[admin]</a></li>";
if ($user['userLevel'] > 2) echo "<li><a href='".get_site_link()."/admin/entry'>$_locale[new_entry]</a></li>";
echo "<li><a href='?logout'>$_locale[logout]</a></li>";
echo "</ul>";

View File

@ -0,0 +1,29 @@
<?php
if (LOGGEDIN) :
echo "<li>";
echo "<h2>$user[userName]</h2>";
echo "<a href='".get_profile_link()."'><img src='".get_profile_picture()."' alt='' style='width: 120px' /></a>";
include 'includes/sidebar/account.php';
echo "</li>";
else :
?>
<li>
<h2><?=$_locale['login']?></h2>
<form action="<?=get_current_link()?>" method="post" name="login-form">
<input type="text" name="login_name" value="" placeholder="<?=$_locale['username']?>" />
<input type="password" name="login_pass" value="" placeholder="<?=$_locale['password']?>" />
<button type="submit"><?=$_locale['login']?></button>
</form>
</li>
<?php endif;
echo "<li><h2>$_locale[tags]</h2><ul class='tags'>";
get_tags();
echo "</ul></li>";
?>