[phpMP-CVS] CVS: phpMP/admin index.php,1.7,1.8 main.php,1.6,1.7 nav.php,1.5,1.6
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2003-06-29 08:19:57
|
Update of /cvsroot/phpmp/phpMP/admin In directory sc8-pr-cvs1:/tmp/cvs-serv26138/admin Modified Files: index.php main.php nav.php Log Message: Stupid line breaks. Why can't Windows and Mac standardize? Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** index.php 17 May 2003 07:50:16 -0000 1.7 --- index.php 29 Jun 2003 08:19:55 -0000 1.8 *************** *** 1,47 **** ! <?php ! ! /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! define( C_PHPMP_ROOT, '../' ); ! ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! ! $Core = new Core(); ! ! $Core->init(); ! ! /******* Commented for Testing ******* ! if (U_AUTH_LEVEL != AUTH_LVL_ADMIN) ! { ! exit; ! end; ! } ! **************************************/ ! ! // Create the frameset navigation ! print "<frameset cols=\"150,*\">"; ! print "<frame name=\"nav\" src=\"nav.php\">"; ! print "<frame name=\"cont\" src=\"main.php\">"; ! print "</frameset>"; ! ! ?> --- 1,47 ---- ! <?php ! ! /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! define( C_PHPMP_ROOT, '../' ); ! ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! ! $Core = new Core(); ! ! $Core->init(); ! ! /******* Commented for Testing ******* ! if (U_AUTH_LEVEL != AUTH_LVL_ADMIN) ! { ! exit; ! end; ! } ! **************************************/ ! ! // 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: main.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/admin/main.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** main.php 17 May 2003 07:50:17 -0000 1.6 --- main.php 29 Jun 2003 08:19:55 -0000 1.7 *************** *** 1,63 **** ! <?php ! ! /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! // Action definitions ! define( C_ACTION_NONE, 0 ); ! define( C_ACTION_SITE, 1 ); ! define( C_ACTION_USER, 2 ); ! define( C_PARSE_USER, 3 ); ! ! define( C_PHPMP_ROOT, '../' ); ! ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! ! $Core = new Core(); ! ! $Core->init(); ! ! // Main administration file - just shows site stats, etc... ! ! include_once( C_PHPMP_ROOT . 'includes/admin.php' ); ! $admin = new Admin(); ! ! switch ($parse) ! { ! case C_ACTION_SITE: ! if (!$submit_general) { return; } ! $admin->parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms); ! break; ! case C_ACTION_USER: ! if (!$submit_user) { return; } ! $admin->show_user($userid); ! break; ! case C_PARSE_USER: ! if (!$submit_user_parse) { return; } ! $admin->parse_user($userid, $username, $passwd, $email, $auth_level, $date_format, $template, $signature, $delete); ! break; ! default: // $parse is not supplied, so execute $action instead ! if ($action != C_ACTION_NONE) { $admin->execute($action); } ! break; ! } ! ! ?> --- 1,63 ---- ! <?php ! ! /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! // Action definitions ! define( C_ACTION_NONE, 0 ); ! define( C_ACTION_SITE, 1 ); ! define( C_ACTION_USER, 2 ); ! define( C_PARSE_USER, 3 ); ! ! define( C_PHPMP_ROOT, '../' ); ! ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! ! $Core = new Core(); ! ! $Core->init(); ! ! // Main administration file - just shows site stats, etc... ! ! include_once( C_PHPMP_ROOT . 'includes/admin.php' ); ! $admin = new Admin(); ! ! switch ($parse) ! { ! case C_ACTION_SITE: ! if (!$submit_general) { return; } ! $admin->parse_site($sname, $ovrtpl, $deftpl, $deflang, $defdate, $accact, $systime, $portperms); ! break; ! case C_ACTION_USER: ! if (!$submit_user) { return; } ! $admin->show_user($userid); ! break; ! case C_PARSE_USER: ! if (!$submit_user_parse) { return; } ! $admin->parse_user($userid, $username, $passwd, $email, $auth_level, $date_format, $template, $signature, $delete); ! 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.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** nav.php 17 May 2003 07:50:17 -0000 1.5 --- nav.php 29 Jun 2003 08:19:55 -0000 1.6 *************** *** 1,47 **** ! <?php ! ! /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! // Basic Navigation (not very pretty, just a throw-together for testing ! ! define( C_PHPMP_ROOT, '../' ); ! ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! ! $Core = new Core(); ! ! $Core->init(); ! ! /******* Comented for Testing ******* ! if (U_AUTH_LEVEL != AUTH_LVL_ADMIN) ! { ! exit; ! end; ! } ! *************************************/ ! ! print "<base target=\"cont\">\n"; ! print "<a href=\"main.php?action=1\">Site Configuration</a><br>"; ! print "<a href=\"main.php?action=2\">User Management</a>"; ! ! ?> --- 1,47 ---- ! <?php ! ! /* ! * phpMP - The PHP Modular Portal System ! * Copyright (C) 2002-2003 Brian Rose and the phpMP group ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. ! * ! * You should have received a copy of the GNU General Public License ! * along with this program; if not, write to the Free Software ! * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ! * ! * $Id$ ! * ! */ ! ! // Basic Navigation (not very pretty, just a throw-together for testing ! ! define( C_PHPMP_ROOT, '../' ); ! ! include_once( C_PHPMP_ROOT . 'includes/core.php' ); ! ! $Core = new Core(); ! ! $Core->init(); ! ! /******* Comented for Testing ******* ! if (U_AUTH_LEVEL != AUTH_LVL_ADMIN) ! { ! exit; ! end; ! } ! *************************************/ ! ! print "<base target=\"cont\">\n"; ! print "<a href=\"main.php?action=1\">Site Configuration</a><br>"; ! print "<a href=\"main.php?action=2\">User Management</a>"; ! ! ?> |