[Openfirst-cvscommit] modules export.php,1.5,1.6 extended.php,1.1,1.2 index.php,1.6,1.7 info.php,1.4
Brought to you by:
xtimg
From: Jamie <ast...@us...> - 2006-02-23 16:53:46
|
Update of /cvsroot/openfirst/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3271/modules Modified Files: export.php extended.php index.php info.php Log Message: Fixes, typos Index: extended.php =================================================================== RCS file: /cvsroot/openfirst/modules/extended.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** extended.php 12 Sep 2005 01:40:50 -0000 1.1 --- extended.php 23 Feb 2006 16:53:40 -0000 1.2 *************** *** 59,63 **** /*** Columns ***/ echo '<table class="table-columns"> ! <cpation>Columns</caption> <thead> <tr> --- 59,63 ---- /*** Columns ***/ echo '<table class="table-columns"> ! <caption>Columns</caption> <thead> <tr> *************** *** 135,139 **** if (count($table->getKeys()) >= 1) { echo '<table class="table-keys"> ! <cpation>Keys</caption> <thead> <tr> --- 135,139 ---- if (count($table->getKeys()) >= 1) { echo '<table class="table-keys"> ! <caption>Keys</caption> <thead> <tr> *************** *** 177,181 **** $cols = $table->getCols(); echo '<table class="table-data"> ! <cpation>Data</caption> <thead> <tr>'; --- 177,181 ---- $cols = $table->getCols(); echo '<table class="table-data"> ! <caption>Data</caption> <thead> <tr>'; *************** *** 217,221 **** ENDSTYLESHEET; ! include($Header); if (count($dirs) < 1) { ?> --- 217,221 ---- ENDSTYLESHEET; ! include($ogHeader); if (count($dirs) < 1) { ?> *************** *** 313,316 **** } echo '</div>'; ! include($Footer); ?> \ No newline at end of file --- 313,316 ---- } echo '</div>'; ! include($ogFooter); ?> \ No newline at end of file Index: export.php =================================================================== RCS file: /cvsroot/openfirst/modules/export.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** export.php 23 Aug 2005 18:22:19 -0000 1.5 --- export.php 23 Feb 2006 16:53:40 -0000 1.6 *************** *** 1,93 **** ! <?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 ! * ! */ ! require_once("../includes/globals.php"); ! ! include_once($Header); ! ?> ! <p class="into">This takes module info in the database and generates XML for it. Note that it does ! <strong>not</strong> include table information.</p> ! ! <dl> ! <?php ! foreach($ogModuleManager->getDirs() as $moddir) { ! $mod = $ogModuleManager->addModuleFromDir($moddir); ! ! $id = $mod->getID(); ! $name = $mod->getName(); ! $version = $mod->getVersion(); ! $includes = $mod->getIncludes(); ! $adminbar = $mod->getAdminBar(); ! $navbar = $mod->getNavBar(); ! $author = $mod->getAuthor(); ! $maintainer = $mod->getMaintainer(); ! $dir = $mod->getDir(); ! ! $XMLCode = '<module id="'.htmlspecialchars($id).'"> ! <name>'.htmlspecialchars($name).'</name> ! <version>'.htmlspecialchars($version).'</version> ! <author>'.htmlspecialchars($author).'</author> ! '; ! ! if ($maintainer != '') ! $XMLCode .= ' <maintainer>'.htmlspecialchars($maintainer).'</maintainer> ! '; ! ! if (count($includes) > 0) { ! $XMLCode .= ' <includes> ! '; ! foreach($includes as $inc) { ! $XMLCode .= ' <include>'; ! $XMLCode .= htmlspecialchars($inc); ! $XMLCode .= '</include> ! '; ! } ! } ! ! if ($adminbar != '') ! $XMLCode .= ' <adminbar><![CDATA['.$adminbar.']]></adminbar> ! '; ! if ($navbar != '') ! $XMLCode .= ' <navbar><![CDATA['.$navbar.']]></navbar> ! '; ! $XMLCode .= '</module>'; ! ! if (isset($_REQUEST['save'])) { ! $save_len = file_put_contents("$fBasePath/$dir/openfirst.info.xml", $XMLCode); ! } ! ! ?><dt style="font-weight:bold;"><h2><?php echo htmlentities($name); ?></h2><?php ! if (isset($_REQUEST['save'])) { ! echo htmlentities("$save_len / ".strlen($PHPCode)); ! } ! ?></dt><dd> ! <textarea class="code xml" readonly="readonly" rows="18" cols="75"><?php ! ! echo htmlentities($XMLCode); ! ?></textarea></dd><?php ! } ! ?> ! </dl> ! <?php ! include_once($Footer); ! ?> --- 1,93 ---- ! <?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 ! * ! */ ! require_once("../includes/globals.php"); ! ! include_once($ogHeader); ! ?> ! <p class="into">This takes module info in the database and generates XML for it. Note that it does ! <strong>not</strong> include table information.</p> ! ! <dl> ! <?php ! foreach($ogModuleManager->getDirs() as $moddir) { ! $mod = $ogModuleManager->addModuleFromDir($moddir); ! ! $id = $mod->getID(); ! $name = $mod->getName(); ! $version = $mod->getVersion(); ! $includes = $mod->getIncludes(); ! $adminbar = $mod->getAdminBar(); ! $navbar = $mod->getNavBar(); ! $author = $mod->getAuthor(); ! $maintainer = $mod->getMaintainer(); ! $dir = $mod->getDir(); ! ! $XMLCode = '<module id="'.htmlspecialchars($id).'"> ! <name>'.htmlspecialchars($name).'</name> ! <version>'.htmlspecialchars($version).'</version> ! <author>'.htmlspecialchars($author).'</author> ! '; ! ! if ($maintainer != '') ! $XMLCode .= ' <maintainer>'.htmlspecialchars($maintainer).'</maintainer> ! '; ! ! if (count($includes) > 0) { ! $XMLCode .= ' <includes> ! '; ! foreach($includes as $inc) { ! $XMLCode .= ' <include>'; ! $XMLCode .= htmlspecialchars($inc); ! $XMLCode .= '</include> ! '; ! } ! } ! ! if ($adminbar != '') ! $XMLCode .= ' <adminbar><![CDATA['.$adminbar.']]></adminbar> ! '; ! if ($navbar != '') ! $XMLCode .= ' <navbar><![CDATA['.$navbar.']]></navbar> ! '; ! $XMLCode .= '</module>'; ! ! if (isset($_REQUEST['save'])) { ! $save_len = file_put_contents("$fBasePath/$dir/openfirst.info.xml", $XMLCode); ! } ! ! ?><dt style="font-weight:bold;"><h2><?php echo htmlentities($name); ?></h2><?php ! if (isset($_REQUEST['save'])) { ! echo htmlentities("$save_len / ".strlen($PHPCode)); ! } ! ?></dt><dd> ! <textarea class="code xml" readonly="readonly" rows="18" cols="75"><?php ! ! echo htmlentities($XMLCode); ! ?></textarea></dd><?php ! } ! ?> ! </dl> ! <?php ! include_once($ogFooter); ! ?> Index: info.php =================================================================== RCS file: /cvsroot/openfirst/modules/info.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** info.php 26 May 2005 23:27:30 -0000 1.4 --- info.php 23 Feb 2006 16:53:40 -0000 1.5 *************** *** 84,88 **** ); ! include_once($Header); ?><html> <form method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data"> --- 84,88 ---- ); ! include_once($ogHeader); ?><html> <form method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data"> *************** *** 173,176 **** } ! include_once($Footer); ?> --- 173,176 ---- } ! include_once($ogFooter); ?> Index: index.php =================================================================== RCS file: /cvsroot/openfirst/modules/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 12 Sep 2005 01:40:50 -0000 1.6 --- index.php 23 Feb 2006 16:53:40 -0000 1.7 *************** *** 33,37 **** } ! include($Header); ?> <p class="intro">Below is a table showing the modules available in this installation. The data is loaded from the <tt class="file">openfirst.info.xml</tt> file distrubuted with each module. --- 33,37 ---- } ! include($ogHeader); ?> <p class="intro">Below is a table showing the modules available in this installation. The data is loaded from the <tt class="file">openfirst.info.xml</tt> file distrubuted with each module. *************** *** 145,148 **** </table> <?php ! include($Footer); ?> \ No newline at end of file --- 145,148 ---- </table> <?php ! include($ogFooter); ?> \ No newline at end of file |