Update of /cvsroot/openbash-org/openbash-org/pages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1613/pages
Modified Files:
admin.php admin_close.php footer.php
Added Files:
admin_logon.php
Log Message:
cambiado sistema de validacion por uno que funciona xD; arreglada la guarrada del dbconnect en el config.php: cambiado a los constructores; aplicada cache a consultas repetitivas que no van a tener cambios casi nunca; arreglado algun bug que otro; ...
--- NEW FILE: admin_logon.php ---
<?php
$view = new View();
$view->ask_login();
?>
Index: admin_close.php
===================================================================
RCS file: /cvsroot/openbash-org/openbash-org/pages/admin_close.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** admin_close.php 25 Nov 2004 14:31:45 -0000 1.3
--- admin_close.php 26 Dec 2004 22:57:19 -0000 1.4
***************
*** 1,7 ****
<?php
! $validate = new validate();
! if ($validate->do_validate()) { session_destroy(); }
! //$view = new view();
! //$view->ask_login();
?>
- <!--<meta http-equiv="refresh" content="0;index.php">-->
--- 1,5 ----
<?php
! session_start();
! session_unset();
! session_destroy();
?>
Index: admin.php
===================================================================
RCS file: /cvsroot/openbash-org/openbash-org/pages/admin.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** admin.php 25 Nov 2004 14:31:45 -0000 1.7
--- admin.php 26 Dec 2004 22:57:19 -0000 1.8
***************
*** 2,28 ****
include ("modules/View.php");
include ("modules/Validate.php");
! $validate = new validate();
! if ($validate->do_validate()) {
/*
! * The user is logged in
*/
if (isset($_GET['a_opt'])) { ?>
<h1><?=$admin['title']?></h1><?
switch ($_GET['a_opt']) {
- case 'quotes': $admin_page = 'quotes'; break;
case 'news' : $admin_page = 'news'; break;
case 'users' : $admin_page = 'users'; break;
case 'close' : $admin_page = 'close'; break;
! default : $admin_page = 'general';break;
}
} else {
! $admin_page = 'general';
}
! include ("pages/admin_header.php");
! include ('pages/admin_'.$admin_page.'.php');
! }
?>
--- 2,29 ----
include ("modules/View.php");
include ("modules/Validate.php");
! $validate_object = new Validate();
! if ($validate_object->check_logged() == 1) {
/*
! * The user is logged in so we can show the header
*/
+ include ("pages/admin_header.php");
if (isset($_GET['a_opt'])) { ?>
<h1><?=$admin['title']?></h1><?
switch ($_GET['a_opt']) {
case 'news' : $admin_page = 'news'; break;
case 'users' : $admin_page = 'users'; break;
case 'close' : $admin_page = 'close'; break;
! default : $admin_page = 'quotes';break;
}
} else {
! $admin_page = 'quotes';
}
! } else {
! $admin_page = 'logon';
! }
+ include ('pages/admin_'.$admin_page.'.php');
?>
Index: footer.php
===================================================================
RCS file: /cvsroot/openbash-org/openbash-org/pages/footer.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** footer.php 18 Nov 2004 12:27:10 -0000 1.12
--- footer.php 26 Dec 2004 22:57:19 -0000 1.13
***************
*** 9,20 ****
<p style="float:left">
! <a href="http://validator.w3.org/check/referer"><img
! src="images/valid-xhtml11.png"
! alt="Valid XHTML 1.1!" height="31" width="88" style="border:none" /></a>
</p>
<p style="float:left">
! <a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px"
! src="images/vcss.gif"
! alt="Valid CSS!" /></a>
</p>
<p>
--- 9,18 ----
<p style="float:left">
! <a href="http://validator.w3.org/check/referer">
! <img src="images/valid-xhtml11l.png" alt="Valid XHTML 1.1!" style="border:none" /></a>
</p>
<p style="float:left">
! <a href="http://jigsaw.w3.org/css-validator/">
! <img style="border:0" src="images/valid-css.png" alt="Valid CSS!" /></a>
</p>
<p>
|