[phpMP-CVS] CVS: phpMP/admin main.php,1.1,1.2
Status: Pre-Alpha
Brought to you by:
heimidal
From: Anthony W. <ant...@us...> - 2003-02-09 16:00:33
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv28973/admin Modified Files: main.php Log Message: Made changes to the way the panel is handled - now uses a class file to power itself (includes/admin.php) Index: main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** main.php 8 Feb 2003 18:05:23 -0000 1.1 --- main.php 9 Feb 2003 16:00:29 -0000 1.2 *************** *** 1,9 **** <?php define( C_PHPMP_ROOT, '../' ); - // Define action variables - define( P_ACTION_GENERAL, 1 ); - include_once( C_PHPMP_ROOT . 'includes/core.php' ); --- 1,8 ---- <?php + // Action definitions + define( C_ACTION_GENERAL, 1 ); define( C_PHPMP_ROOT, '../' ); include_once( C_PHPMP_ROOT . 'includes/core.php' ); *************** *** 13,33 **** // 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; } ! ?> \ No newline at end of file --- 12,33 ---- // Main administration file - just shows site stats, etc... ! ! include_once( C_PHPMP_ROOT . 'includes/admin.php' ); ! $admin = new Admin(); ! ! if (!$parse) ! { ! $admin->execute($action); ! } ! else { ! switch ($parse) ! { ! case C_ACTION_GENERAL: ! $admin->parse_general($sname); ! break; ! default: break; ! } } ! ?> |