[Openfirst-cvscommit] modules export.php,1.1,1.2 index.php,1.1,1.2 info.php,1.2,1.3
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-05-15 13:23:01
|
Update of /cvsroot/openfirst/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15513/modules Modified Files: export.php index.php info.php Log Message: Fixed header (no, Dave is not actively developing) Index: export.php =================================================================== RCS file: /cvsroot/openfirst/modules/export.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** export.php 15 May 2005 05:30:20 -0000 1.1 --- export.php 15 May 2005 13:22:51 -0000 1.2 *************** *** 1,92 **** ! <?php ! /* ! * openFIRST.awards - index.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> ! * ! * 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 ! * ! */ ! include_once("../config/globals.php"); ! ! function GetVarValue($var) { ! ob_Start(); ! var_export($var); ! $Value = ob_Get_Contents(); ! ob_End_Clean(); ! return $Value; ! } ! ! $incl = ofirst_dbquery('SELECT * FROM ofirst_config'); ! ! include_once($header); ! ?><fieldset> ! <legend>Code</legend> ! <dl> ! <?php ! foreach($Modules as $key => $data) { ! $version = $data['ver']; ! $includes = $data['inc']; ! $admin = $data['admin']; ! $nav = $data['nav']; ! ! if (strlen($version) <= 0) $version = 'CVS'; ! ! $code = GetVarValue($key); ! $name = GetVarValue(ucwords($key)); ! $version = GetVarValue($version); ! $includes = GetVarValue($includes); ! $admin = GetVarValue($admin); ! $nav = GetVarValue($nav); ! ! $PHPCode = '<'."?php ! global \$Modules; ! \$Modules[$code]['name'] = $name; ! \$Modules[$code]['ver'] = $version; ! \$Modules[$code]['inc'] = $includes; ! \$Modules[$code]['admin'] = $admin; ! \$Modules[$code]['nav'] = $nav; ! ! if (!isset(\$Modules['awards']['active']) { ! \$Modules['awards']['active'] = false; ! } ! ! if (!isset(\$Modules['awards']['show']) { ! \$Modules['awards']['show'] = false; ! } ! ?".'>'; ! ! if (isset($_REQUEST['save'])) { ! $save_len = file_put_contents("$fbasepath/$key/openfirst.info.php", $PHPCode); ! } ! ! ?><dt style="font-weight:bold;"><h2><?php echo htmlentities($key); ?></h2><?php ! if (isset($_REQUEST['save'])) { ! echo htmlentities("$save_len / ".strlen($PHPCode)); } ?></dt><dd> ! <textarea readonly="readonly" rows="18" cols="75"><?php ! if (false) { ! highlight_string($PHPCode); ! } else { ! echo htmlentities($PHPCode); ! } ! ?></textarea></dd><?php ! } ! ?> ! </dl></fieldset> ! <?php ! include_once($footer); ! ?> --- 1,92 ---- ! <?php ! /* ! * openFIRST.modules - export.php ! * ! * Copyright (C) 2005, ! * openFIRST Project ! * Original Author: Jamie Bliss <ja...@op...> ! * ! * 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 ! * ! */ ! include_once("../config/globals.php"); ! ! function GetVarValue($var) { ! ob_Start(); ! var_export($var); ! $Value = ob_Get_Contents(); ! ob_End_Clean(); ! return $Value; ! } ! ! $incl = ofirst_dbquery('SELECT * FROM ofirst_config'); ! ! include_once($header); ! ?><fieldset> ! <legend>Code</legend> ! <dl> ! <?php ! foreach($Modules as $key => $data) { ! $version = $data['ver']; ! $includes = $data['inc']; ! $admin = $data['admin']; ! $nav = $data['nav']; ! ! if (strlen($version) <= 0) $version = 'CVS'; ! ! $code = GetVarValue($key); ! $name = GetVarValue(ucwords($key)); ! $version = GetVarValue($version); ! $includes = GetVarValue($includes); ! $admin = GetVarValue($admin); ! $nav = GetVarValue($nav); ! ! $PHPCode = '<'."?php ! global \$Modules; ! \$Modules[$code]['name'] = $name; ! \$Modules[$code]['ver'] = $version; ! \$Modules[$code]['inc'] = $includes; ! \$Modules[$code]['admin'] = $admin; ! \$Modules[$code]['nav'] = $nav; ! ! if (!isset(\$Modules['awards']['active']) { ! \$Modules['awards']['active'] = false; ! } ! ! if (!isset(\$Modules['awards']['show']) { ! \$Modules['awards']['show'] = false; ! } ! ?".'>'; ! ! if (isset($_REQUEST['save'])) { ! $save_len = file_put_contents("$fbasepath/$key/openfirst.info.php", $PHPCode); ! } ! ! ?><dt style="font-weight:bold;"><h2><?php echo htmlentities($key); ?></h2><?php ! if (isset($_REQUEST['save'])) { ! echo htmlentities("$save_len / ".strlen($PHPCode)); } ?></dt><dd> ! <textarea readonly="readonly" rows="18" cols="75"><?php ! if (false) { ! highlight_string($PHPCode); ! } else { ! echo htmlentities($PHPCode); ! } ! ?></textarea></dd><?php ! } ! ?> ! </dl></fieldset> ! <?php ! include_once($footer); ! ?> Index: info.php =================================================================== RCS file: /cvsroot/openfirst/modules/info.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** info.php 15 May 2005 05:42:52 -0000 1.2 --- info.php 15 May 2005 13:22:51 -0000 1.3 *************** *** 1,9 **** <?php /* ! * openFIRST.awards - index.php * ! * Copyright (C) 2003, * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> * * This program is free software; you can redistribute it and/or modify --- 1,9 ---- <?php /* ! * openFIRST.modules - info.php * ! * Copyright (C) 2005, * openFIRST Project ! * Original Author: Jamie Bliss <ja...@op...> * * This program is free software; you can redistribute it and/or modify Index: index.php =================================================================== RCS file: /cvsroot/openfirst/modules/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 15 May 2005 05:30:20 -0000 1.1 --- index.php 15 May 2005 13:22:51 -0000 1.2 *************** *** 1,27 **** ! <?php ! /* ! * openFIRST.awards - index.php ! * ! * Copyright (C) 2003, ! * openFIRST Project ! * Original Author: David Di Biase <dav...@ea...> ! * ! * 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 ! * ! */ ! include_once("../config/globals.php"); ! header("location: $basepath/modules/info.php"); ! ! ?> --- 1,27 ---- ! <?php ! /* ! * openFIRST.modules - index.php ! * ! * Copyright (C) 2005, ! * openFIRST Project ! * Original Author: Jamie Bliss <ja...@op...> ! * ! * 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 ! * ! */ ! include_once("../config/globals.php"); ! header("location: $basepath/modules/info.php"); ! ! ?> |