[phpMP-CVS] CVS: phpMP config.php,1.4,1.5 index.php,1.45,1.46 modules.php,1.17,1.18
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2003-06-29 08:19:57
|
Update of /cvsroot/phpmp/phpMP In directory sc8-pr-cvs1:/tmp/cvs-serv26138 Modified Files: config.php index.php modules.php Log Message: Stupid line breaks. Why can't Windows and Mac standardize? Index: config.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/config.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** config.php 29 Jun 2003 05:53:24 -0000 1.4 --- config.php 29 Jun 2003 08:19:54 -0000 1.5 *************** *** 1,18 **** - <?php - - ## DO NOT ALTER THIS FILE. - ## This file is automatically generated - ## by the phpMP install script. Do not - ## alter this file if you don't know - ## what you're doing. - - define( "PHPMP_INSTALLED", TRUE ); - - define( "DB_TYPE", "mysql" ); - define( "DB_HOST", "localhost" ); - define( "DB_NAME", "phpmp" ); - define( "DB_TABLE_PREFIX", "phpmp_" ); - define( "DB_USER", "root" ); - define( "DB_PASSWD", "fl1ntflar3" ); - - ?> \ No newline at end of file --- 0 ---- Index: index.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/index.php,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -r1.45 -r1.46 *** index.php 29 Jun 2003 05:53:24 -0000 1.45 --- index.php 29 Jun 2003 08:19:54 -0000 1.46 *************** *** 1,54 **** ! <?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("PHPMP_ROOT", "./"); ! include_once( PHPMP_ROOT . 'includes/core.php' ); ! $Core = new Core(); ! ! global $Template; ! ! $Template->assign_vars( array( ! 'C_SITE_NAME' => $Config->get('site_name'), ! 'C_SITE_ADDRESS' => $Config->get('site_domain') . $Config->get('rel_path'), ! 'C_VERSION' => $Config->get('version'), ! 'C_REL_PATH' => $Config->get('rel_path'), ! 'C_TEMPLATE' => $Config->get('template'), ! 'U_USERNAME' => $User->get('user_name') ! ) ); ! ! $Template->set_filenames( array( ! 'header' => 'header.html', ! 'left_column' => 'left_column.html', ! 'body' => 'index.html', ! 'right_column' => 'right_column.html', ! 'footer' => 'footer.html' ! ) ); ! ! $Template->display('header'); ! $Template->display('left_column'); ! $Template->display('body'); ! $Template->display('right_column'); ! $Template->display('footer'); ! ?> --- 1,54 ---- ! <?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("PHPMP_ROOT", "./"); ! include_once( PHPMP_ROOT . 'includes/core.php' ); ! $Core = new Core(); ! ! global $Template; ! ! $Template->assign_vars( array( ! 'C_SITE_NAME' => $Config->get('site_name'), ! 'C_SITE_ADDRESS' => $Config->get('site_domain') . $Config->get('rel_path'), ! 'C_VERSION' => $Config->get('version'), ! 'C_REL_PATH' => $Config->get('rel_path'), ! 'C_TEMPLATE' => $Config->get('template'), ! 'U_USERNAME' => $User->get('user_name') ! ) ); ! ! $Template->set_filenames( array( ! 'header' => 'header.html', ! 'left_column' => 'left_column.html', ! 'body' => 'index.html', ! 'right_column' => 'right_column.html', ! 'footer' => 'footer.html' ! ) ); ! ! $Template->display('header'); ! $Template->display('left_column'); ! $Template->display('body'); ! $Template->display('right_column'); ! $Template->display('footer'); ! ?> Index: modules.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/modules.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** modules.php 19 May 2003 23:39:59 -0000 1.17 --- modules.php 29 Jun 2003 08:19:54 -0000 1.18 *************** *** 1,72 **** ! <?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$ ! * ! */ ! ! // Module handler. ! class Module ! { ! ! // The following two functions manage module variables, allowing the ! // module author to easily maintain variable data from point to point. ! // All modules, in order to meet compliance, should fully utilize these ! // functions. ! function setVar($varkey, $varval = false) ! { ! if(is_array( $varkey )) ! { ! foreach( $userkey as $key => $val ) ! { ! if( preg_match('/[^a-z][a-z0-9_-]/', $key) ) ! { ! $this->_keydata[$key] = $val; ! } ! } ! } ! elseif( (!empty($varkey)) && (preg_match('/[^a-z][a-z0-9_-]/', $varkey)) && (!empty($varval)) ) ! { ! $this->_data[$userkey] = $userval; ! return true; ! } ! else ! { ! return false; ! } ! } ! ! function getVar($varkey) ! { ! if( !empty($this->_data[$varkey]) ) ! { ! return $this->_data[$varkey]; ! } ! else ! { ! return false; ! } ! } ! ! function loadHook( $hookname, $hookjob ) ! { ! } ! } ?> --- 1,72 ---- ! <?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$ ! * ! */ ! ! // Module handler. ! class Module ! { ! ! // The following two functions manage module variables, allowing the ! // module author to easily maintain variable data from point to point. ! // All modules, in order to meet compliance, should fully utilize these ! // functions. ! function setVar($varkey, $varval = false) ! { ! if(is_array( $varkey )) ! { ! foreach( $userkey as $key => $val ) ! { ! if( preg_match('/[^a-z][a-z0-9_-]/', $key) ) ! { ! $this->_keydata[$key] = $val; ! } ! } ! } ! elseif( (!empty($varkey)) && (preg_match('/[^a-z][a-z0-9_-]/', $varkey)) && (!empty($varval)) ) ! { ! $this->_data[$userkey] = $userval; ! return true; ! } ! else ! { ! return false; ! } ! } ! ! function getVar($varkey) ! { ! if( !empty($this->_data[$varkey]) ) ! { ! return $this->_data[$varkey]; ! } ! else ! { ! return false; ! } ! } ! ! function loadHook( $hookname, $hookjob ) ! { ! } ! } ?> |