Update of /cvsroot/usebook/UseBook/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5984/admin
Modified Files:
admin.php
Log Message:
A bit of everything.
Index: admin.php
===================================================================
RCS file: /cvsroot/usebook/UseBook/admin/admin.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** admin.php 28 Jul 2005 10:20:04 -0000 1.2
--- admin.php 21 Aug 2005 11:16:48 -0000 1.3
***************
*** 1,4 ****
<?php
-
/*
Copyright (C) 2005 UseBook Team
--- 1,3 ----
***************
*** 38,44 ****
//
! // Admin
//
! $template->parse('msgbox', 'global', array('box_title' => $lang['Error'], 'content' => $lang['NotFinished']) );
//
--- 37,61 ----
//
! // Login
//
! if( !empty($_POST['username']) && !empty($_POST['password']) ) {
! if ( $admin->login($_POST['username'],md5($_POST['password'])) )
! $template->parse('msgbox', 'global', array('box_title' => $lang['Admin'], 'content' => $lang['LoginTrue']) );
! else
! $template->parse('msgbox', 'global', array('box_title' => $lang['Admin'], 'content' => $lang['LoginFalse']) );
! }
! else {
! //
! // Admin
! //
! if ( !$admin->login ) {
! $template->parse('admin_login', 'admin', array(
! 'location' => 'admin.php',
! 'username' => '<input type="text" name="username" size="25" maxlength="255" value=""/>',
! 'password' => '<input type="password" name="password" size="25" maxlength="255" value=""/>'
! ) );
! } else
! $template->parse('msgbox', 'global', array('box_title' => $lang['Admin'], 'content' => $lang['AllreadyLoged']) );
! }
//
|