[phpMP-CVS] CVS: phpMP/admin main.php,NONE,1.1 index.php,1.4,1.5 nav.php,1.1,1.2
Status: Pre-Alpha
Brought to you by:
heimidal
From: Anthony W. <ant...@us...> - 2003-02-08 18:05:26
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv6306/admin Modified Files: index.php nav.php Added Files: main.php Log Message: Basic admin panel (doesnt really do anything yet, just a shell for now) --- NEW FILE: main.php --- <?php define( C_PHPMP_ROOT, '../' ); // Define action variables define( P_ACTION_GENERAL, 1 ); include_once( C_PHPMP_ROOT . 'includes/core.php' ); $Core = new Core(); $Core->init(); // Main administration file - just shows site stats, etc... switch ($action) { case P_ACTION_GENERAL: // Print out configuration variables // Should really be showing a form, but for now this is good enough // Just here to build the default format for the panel itself print "Site Address: " . C_SITE_ADDR . "<br>"; print "Relative Path: " . C_REL_PATH . "<br>"; print "Default Template: " . C_DEFAULT_TPL . "<br>"; print "Site Name: " . C_SITE_NAME . "<br>"; print "Default Language: " . C_DEFAULT_LANG . "<br>"; print "Default Date Format: " . C_DEFAULT_DATE_FORMAT . "<br>"; print "System Timezone: " . C_SYSTEM_TIMEZONE . "<br>"; print "Current Version: " . C_VERSION . "<br>"; break; default: break; } ?> Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** index.php 8 Feb 2003 17:20:39 -0000 1.4 --- index.php 8 Feb 2003 18:05:22 -0000 1.5 *************** *** 18,24 **** // Create the frameset navigation ! print "<frameset cols=\"150, *\">"; ! print "<frame name=\"nav\" src=\"" . C_PHPMP_ROOT . "admin/nav.php\">"; ! print "<frame name=\"cont\" src=\"\">"; print "</frameset>"; --- 18,24 ---- // Create the frameset navigation ! print "<frameset cols=\"150,*\">"; ! print "<frame name=\"nav\" src=\"nav.php\">"; ! print "<frame name=\"cont\" src=\"main.php\">"; print "</frameset>"; Index: nav.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/nav.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** nav.php 8 Feb 2003 17:20:39 -0000 1.1 --- nav.php 8 Feb 2003 18:05:23 -0000 1.2 *************** *** 20,24 **** print "<base target=\"cont\">\n"; ! print "Navigation File"; ?> --- 20,24 ---- print "<base target=\"cont\">\n"; ! print "<a href=\"main.php?action=1\">General Management</a>"; ?> |