# HG changeset patch # User meillo@marmaro.de # Date 1180224826 -7200 # Node ID 144bc36a6c275bcf26a2cd3952a9bbee48a10e5c # Parent eb5bff360debc4d4513d7585d8733439f7df59f9 moved login form from nav to top of content added last modified date diff -r eb5bff360deb -r 144bc36a6c27 Includes/Nav.inc.php --- a/Includes/Nav.inc.php Thu Dec 14 21:51:44 2006 +0100 +++ b/Includes/Nav.inc.php Sun May 27 02:13:46 2007 +0200 @@ -72,21 +72,6 @@ ?> -
  • -loggedIn()) { - echo ' logout'; - } else { -?> -
    - - - -
    - -
  • diff -r eb5bff360deb -r 144bc36a6c27 Owls.css.php --- a/Owls.css.php Thu Dec 14 21:51:44 2006 +0100 +++ b/Owls.css.php Sun May 27 02:13:46 2007 +0200 @@ -23,7 +23,7 @@ $c_NavHover = $c_LinkHover; $c_NavSelected = '#eee'; - $c_Login = $c_Nav; + $c_Login = $c_LinkVisited; $c_Admin = '#ffff80'; @@ -173,18 +173,12 @@ /* login */ -li#login { - margin-top: 3em; -} -#login input { - color: ; +#loginform input { background-color: transparent; border: none; - border-left: 1px solid; /* TODO: think about other color */ - display: block; + border-bottom: 1px solid; /* TODO: think about other color */ font-size: 0.8em; - margin-bottom: 2px; - padding-left: 4px; + width: 8em; } @@ -196,6 +190,7 @@ .ctrl { text-align: right; font-size: 0.8em; + color: ; } .ctrl a, .ctrl a:visited, diff -r eb5bff360deb -r 144bc36a6c27 Owls.php --- a/Owls.php Thu Dec 14 21:51:44 2006 +0100 +++ b/Owls.php Sun May 27 02:13:46 2007 +0200 @@ -3,7 +3,7 @@ define('DB_PREFIX', 'rem__1_'); define('TITLE', 'Owls'); - require_once '../Db.inc.php'; + require_once '../../Db.inc.php'; require_once 'Includes/Loginsys.class.php'; include_once 'Includes/Bbcodeparser.inc.php'; @@ -72,9 +72,6 @@ loggedIn()) { $_POST['editDoc_title'] = addslashes($_POST['editDoc_title']); @@ -149,6 +144,8 @@ include 'Includes/Nav.inc.php'; + + // query data of the node $result = mysql_query("select * from ". DB_PREFIX ."Owls where id=$_GET[id]"); @@ -179,20 +176,64 @@ $row = mysql_fetch_array($result); echo '
    '."\n"; - // display admin controls if logged in + // display admin controls or login form +?> +
    + + + + last update: + + +loggedIn()) { ?> -
    new edit delete'; } + echo ' logout'; + } else { +?> +
    + + + +
    +
    '.stripslashes($row['name']).''."\n";