Update of /cvsroot/phpmp/phpMP/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv15927/admin
Modified Files:
main.php nav.php
Log Message:
Minor changes - got rid of an if statement in main.php and change a link's text in nav.php
Index: main.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** main.php 9 Feb 2003 16:00:29 -0000 1.2
--- main.php 9 Feb 2003 19:22:17 -0000 1.3
***************
*** 1,5 ****
<?php
// Action definitions
! define( C_ACTION_GENERAL, 1 );
define( C_PHPMP_ROOT, '../' );
--- 1,6 ----
<?php
// Action definitions
! define( C_ACTION_NONE, 0 );
! define( C_ACTION_SITE, 1 );
define( C_PHPMP_ROOT, '../' );
***************
*** 16,32 ****
$admin = new Admin();
! if (!$parse)
{
! $admin->execute($action);
! }
! else
! {
! switch ($parse)
! {
! case C_ACTION_GENERAL:
! $admin->parse_general($sname);
! break;
! default: break;
! }
}
--- 17,28 ----
$admin = new Admin();
! switch ($parse)
{
! case C_ACTION_SITE:
! $admin->parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms);
! break;
! default: // $parse is not supplied, so execute $action instead
! if ($action != C_ACTION_NONE) { $admin->execute($action); }
! break;
}
Index: nav.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/admin/nav.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** nav.php 8 Feb 2003 18:05:23 -0000 1.2
--- nav.php 9 Feb 2003 19:22:17 -0000 1.3
***************
*** 20,24 ****
print "<base target=\"cont\">\n";
! print "<a href=\"main.php?action=1\">General Management</a>";
! ?>
\ No newline at end of file
--- 20,24 ----
print "<base target=\"cont\">\n";
! print "<a href=\"main.php?action=1\">Site Configuration</a>";
! ?>
|