phpcms-plugins-cvs Mailing List for phpCMS-plugins (Page 8)
Brought to you by:
mjahn
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(40) |
Jun
(38) |
Jul
(36) |
Aug
(46) |
Sep
(13) |
Oct
(1) |
Nov
|
Dec
(57) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(2) |
Feb
(19) |
Mar
|
Apr
(43) |
May
(119) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Martin J. <mj...@us...> - 2005-02-10 16:04:05
|
Update of /cvsroot/phpcms-plugins/blog4phpCMS/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25093/templates Log Message: Directory /cvsroot/phpcms-plugins/blog4phpCMS/templates added to the repository |
From: Martin J. <mj...@us...> - 2005-02-10 16:02:10
|
Update of /cvsroot/phpcms-plugins/blog4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24319/blog4phpCMS Log Message: Directory /cvsroot/phpcms-plugins/blog4phpCMS added to the repository |
From: Martin J. <mj...@us...> - 2005-02-09 15:28:33
|
Update of /cvsroot/phpcms-plugins/lexiword In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32127 Modified Files: lexiword.php Log Message: preparation for the release of Version 1.0 in english Index: lexiword.php =================================================================== RCS file: /cvsroot/phpcms-plugins/lexiword/lexiword.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- lexiword.php 27 Jul 2004 13:14:54 -0000 1.2 +++ lexiword.php 9 Feb 2005 15:28:20 -0000 1.3 @@ -1,132 +1,118 @@ <?php /** -* LexiWord - Plugin für phpCMS -* -* @author: Martin Jahn <mj...@us...> -* @license: GPL -* @version: $Id$ -* @package lexiword -* -* Das Plugin erkennt in einer Contentdatei alle vorkommenden Begriffe aus einer Glossardatei. -* Diese Begriffe werden dann markiert und werden im Broswer mit Kurzbeschreibungen angezeigt -* werden. Die Glossardatei kann darueber hinaus auch als normale Contentdatei verwendet werden. -* Damit ist es auch moeglich die Begriffe mit Links zur Glossardatei zu versehen. -* -* Dieses Plugin/Skript veroeffentliche ich so wie es ist und gebe deshalb auch keinerlei Garantie, -* dass es richtig funktioniert. Ausserdem uebernehme ich keinerlei Haftung fuer eventuelle durch -* die Anwendung des Plugins/Skriptes entstehenden Schaeden. -* -* Falls du Verbesserungsvorschlaege oder Wuensche bezueglich des Skriptes hast melde dich bei -* Martin Jahn <ma...@ma...> -* -* Viel Spass -* -* Dieses Script ist kostenlos für private und kommerzielle Nuzung. -* Es wird unter den Bedingungen der GNU General Public License, wie von der Free -* Software Foundation herausgegeben, verteilt. Eine Kopie der GPL sollte im Zip-File -* enthalten sein. Das Script darf (im Rahmen der GPL) nach belieben genutzt, weiter- -* gegeben und modifiziert werden. Dieser Copyright-Hinweis muss jedoch in jedem Fall -* unverändert im Script belassen werden. -* -* Ich übernehme keinerlei Verantwortung für Schäden, die durch die Nutzung dieses -* Scripts entstehen. Bei Fehlern würde ich jedoch gerne informiert werden, damit -* ich diese ausbügeln kann. Auch für den Fall, dass Ihr Verbesserungen vornehmt, -* Verbesserungsvorschläge oder -wünsche habt, wäre ich dankbar für eine Benachrichtigung. -* -* -* Anleitung: -* -* 1. Das Plugin wird in einer Templatedatei statisch eingebunden -* {PLUGIN FILE="$plugindir/lexiword.php" TYPE="STATIC"} -* -* 2. Der Pfad zur Glossardatei wird relativ zum Document-Root angepasst -* -* 3. In das Array $fields alle Contentfelder eintragen, die durchsucht werden sollen -* -* 4. Eventuell noch weitere Einstellungen tunen -* -* 5. Fertig ;-) Gucken ob es funktioniert :-) -**/ + * Lexiword v1.0 + * + * LexiWord is a glossary plugin for phpCMs driven websites. It extracts the + * glossary out of a fromatted glossary-file, that also can be used as a normal + * contentfile. + * + * With the glossary it marks all found words in the specified contentfields + * with a special markup (i.e. <acronym title="..">... + * </acroym>. The format of the glossaryfile is free to define, but the default + * is: + * <dl> + * <dt>Glossary term</dt><dd>Description of the Glossary term</dd><dd>http: + * //optionional.link.to/a/site/for/this/term.htm</dd> ... next glossary entry + * ... + * </dl> + * + * <b>Installation</b> + * + * Integrate lexiword with {PLUGIN FILE="$plugindir/lexiword/lexiword.php" + * TYPE=" STATIC"} in your template. + * + * <b>Configuration</b> + * + * Open this file in your favourite text-editor and adjust the settings to your + * needs. + * + * That's all. I wish U much fun with lexiword and phpCMS + * + * <b>License</b> + * + * 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 + * + * @author Martin Jahn <mj...@us...> + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @copyright Copyright (c) 2005, Martin Jahn + * @version: $Id$ + * @package lexiword + * @todo Worterkennung (Luxus waere ja eine "Endungserkennung", die sieht, ob + * der Rest des Wortes eine Endung oder mehr ist *g*) + * @todo singular/plural- Erkennung... ;-) + * @todo Bindestriche gelten als Trenner zwischen zwei Worten + * @todo Quotes und Klammern + */ /* * $Log$ -* Revision 1.2 2004/07/27 13:14:54 mjahn -* fixed some little bugs +* Revision 1.3 2005/02/09 15:28:20 mjahn +* preparation for the release of Version 1.0 in english * */ /** -* 2004-07-27 -* Bugfix: -* Links werden nun richtig ersetzt -* Suchbegriffe können nun auch Leerzeichen beinhalten. -* -* 2004-04-19 -* Bugfix: -* Die Begriffe wurden bisher mit der Schreibweise ersetzt, -* wie sie in der Glossardatei steht. Ab sofort wird die Schreibweise -* so beibehalten, wie sie vorgefunden wird -**/ - - - -/** -* Pfad zur Contentdatei mit den Glossareinträgen -* -* Diese Datei muß _keine_ Contentdatei sein, kann aber so auch gleich -* als Glossar mit angezeigt werden. -* -* !!!! ACHTUNG !!!! Pfadangabe relativ zum __Document-Root__ !!! -**/ + * @var string path to the glossary-file + * + * This file must not be a contentfile, but you may use it as glossary-index. + * Take care of the path! It must be given as path from the document-root to the + * file + */ $lexifile = '/hilfe/glossar.htm'; /** -* true = nur ganze Wörter ersetzen -* false = Begriffe auch in zusammengesetzten Wörtern ersetzen -**/ + * @var boolean flag for matching words and word combinations + * + * true = only match single words + * false = match words in word combination + */ $match_only_whole_words = true; /** -* Contentfelder, die durchsucht werden sollen -**/ -$fields = array('KOLUMNE', 'CONTENT1', 'CONTENT2', 'CONTENT', 'FOOTER'); + * @var array contentfields you want to search + */ +$fields = array('CONTENT'); /** -* dieser Ausdruck wird an Stelle des gefundenen Begriffes eingesetzt -* -* folgende Platzhalter können darin verwendet werden: -* %name - der ursprüngliche Text, der ersetzt wird -* %desc - der beschreibende Text aus dem Glossar -**/ + * @var string replace found terms with the following (you may use %name for the + * replaced glossary term and %desc for the term description) + */ //$format = '<a href="#" class="info">%name<span>%desc</span></a>'; $format = '<acronym title="%desc">%name</acronym>'; /** -* dieser Ausdruck wird an Stelle des gefundenen Begriffes eingesetzt, -* wenn auch ein korrespondierender Link gefunden wird -* -* folgende Platzhalter können darin verwendet werden: -* %name - der ursprüngliche Text, der ersetzt wird -* %link - der ursprüngliche Text, der ersetzt wird -* %desc - der beschreibende Text aus dem Glossar -**/ + * @var string replace found terms with the following, if the optional link + * in the glossary file is available (you may use %name for the replaced + * glossary term, %desc for the term description and %link for the optional + * link-url) + */ //$formatlink = '<a href="%link" class="info">%name<span>%desc</span></a>'; $formatlink = '<a href="%link" title="%desc">%name</a>'; /** -* Mit dieser Variaben werden HTML-Tags ausgeschlossen, in denen nicht ersetzt werden soll. -* Sinnvoll ist dies zum Beispiel beim a-Tag, wenn dort ein Link ersetzt werden würde, oder -* der code-Tag, damit in Code-Ausdrücken keine acronym's rumflattern. -* -* Die Namen der Tags müssen mit | getrennt werden. -**/ -$ignoreTags = 'a|link|q|code|h2'; - -/* -############################################## -## Ab hier ist nichts mehr konfigurierbar ## -############################################## +* @var string all tags that content should be ignored by lexiword must be +* concatenated with the '|' (pipe-symbol) in this string +* +* Useful to prevent from replacing a term with a link inside an a-tag or to +* prevent replacing inside the code-tag */ +$ignoreTags = 'a|link|q|code|h2|h1|button|textarea'; + +///////////////////////////////////////////////////////////////////////// +//Do not change any line beyond thsi line, unless you know what you do // +///////////////////////////////////////////////////////////////////////// if (isset($DEFAULTS->EDIT)) { /** * do nothing in EDIT-mode @@ -138,35 +124,34 @@ return; } /** -* Glossardatei einlesen und ein assoziatives Array erstellen +* parse the glossary-file into an assoziative array */ if (file_exists($_SERVER['DOCUMENT_ROOT'].$lexifile)) { $lexikon = join('',file($_SERVER['DOCUMENT_ROOT'].$lexifile)); $lexikon = str_replace("\n",'',$lexikon); /** - * Extrahieren der Glossareinträge + * Extrahieren der Glossareintr�ge * * eventuell an eigene Formatierungen in der Glossardatei anpassen */ preg_match_all('$<dt>(.*?)</dt>\s*?<dd>(.*?)</dd>(\s*?<dd>.*?([http://|mailto:|ftp://]+://[^\s<>"]+).*?</dd>)*$sm',$lexikon,$entries); - echo '<!--'; - print_r($entries); - echo '-->'; + +// echo '<!--';print_r($entries);echo '-->'; /** * $entries ist ein Array * - * - Element 0 beinhaltet die kompletten Glossareinträge + * - Element 0 beinhaltet die kompletten Glossareintr�ge * - Element 1 beinhaltet die Glossarbegriffe * - Element 2 beinhaltet die Glossarbeschreibungen * - Element 3 beinhaltet das fakultative 2. Element mit dem Link * - Element 4 beinhaltet die URI des Links */ - $replace = array(); // beinhaltet die Beschreibungen + $replace = array(); // contains the descriptions $search = array(); $max = count($entries[1]); /** - * erstelle die Arrays für Suchen und Ersetzen + * erstelle die Arrays f�r Suchen und Ersetzen */ for ($i = 0; $i<$max; $i++) { $search[] = trim($entries[1][$i]); @@ -182,7 +167,7 @@ if (isset($PageContent->{$field})) { $content = join('',$PageContent->{$field}); - // Ersetze die phpcms-Variablen, so daß sie in der RegEx wegen /e nicht mit ausgewertet werden + // replace the phpCMS-variables, so that they do not interfere with the RegExp $phpcms_vars = array('$home'=>'%%home%%', '$self'=>'%%self%%', '$plugindir'=>'%%plugindir%%'); reset($phpcms_vars); @@ -194,18 +179,18 @@ for ($i=0; $i<$max; $i++) { $s = str_replace (' ', '\s', $search[$i]); $r = $replace[$i]; - /* Auslesen des Textes aus dem Contentfeld */ + // replace the tags in the contentfield if ($match_only_whole_words) { // $content = preg_replace("/((<[^>]*)|\b$s\b)/ex", '"\2"=="\1"? "\1":$r', $content); - $content = preg_replace("§((<(".$ignoreTags.")[^>]*>.*?($s).*?</\\3>)|(<[^>]*)|(\b$s\b))§iex", '("\4"!="\1") && "\6"=="\1" ? str_replace("%name", "\1", $r) : "\1"', $content); + $content = preg_replace("/((<(".$ignoreTags.")[^>]*>.*?($s).*?<\/\\3>)|(<[^>]*)|(\b$s\b))/iex", '("\4"!="\1") && "\6"=="\1" ? str_replace("%name", "\1", $r) : "\1"', $content); } else { // $content = preg_replace("/((<[^>]*)|$s)/ex", '"\2"=="\1"? "\1":$r', $content); - $content = preg_replace("§((<(".$ignoreTags.")[^>]*>.*?($s).*?</\\3>)|(<[^>]*)|($s))§iex", '("\4"!="\1") && "\6"=="\1" ? str_replace("%name", "\1", $r) : "\1"', $content); + $content = preg_replace("/((<(".$ignoreTags.")[^>]*>.*?($s).*?<\/\\3>)|(<[^>]*)|($s))/iex", '("\4"!="\1") && "\6"=="\1" ? str_replace("%name", "\1", $r) : "\1"', $content); } $content = stripslashes($content); } } - // Mache die Variablenersetzung rückgängig + // rereplace the phpCMs-variables reset($phpcms_vars); foreach ($phpcms_vars as $id=>$wert) { $content = str_replace($wert, $id, $content); @@ -220,13 +205,4 @@ **/ unset ($content, $entries, $field, $fields, $format, $formatlink, $i, $id, $item, $lexifile, $lexikon, $match_only_whole_words, $max, $phpcms_vars, $r, $replace, $s, $search, $wert); -/** -* TODO -* -* Worterkennung -* Luxus wäre ja eine "Endungserkennung", die sieht, ob der Rest des Wortes eine Endung oder mehr ist *g* -* klar singular/plural-Erkennung... ;-) -* plus: Bindestriche gelten als Trenner zwischen zwei Worten... -* Quotes und Klammern dito... -**/ ?> \ No newline at end of file |
From: Martin J. <mj...@us...> - 2005-02-03 18:05:03
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/pluginmanager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23902/modules/pluginmanager Log Message: Directory /cvsroot/phpcms-plugins/admin4phpCMS/modules/pluginmanager added to the repository |
From: Martin J. <mj...@us...> - 2005-02-01 13:54:04
|
Update of /cvsroot/phpcms-plugins/autodescgen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5574 Modified Files: autodescgen.php Log Message: fixed a little typo Index: autodescgen.php =================================================================== RCS file: /cvsroot/phpcms-plugins/autodescgen/autodescgen.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- autodescgen.php 1 Feb 2005 13:53:17 -0000 1.2 +++ autodescgen.php 1 Feb 2005 13:53:54 -0000 1.3 @@ -1,6 +1,6 @@ <?php /** - * <b>Installtion instructions (en)</b> + * <b>Installation instructions (en)</b> * * The file autodescgen.php must be copied into the phpCMS-plugin-directory * (i.e. /parser/plugs/) @@ -54,6 +54,9 @@ /* * $Log$ +* Revision 1.3 2005/02/01 13:53:54 mjahn +* fixed a little typo +* * Revision 1.2 2005/02/01 13:53:17 mjahn * made some changes for perfect use with masterPlugin4phpCMS * |
From: Martin J. <mj...@us...> - 2005-02-01 13:53:27
|
Update of /cvsroot/phpcms-plugins/autodescgen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5415 Modified Files: autodescgen.php Log Message: made some changes for perfect use with masterPlugin4phpCMS Index: autodescgen.php =================================================================== RCS file: /cvsroot/phpcms-plugins/autodescgen/autodescgen.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- autodescgen.php 22 Apr 2004 08:05:01 -0000 1.1.1.1 +++ autodescgen.php 1 Feb 2005 13:53:17 -0000 1.2 @@ -1,36 +1,63 @@ <?php /** - * @author Martin Jahn <ma...@ma...> - * @license GPL - * @version 0.1 - * - * Installationsanleitung für autodescgen.php Version 0.1 - * (Vielen Dank an Lumi01 für die Hilfe :-)) - * - * Die Datei autodescgen.php kann man in das Pluginverzeichnis von phpCMS - * \parser\plugs\autodescgen\ kopieren. + * <b>Installtion instructions (en)</b> + * + * The file autodescgen.php must be copied into the phpCMS-plugin-directory + * (i.e. /parser/plugs/) + * + * You can place the call for the plugin into the contentfile (for us only + * in this contentfile) or into the template-file (for use in all contentfiles). + * {PLUGIN FILE="<PLUGINDIR>/autodescgen.php" TYPE="STATIC"} + * + * You must place the tag AUTOGENERATEDDESC where you want the output of the + * plugin placed. + * + * <b>Installationsanleitung (de)</b> * - * Aufruf des Plugins wahlweise über das Template oder die Contentdatei durch - * Einfügen der folgenden Zeile: - * {PLUGIN FILE="<PLUGINDIR>/autodescgen/autodescgen.php" TYPE="STATIC"} - * wobei <PLUGINDIR> den korrekten Pfad zum Pluginverzeichnis enthalten muß. + * Die Datei autodescgen.php wird in das Pluginverzeichnis von phpCMS + * (z.B. /parser/plugs/) kopieren. * - * TIPP: Der Pfad zum Pluginverzeichnis kann in der Projektdatei mit der Variablen - * PLUGINDIR := ... angegeben werden. + * Der Aufruf des Plugins erfolgt wahlweise über das Template oder die + * Contentdatei durch Einfügen der folgenden Zeile: + * {PLUGIN FILE="<PlUGINDIR>/autodescgen.php" TYPE="STATIC"} wobei + * <PLUGINDIR> den korrekten Pfad zum Pluginverzeichnis darsteltl. * - * Notwendige Konfiguration in der Parserverwaltung: - * - der Menüpunkt "PAX TAGS berücksichtigen" muss aktiviert sein - * Im Template muss dort, wo die Ausgabe von autodescgen.php erscheinen soll das Tag - * AUTOGENERATEDDESC - * eingefügt werden. Zum Beispiel so: - * <meta name="description" content="AUTOGENERATEDDESC"> + * Im Template muss dort, wo die Ausgabe von autodescgen.php erscheinen soll das + * Tag AUTOGENERATEDDESC eingefügt werden. Zum Beispiel so: + * <meta name="description" content="AUTOGENERATEDDESC"> + * + * TIPP: Der Pfad zum Pluginverzeichnis kann in der Projektdatei mit der + * Variablen PLUGINDIR := ... angegeben werden. + * + * <b>License</b> + * + * 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. * - * Alternativ ist es auch möglich den Aufruf des Plugins direkt in das Meta-Tag einzufügen. - * Dann muss aber im Plugin die Variable $usePAXtags = 'OFF' gesetzt werden. Außerdem kann - * in diesem Fall auch PAX TAGS berücksichtigen abgeschaltet werden, falls es nicht - * anderweitig benötigt wird. + * 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 * - **/ + * @author Martin Jahn <mj...@us...> + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @copyright Copyright (c) 2005, Martin Jahn + * @version $Id$ + * @package project_name + */ + +/* +* $Log$ +* Revision 1.2 2005/02/01 13:53:17 mjahn +* made some changes for perfect use with masterPlugin4phpCMS +* +*/ if (isset($DEFAULTS->EDIT)) { /** @@ -39,11 +66,20 @@ return; } +if (!function_exists ('xmlentities')) { +function xmlentities($string, $quote_style=ENT_COMPAT) { + $trans = get_html_translation_table(HTML_ENTITIES, $quote_style); + foreach ($trans as $key => $value) + $trans[$key] = '&#'.ord($key).';'; + return strtr($string, $trans); +} +} + header('X-Plugin-Powered: 1'); -$ProcessFields = array('KOLUMNE', 'CONTENT1', 'CONTENT2', 'CONTENT', 'FOOTER'); +$ProcessFields = array('KOLUMNE', 'CONTENT1', 'CONTENT2', 'CONTENT', 'FOOTER', 'CONTENT_1', 'CONTENT_2'); $MaxDescSize = 250; // <-- maximum size of the string, that is examined -$default_text = 'Programmieren Topreferer Vor Zurück Prev Next Webdesign PHP Galerie phpCMS' ; // <-- Default-Text if empty content +$default_text = 'Programmieren Topreferer Vor Zur�ck Prev Next Webdesign PHP Galerie phpCMS' ; // <-- Default-Text if empty content $usePAXtags = 'ON' ; // <-- '1' if you want to use the '$PAXtag' tag below, and if 'PAX Tags' is turned ON in the GUI. $PAXtag = 'AUTOGENERATEDDESC'; // <-- tag that should be replaced by the keywords @@ -53,20 +89,8 @@ * Otherwise the tags will be replaced after the work of this plugin was done. * The result is, that you have HTML-Tags in the description-tag (not standard-conform) **/ -$IgnoreTags = array(''); - -/*------------------------------------------------*/ -// time mesurement for keyword generation -/*------------------------------------------------*/ -/*if(!function_exists(global_getmicrotime)) { - function global_getmicrotime() { - list($usec, $sec) = explode(" ",microtime()); - return ((float)$usec + (float)$sec); - } -} +$IgnoreTags = array(' '); -$time_start = global_getmicrotime(); -*/ $finalbuffer = ''; reset($ProcessFields); @@ -77,40 +101,36 @@ } $finalbuffer = str_replace("\n", ' ', $finalbuffer); -/* -$fh = fopen (dirname(__FILE__).'/test.log','w'); -fwrite($fh,$finalbuffer); -fclose($fh); -*/ -$finalbuffer = trim($finalbuffer); -$finalbuffer = preg_replace ("'<phpcms:ignore[^>]*?".">.*?</phpcms:ignore>'si", "", $finalbuffer); -/** -* remove unwanted Tags -**/ -$ReplaceTags = array_fill(0, count((array) $IgnoreTags), ''); +// get body content +if (preg_match('/<body[^>]*>(.*?)<\/body[^>]*>/im', $finalbuffer, $erg)) { + $finalbuffer = $erg [1]; +} + +// get the content +$finalbuffer = preg_replace ('/(<\!-- PHPCMS_NOINDEX(.*?)\/PHPCMS_NOINDEX -->)/im', '', $finalbuffer); + +// remove unwanted Tags +$ReplaceTags = array_fill(0, count((array) $IgnoreTags), ''); $finalbuffer = str_replace((array) $IgnoreTags, (array) $ReplaceTags, $finalbuffer); + +// strip any HTML and PHP-tags $finalbuffer = strip_tags($finalbuffer); -$finalbuffer = htmlentities($finalbuffer); + +// remove(double)-spaces +$finalbuffer = preg_replace("/(\s[\s]+)/im", " ", $finalbuffer); + +// trim finalbuffer to maximal length +$finalbuffer = trim($finalbuffer); $finalbuffer = substr($finalbuffer,0,$MaxDescSize); $end = strrpos($finalbuffer, ' '); $finalbuffer = substr($finalbuffer, 0, $end).' ...'; -$finalbuffer = str_replace("\n", '', $finalbuffer); if(strlen(trim($finalbuffer)) == 0) { $finalbuffer = $default_text; } -// remove(double)-spaces -$finalbuffer = str_replace(" ", " ", $finalbuffer); $output = $finalbuffer; -//$time_needed = sprintf("%01.4f", global_getmicrotime() - $time_start); - -if(strtoupper($DEFAULTS->PAXTAGS) == 'ON' AND strtoupper($usePAXtags) == 'ON') { - $Tags[]= array($PAXtag,htmlentities($output)); -} else { - // If you do not use PAX tags, put the {PLUGIN} call right where you want the meta tags to appear: - print($output); -} +$Tags[]= array($PAXtag,$output); ?> |
From: Martin J. <mj...@us...> - 2005-01-03 18:21:40
|
Update of /cvsroot/phpcms-plugins/navigation4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16023 Added Files: navigation4phpcms.php .cvsignore Log Message: initial commit --- NEW FILE: .cvsignore --- navigation4phpcms.zip .project extmenuclass.php langs2link.php language.php logiclinks.php phpcms_breadcrumb.php release --- NEW FILE: navigation4phpcms.php --- <?php /** * navigation4phpCMS - Plugin for phpCMS * * <b>License</b> * * 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 * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn * @version $Id: navigation4phpcms.php,v 1.1 2005/01/03 18:21:28 mjahn Exp $ * @package navigation4phpCMS **/ /* * $Log: navigation4phpcms.php,v $ * Revision 1.1 2005/01/03 18:21:28 mjahn * initial commit * */ class navigation4phpcms { var $_quicklinks = array (); var $_Tags = array (); var $_PageContent = array (); /** * @var string name of the menu-parameter */ var $extmenu_param = 'EXTMENUCLASS'; /** * A field in the menu-file defines the values that the URI-parameter have * to have for getting the menuId. In this array you define a association * between the parametername and the menuclass where to search for the * parameter in the menu-array. * * @var array translation table for extmenuclass */ var $extmenu_translation = array ( 'query'=>'kreischa.info.home', 'menuId'=>'kreischa.info.photos'); var $I18N_MODE = 'SUFFIX'; function breadcrumbs () { // breadcrumb link with/without selectbox for last entry $bread = array (); //print_r($this->_quicklinks); $bread = explode ('.', $this->_actualClass); $breadcrumb = array_shift ($bread); $breadcrumbpath = array (); for ($i = 0; $i < count ($bread); $i++) { $breadcrumb .= '.'.$bread [$i]; if (!isset ($this->_quicklinks [$breadcrumb])) { continue; } $breadcrumbpath [] =& $this->_quicklinks [$breadcrumb]; } $output = ''; for ($i = 0; $i < count ($breadcrumbpath); $i++) { if ($i < count ($breadcrumbpath) - 1) { $output .= '<a href="'.$breadcrumbpath [$i] ['LINK'].'" title="'.$breadcrumbpath [$i] ['TITLE_'.$this->lang].'">'.htmlentities ($breadcrumbpath [$i] ['MNAME_'.$this->lang]).'</a> > '; continue; } $output .= $breadcrumbpath [$i] ['MNAME_'.$this->lang]; } array_unshift ($this->_Tags, array ('<phpcms:breadcrumb />', $output)); unset ($bread, $breadcrumb, $breadcrumbpath, $output); return null; } function extmenuclass () { if (trim (implode ($this->_PageContent->MENU)) != $this->extmenu_param) { return null; } unset ($this->_PageContent->MENU); if (!is_array ($this->extmenu_translation)) { return null; } foreach ($this->extmenu_translation as $paramname=>$class) { $this->_PageContent->MENU = array ($class); $this->_actualClass = $class; if (!isset ($_REQUEST [$paramname])) { continue; } foreach ($this->_quicklinks as $q_class=>$q_data) { // if (substr ($q_class, 0, strlen ($class)) != $class) { continue; } if (!isset ($q_data [$paramname]) || $q_data [$paramname] != $_REQUEST [$paramname]) { continue; } $this->_PageContent->MENU = array ($q_data ['CLASS']); $this->_actualClass = $q_data ['CLASS']; break; } } return null; } function headerListing () { if (isset ($this->_PageContent->NOHEADER)) { $this->_Tags [] = array ('<phpcms:headerlist />', ' '); return; } $fields = array ('CONTENT', 'CONTENT1'); $headers = array (); foreach ($fields as $field) { if (!isset ($this->_PageContent->{$field})) { continue; } if (!preg_match_all ('°(<h([0-9])[^>]*>)(([^<]*)</h\\2>)°im', join ('', (array) $this->_PageContent->{$field}), $erg)) { continue; } $headers [] = $erg; } if (count ($headers) == 0) { $this->_Tags [] = array ('<phpcms:headerlist />', ' '); return; } $out = '<div id="headers">' . "\n" . '<h3>Inhaltsverzeichnis</h3>' . "\n" . '<ul>'; $search = array (); $replace = array (); for ($i = 0; $i < count ($headers); $i++) { for ($j = 0; $j < count ($headers [$i] [4]); $j++) { $out .= '<li><a href="#h'.$i.'_'.$j.'">'.$headers [$i] [4] [$j].'</a></li>'."\n"; $replace [] = $headers [$i] [1] [$j].'<a name="h'.$i.'_'.$j.'" id="h'.$i.'_'.$j.'"></a>'.$headers [$i] [3] [$j]; $search [] = $headers [$i] [0] [$j]; } } $out .= '</ul>' . "\n" . '</div>' . "\n"; foreach ($fields as $field) { if (!isset ($this->_PageContent->{$field})) { continue; } $this->_PageContent->{$field} = str_replace ($search, $replace, $this->_PageContent->{$field}); } $this->_Tags [] = array ('<phpcms:headerlist />', $out); //print_r ($this->Tags); } function langs2links ($useI18N = true) { global $DEFAULTS; $out = ''; if ((!isset ($DEFAULTS->I18N) || strtoupper ($DEFAULTS->I18N) !== 'ON') && $useI18N) { $this->_Tags [] = array ('<phpcms:langs2links />', $out); return false; } switch ($DEFAULTS->I18N_MODE) { case 'SUFFIX': $dir = $this->_CheckPage->path.substr ($this->_CheckPage->name, 0, strrpos ($this->_CheckPage->name, '/')); $filename = substr ($this->_CheckPage->name, strrpos ($this->_CheckPage->name, '/'), 100); $pre = substr ($filename, 0, strpos ($filename, $this->lang)); $post = substr ($filename, strpos ($filename, $this->lang) + strlen ($this->lang), strlen ($filename)); $lang_files = $this->_getDirContent ($_SERVER ['DOCUMENT_ROOT'].$dir, $pre, $post); break; case 'DIR': break; default:; } /* echo '<!--'; print_r ($lang_files); echo '-->'; */ $this->_Tags [] = array ('<phpcms:langs2links />', $out); return true; } function run () { $this->_getProjectVars (); $this->_parseMenu (); $this->extmenuclass (); $this->breadcrumbs (); //$this->headerListing (); $this->langs2links (); return null; } function navigation4phpcms (&$content,&$Tags) { return $this->__construct ($content, $Tags); } function __construct (&$content, &$Tags) { global $MENU, $PHPCMS, $CHECK_PAGE; $this->_PageContent =& $content; $this->_MENU =& $MENU; $this->_Tags =& $Tags; $this->_PHPCMS =& $PHPCMS; $this->_CheckPage =& $CHECK_PAGE; $this->lang = $_GET ['lang']; $this->run (); return true; } function _getDirContent ($dir, $pre, $post) { // initialize return-value $ret = array (); // check if direrctory exists if (!file_exists ($dir) || !is_dir ($dir)) { return $ret; } // open directoy $dh = opendir ($dir); if (!$dh) { return $ret; } // walk through directory while (false !== ($entry = readdir ($dh))) { // does pattern containt a directory path if (!strstr ($pattern, '/') && !strstr ($pattern, '\\')) { if (!preg_match ('°'.$pattern.'°ims', $entry, $erg)) { continue; } $ret [$erg [1] [0]] = $erg [0] [0]; } else { // ja -> matcht der der erste Teile des Pfades? // ja -> _getDirContent (Pfad, Dateiname komplett) } } // close directory ressource-handle closedir ($dh); return $ret; } function _parseMenu () { // get value of the $home-variable $home = $this->_project ['HOME']; // create quicklinks to the menu-entries $num_menus = count ($this->_MENU->menuKlasse); // walk through all menus ... for ($i = 0; $i < $num_menus; $i++) { $classIndex = -1; $linkIndex = -1; // get the index of the class field for the actual menu for ($j = 0; $j < count ($this->_MENU->menuFieldNames [$i]); $j++) { if ($this->_MENU->menuFieldNames [$i] [$j] == 'CLASS') { // fieldname is 'CLASS' $classIndex = $j; } if ($this->_MENU->menuFieldNames [$i] [$j] == 'LINK') { // fieldname is 'LINK' $linkIndex = $j; } if ($classIndex != -1 && $linkIndex != -1) { break; } } $num_entries = count ($this->_MENU->menuFieldValues [$i]); for ($j = 0; $j < $num_entries; $j++) { for ($k = 0; $k < count ($this->_MENU->menuFieldNames [$i]); $k++) { $this->_quicklinks [$this->_MENU->menuFieldValues [$i] [$j] [$classIndex]] [$this->_MENU->menuFieldNames [$i] [$k]] =& $this->_MENU->menuFieldValues [$i] [$j] [$k]; } // check if the current page has this class if ( $this->_MENU->menuFieldValues [$i] [$j] [$linkIndex] == $this->_PHPCMS->_request_uri ['_uri_']) { $this->_actualClass = $this->_MENU->menuFieldValues [$i] [$j] [$classIndex]; } } } // if we did not found the current file in the menu-array, check for the field {MENU} if (isset ($this->_PageContent->MENU)) { $menuFieldValue = trim (join ('', $this->_PageContent->MENU)); if ($menuFieldValue != '') { $this->_actualClass = $menuFieldValue; } } unset ($this->_MENU, $menuFieldValue, $num_entries, $i, $j, $k, $classIndex, $linkIndex, $num_menues, $home); return null; } function _getProjectVars () { global $PAGE; for ($i = 0; $i < count ($PAGE->project->lines); $i++) { if (substr (trim ($PAGE->project->lines [$i]), 0, 1) == ';') { continue; } $id = substr ($PAGE->project->lines [$i], 0, strpos ($PAGE->project->lines [$i], ':=')); $value = substr (strstr ($PAGE->project->lines [$i], ':='), 3, 100); $this->_project [trim ($id)] = trim ($value); } unset ($i, $id, $value); return null; } } if (isset($DEFAULTS->EDIT)) { // do nothing in EDIT-mode return; } $navi = new navigation4phpcms ($PageContent, $Tags); ?> |
From: Martin J. <mj...@us...> - 2005-01-03 18:20:14
|
Update of /cvsroot/phpcms-plugins/navigation4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15620/navigation4phpCMS Log Message: Directory /cvsroot/phpcms-plugins/navigation4phpCMS added to the repository |
From: Martin J. <mj...@us...> - 2004-12-09 08:14:04
|
Update of /cvsroot/phpcms-plugins/betablogger4phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25520 Modified Files: bb-script.php bb-edit.php Log Message: fixed a bug in the validating function Index: bb-edit.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-edit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- bb-edit.php 8 Dec 2004 17:24:08 -0000 1.3 +++ bb-edit.php 9 Dec 2004 08:13:53 -0000 1.4 @@ -29,6 +29,9 @@ /* * $Log$ +* Revision 1.4 2004/12/09 08:13:53 mjahn +* fixed a bug in the validating function +* * Revision 1.3 2004/12/08 17:24:08 mjahn * some little changes in phpdoc * @@ -129,8 +132,7 @@ $ping_urls = array_merge ($ping_urls, $matches[1]); } } - header ('Location: '.$this->redirectURL); - //this->redirecturl.'&edit_type=entry&item_id='.$_REQUEST ['item_id']);; } elseif ($_REQUEST['action'] == 'Delete') { + } elseif ($_REQUEST['action'] == 'Delete') { $this->blog->delete ($item); $this->_updateIndexes (); $_REQUEST['item_id'] = 0; @@ -140,8 +142,6 @@ unset($_REQUEST["item_$field"]); } } - header ('Location: '.$this->redirectURL); -// header ('Location: '.$this->redirecturl); } } @@ -171,7 +171,7 @@ // send pings, if there are any ping-URLs in the entry-body if ($_REQUEST['action'] == 'Save') { if (isset($_REQUEST['validate'])) { - $this->_validate($this->blog, $item); + $this->_validate($item); echo "<br>\n"; flush(); } @@ -192,9 +192,11 @@ print "<br>\n"; flush(); } + header ('Location: '.$this->redirectURL.'&edit_type=entry&item_id='.$_REQUEST ['item_id']); } - - + if ($_REQUEST['action'] == 'Delete') { + header ('Location: '.$this->redirectURL); + } return $item; } Index: bb-script.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-script.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- bb-script.php 8 Dec 2004 17:24:08 -0000 1.3 +++ bb-script.php 9 Dec 2004 08:13:53 -0000 1.4 @@ -5,11 +5,12 @@ * This script is a universal interface for integrating betablogger into phpCMS- * driven websites. You can append several parameters to this script * +* <b>List of parameters</b> * <ul> * <li>showvalue=fieldname => prints the value of the named field</li> * </ul> * -* Integration into a phpCMS-driven website (example) +* <b>Integration into a phpCMS-driven website (example)</b> * * By appending the parameter "showvalue" to the script-call you can determine * what part of the betablogger-output is printed out by the script. A example: @@ -37,7 +38,7 @@ * 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 -* +* * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn @@ -47,6 +48,9 @@ /* * $Log$ +* Revision 1.4 2004/12/09 08:13:53 mjahn +* fixed a bug in the validating function +* * Revision 1.3 2004/12/08 17:24:08 mjahn * some little changes in phpdoc * |
From: Martin J. <mj...@us...> - 2004-12-08 18:14:32
|
Update of /cvsroot/phpcms-plugins/livesearch4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12245 Modified Files: livesearch.php Log Message: some little changes in phpdoc Index: livesearch.php =================================================================== RCS file: /cvsroot/phpcms-plugins/livesearch4phpCMS/livesearch.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- livesearch.php 8 Dec 2004 17:52:23 -0000 1.1 +++ livesearch.php 8 Dec 2004 18:14:10 -0000 1.2 @@ -1,4 +1,36 @@ <?php +/** + * LiveSearch4phpCMS + * + * implements a live-search-algorithm for the phpCMS-searchfiles + * + * <b>License</b> + * + * 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 + * + * @author Martin Jahn <mj...@us...> + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @copyright Copyright (c) 2004, Martin Jahn + * @version $Id$ + * @package livesearch4phpCMS + */ +/* $Log$ +/* Revision 1.2 2004/12/08 18:14:10 mjahn +/* some little changes in phpdoc +/* */ + $searchdir = $_SERVER ['DOCUMENT_ROOT'].'/cms/data/suche/'; $searchterm = $_GET ['q']; |
From: Martin J. <mj...@us...> - 2004-12-08 18:11:41
|
Update of /cvsroot/phpcms-plugins/masterPlugin4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11620 Modified Files: masterplugin4phpcms.php Log Message: some little changes in phpdoc Index: masterplugin4phpcms.php =================================================================== RCS file: /cvsroot/phpcms-plugins/masterPlugin4phpCMS/masterplugin4phpcms.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- masterplugin4phpcms.php 8 Dec 2004 17:44:32 -0000 1.1 +++ masterplugin4phpcms.php 8 Dec 2004 18:11:31 -0000 1.2 @@ -1,3 +1,34 @@ <?php +/** + * MasterPlugin4phpCMS + * + * Gives you the possibility to run PLUGINs after SCRIPTs + * + * <b>License</b> + * + * 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 + * + * @author Martin Jahn <mj...@us...> + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @copyright Copyright (c) 2004, Martin Jahn + * @version $Id$ + * @package masterPlugin4phpCMS + */ +/* +* $$ +*/ + $PageContent->SCRIPT_MASTER = array ('/cms/plugins/masterscript.php'); ?> \ No newline at end of file |
From: Martin J. <mj...@us...> - 2004-12-08 17:52:35
|
Update of /cvsroot/phpcms-plugins/livesearch4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7446 Added Files: livesearch.php livesearch.js .cvsignore Log Message: initial import --- NEW FILE: .cvsignore --- .project js* live-request.zip project.index --- NEW FILE: livesearch.php --- <?php $searchdir = $_SERVER ['DOCUMENT_ROOT'].'/cms/data/suche/'; $searchterm = $_GET ['q']; $maxlength = 15; if (file_exists ($searchdir.'words.gz')) { $searchfield = gzfile ($searchdir.'words.gz'); } elseif (file_exists ($searchdir.'words.db')) { $searchfield = file ($searchdir.'words.db'); } else { return ''; } if (file_exists ($searchdir.'files.gz')) { $filesfield = gzfile ($searchdir.'files.gz'); } elseif (file_exists ($searchdir.'files.db')) { $filesfield = file ($searchdir.'files.db'); } else { return ''; } if (file_exists ($searchdir.'data.gz')) { $datafield = gzfile ($searchdir.'data.gz'); } elseif (file_exists ($searchdir.'data.db')) { $datafield = file ($searchdir.'data.db'); } else { return ''; } if (!is_array ($searchfield)) { return ''; } $foundfiles = array (); $foundwords = array (); for ($i = 0; $i < count ($searchfield); $i++) { if (!stristr ($searchfield [$i], $searchterm)) { continue; } $foundwords [] = trim ($searchfield [$i]); $fileids = explode ('+', $datafield [$i]); for ($j = 0; $j < count ($fileids); $j++) { list ($id, $value) = explode ('*', $fileids [$j]); if (!isset ($foundfiles [$id])) { $foundfiles [$id] = 0; } $foundfiles [$id] += $value; } } $foundfiles = array_unique ($foundfiles); arsort ($foundfiles); echo '<ul>'."\n"; echo '<h3>Gefundene Seiten</h3>'."\n"; foreach ($foundfiles as $id=>$value) { list ($link, $title, $text) = explode (';', $filesfield [$id], 3); $link = str_replace ('##', ';', $link); $text = str_replace ('##', ';', $text); $title = str_replace (array ('##', ' — kreischa.info'), array (';', ''), $title); if (strlen ($title) > $maxlength) { $title_short = substr ($title, 0, 15).'…'; } else { $title_short = $title; } echo '<li><a href="'.$link.'" title="'.$text.'">'.$title_short.'</a></li>'."\n"; } echo '</ul>'; sort ($foundwords); echo '<ul class="LSRes">'."\n"; echo '<h3>Gefundene Wörter</h3>'."\n"; for ($i = 0; $i < count ($foundwords); $i++) { echo '<li class="LSRow"><a href="#" onclick="document.getElementById (\'livesearch\').value = \''.$foundwords [$i].'\';return false;">'.$foundwords [$i].'</a></li>'."\n"; } echo '</ul>'."\n"; ?> --- NEW FILE: livesearch.js --- /* // +----------------------------------------------------------------------+ // | Copyright (c) 2004 Bitflux GmbH | // +----------------------------------------------------------------------+ // | Licensed under the Apache License, Version 2.0 (the "License"); | // | you may not use this file except in compliance with the License. | // | You may obtain a copy of the License at | // | http://www.apache.org/licenses/LICENSE-2.0 | // | Unless required by applicable law or agreed to in writing, software | // | distributed under the License is distributed on an "AS IS" BASIS, | // | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | // | implied. See the License for the specific language governing | // | permissions and limitations under the License. | // +----------------------------------------------------------------------+ // | Author: Bitflux GmbH <de...@bi...> | // +----------------------------------------------------------------------+ */ var liveSearchReq = false; var t = null; var liveSearchLast = ""; var isIE = false; // on !IE we only have to initialize it once if (window.XMLHttpRequest) { liveSearchReq = new XMLHttpRequest(); } function liveSearchInit() { if (navigator.userAgent.indexOf("Safari") > 0) { document.getElementById('livesearch').addEventListener("keydown",liveSearchKeyPress,false); // document.getElementById('livesearch').addEventListener("blur",liveSearchHide,false); } else if (navigator.product == "Gecko") { document.getElementById('livesearch').addEventListener("keypress",liveSearchKeyPress,false); document.getElementById('livesearch').addEventListener("blur",liveSearchHideDelayed,false); } else { document.getElementById('livesearch').attachEvent('onkeydown',liveSearchKeyPress); // document.getElementById('livesearch').attachEvent("onblur",liveSearchHide,false); isIE = true; } document.getElementById('livesearch').setAttribute("autocomplete","off"); } function liveSearchHideDelayed() { window.setTimeout("liveSearchHide()",400); } function liveSearchHide() { document.getElementById("LSResult").style.display = "none"; var highlight = document.getElementById("LSHighlight"); if (highlight) { highlight.removeAttribute("id"); } } function liveSearchKeyPress(event) { if (event.keyCode == 40 ) //KEY DOWN { highlight = document.getElementById("LSHighlight"); if (!highlight) { highlight = document.getElementById("LSShadow").firstChild.firstChild; } else { highlight.removeAttribute("id"); highlight = highlight.nextSibling; } if (highlight) { highlight.setAttribute("id","LSHighlight"); } if (!isIE) { event.preventDefault(); } } //KEY UP else if (event.keyCode == 38 ) { highlight = document.getElementById("LSHighlight"); if (!highlight) { highlight = document.getElementById("LSResult").firstChild.firstChild.lastChild; } else { highlight.removeAttribute("id"); highlight = highlight.previousSibling; } if (highlight) { highlight.setAttribute("id","LSHighlight"); } if (!isIE) { event.preventDefault(); } } //ESC else if (event.keyCode == 27) { highlight = document.getElementById("LSHighlight"); if (highlight) { highlight.removeAttribute("id"); } document.getElementById("LSResult").style.display = "none"; } } function liveSearchStart() { if (t) { window.clearTimeout(t); } t = window.setTimeout("liveSearchDoSearch()",200); } function liveSearchDoSearch() { if (typeof liveSearchRoot == "undefined") { liveSearchRoot = ""; } if (typeof liveSearchRootSubDir == "undefined") { liveSearchRootSubDir = ""; } if (typeof liveSearchParams == "undefined") { liveSearchParams = ""; } if (liveSearchLast != document.forms.searchform.query.value) { if (liveSearchReq && liveSearchReq.readyState < 4) { liveSearchReq.abort(); } if ( document.forms.searchform.query.value == "") { liveSearchHide(); return false; } if (window.XMLHttpRequest) { // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP"); } liveSearchReq.onreadystatechange= liveSearchProcessReqChange; liveSearchReq.open("GET", liveSearchRoot + "/cms/plugins/livesearch4phpcms/livesearch.php?q=" + document.searchform.query.value + liveSearchParams); liveSearchLast = document.forms.searchform.query.value; liveSearchReq.send(null); } } function liveSearchProcessReqChange() { if (liveSearchReq.readyState == 4) { var res = document.getElementById("LSResult"); res.style.display = "block"; var sh = document.getElementById("LSShadow"); sh.innerHTML = liveSearchReq.responseText; } } function liveSearchSubmit() { var highlight = document.getElementById("LSHighlight"); if (highlight && highlight.firstChild) { window.location = liveSearchRoot + liveSearchRootSubDir + highlight.firstChild.nextSibling.getAttribute("href"); return false; } else { return true; } } |
From: Martin J. <mj...@us...> - 2004-12-08 17:48:08
|
Update of /cvsroot/phpcms-plugins/livesearch4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6339/livesearch4phpCMS Log Message: Directory /cvsroot/phpcms-plugins/livesearch4phpCMS added to the repository |
From: Martin J. <mj...@us...> - 2004-12-08 17:44:41
|
Update of /cvsroot/phpcms-plugins/masterPlugin4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5736 Added Files: .cvsignore masterscript.php masterplugin4phpcms.php README Log Message: initial import --- NEW FILE: README --- --- NEW FILE: masterscript.php --- <?php /** * MasterPlugin4phpCMS * * Gives you the possibility to run PLUGINs after SCRIPTs * * <b>License</b> * * 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 * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn * @version $Id: masterscript.php,v 1.1 2004/12/08 17:44:32 mjahn Exp $ * @package masterPlugin4phpCMS */ /* * $Log: masterscript.php,v $ * Revision 1.1 2004/12/08 17:44:32 mjahn * initial import * */ /** * import the Tagarray into the namespace */ global $Tags; /** * a simple class for a virtual PAGE-class */ class helpMaster { var $CONTENT = array (); } /** * create a dummy-PAGE */ $PageContent = new helpMaster; /** * fill the dumy-PAGE with the content */ if (isset ($phpCMS_Buffer)) { $PageContent->CONTENT = $phpCMS_Buffer; } else { $PageContent->CONTENT = $phpCMSBuffer; } $Tags = array (); /**#@+ * call the plugins * * here you can include any plugin, that you wish _and_ that only manipulates * the CONTENT-field and/or creates Tags from the CONTENT-content * Successfully tested wih autokeygen, autodecgen, lexiword. Sometimes the * plugin need some manipulation until they work together with * masterPlugin4phpCMS */ include_once (dirname (__FILE__).'/autokeygen/autokeygen.php'); include_once (dirname (__FILE__).'/autodescgen.php'); include_once (dirname (__FILE__).'/lexiword.php'); /**#@-*/ /** * get the content back and replace it to the $phpCMS_Buffer */ if (is_array ($PageContent->CONTENT)) { $search = array (); $replace = array (); $num = count ($Tags); for ($i = 0; $i < $num; $i++) { $search [] = $Tags [$i] [0]; $replace [] = $Tags [$i] [1]; } /** * replace the tags in the CONTENT */ $CONTENT = str_replace ($search, $replace, join ("\r\n", $PageContent->CONTENT)); if (isset ($phpCMS_Buffer)) { $phpCMS_Buffer = explode ("\r\n", $CONTENT); } else { $phpCMSBuffer = explode ("\r\n", $CONTENT); } } ?> --- NEW FILE: masterplugin4phpcms.php --- <?php $PageContent->SCRIPT_MASTER = array ('/cms/plugins/masterscript.php'); ?> --- NEW FILE: .cvsignore --- .project project.index |
From: Martin J. <mj...@us...> - 2004-12-08 17:43:32
|
Update of /cvsroot/phpcms-plugins/masterPlugin4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5515/masterPlugin4phpCMS Log Message: Directory /cvsroot/phpcms-plugins/masterPlugin4phpCMS added to the repository |
From: Martin J. <mj...@us...> - 2004-12-08 17:24:21
|
Update of /cvsroot/phpcms-plugins/betablogger4phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1162 Modified Files: bb-script.php bb-edit.php atom.php bb-tools.php bb-conf.php bb-archive.php bb-tpl.php Log Message: some little changes in phpdoc Index: bb-edit.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-edit.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bb-edit.php 8 Dec 2004 17:21:58 -0000 1.2 +++ bb-edit.php 8 Dec 2004 17:24:08 -0000 1.3 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Version$ +* @version $Id$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.3 2004/12/08 17:24:08 mjahn +* some little changes in phpdoc +* * Revision 1.2 2004/12/08 17:21:58 mjahn * some little changes in phpdoc * Index: bb-conf.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-conf.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bb-conf.php 8 Dec 2004 17:21:58 -0000 1.2 +++ bb-conf.php 8 Dec 2004 17:24:08 -0000 1.3 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Version$ +* @version $Id$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.3 2004/12/08 17:24:08 mjahn +* some little changes in phpdoc +* * Revision 1.2 2004/12/08 17:21:58 mjahn * some little changes in phpdoc * Index: bb-archive.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-archive.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bb-archive.php 8 Dec 2004 17:21:58 -0000 1.2 +++ bb-archive.php 8 Dec 2004 17:24:08 -0000 1.3 @@ -28,12 +28,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Version$ +* @version $Id$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.3 2004/12/08 17:24:08 mjahn +* some little changes in phpdoc +* * Revision 1.2 2004/12/08 17:21:58 mjahn * some little changes in phpdoc * Index: bb-tools.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-tools.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bb-tools.php 8 Dec 2004 17:21:58 -0000 1.2 +++ bb-tools.php 8 Dec 2004 17:24:08 -0000 1.3 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Version$ +* @version $Id$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.3 2004/12/08 17:24:08 mjahn +* some little changes in phpdoc +* * Revision 1.2 2004/12/08 17:21:58 mjahn * some little changes in phpdoc * Index: bb-script.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-script.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bb-script.php 8 Dec 2004 17:21:58 -0000 1.2 +++ bb-script.php 8 Dec 2004 17:24:08 -0000 1.3 @@ -41,12 +41,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Version$ +* @version $Id$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.3 2004/12/08 17:24:08 mjahn +* some little changes in phpdoc +* * Revision 1.2 2004/12/08 17:21:58 mjahn * some little changes in phpdoc * Index: atom.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/atom.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- atom.php 8 Dec 2004 17:21:58 -0000 1.2 +++ atom.php 8 Dec 2004 17:24:08 -0000 1.3 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Version$ +* @version $Id$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.3 2004/12/08 17:24:08 mjahn +* some little changes in phpdoc +* * Revision 1.2 2004/12/08 17:21:58 mjahn * some little changes in phpdoc * Index: bb-tpl.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-tpl.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- bb-tpl.php 8 Dec 2004 17:21:58 -0000 1.2 +++ bb-tpl.php 8 Dec 2004 17:24:08 -0000 1.3 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Version$ +* @version $Id$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.3 2004/12/08 17:24:08 mjahn +* some little changes in phpdoc +* * Revision 1.2 2004/12/08 17:21:58 mjahn * some little changes in phpdoc * |
From: Martin J. <mj...@us...> - 2004-12-08 17:22:09
|
Update of /cvsroot/phpcms-plugins/betablogger4phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv696 Modified Files: bb-script.php bb-edit.php atom.php bb-tools.php bb-conf.php bb-archive.php bb-tpl.php Log Message: some little changes in phpdoc Index: bb-edit.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-edit.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bb-edit.php 8 Dec 2004 17:18:14 -0000 1.1 +++ bb-edit.php 8 Dec 2004 17:21:58 -0000 1.2 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Id$ +* @version $Version$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.2 2004/12/08 17:21:58 mjahn +* some little changes in phpdoc +* * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * Index: bb-conf.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-conf.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bb-conf.php 8 Dec 2004 17:18:14 -0000 1.1 +++ bb-conf.php 8 Dec 2004 17:21:58 -0000 1.2 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Id$ +* @version $Version$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.2 2004/12/08 17:21:58 mjahn +* some little changes in phpdoc +* * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * Index: bb-archive.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-archive.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bb-archive.php 8 Dec 2004 17:18:14 -0000 1.1 +++ bb-archive.php 8 Dec 2004 17:21:58 -0000 1.2 @@ -28,12 +28,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Id$ +* @version $Version$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.2 2004/12/08 17:21:58 mjahn +* some little changes in phpdoc +* * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * Index: bb-tools.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-tools.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bb-tools.php 8 Dec 2004 17:18:14 -0000 1.1 +++ bb-tools.php 8 Dec 2004 17:21:58 -0000 1.2 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Id$ +* @version $Version$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.2 2004/12/08 17:21:58 mjahn +* some little changes in phpdoc +* * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * Index: bb-script.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-script.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bb-script.php 8 Dec 2004 17:18:14 -0000 1.1 +++ bb-script.php 8 Dec 2004 17:21:58 -0000 1.2 @@ -41,12 +41,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Id$ +* @version $Version$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.2 2004/12/08 17:21:58 mjahn +* some little changes in phpdoc +* * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * Index: atom.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/atom.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- atom.php 8 Dec 2004 17:18:14 -0000 1.1 +++ atom.php 8 Dec 2004 17:21:58 -0000 1.2 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Id$ +* @version $Version$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.2 2004/12/08 17:21:58 mjahn +* some little changes in phpdoc +* * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * Index: bb-tpl.php =================================================================== RCS file: /cvsroot/phpcms-plugins/betablogger4phpcms/bb-tpl.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bb-tpl.php 8 Dec 2004 17:18:15 -0000 1.1 +++ bb-tpl.php 8 Dec 2004 17:21:58 -0000 1.2 @@ -23,12 +23,15 @@ * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn -* @version $Id$ +* @version $Version$ * @package betablogger4phpCMS */ /* * $Log$ +* Revision 1.2 2004/12/08 17:21:58 mjahn +* some little changes in phpdoc +* * Revision 1.1 2004/12/08 17:18:15 mjahn * initial import * |
From: Martin J. <mj...@us...> - 2004-12-08 17:18:24
|
Update of /cvsroot/phpcms-plugins/betablogger4phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32349 Added Files: bb-script.php bb-edit.php atom.php bb-tools.php bb-conf.php js_gallery.php bb-archive.php bb-tpl.php textile.php bb-script.tpl bb-edit.tpl .cvsignore Log Message: initial import --- NEW FILE: .cvsignore --- edit.js edit.php gui.txt index.php log.txt main.inc pingback.php project.index readme.html release rss.php settings.inc settings.txt spam-4.4.0.tar.gz trackback.php .htaccess .project .docs* --- NEW FILE: bb-archive.php --- <?php /** * Betablogger4phpCMS - a news system for phpCMS * * Archive script * <ul> * <li><b>year~=2004</b> shows all the entries from 2004</li> * <li><b>month~=11</b> shows all the entries from novembers</li> * <li><b>day~=23</b> shows all the entries from 23rd days of a month</li> * </ul> * * <b>License</b> * * 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 * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn * @version $Id: bb-archive.php,v 1.1 2004/12/08 17:18:14 mjahn Exp $ * @package betablogger4phpCMS */ /* * $Log: bb-archive.php,v $ * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * */ include_once (dirname (__FILE__).'/bb-tpl.php'); include_once (dirname (__FILE__).'/bb-tools.php'); if (!class_exists ('betablogger4phpcms')) { /** * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn * @version $Id: bb-archive.php,v 1.1 2004/12/08 17:18:14 mjahn Exp $ **/ class betablogger4phpcms { /** * define some helpful functions for some display-modes * you can modify the layout in the functions */ /** * prints out a formatted entry * * @param string entry **/ function BBdisplayEntry ($entry, $tpl_prefix = '') { $entry = $this->__customizing ($entry, $tpl_prefix.'entry'); foreach (get_object_vars ($entry) as $id=>$value) { $this->TPL->setFieldValue ('entry.'.$id, $value); } $this->TPL->setFieldValue ('entry.permalink', $entry->get_permalink()); $this->TPL->setFieldValue ('entry.num.comment', $entry->num("comment")); $this->TPL->setFieldValue ('entry.num.backlink', $entry->num("backlink")); echo $this->TPL->process ($tpl_prefix.'entry'); } /** * prints out a formatted message **/ function BBdisplayNoentryMessage () { echo $this->TPL->process ('noentry'); } /** * prints out a formatted comment * * @param string entry **/ function BBprocessCommentForm ($entry) { // Process submitted comment: $error = ""; if (!isset($_POST["entry_id"])) { return; } $comment = new comment; $comment->name = stripslashes ($_POST["name"]); $comment->email = stripslashes ($_POST["email"]); $comment->comment = stripslashes ($_POST["comment"]); $comment->entry_id = $_POST["entry_id"]; if (!$comment->name) { $error = "Bitte einen Namen eingeben"; } elseif (!$comment->comment) { $error = "Bitte das Formular ausf�llen."; } else { $this->blog->save ($comment); // redirect to a save page header ('Location: '.$this->blog->redirecturl); } return $error; } /** * prints out a formatted comment * * @param string entry **/ function BBdisplayComments ($entry, $error = '') { $this->TPL->setFieldValue ('comment.error', $error); echo $this->TPL->process ('comments'); $comments = $entry->get("comment", "", 0, "desc"); // empty query, unlimited number if (!$comments) { echo $this->TPL->process ('nocomment'); } foreach ($comments as $comment) { $comment = $this->__customizing ($comment, 'comment'); foreach (get_object_vars ($comment) as $id=>$value) { //echo $id.'='.$value.'<br />'; $this->TPL->setFieldValue ('comment.'.$id, $value); } $this->TPL->setFieldValue ('comment.gravatar', ''); if ($this->gravatar == 1 && isset ($comment->email) && trim ($comment->email) != '') { $this->TPL->setFieldValue ('gravatar.uri', $this->gravataruri.md5($comment->email)); $this->TPL->setFieldValue ('comment.gravatar', $this->TPL->process ('gravatar')); } echo $this->TPL->process ('comment'); } } /** * prints out a formatted commentform * * @param string entry **/ function BBdisplayCommentForm ($entry) { $this->TPL->setFieldValue ('commentform.action', $entry->get_permalink()); foreach (get_object_vars ($entry) as $id=>$value) { $this->TPL->setFieldValue ('entry.'.$id, $value); } $this->TPL->setFieldValue ('entry.permalink', $entry->get_permalink()); $this->TPL->setFieldValue ('entry.date', date("d.m.Y u\m H:i", $entry->date)); echo $this->TPL->process ('commentform'); } /** * prints out a formatted backtrackentry * * @param string entry **/ function BBdisplayTrackback ($entry) { $backlinks = $entry->get ('backlink'); if (!$backlinks) { $this->TPL->process ('notrackback'); } else { $o = ''; foreach ($backlinks as $link) { $link = $this->__customizing ($link, 'backlink'); if ($link->site) { $link->title = $link->site.': '.$link->title; } elseif (!$link->title) { $link->title = $link->url; } foreach (get_object_vars ($link) as $id=>$value) { $this->TPL->setFieldValue ('link.'.$id, $value); } $this->TPL->setFieldValue ('link.date', date("d.m.Y u\m H:i", $link->date)); if ($link->excerpt) { $this->TPL->setFieldValue ('link.excerpt', strip_tags ($link->excerpt)); } $o .= $this->TPL->process ('trackback'); } // end of links $this->TPL->setFieldValue ('trackback.list', $o); echo $this->TPL->process ('trackbacks'); } } /** * prints out a single field-value * * @param string entry * @param string fieldname **/ function BBdisplayField ($entry, $fieldname) { /* check if the wanted fieldvalue is available and if so print it out */ if (isset ($entry->{$fieldname})) { echo $entry->{$fieldname}; } } /** * prints out a navigation for paging the entries * * @param int start * @param int max */ function BBdisplayNavigation ($start, $max) { $this->TPL->setFieldValue ('navigation.start', $start + 1); $this->TPL->setFieldValue ('navigation.count', $max + 1); $this->TPL->setFieldValue ('navigation.ende', $start + $this->display_count > $max ? $max + 1 : $start + $this->display_count); $this->TPL->setFieldValue ('navigation.prevlink', '?&start='.($start - $this->display_count < 0 ? 0 : $start + 1 - $this->display_count)); $this->TPL->setFieldValue ('navigation.nextlink', '?&start='.($start + 1 + $this->display_count)); echo $this->TPL->process ('navigation.pre'); if ($start > 0) { echo $this->TPL->process ('navigation.prev'); } echo $this->TPL->process ('navigation.between'); if ($start + $this->display_count < $max + 1) { echo $this->TPL->process ('navigation.next'); } echo $this->TPL->process ('navigation.past'); } /** * prints out a single field-value * * @param string entry * @param string fieldname **/ function BBdisplayTrackbackLink ($entry) { /* display ping-data */ echo $entry->get_ping_data('xhtml'); } /** * constructor in PHP4-syntax * @param Blog $blog the blog we should use for work */ function betablogger4phpcms (&$blog) { return $this->__construct ($blog); } /** * the main function of this class */ function run () { // load entries from blog $entries = $this->blog->get("entry", $_GET); /** * set the URL to redirect to after critical operations (like saving * a comment or similar) * @see http://www.php-mag.net/itr/online_artikel/psecom,id,637,nodeid,114.html (in english) */ if (isset ($entries [0])) { $this->blog->redirecturl = $entries [0]->get_permalink (); } else { $this->blog->redirecturl = $_SERVER ['PHP_SELF']; } // load template file $this->TPL = new bbTPL (dirname (__FILE__).'/'.$this->tplfile); if (isset ($_GET [$this->showvalue])) { // display single fieldvalue // check if the wanted fieldvalue is available and if so print it out if (count ($entries) > 0) { $this->BBdisplayField ($entries [0], $_GET[$this->showvalue]); } // unset the GET-variable (this is necessary) // otherwise all other scripts, that are included in the same contentfile // have the same value in $_GET unset ($_GET [$this->showvalue]); } elseif (isset ($_GET [$this->trackbackvalue])) { // display the trackback code // only one entry available if (count ($entries) == 1) { $this->BBdisplayTrackbackLink ($entries [0]); } // unset the GET-variable (this is necessary) // otherwise all other scripts, that are included in the same contentfile // have the same value in $_GET unset ($_GET [$this->trackbackvalue]); } elseif (isset ($_GET [$this->edit])) { // editmode /** * include the file with the editor for the blog **/ include (dirname (__FILE__).'/bb-edit.php'); $edit =& new bbedit4phpcms ($this->blog); $edit->run (); // unset the GET-variable (this is necessary) // otherwise all other scripts, that are included in the same contentfile // have the same value in $_GET unset ($_GET [$this->edit]); } else { // display normal entry // no entries available if (!$entries) { $this->BBdisplayNoentryMessage (); } // display single entry if (count ($entries) == 1) { $entry =& $entries [0]; // if title-field is empty go on with next entry if (trim ($entry->title) == '') { continue; } // if body-field is empty go on with next entry if (trim ($entry->body) == '') { continue; } // display the entry $this->BBdisplayEntry ($entry, 'single'); // display the comments $this->BBdisplayComments ($entry, $this->BBprocessCommentForm ($entry)); // display the form for new comments $this->BBdisplayCommentForm ($entry); // display the backtracks $this->BBdisplayTrackback ($entry); } // display multiple entries if (count ($entries) > 1) { $index = array_keys ($entries); $index = $this->__sortEntries ($entries, $index); $start = 0; if (isset ($_GET ['start']) && is_numeric ($_GET ['start'])) { if ($start < count ($index) - 1) { $start = (int) $_GET ['start'] - 1; } if ($start < 0) { $start = 0; } if ($start > count ($index) - 1) { $start = count ($index) - 1; } } // walk through all entries for ($i = $start; $i < count ($index) && $i < $start + $this->display_count; $i++) { // does the index-id exist if (!isset ($index [$i]) || trim ($index [$i]) == '') { continue; } $entry = $entries [$index [$i]]; // if title-field is empty go on with next entry if (trim ($entry->title) == '') { continue; } // if body-field is empty go on with next entry if (trim ($entry->body) == '') { continue; } // display the entry $this->BBdisplayEntry ($entry); } if ($start > 0 || $start + $this->display_count < count ($index)) { $this->BBdisplayNavigation ($start, count ($index) - 1); } } } } function __sortEntries ($entries, $index) { // no sort-order defined if (trim ($this->sort_entries_by_field) == '') { return $index; } // no indexfile available if (!file_exists ($this->blog->data_dir.'/entry/'.$this->sort_entries_by_field.'/index')) { return $index; } // predefine some variables $indexes = array (); $j = 0; // create a hash with the relation between entries and their array position for ($i = 0; $i < count ($entries); $i++) { // relation entry->id <=> position in $entries $indexes [$entries [$i]->id] = $i; } // get the indexfile as array $indexfile = file ($this->blog->data_dir.'/entry/'.$this->sort_entries_by_field.'/index'); // sort the index-array rsort ($indexfile); //echo '<pre>$indexfile :';print_r ($indexfile);echo '</pre>'; // extract the entry-ids out of the index-array for ($i = 0; $i < count ($indexfile); $i++) { $indexfile [$i] = trim ($indexfile [$i]); if (strpos ($indexfile [$i], ' ') === false) { //echo $i.' failed <br />'; continue; } $id = trim (strrchr (trim ($indexfile [$i]), ' ')); if (!isset ($indexes [$id])) { continue; } //echo $id.' = '.$indexfile [$i].'<br />'; $index [$j] = $indexes [$id]; $j++; } //echo '<pre>$index : ';print_r ($index);echo '</pre>'; return $index; } /** * this function lets all the customizing functions work on the given * argument * * @param mixed entry the entry with the fields to give to the * userfunctions as parameter * @return mixed the result of the customizing action */ function __customizing ($entry, $type) { if (!isset ($this->extra) || !is_array ($this->extra)) { return $entry; } if (!isset ($this->extra [$type])) { return $entry; } echo '<!--'; foreach ($this->extra [$type] as $id=>$functions) { echo 'customizing '.$type.' field '.$id.' with '.$functions.'<br />'; if (!isset ($entry->{$id})) { continue; } if ($id == 'date') { $entry->{$id.'_custom'} = call_user_func ($functions, $entry->{$id}); } else { $entry->{$id} = call_user_func ($functions, $entry->{$id}); } } echo '-->'; return $entry; } /** * this function lets all the validating functions work on the given * argument * * @param mixed entry the entry with the fields to give to the * userfunctions as parameter * @return mixed the result of the validating action */ function __validating ($entry, $type) { return $entry; } /** * constructor in PHP5-syntax * @param Blog $blog the blog we should use for work */ function __construct (&$blog) { $this->blog =& $blog; $showconf = 'BB_SCRIPT_CONF'; include (dirname (__FILE__).'/bb-conf.php'); $showconf = ''; return true; } } } error_reporting (E_ALL); /** * load _one_ instance of betablogger4phpcms in the global namespace and call it from there, * if it already exists there. this saves memory, because only on instance is needed for one * single page, regardless of the times you call bb_script in your contentfile. **/ if (!isset ($GLOBALS ['BB_instance'])) { /** * include the class-definitions of betablogger **/ include_once (dirname (__FILE__).'/main.inc'); $GLOBALS ['BB_instance'] =& new betablogger4phpcms ($blog); } $GLOBALS ['BB_instance']->run (); ?> --- NEW FILE: bb-edit.tpl --- {editor} <form action="/neues/edit.de.htm?edit=&" method="post" id="editform"> <input type="hidden" name="edit" value="1" /> <input type="hidden" name="select_num" value="{editor.select_num}" /> <input type="hidden" name="select_show" value="{editor.select_show}" /> <input type="hidden" name="select_query" value="{editor.select_query}" /> <input type="hidden" name="item_id" value="0"> <fieldset> <legend>Artikel auswählen</legend> <label> <span>Eintrag auswählen :</span> <select name="item_id" size="{editor.selector.size}" id="selectfield" onchange="this.form.submit()" /> <option id="newitem" value="0" selected>Neuer Eintrag{entries} </select> </label><label title="Einträge durchsuchen"> <span>Suchen</span> <input type="text" name="select_query" value="" onchange="this.form.submit()" /> </label> </fieldset> <div class="center"> <label class="horizontal"><span class="hidden">Vorschau</span><input type="submit" name="action" value="Preview" /></label> <label class="horizontal"><span class="hidden">Eintrag abspeichern</span><input type="submit" name="action" value="Save" /></label> <label class="horizontal"><span class="hidden">speichern als </span> <select name="save_as" size="1" class="horizontal">{editor.save_as}</select> </label> </div> <div id="entryform"> {entry.fields} </div> <div id="commentform"> {entry.comment} </div> <div id="trackbackform"> {entry.trackback} </div> <div id="pingbackform"> {entry.pingback} </div> {entry.selector} <option value="{entry.id}">{entry.id}…</option> {field.text} <label> <span>{field.label}</span> <input type="text" name="{field.name}" value="{field.value}" /> </label> {field.textarea} <label> <span><span class="hidden">{field.label}</span></span> <textarea rows="10" cols="40" name="{field.name}">{field.value}</textarea> </label> {field.hidden} <input type="hidden" name="{field.name}" value="{field.value}" /> {field.submit} <label> <span><span class="hidden">{field.label}</span></span> <input type="submit" name="{field.name}" value="{field.value}" /> </label> {entry.entry} {comment.entry} {trackback.entry} {pingback.entry} --- NEW FILE: textile.php --- <?php /* This is Textile A Humane Web Text Generator Version 1.0 21 Feb, 2003 Copyright (c) 2003, Dean Allen, www.textism.com All rights reserved. _______ LICENSE Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name Textile nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. _____________ USING TEXTILE Block modifier syntax: Header: hn. Paragraphs beginning with 'hn. ' (where n is 1-6) are wrapped in header tags. Example: <h1>Text</h1> Header with CSS class: hn(class). Paragraphs beginning with 'hn(class). ' receive a CSS class attribute. Example: <h1 class="class">Text</h1> Paragraph: p. (applied by default) Paragraphs beginning with 'p. ' are wrapped in paragraph tags. Example: <p>Text</p> Paragraph with CSS class: p(class). Paragraphs beginning with 'p(class). ' receive a CSS class attribute. Example: <p class="class">Text</p> Blockquote: bq. Paragraphs beginning with 'bq. ' are wrapped in block quote tags. Example: <blockquote>Text</blockquote> Blockquote with citation: bq(citeurl). Paragraphs beginning with 'bq(citeurl). ' recieve a citation attribute. Example: <blockquote cite="citeurl">Text</blockquote> Numeric list: # Consecutive paragraphs beginning with # are wrapped in ordered list tags. Example: <ol><li>ordered list</li></ol> Bulleted list: * Consecutive paragraphs beginning with * are wrapped in unordered list tags. Example: <ul><li>unordered list</li></ul> Phrase modifier syntax: _emphasis_ <em>emphasis</em> __italic__ <i>italic</i> *strong* <strong>strong</strong> **bold** <b>bold</b> ??citation?? <cite>citation</cite> -deleted text- <del>deleted</del> +inserted text+ <ins>inserted</ins> ^superscript^ <sup>superscript</sup> ~subscript~ <sub>subscript</sub> @code@ <code>computer code</code> ==notextile== leave text alone (do not format) "linktext":url <a href="url">linktext</a> "linktext(title)":url <a href="url" title="title">linktext</a> !imageurl! <img src="imageurl"> !imageurl(alt text)! <img src="imageurl" alt="alt text" /> !imageurl!:linkurl <a href="linkurl"><img src="imageurl" /></a> ABC(Always Be Closing) <acronym title="Always Be Closing">ABC</acronym> */ function textile($text) { ### Basic global changes $text = stripslashes($text); # turn any incoming ampersands into a dummy character for now. # This uses a negative lookahead for alphanumerics followed by a semicolon, # implying an incoming html entity, to be skipped $text = preg_replace("/&(?![#a-zA-Z0-9]+;)/","x%x%",$text); # entify everything if (function_exists('mb_encode_numericentity')) { $text = encode_high($text); } else { $text = htmlentities($text,ENT_NOQUOTES); } # unentify angle brackets and ampersands $text = str_replace(array(">", "<", "&"), array(">", "<", "&"), $text); # zap carriage returns $text = str_replace("\r\n", "\n", $text); # zap tabs $text = str_replace("\t", "", $text); $text = preg_split("/\n/",$text); foreach($text as $line){ $line = trim($line); $lineout[] = $line; } $text = implode("\n",$lineout); # clean up loose white space on empty lines $text = preg_replace('/^\s*$/mU',"",$text); ### Find and replace quick tags # double equal signs mean <notextile> $text = preg_replace('/(^|\s)==(.*)==([^[:alnum:]]{0,2})(\s|$)?/mU','$1<notextile>$2</notextile>$3$4',$text); # image qtag $text = preg_replace('/!([^\s\(=]+)\s?(?:\(([^\)]+)\))?!(\s)?/mU','<img src="$1" alt="$2" border="0" />$3',$text); # image with hyperlink $text = preg_replace('/(<img.+ \/>):(\S+)(\s)/U','<a href="$2">$1</a>$3',$text); # hyperlink qtag $text = preg_replace( '/ ([\s[{(]|[[:punct:]])? # 1 optional space or brackets before " # starting " ([^"\(]+) # 2 text of link \s? # opt space (?:\(([^\(]*)\))? # 3 opt title attribute in parenths ": # dividing ": (\S+) # 4 suppose this is the url (\/?) # 5 opt trailing slash ([^[:alnum:]\/;]|[1-9^]*) # 6 opt punctuation after the url (\s|$) # 7 either white space or end of string /xU', '$1<a href="$4$5" title="$3">$2</a>$6$7',$text); # arrange qtag delineators and replacements in an array $qtags = array( '\*\*'=>'b', '\*'=>'strong', '\?\?'=>'cite', '-'=>'del', '\+'=>'ins', '~'=>'sub', '@'=>'code'); # loop through the array, replacing qtags with html foreach($qtags as $f=>$r){ $text = preg_replace( '/(^|\s|>)'.$f.'\b(.+)\b([[:punct:]]*)'.$f.'([[:punct:]]{0,2})(\s|$)?/mU', '$1<'.$r.'>$2$3</'.$r.'>$4$5', $text); } # some weird bs with underscores and \b word boundaries, # so we'll do those on their own $text = preg_replace('/(^|\s)__(.*)__([[:punct:]]{0,2})(\s|$)?/mU','$1<i>$2</i>$3$4',$text); $text = preg_replace('/(^|\s)_(.*)_([[:punct:]]{0,2})(\s|$)?/mU','$1<em>$2</em>$3$4',$text); $text = preg_replace('/\^(.*)\^/mU','<sup>$1</sup>',$text); ### Find and replace typographic chars and special tags # small problem with double quotes at the end of a string $text = preg_replace('/"$/',"\" ", $text); # NB: all these will wreak havoc inside <html> tags $glyph_search = array( '/([^\s[{(>])?\'(?(1)|(?=\s|s\b))/', # single closing '/\'/', # single opening '/([^\s[{(])?"(?(1)|(?=\s))/', # double closing '/"/', # double opening '/\b( )?\.{3}/', # ellipsis '/\b([A-Z][A-Z0-9]{2,})\b(?:[(]([^)]*)[)])/', # 3+ uppercase acronym '/(^|[^"][>\s])([A-Z][A-Z0-9 ]{2,})([^<a-z0-9]|$)/', # 3+ uppercase caps '/\s?--\s?/', # em dash '/\s-\s/', # en dash '/(\d+) ?x ?(\d+)/', # dimension sign '/\b ?[([]TM[])]/i', # trademark '/\b ?[([]R[])]/i', # registered '/\b ?[([]C[])]/i'); # copyright $glyph_replace = array( '$1’$2', # single closing '‘', # single opening '$1”', # double closing '“', # double opening '$1…', # ellipsis '<acronym title="$2">$1</acronym>', # 3+ uppercase acronym '$1<span class="caps">$2</span>$3', # 3+ uppercase caps '—', # em dash ' – ', # en dash '$1×$2', # dimension sign '™', # trademark '®', # registered '©'); # copyright # set toggle for turning off replacements between <code> or <pre> $codepre = false; # if there is no html, do a simple search and replace if(!preg_match("/<.*>/",$text)){ $text = preg_replace($glyph_search,$glyph_replace,$text); } else { # else split the text into an array at <.*> $text = preg_split("/(<.*>)/U",$text,-1,PREG_SPLIT_DELIM_CAPTURE); foreach($text as $line){ # matches are off if we're between <code>, <pre> etc. if(preg_match('/<(code|pre|kbd|notextile)>/i',$line)){$codepre = true; } if(preg_match('/<\/(code|pre|kbd|notextile)>/i',$line)){$codepre = false; } if(!preg_match("/<.*>/",$line) && $codepre == false){ $line = preg_replace($glyph_search,$glyph_replace,$line); } # convert htmlspecial if between <code> if ($codepre == true){ $line = htmlspecialchars($line,ENT_NOQUOTES,"UTF-8"); $line = str_replace("<pre>","<pre>",$line); $line = str_replace("<code>","<code>",$line); } # each line gets pushed to a new array $glyph_out[] = $line; } # $text is now the new array, cast to a string $text = implode('',$glyph_out); } ### Block level formatting # deal with forced breaks; this is going to be a problem between # <pre> tags, but we'll clean them later $text = preg_replace("/(\S)(_*)([[:punct:]]*) *\n([^#*\s])/", "$1$2$3<br />$4", $text); # might be a problem with lists $text = str_replace("l><br />", "l>\n", $text); # split the text into an array by newlines $text = preg_split("/\n/",$text); array_push($text," "); $list = ''; $pre = false; $block_find = array( '/^\s?\*\s(.*)/', # bulleted list * '/^\s?#\s(.*)/', # numeric list # '/^bq\. (.*)/', # blockquote bq. '/^h(\d)\(([[:alnum:]]+)\)\.\s(.*)/', # header hn(class). w/ css class '/^h(\d)\. (.*)/', # plain header hn. '/^p\(([[:alnum:]]+)\)\.\s(.*)/', # para p(class). w/ css class '/^p\. (.*)/i', # plain paragraph '/^([^\t ]+.*)/i' # remaining plain paragraph ); $block_replace = array( "\t<liu>$1</liu>$2", "\t<lio>$1</lio>$2", "\t<blockquote>$1</blockquote>$2", "\t<h$1 class=\"$2\">$3</h$1>$4", "\t<h$1>$2</h$1>$3", "\t<p class=\"$1\">$2</p>$3", "\t<p>$1</p>", "\t<p>$1</p>$2" ); # loop through lines foreach($text as $line){ #make sure the line isn't blank if (!preg_match('/^$/',$line)) { # matches are off if we're between <pre> or <code> tags if(preg_match('/<pre>/i',$line)){$pre = true; } # deal with block replacements first, then see if we're in a list if ($pre == false){ $line = preg_replace($block_find,$block_replace,$line); } # kill any br tags that slipped in earlier if ($pre == true){ $line = str_replace("<br />","\n",$line); } # matches back on after </pre> if(preg_match('/<\/pre>/i',$line)){$pre = false; } # at the beginning of a list, $line switches to a value if ($list == '' && preg_match('/^\t<li/',$line)){ $line = preg_replace('/^(\t<li)(o|u)/',"\n<$2l>\n$1$2",$line); $list = $line{2}; # at the end of a list, $line switches to empty } else if ($list != '' && !preg_match('/^\t<li'.$list.'/',$line)){ $line = preg_replace('/^(.*)$/',"</".$list."l>\n$1",$line); $list = ''; } } # push each line to a new array once it's processed $block_out[] = $line; } $text = implode("\n",$block_out); #clean up <notextile> $text = preg_replace('/<\/?notextile>/', "",$text); # clean up liu and lio $text = preg_replace('/<(\/?)li(u|o)>/', "<$1li>",$text); # turn the temp char back to an ampersand entity $text = str_replace("x%x%","&",$text); # Newline linebreaks, just for markup tidiness $text = str_replace("<br />","<br />\n",$text); return $text; } function callback_url($text,$title='',$url) { $out = 'a href="'.$url.'"'; $out.=($title!='')?' title="'.$title.'"':''; $out.='>$text</a>'; return $out; } function textile_popup_help($name,$helpvar,$windowW,$windowH) { $out = $name; $out .= ' <a target="_blank" href="txp_help.php?item='.$helpvar.'"'; $out .= ' onclick="window.open(this.href, \'popupwindow\', \'width='.$windowW.',height='.$windowH.',scrollbars,resizable\'); return false;" style="color:blue;background-color:#ddd">?</a><br />'; print $out; } function encode_high($text) { $cmap = cmap(); return mb_encode_numericentity($text, $cmap, "UTF-8"); } function decode_high($text) { $cmap = cmap(); return mb_decode_numericentity($text, $cmap, "UTF-8"); } function cmap() { $f = 0xffff; $cmap = array(160, 255, 0, $f, 402, 402, 0, $f, 913, 929, 0, $f, 931, 937, 0, $f, 945, 969, 0, $f, 977, 978, 0, $f, 982, 982, 0, $f, 8226, 8226, 0, $f, 8230, 8230, 0, $f, 8242, 8243, 0, $f, 8254, 8254, 0, $f, 8260, 8260, 0, $f, 8465, 8465, 0, $f, 8472, 8472, 0, $f, 8476, 8476, 0, $f, 8482, 8482, 0, $f, 8501, 8501, 0, $f, 8592, 8596, 0, $f, 8629, 8629, 0, $f, 8656, 8660, 0, $f, 8704, 8704, 0, $f, 8706, 8707, 0, $f, 8709, 8709, 0, $f, 8711, 8713, 0, $f, 8715, 8715, 0, $f, 8719, 8719, 0, $f, 8721, 8722, 0, $f, 8727, 8727, 0, $f, 8730, 8730, 0, $f, 8733, 8734, 0, $f, 8736, 8736, 0, $f, 8743, 8747, 0, $f, 8756, 8756, 0, $f, 8764, 8764, 0, $f, 8773, 8773, 0, $f, 8776, 8776, 0, $f, 8800, 8801, 0, $f, 8804, 8805, 0, $f, 8834, 8836, 0, $f, 8838, 8839, 0, $f, 8853, 8853, 0, $f, 8855, 8855, 0, $f, 8869, 8869, 0, $f, 8901, 8901, 0, $f, 8968, 8971, 0, $f, 9001, 9002, 0, $f, 9674, 9674, 0, $f, 9824, 9824, 0, $f, 9827, 9827, 0, $f, 9829, 9830, 0, $f, 338, 339, 0, $f, 352, 353, 0, $f, 376, 376, 0, $f, 710, 710, 0, $f, 732, 732, 0, $f, 8194, 8195, 0, $f, 8201, 8201, 0, $f, 8204, 8207, 0, $f, 8211, 8212, 0, $f, 8216, 8218, 0, $f, 8218, 8218, 0, $f, 8220, 8222, 0, $f, 8224, 8225, 0, $f, 8240, 8240, 0, $f, 8249, 8250, 0, $f, 8364, 8364, 0, $f); return $cmap; } ?> --- NEW FILE: bb-script.tpl --- {entry} <h2>{entry.title}</h2> <div class="entry">{entry.body} <ul class="horizontal trenner center small clear"> <li>Veröffentlicht am <a href="{entry.permalink}">{entry.date_custom}</a></li> <li>Autor: {entry.name}</li> <li><a href="{entry.permalink}#comments">Kommentare ({entry.num.comment}) </a></li> <li><a href="{entry.permalink}#links">Backlinks ({entry.num.backlink}) </a></li> </ul> </div> {singleentry} <h2>{entry.title}</h2> <div class="entry">{entry.body} <ul class="horizontal trenner center small clear"> <li>Veröffentlicht am <a href="{entry.permalink}">{entry.date_custom}</a></li> <li>Autor: {entry.name}</li> <li><a href="{entry.permalink}#comments">Kommentare ({entry.num.comment}) </a></li> <li><a href="{entry.permalink}#links">Backlinks ({entry.num.backlink}) </a></li> </ul> </div> {navigation.pre} </div> <div class="content center"> {navigation.prev} <a href="{navigation.prevlink}" class="left">Zurück</a> {navigation.between} {navigation.next} <a href="{navigation.nextlink}" class="right">Weiter</a> {navigation.past} Zeige Einträge {navigation.start} - {navigation.ende} von {navigation.count} {comments} <h3>Kommentare</h3>{comments.error} {comment} <div id="c{comment.id}" class="comment">{comment.gravatar} <p>{comment.comment}</p> <br class="clearboth" /> <p class="entryfooter"> Eingetragen von {comment.name} am <a href="#c{comment.id}">{comment.date_custom}</a> </p> </div> {nocomment} <p>Keine Kommentare vorhanden</p> {gravatar} <img src="{gravatar.uri}" alt="*" title="Gravatar" class="gravatar" /> {trackbacks} <h3 id="links">Backlinks</h3> <p>Die folgenden Seiten zitieren diesen Artikel:</p> <ul>{trackback.list}</ul> {notrackback} <h3 id="links">Backlinks</h3> <p>Keine Backlinks vorhanden.</p> {trackback} <li> <a href="{link.url}">{link.title}</a> ({link.date_custom})<br />{link.excerpt} </li> {commentform} <h3>Kommentar schreiben</h3> <form action="{commentform.action}" method="post" id="commentform"> <p> <script src="/js/livePreview.js" type="text/javascript"></script> <input type="hidden" name="entry_id" value="{entry.id}" /> <label> <span>Name :</span> <input type="text" name="name" class="text" /> </label> <label> <span>Email :</span> <input type="text" name="email" class="text" /> </label> <label> <span>Kommentar :<br /><span class="small" style="width:98%;">(Mit Textile geht vieles leichter!)</span></span> <textarea name="comment" id="message" onkeyup="reloadPreviewDiv()" rows="8" cols="50"></textarea> </label> <label> <span><span class="hidden">Kommentar eintragen</span> </span> <input type="submit" name="submit-comment" value="Kommentar eintragen" class="submit" /> </label> </p> </form> <script type="text/javascript"> <!-- document.write ("<h2>Live Preview!</h2>\n<div id=\"previewcomment\"></div>\n"); --> </script> {noentry} Keine Nachrichten vorhanden --- NEW FILE: bb-tools.php --- <?php /** * Betablogger4phpCMS - a news system for phpCMS * * Toolbox * * <b>License</b> * * 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 * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn * @version $Id: bb-tools.php,v 1.1 2004/12/08 17:18:14 mjahn Exp $ * @package betablogger4phpCMS */ /* * $Log: bb-tools.php,v $ * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * */ if (!function_exists ('bbcode')) { function bbcode($string) { $string = preg_replace("#\[b\](.*?)\[/b\]#i","<b>\\1</b>",$string); $string = preg_replace("#\[i\](.*?)\[/i\]#i","<i>\\1</i>",$string); // $string = preg_replace("#\[code\](<br>)?(.*?)(<br>)?\[/code\]#i","<pre>\\2</pre>",$string); $string = preg_replace("#\[img\]http://([^]]+)\[/img\]#i",'<img src="http://\\1" border="0">',$string); $string = preg_replace("#\[url\](\w+)://([^]]+)\[/url\]#i",'<a href="\\1://\\2" target="_blank">\\1://\\2</a>',$string); $string = preg_replace("#\[url=(\w+)://([^]]+)\](.*?)\[/url\]#i",'<a href="\\1://\\2" target="_blank">\\3</a>',$string); $string = preg_replace("#\[email\]([\w~.]+?@[\w~.]+?)\[/email\]#i",'<a href="mailto:\\1">\\1</a>',$string); return $string; } } if (!function_exists ('xmlentities')) { function xmlentities($string, $quote_style=ENT_COMPAT) { $trans = get_html_translation_table(HTML_ENTITIES, $quote_style); foreach ($trans as $key => $value) $trans[$key] = '&#'.ord($key).';'; return strtr($string, $trans); } } if (!function_exists ('mydate')) { function mydate ($date) { $timeDiff = 1; if (gmdate("Ymd", $date) == gmdate("Ymd", time()+0)) { $prefix = "Heute, "; } elseif (gmdate("Ymd", $date) == gmdate("Ymd", time()-86400)) { $prefix = "Gestern, "; } elseif (gmdate("Ymd", $date) == gmdate("Ymd", time()-172800)) { $prefix = "Vorgestern, "; } else { $prefix = ""; } return $prefix.deutsches_datum("c, %d. C %Y", $date+$timeDiff, true); } } if (!function_exists ('deutsches_datum')) { function deutsches_datum($format, $timestamp, $short = false) { $wochentage = $short ? array("So","Mo","Di","Mi","Do","Fr","Sa") : array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"); $monate = array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"); $wochentag = $wochentage[date("w", $timestamp)]; $monat = xmlentities($monate[date("n", $timestamp)-1]); $datum = strftime ($format, $timestamp); $datum = str_replace("c", $wochentag, $datum); $datum = str_replace("C", $monat, $datum); return $datum; } } if (!function_exists ('get_items_in_range')) { function get_items_in_range($type, $start_day, $end_day) { $result = array(); $start_stamp = strtotime($start_day); $end_stamp = strtotime($end_day); while ($start_stamp <= $end_stamp) { $day = date('Y-m-d', $end_stamp); $entries_for_day = $GLOBALS['blog']->get($type, "date~=$day", 0); $result = array_merge($result, $entries_for_day); $end_stamp -= 24*60*60; } return $result; } } if (!function_exists ('shorten_text')) { function shorten_text ($content) { $words = substr_count($content, ' '); if ($words >= 20) { $first = array_slice(explode(' ', $content), 0, 20); return join(' ', $first).'... <a href="{entry.permalink}">weiterlesen</a>'; } return $content; } } if (!function_exists ('textile') && file_exists (dirname (__FILE__).'/textile.php')) { include_once (dirname (__FILE__).'/textile.php'); } if (!function_exists ('email_validate')) { function validate_email ($text) { return true; } } ?> --- NEW FILE: bb-conf.php --- <?php /** * Betablogger4phpCMS - a news system for phpCMS * * Configuration script * * <b>License</b> * * 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 * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn * @version $Id: bb-conf.php,v 1.1 2004/12/08 17:18:14 mjahn Exp $ * @package betablogger4phpCMS */ /* * $Log: bb-conf.php,v $ * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * */ /** * configuration-data for bb-script.php */ if (isset ($showconf) && $showconf == 'BB_SCRIPT_CONF') { /** * @var string path to the template file * * define it relative to the directory, where _this_ file lays */ $this->tplfile = 'bb-script.tpl'; /** * Set this to 1 if you want the gravatar-plugin to work. * See {@link http://gravatar.com} for details * @var integer **/ $this->gravatar = 1; /** * @var string set the url for the gravatar-service, the email-id is * added automatically */ $this->gravataruri = 'http://www.gravatar.com/avatar.php?size=40&amp;rating=R&gravatar_id='; /** * use MAIL2CRYPT if you use this script together with phpCMS * * the encoding of the email only works, if<ul> * <li>MAIL2CRYPT is activated by phpCMS</li> * <li>AND this variable is set to 1</li> * </ul> * @var integer **/ $this->usemail2crypt = 1; /** * @var string sort the entries by the field 'date' */ $this->sort_entries_by_field = 'date'; /** * @var string how man entries should be displayed in the overview on * one page? */ $this->display_count = 4; /**#@+ * customization of the displayed entries * * Take care of the field date. The customized version will be copied * into date_custom. The other fields are regulrly replaced with the * customized values. So you only have to rebuild your templatefile if * you use {entry.date} (use {entry.date_custom}) * * You can define for every field in every type of entry (i.e. comment, * entry, trackback...) a custom function. This function must have one param * (the text) and must return the changed text. * * The function must exist in the global namespace (i.e. you can define them * in bb-tools.php */ $this->extra ['entry'] ['date'] = 'mydate'; $this->extra ['entry'] ['body'] = 'textile'; $this->extra ['draft'] ['date'] = 'mydate'; $this->extra ['comment'] ['date'] = 'mydate'; $this->extra ['backlink'] ['date'] = 'mydate'; $this->extra ['singleentry'] ['date'] = 'mydate'; $this->extra ['singleentry'] ['body'] = 'textile'; /**#@-*/ /**#@+ * validation of commententries * * You can define one validation function for every comment-value you want * (i.e. email-address or for detecting spam-attacs). * * The function must accept one string parameter and must return true, if * the value is valid and false if invalid */ $this->validate ['comment'] ['email'] = 'validate_email'; $this->validate ['comment'] ['ip'] = 'validate_ip'; /**#@-*/ /**#@+ * CAUTION: These is an expert setting - edit only if you know, what you do ;-) **/ $this->trackbackvalue = 'trackbacklink'; $this->showvalue = 'showvalue'; $this->edit = 'edit'; /**#@-*/ } /** * configuration-data for bb-edit.php */ if (isset ($showconf) && $showconf == 'BB_EDIT_CONF') { /** * @var string class of the submenu, where we take the topics from * normally you want to categorize your news. This structure can be * taken from the phpcms-menu */ $this->menu_class = 'kreischa.info.news'; /** * @var string name of the menu-field * * This field will be taken as name for the categories from the menu in * my case I use the MNAME- field of my submenu **/ $this->menu_token = 'MNAME_'.$_GET ['lang']; /** * @var int how deep should we recurse the menu-array? * * 0 displays nothing * 1 displays the entries of submenu $menu_class * 2 displays the entries of submenu $menu_class and next submenu-level * 3 ... */ $this->menu_recursive = 1; /** * @var array contains the menu-clases that never should be displayed */ $this->menu_exclude = array ('kreischa.info.news.archiv', 'kreischa.info.sitemap'); /** * @var string separator for concatening the menu-tokens */ $this->menu_separator = '/'; /** * @var string description URI of the file with the editor-script inside * * This file will be called if we saved or deleted an entry, so that the * user can reload the page without any danger for the datas. */ $this->redirectURL = $this->blog->url.'/edit.de.htm'; } ?> --- NEW FILE: bb-edit.php --- <?php /** * Betablogger4phpCMS - a news system for phpCMS * * This script is part of betablogger4phpcms. It handles the editing of news-entries. * * <b>License</b> * * 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 * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2004, Martin Jahn * @version $Id: bb-edit.php,v 1.1 2004/12/08 17:18:14 mjahn Exp $ * @package betablogger4phpCMS */ /* * $Log: bb-edit.php,v $ * Revision 1.1 2004/12/08 17:18:14 mjahn * initial import * */ if (!class_exists ('bbedit4phpcms')) { class bbedit4phpcms { /** * This function creates the permalink before the submitted formdata is * saved */ function createPermalink () { if (isset ($_REQUEST ['item_title'])) { $_REQUEST ['item_permatitle'] = str_replace (array ('ä', 'Ã', 'ö', 'Ã', 'ü', 'Ã', 'Ã'), array ('ae', 'Ae', 'oe', 'Oe', 'ue', 'Ue', 'ss'), $_REQUEST ['item_title']); $_REQUEST ['item_permatitle'] = preg_replace ('/[^\/\w]+/im', '-', $_REQUEST ['item_permatitle']); $_REQUEST ['item_permatitle'] = preg_replace ('/[-]+/im', '-', $_REQUEST ['item_permatitle']); } if (isset ($_REQUEST ['item_menu'])) { $_REQUEST ['item_topic'] = $_REQUEST ['item_menu']; } } /** * renders the line with the submit-buttons **/ function displaySubmit () { echo '<label class="horizontal"><span class="hidden">Vorschau</span><input type="submit" name="action" value="Preview" /></label>'."\n"; echo '<label class="horizontal"><span class="hidden">Eintrag abspeichern</span><input type="submit" name="action" value="Save" /></label>'."\n"; $options = ''; foreach ($this->blog->items as $type) { if ($type != $_REQUEST['edit_type'] && !array_diff($this->blog->fields [$_REQUEST ['edit_type']], $this->blog->fields [$type])) { $options .= '<option value="as_'.$type.'">as '.$type.'</option>'."\n"; continue; } } if ($options != '') { echo '<label class="horizontal"><span class="hidden">speichern als </span>'."\n"; echo '<select name="save_as" size="1" class="horizontal">'."\n"; echo '<option value="as_'.$_REQUEST ['edit_type'].'" selected="selected">as '.$_REQUEST ['edit_type'].'</option>'."\n"; echo $options."\n"; echo '</select>'."\n"; echo '</label>'."\n"; } if (isset($this->blog->validate_doctype) && $this->blog->validate_doctype) { echo '<label class="horizontal"><input type="checkbox" name="validate">validate</label> '; } echo '<label class="horizontal"><input type="checkbox" name="sendpings" checked="checked">Pingback</label>'; if ($_REQUEST['action'] != 'Preview') { echo ' <label class="horizontal"><span class="hidden">Eintrag löschen </span><input type="submit" name="action" value="Delete" /></label>'; } else { echo '<label class="horizontal"><span class="hidden">Eintrag ändern </span><input type="submit" name="action" value="Edit" /></label>'; } } /** * processes the submitted data from the editform **/ function processEditform () { // process forms: $this->createPermalink (); $message = ''; $ping_urls = array(); if ($_REQUEST['action']) { $item = new $_REQUEST['edit_type']; foreach ($this->blog->fields[$_REQUEST['edit_type']] as $field) { if (isset($_REQUEST["item_$field"])) { $item->$field = $_REQUEST["item_$field"]; } } $item->id = $_REQUEST['item_id']; if (isset($item->date)) { $item->date = strtotime($item->date); } if ($_REQUEST['action'] == 'Save') { $_REQUEST['item_id'] = $this->blog->save($item); $this->_updateIndexes (); $message .= "{$_REQUEST['edit_type']} saved.<br>\n"; if (in_array($item->type, preg_split("/\s*,\s*/", $this->blog->ping_items))) { $ping_permalink = $item->get_permalink(); $ping_title = isset($this->blog->tb_sendfield[$_REQUEST['edit_type']]['title'])? $item->{$this->blog->tb_sendfield[$_REQUEST['edit_type']]['title']} : ''; $ping_excerpt = isset($this->blog->tb_sendfield[$_REQUEST['edit_type']]['excerpt'])? substr($item->{$this->blog->tb_sendfield[$_REQUEST['edit_type']]['excerpt']}, 0, 256) : ''; foreach ($this->blog->fields[$_REQUEST['edit_type']] as $field) { // parse $value for links and lookup url for ping/trackback support if (!preg_match_all("/<[^>]+href\s*=\s*[\"']?\s*(http:[^\"'>\s]+)\s*[\"']?[^>]*>/i", stripslashes ($item->$field), $matches, PREG_PATTERN_ORDER)) { continue; } $ping_urls = array_merge ($ping_urls, $matches[1]); } } header ('Location: '.$this->redirectURL); //this->redirecturl.'&edit_type=entry&item_id='.$_REQUEST ['item_id']);; } elseif ($_REQUEST['action'] == 'Delete') { $this->blog->delete ($item); $this->_updateIndexes (); $_REQUEST['item_id'] = 0; $message .= "{$_REQUEST['edit_type']} deleted.<br>\n"; foreach ($this->blog->fields [$_REQUEST ['edit_type']] as $field) { if (isset($_REQUEST["item_$field"])) { unset($_REQUEST["item_$field"]); } } header ('Location: '.$this->redirectURL); // header ('Location: '.$this->redirecturl); } } if ($message) print "$message<br>\n"; if (!$_REQUEST['item_id'] || $_REQUEST['action'] == 'Preview' || $_REQUEST['action'] == 'Edit') { $item = new $_REQUEST['edit_type']; foreach ($this->blog->fields[$_REQUEST['edit_type']] as $field) { $item->$field = ''; if (isset ($_REQUEST["item_$field"])) { $item->$field = $_REQUEST["item_$field"]; } elseif (isset ($this->blog->default_value [$_REQUEST ['edit_type']] [$field])) { $item->$field = $this->blog->default_value [$_REQUEST ['edit_type']] [$field]; } } if (!isset ($item->date) || trim ($item->date) == '') { $item->date = time(); } else { $item->date = strtotime($item->date); } $item->id = $_REQUEST['item_id']; } else { $item = $this->blog->get_by_id($_REQUEST['edit_type'], $_REQUEST['item_id']); } // send pings, if there are any ping-URLs in the entry-body if ($_REQUEST['action'] == 'Save') { if (isset($_REQUEST['validate'])) { $this->_validate($this->blog, $item); echo "<br>\n"; flush(); } $this->blog_name = ''; if (isset ($this->blog->blog_name)) { $this->blog_name = $this->blog->blog_name; } if (isset($_REQUEST['sendpings']) && $ping_urls) { print "<b>Processing Pings...</b><br>\n"; foreach ($ping_urls as $url) { $this->_ping($url, $ping_permalink, $ping_title, $ping_excerpt, $this->blog_name); } print "<br>\n"; flush(); } if (isset($_REQUEST['sendpings']) && isset($this->blog->ping_bloglists) && $this->blog->ping_bloglists) { $this->_ping_lists($this->blog_name); print "<br>\n"; flush(); } } return $item; } /** * main function for displaying the editform **/ function displayEditform ($item) { if ($_REQUEST['action'] == 'Preview') { echo '<dl>'; foreach ($this->blog->fields [$_REQUEST ['edit_type']] as $field) { $value = ($field == 'date') ? date ("Y-m-d H:i", $item->$field) : $item->$field ; echo '<dt>'.$field.'</dt><dd>'.$value.'</dd>'; } echo '</dl>'; } // get the fieldnames for the textarea-fields $textarea_fields = array(); if (isset ($this->blog->textarea_fields [$_REQUEST ['edit_type']])) { $textarea_fields = preg_split ("/\s*,\s*/", $this->blog->textarea_fields [$_REQUEST ['edit_type']]); } // get the fieldnames for the hidden-fields $hidden_fields = array (); if (isset ($this->blog->hidden_fields [$_REQUEST ['edit_type']])) { $hidden_fields = preg_split("/\s*,\s*/", $this->blog->hidden_fields [$_REQUEST ['edit_type']]); } echo '<fieldset> <legend>'.($_REQUEST['item_id'] ? "Editiere {$_REQUEST['edit_type']} {$_REQUEST['item_id']}" : "Neuer {$_REQUEST['edit_type']}").'</legend> '; $values = array (); $this->_recurseMenu ($this->menu_class, $values, $this->menu_recursive); echo '<label><span>Kategorie auswählen: </span> <select name="item_menu">'."\n"; for ($i = 0; $i < count ($values); $i++) { echo '<option value="'.$values [$i].'">'.$values [$i].'</option>'."\n"; } echo '</select>'."\n".'</label>'."\n"; // walk through the fields-array and print the editform foreach ($this->blog->fields[$_REQUEST['edit_type']] as $field) { // field is a date -> format it as date if ($field == 'date') $item->$field = date("Y-m-d H:i", $item->$field); // field is a textarea-field if (in_array($field, $textarea_fields)) { echo '<label><span>'.$field.' :</span>'; echo '<textarea name="item_'.$field.'" rows="18" cols="70">'."\n".htmlspecialchars ($item->$field)."</textarea></label>"."\n"; continue; } // field is a hidden-field if (in_array($field, $hidden_fields)) { print '<input type="hidden" name="item_'.$field.'" value="'.htmlspecialchars ($item->$field, ENT_QUOTES).'" />'."\n"; continue; } // field is a text-field print '<label><span>'.$field.' :</span>'; print '<input type="text" name="item_'.$field.'" value="'.htmlspecialchars($item->$field, ENT_QUOTES).'" /></label>'."\n"; } if (isset($this->blog->edit_script[$_REQUEST['edit_type']])) { echo "<script type='text/javascript'>\n{$this->blog->edit_script[$_REQUEST['edit_type']]}\n</script>\n"; } echo '</fieldset>'; return $item; } /** * displays the selector for the entries */ function displayEntrySelector () { echo '<fieldset> <legend>Artikel auswählen</legend> <label> <span>Eintrag auswählen :</span> <select name="item_id" size="10" id="selectfield" onchange="this.form.submit()" /> <option id="newitem" value="0"'.($_REQUEST ['item_id']==0 ? ' selected' : '').'">Neuer '.$_REQUEST['edit_type']."\n"; $items = $this->blog->get($_REQUEST['edit_type'], $_REQUEST['select_query'], $_REQUEST['select_num']); foreach ($items as $it) { $a = $it->$_REQUEST ['select_show']; if (strlen ($a) > 41) { $a = htmlspecialchars (substr ($a, 0, 40)).'…'; } else { $a = htmlspecialchars ($a); } $option = $_REQUEST['select_show'] == 'date' ? date("Y-m-d H:i", $it->date) : $a; echo '<option value="'.$it->id.'"'.($_REQUEST['item_id']==$it->id ? ' selected' : '').'">'.$option.'</option>'."\n"; } echo ' </select> </label>'; /* echo '<label> <span>Anzahl Einträge anzeigen</span> <select name="select_num" size="1" onchange="this.form.submit()"> <option value="20"'.($_REQUEST ['select_num']==20 ? ' selected' : '').'>die letzten 20</option> <option value="50"'.($_REQUEST ['select_num']==50 ? ' selected' : '').'>die letzten 50</option> <option value="200"'.($_REQUEST ['select_num']==200 ? ' selected' : '').'>die letzten 200</option> <option value="0"'.($_REQUEST ['select_num']==0 ? ' selected' : '').'>alle</option> </select> </label> <label> <span>Feld anzeigen</span> <select name="select_show" size="1" onchange="this.form.submit()">'; foreach ($this->blog->fields[$_REQUEST['edit_type']] as $field) { echo '<option value="'.$field.'"'.($_REQUEST ['select_show'] == $field ? ' selected' : '').'">'.$field.'</option>'."\n"; } echo' </select> </label>';*/ echo '<label title="Einträge durchsuchen"> <span>Suchen</span> <input type="text" size="15" name="select_query" value="'.$_REQUEST ['select_query'].'" onchange="this.form.submit()" /> </label> </fieldset>'; } /** * displays the dependent items that are corrsspondending to the current * entry */ function displayDependent ($item) { if ($_REQUEST['item_id'] && isset($this->blog->dependencies[$_REQUEST['edit_type']])) { print '<h3>Abhängige Teile</h3>'."\n"; print "<div class='editdiv'>\n"; foreach ($this->blog->dependencies[$_REQUEST['edit_type']] as $dep_type) { print "<div class='dependent'>\n<table>"; $deps = $_REQUEST['item_id'] ? $item->get($dep_type,'',0) : array(); foreach ($deps as $dep) { print '<tr><td>'.$dep_type.'</td1>' . "<td>".date("Y-m-d H:i", $dep->date)."</td>" . "<td>".strip_tags(substr($dep->{$this->blog->fields[$dep_type][0]}, 0, 25))."</td>" . '<td><a href="?edit=1&edit_type='.$dep_type.'&item_id='.$dep->id.'">Edit</a></td>'."\n" . '<td><a href="?edit=1&edit_type='.$dep_type.'&item_id='.$dep->id.'&action=Delete">Delete</a></td></tr>'."\n"; } print "<tr><td colspan='5'><a href='edit.php?edit_type=$dep_type&item_id=0&item_{$_REQUEST['edit_type']}_id={$_REQUEST['item_id']}'>Add new $dep_type</a></td></tr>\n"; print "</table>\n"; print "</div>\n"; } print "</div>\n"; print "</div>\n"; } } /** * main actor function of this class */ function run () { $_REQUEST['the'] = 'entries'; $title = "Edit Entries"; if (!isset($_REQUEST['edit_type'])) { $_REQUEST['edit_type'] = $this->blog->edit_default; } if (!isset($_REQUEST['item_id'])) { $_REQUEST['item_id'] = 0; } if (!isset($_REQUEST['action'])) { $_REQUEST['action'] = ''; } if (!isset($_REQUEST['select_show'])) { $_REQUEST['select_show'] = 'title'; } if (!isset($_REQUEST['select_num'])) { $_REQUEST['select_num'] = 20; } if (!isset($_REQUEST['select_query'])) { $_REQUEST['select_query'] = ''; } if ($_REQUEST['action'] == 'Save' && isset($_REQUEST['save_as'])) { if (substr($_REQUEST['save_as'], 3) != $_REQUEST['edit_type']) { // save under a new type: $_REQUEST['item_id'] = 0; } $_REQUEST['edit_type'] = substr($_REQUEST['save_as'], 3); } echo ' <form action="'.$_SERVER ['PHP_SELF'].'?edit=&" method="post" id="editform"> <input type="hidden" name="edit" value="1" /> <input type="hidden" name="select_num" value="'.$_REQUEST ['select_num'].'" /> <input type="hidden" name="select_show" value="'.$_REQUEST ['select_show'].'" /> <input type="hidden" name="select_query" value="'.$_REQUEST ['select_query'].'" /> <input type="hidden" name="item_id" value="'.$_REQUEST['item_id'].'">'; $this->displayEntrySelector (); $this->displaySubmit (); $item = $this->processEditform (); $this->displayEditform ($item); // $this->displaySubmit (); echo '</form>'; $this->displayDependent ($item); } /** * constructor method */ function bbedit4phpcms (&$blog) { $this->blog =& $blog; $showconf = 'BB_EDIT_CONF'; include (dirname (__FILE__).'/bb-conf.php'); $showconf = ''; } /** * helper method for remote document calls * @param string url the URL of the remote document */ function _http_request ($url, $post_request='', $follow_redirects=true) { $u = parse_url ($url); if (!isset ($u ['path']) || !$u ['path']) { $u['path'] = '/'; } if (isset ($u ['query'])) { $u['path'] .= '?'.$u["query"]; } if (!isset ($u ['port'])) { $u['port'] = 80; } $str = fsockopen ($u ['host'], $u ['port'], &$errno, &$errstr, 20); if (... [truncated message content] |
From: Martin J. <mj...@us...> - 2004-12-08 17:14:37
|
Update of /cvsroot/phpcms-plugins/betablogger4phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31606/betablogger4phpcms Log Message: Directory /cvsroot/phpcms-plugins/betablogger4phpcms added to the repository |
From: Martin J. <mj...@us...> - 2004-12-07 16:16:02
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2781/modules/user Modified Files: user.db layout.user.xml Log Message: some layout-fixes Index: layout.user.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/user/layout.user.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- layout.user.xml 7 Dec 2004 06:34:46 -0000 1.3 +++ layout.user.xml 7 Dec 2004 16:15:52 -0000 1.4 @@ -65,9 +65,20 @@ </script> <div> <layout:replace name="content" /> - <label><span>Benutzer</span><select name="username"><layout:replace name="userlist" /></select></label> - <label><span>Passwort</span><input type="password" name="password" value="" /></label> - <button type="submit" name="login-submit" value="1">Anmelden</button> + <label> + <span>Benutzer</span> + <select name="username"> + <layout:replace name="userlist" /> + </select> + </label> + <label> + <span>Passwort</span> + <input type="password" name="password" value="" /> + </label> + <label> + <span>Formular absenden</span> + <input type="submit" name="login-submit" value="Anmelden" /> + </label> </div> </fieldset> ]]> Index: user.db =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/user/user.db,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- user.db 29 Sep 2004 20:10:43 -0000 1.1 +++ user.db 7 Dec 2004 16:15:52 -0000 1.2 @@ -1,2 +1,2 @@ -Martin Jahn:{SHA}vC5jpRXo+O4Vao3czy09N0pHSFc= -demo:{SHA}ieSV55Qc+eQOaYDRSha/AjzNTJE= +Martin Jahn:eLE9XRW1YZLI6 +demo:DUAqFepwtDD8I |
From: Martin J. <mj...@us...> - 2004-12-07 16:16:00
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2781/modules/filemanager Modified Files: layout.filemanager.xml Log Message: some layout-fixes Index: layout.filemanager.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/filemanager/layout.filemanager.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- layout.filemanager.xml 7 Dec 2004 06:34:49 -0000 1.3 +++ layout.filemanager.xml 7 Dec 2004 16:15:51 -0000 1.4 @@ -6,6 +6,14 @@ <![CDATA[ <style> <!-- + #filelist input[type=image], + #filelist input[type=radio], + #filelist input[type=checkbox], + #fm_options input[type=image], + #fm_options input[type=radio], + #fm_options input[type=checkbox] { + width:auto; + } #filelist { list-style-type:none; padding:0; |
From: Martin J. <mj...@us...> - 2004-12-07 16:12:00
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1838 Modified Files: INSTALL Log Message: first text Index: INSTALL =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/INSTALL,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- INSTALL 24 Jul 2004 08:58:25 -0000 1.1 +++ INSTALL 7 Dec 2004 16:11:50 -0000 1.2 @@ -0,0 +1,44 @@ +Admin4phpCMS +============================================================= +version: $Version$ +author: Martin Jahn <mj...@us...> + +0. Requirements +--------------- +This software needs the following PEAR-packages: + + XML_Tree + + XML_Parser + + XML_Util +and so on and so on + +1. Installation +--------------- + +Extract the archive into a directory. +After extracting you will find there some directories (docs/, include/, modules/) +and some files (index.php, Changelog, INSTALL). + +2. Configuration +---------------- + + +3. Integration into a phpCMS contentfile +---------------------------------------- + + +4. License - GPL +---------------- + +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 |
From: Martin J. <mj...@us...> - 2004-12-07 06:42:18
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14618/docs/admin4phpCMS/module_config Added Files: _modules_config_class_module_config_php.html module_config.html Log Message: prepration of first Alpha-Preview --- NEW FILE: module_config.html --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Docs For Class module_config</title> <link rel="stylesheet" type="text/css" href="../../media/style.css"> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> </head> <body> <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> <tr> <td class="header-top-left"><img src="../../media/logo.png" border="0" alt="phpDocumentor " /></td> <td class="header-top-right">admin4phpCMS<br /><div class="header-top-right-subpackage">module_config</div></td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> <tr> <td colspan="2" class="header-menu"> [ <a href="../../classtrees_admin4phpCMS.html" class="menu">class tree: admin4phpCMS</a> ] [ <a href="../../elementindex_admin4phpCMS.html" class="menu">index: admin4phpCMS</a> ] [ <a href="../../elementindex.html" class="menu">all elements</a> ] </td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="195" class="menu"> <div class="package-title">admin4phpCMS</div> <div class="package"> <div id="ric"> <p><a href="../../ric_Changelog.html">Changelog</a></p> <p><a href="../../ric_INSTALL.html">INSTALL</a></p> </div> </div> <div class="package"> <div id="todolist"> <p><a href="../../todolist.html">Todo List</a></p> </div> </div> <b>Packages:</b><br /> <div class="package"> <a href="../../li_default.html">default</a><br /> <a href="../../li_admin4phpCMS.html">admin4phpCMS</a><br /> </div> <br /> <b>Files:</b><br /> <div class="package"> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_actionhandler_php.html">class.actionhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_eventhandler_php.html">class.eventhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_framework_php.html">class.framework.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_module_php.html">class.module.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_index_php.html">index.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_info_php.html">info.php</a></span><br /> </div> <div class="package"> <strong>module_config</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_config/_modules_config_class_module_config_php.html">class.module_config.php</a></span><br /> </div> <div class="package"> <strong>module_debug</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_debug/_modules_debug_class_module_debug_php.html">class.module_debug.php</a></span><br /> </div> <div class="package"> <strong>module_editor</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_editor_php.html">class.module_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_image_editor_php.html">class.module_image_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_phpcms_editor_php.html">class.module_phpcms_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_text_editor_php.html">class.module_text_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_xml_editor_php.html">class.module_xml_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_zip_editor_php.html">class.module_zip_editor.php</a></span><br /> </div> <div class="package"> <strong>module_error</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_error/_modules_error_class_module_error_php.html">class.module_error.php</a></span><br /> </div> <div class="package"> <strong>module_filemanager</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_file_util_php.html">class.file_util.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_module_filemanager_php.html">class.module_filemanager.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_config_filemanager_php.html">config.filemanager.php</a></span><br /> </div> <div class="package"> <strong>module_layout</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_layout/_modules_layout_class_module_layout_php.html">class.module_layout.php</a></span><br /> </div> <div class="package"> <strong>module_log</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_log/_modules_log_class_module_log_php.html">class.module_log.php</a></span><br /> </div> <div class="package"> <strong>module_mail</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_mail/_modules_mail_class_module_mail_php.html">class.module_mail.php</a></span><br /> </div> <div class="package"> <strong>module_phpcms</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_module_phpcms_php.html">class.module_phpcms.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_phpcms_menu_php.html">class.phpcms_menu.php</a></span><br /> </div> <div class="package"> <strong>module_statistic</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_module_statistik_php.html">class.module_statistik.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_apache_php.html">class.statistic_apache.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_common_php.html">class.statistic_common.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_phpcms_php.html">class.statistic_phpcms.php</a></span><br /> </div> <div class="package"> <strong>module_statistik</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistik/_modules_hilfe_class_module_hilfe_php.html">class.module_hilfe.php</a></span><br /> </div> <div class="package"> <strong>module_user</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_module_user_php.html">class.module_user.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_webdav_class_module_webdav_php.html">class.module_webdav.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_phpcms_auth_php.html">class.phpcms_auth.php</a></span><br /> </div> <br /> <b>Classes:</b><br /> <div class="package"> <a href="../../admin4phpCMS/actionHandler.html">actionHandler</a> <br /> <a href="../../admin4phpCMS/eventHandler.html">eventHandler</a> <br /> <a href="../../admin4phpCMS/framework.html">framework</a> <br /> </div> <div class="package"> module_filemanager<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/file_util.html">file_util</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/module_filemanager.html">module_filemanager</a> </span> <br /> </div> <div class="package"> module_config<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_config/module_config.html">module_config</a> </span> <br /> </div> <div class="package"> module_debug<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_debug/module_debug.html">module_debug</a> </span> <br /> </div> <div class="package"> module_editor<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_editor.html">module_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_image_editor.html">module_image_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_phpcms_editor.html">module_phpcms_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_text_editor.html">module_text_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_xml_editor.html">module_xml_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_zip_editor.html">module_zip_editor</a> </span> <br /> </div> <div class="package"> module_error<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_error/module_error.html">module_error</a> </span> <br /> </div> <div class="package"> module_help<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_help/module_hilfe.html">module_hilfe</a> </span> <br /> </div> <div class="package"> module_layout<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_layout/module_layout.html">module_layout</a> </span> <br /> </div> <div class="package"> module_log<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_log/module_log.html">module_log</a> </span> <br /> </div> <div class="package"> module_mail<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_mail/module_mail.html">module_mail</a> </span> <br /> </div> <div class="package"> module_phpcms<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/module_phpcms.html">module_phpcms</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/phpcms_menu.html">phpcms_menu</a> </span> <br /> </div> <div class="package"> module_statistic<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/ApacheLogVisits.html">ApacheLogVisits</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/module_statistik.html">module_statistik</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_common.html">statistic_common</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_phpcms.html">statistic_phpcms</a> </span> <br /> </div> <div class="package"> module_user<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/module_user.html">module_user</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/phpCMSAuth.html">phpCMSAuth</a> </span> <br /> </div> <div class="package"> module_webdav<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_webdav/module_webdav.html">module_webdav</a> </span> <br /> </div> </td> <td> <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> <h1>Class: module_config</h1> Source Location: /modules/config/class.module_config.php<br /><br /> <h2 class="class-name">Class module_config</h2> <a name="sec-description"></a> <div class="info-box"> <div class="info-box-title">Class Overview</div> <div class="nav-bar"> <span class="disabled">Class Overview</span> | <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a> </div> <div class="info-box-body"> <table width="100%" border="0"> <tr><td valign="top" width="60%" class="class-overview"> <p align="center" class="short-description"><strong>The config-class encapsulates the access to the configfile against the framework </strong></p> <p class="notes"> Located in <a class="field" href="_modules_config_class_module_config_php.html">/modules/config/class.module_config.php</a> [<span class="field">line 57</span>] </p> <pre>module | --module_config</pre> </td> <td valign="top" width="20%" class="class-overview"> <p align="center" class="short-description"><strong><a href="#sec_methods">Methods</a></strong></p> <ul> <li><a href="../../admin4phpCMS/module_config/module_config.html#methodgetConfig">getConfig</a></li> <li><a href="../../admin4phpCMS/module_config/module_config.html#methodgetMenuMain">getMenuMain</a></li> <li><a href="../../admin4phpCMS/module_config/module_config.html#methodinit">init</a></li> <li><a href="../../admin4phpCMS/module_config/module_config.html#methodparseParam">parseParam</a></li> <li><a href="../../admin4phpCMS/module_config/module_config.html#methodreadConfig">readConfig</a></li> <li><a href="../../admin4phpCMS/module_config/module_config.html#methodsaveConfig">saveConfig</a></li> <li><a href="../../admin4phpCMS/module_config/module_config.html#methodsetConfigFile">setConfigFile</a></li> </ul> </td> </tr></table> <div class="top">[ <a href="#top">Top</a> ]</div> </div> </div> <a name="sec-method-summary"></a> <div class="info-box"> <div class="info-box-title">Method Summary</span></div> <div class="nav-bar"> <a href="#sec-description">Class Overview</a> | <span class="disabled">Method Summary</span> | <a href="#sec-methods">Methods Detail</a> </div> <div class="info-box-body"> <div class="method-summary"> <table border="0" cellspacing="0" cellpadding="0" class="method-summary"> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#getConfig" title="details" class="method-name">getConfig</a>() </td> <td class="method-definition">get configuration data</td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#getMenuMain" title="details" class="method-name">getMenuMain</a>() </td> <td class="method-definition"></td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#init" title="details" class="method-name">init</a>() </td> <td class="method-definition">registers events and actions provided to the framework</td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#parseParam" title="details" class="method-name">parseParam</a>() </td> <td class="method-definition"></td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#readConfig" title="details" class="method-name">readConfig</a>() </td> <td class="method-definition">read and parse the configfile</td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#saveConfig" title="details" class="method-name">saveConfig</a>() </td> <td class="method-definition">save configuration in a file</td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#setConfigFile" title="details" class="method-name">setConfigFile</a>() </td> <td class="method-definition">commit the path to the configfile</td></tr> </div> </table> </div> <br /><div class="top">[ <a href="#top">Top</a> ]</div> </div> </div> <a name="sec-methods"></a> <div class="info-box"> <div class="info-box-title">Methods</div> <div class="nav-bar"> <a href="#sec-description">Class Overview</a> | | <a href="#sec-method-summary">Method Summary</a> | <span class="disabled">Methods Detail</span> </div> <div class="info-box-body"> <a name='method_detail'></a> <a name="methodgetConfig" id="getConfig"><!-- --></a> <div class="evenrow"> <div class="method-header"> <span class="method-title">getConfig</span> <span class="smalllinenumber">[line 186]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void getConfig( array &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <p align="center" class="short-description"><strong>get configuration data </strong></p> <span class="description"><p>$actiondata['module'] contains the id of the module $actiondata['config'] return the configuration of the module if there is no module-id, it returns the full config-array</p></span> <strong>Parameters:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr><td class="indent"> <span class="var-type">array</span> </td> <td> <span class="var-name">$actiondata: </span></td> <td> </td></tr> </table> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodgetMenuMain" id="getMenuMain"><!-- --></a> <div class="oddrow"> <div class="method-header"> <span class="method-title">getMenuMain</span> <span class="smalllinenumber">[line 114]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void getMenuMain( array &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <strong>Parameters:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr><td class="indent"> <span class="var-type">array</span> </td> <td> <span class="var-name">$actiondata: </span></td> <td> </td></tr> </table> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodinit" id="init"><!-- --></a> <div class="evenrow"> <div class="method-header"> <span class="method-title">init</span> <span class="smalllinenumber">[line 89]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void init( )</code> </td></tr></table> </td></tr></table><br /></div> <p align="center" class="short-description"><strong>registers events and actions provided to the framework </strong></p> <span class="description"><p>Events: <ul><li><strong>CONFIG_READ</strong> read and parse the configfile $actiondata['configfile'] contains the path to the configfile</li><li><strong>CONFIG_GET</strong> get configuration-data $actiondata['module'] contains the id of the module $actiondata['config'] returns the configuration of the module if no module-id is given, it will return the full configuration-array</li><li><strong>CONFIG_SAVE</strong> saves the configuration in a file $actiondata['configfile'] path to save the config in; if no path is given, it saves to configfile from read-method</li><li><strong>CONFIG_SET_FILE</strong> sets path to configfile $actiondata['configfile'] contains the path to configfile</li></ul></p></span> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodparseParam" id="parseParam"><!-- --></a> <div class="oddrow"> <div class="method-header"> <span class="method-title">parseParam</span> <span class="smalllinenumber">[line 103]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void parseParam( array &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <strong>Parameters:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr><td class="indent"> <span class="var-type">array</span> </td> <td> <span class="var-name">$actiondata: </span></td> <td> </td></tr> </table> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodreadConfig" id="readConfig"><!-- --></a> <div class="evenrow"> <div class="method-header"> <span class="method-title">readConfig</span> <span class="smalllinenumber">[line 133]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void readConfig( array &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <p align="center" class="short-description"><strong>read and parse the configfile </strong></p> <strong>Parameters:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr><td class="indent"> <span class="var-type">array</span> </td> <td> <span class="var-name">$actiondata: </span></td> <td> <span class="var-description"> $actiondata['configfile'] contains the path to the configfile</span> </td></tr> </table> <br /> <strong>API Tags:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td class="indent"><strong>Example:</strong> </td><td><a href="../../__examplesource/exsource_artin_devel_admin4phpCMS_modules_config_config.xml_8a8c560ef80a7a5b4c8b8756941a6850.html">sample configfile</a></td> </tr> </table> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodsaveConfig" id="saveConfig"><!-- --></a> <div class="oddrow"> <div class="method-header"> <span class="method-title">saveConfig</span> <span class="smalllinenumber">[line 220]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void saveConfig( array &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <p align="center" class="short-description"><strong>save configuration in a file </strong></p> <span class="description"><p>$actiondata['configfile'] contains the full path to the file if there is not given an path, i will overwrite the config-file given in the read-method</p></span> <strong>Parameters:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr><td class="indent"> <span class="var-type">array</span> </td> <td> <span class="var-name">$actiondata: </span></td> <td> </td></tr> </table> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodsetConfigFile" id="setConfigFile"><!-- --></a> <div class="evenrow"> <div class="method-header"> <span class="method-title">setConfigFile</span> <span class="smalllinenumber">[line 231]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void setConfigFile( array &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <p align="center" class="short-description"><strong>commit the path to the configfile </strong></p> <span class="description"><p>$actiondata['configfile'] contains the path to the configuraton-file</p></span> <strong>Parameters:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr><td class="indent"> <span class="var-type">array</span> </td> <td> <span class="var-name">$actiondata: </span></td> <td> </td></tr> </table> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> </div> </div> <div class="credit"> <hr class="separator" /> Documentation generated on Mon, 6 Dec 2004 21:13:26 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> </div> </td></tr></table> </td> </tr> </table> </body> </html> --- NEW FILE: _modules_config_class_module_config_php.html --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Docs for page class.module_config.php</title> <link rel="stylesheet" type="text/css" href="../../media/style.css"> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> </head> <body> <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> <tr> <td class="header-top-left"><img src="../../media/logo.png" border="0" alt="phpDocumentor " /></td> <td class="header-top-right">admin4phpCMS<br /><div class="header-top-right-subpackage">module_config</div></td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> <tr> <td colspan="2" class="header-menu"> [ <a href="../../classtrees_admin4phpCMS.html" class="menu">class tree: admin4phpCMS</a> ] [ <a href="../../elementindex_admin4phpCMS.html" class="menu">index: admin4phpCMS</a> ] [ <a href="../../elementindex.html" class="menu">all elements</a> ] </td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="195" class="menu"> <div class="package-title">admin4phpCMS</div> <div class="package"> <div id="ric"> <p><a href="../../ric_Changelog.html">Changelog</a></p> <p><a href="../../ric_INSTALL.html">INSTALL</a></p> </div> </div> <div class="package"> <div id="todolist"> <p><a href="../../todolist.html">Todo List</a></p> </div> </div> <b>Packages:</b><br /> <div class="package"> <a href="../../li_default.html">default</a><br /> <a href="../../li_admin4phpCMS.html">admin4phpCMS</a><br /> </div> <br /> <b>Files:</b><br /> <div class="package"> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_actionhandler_php.html">class.actionhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_eventhandler_php.html">class.eventhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_framework_php.html">class.framework.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_module_php.html">class.module.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_index_php.html">index.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_info_php.html">info.php</a></span><br /> </div> <div class="package"> <strong>module_config</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_config/_modules_config_class_module_config_php.html">class.module_config.php</a></span><br /> </div> <div class="package"> <strong>module_debug</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_debug/_modules_debug_class_module_debug_php.html">class.module_debug.php</a></span><br /> </div> <div class="package"> <strong>module_editor</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_editor_php.html">class.module_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_image_editor_php.html">class.module_image_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_phpcms_editor_php.html">class.module_phpcms_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_text_editor_php.html">class.module_text_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_xml_editor_php.html">class.module_xml_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_zip_editor_php.html">class.module_zip_editor.php</a></span><br /> </div> <div class="package"> <strong>module_error</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_error/_modules_error_class_module_error_php.html">class.module_error.php</a></span><br /> </div> <div class="package"> <strong>module_filemanager</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_file_util_php.html">class.file_util.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_module_filemanager_php.html">class.module_filemanager.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_config_filemanager_php.html">config.filemanager.php</a></span><br /> </div> <div class="package"> <strong>module_layout</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_layout/_modules_layout_class_module_layout_php.html">class.module_layout.php</a></span><br /> </div> <div class="package"> <strong>module_log</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_log/_modules_log_class_module_log_php.html">class.module_log.php</a></span><br /> </div> <div class="package"> <strong>module_mail</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_mail/_modules_mail_class_module_mail_php.html">class.module_mail.php</a></span><br /> </div> <div class="package"> <strong>module_phpcms</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_module_phpcms_php.html">class.module_phpcms.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_phpcms_menu_php.html">class.phpcms_menu.php</a></span><br /> </div> <div class="package"> <strong>module_statistic</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_module_statistik_php.html">class.module_statistik.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_apache_php.html">class.statistic_apache.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_common_php.html">class.statistic_common.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_phpcms_php.html">class.statistic_phpcms.php</a></span><br /> </div> <div class="package"> <strong>module_statistik</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistik/_modules_hilfe_class_module_hilfe_php.html">class.module_hilfe.php</a></span><br /> </div> <div class="package"> <strong>module_user</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_module_user_php.html">class.module_user.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_webdav_class_module_webdav_php.html">class.module_webdav.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_phpcms_auth_php.html">class.phpcms_auth.php</a></span><br /> </div> <br /> <b>Classes:</b><br /> <div class="package"> <a href="../../admin4phpCMS/actionHandler.html">actionHandler</a> <br /> <a href="../../admin4phpCMS/eventHandler.html">eventHandler</a> <br /> <a href="../../admin4phpCMS/framework.html">framework</a> <br /> </div> <div class="package"> module_filemanager<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/file_util.html">file_util</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/module_filemanager.html">module_filemanager</a> </span> <br /> </div> <div class="package"> module_config<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_config/module_config.html">module_config</a> </span> <br /> </div> <div class="package"> module_debug<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_debug/module_debug.html">module_debug</a> </span> <br /> </div> <div class="package"> module_editor<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_editor.html">module_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_image_editor.html">module_image_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_phpcms_editor.html">module_phpcms_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_text_editor.html">module_text_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_xml_editor.html">module_xml_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_zip_editor.html">module_zip_editor</a> </span> <br /> </div> <div class="package"> module_error<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_error/module_error.html">module_error</a> </span> <br /> </div> <div class="package"> module_help<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_help/module_hilfe.html">module_hilfe</a> </span> <br /> </div> <div class="package"> module_layout<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_layout/module_layout.html">module_layout</a> </span> <br /> </div> <div class="package"> module_log<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_log/module_log.html">module_log</a> </span> <br /> </div> <div class="package"> module_mail<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_mail/module_mail.html">module_mail</a> </span> <br /> </div> <div class="package"> module_phpcms<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/module_phpcms.html">module_phpcms</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/phpcms_menu.html">phpcms_menu</a> </span> <br /> </div> <div class="package"> module_statistic<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/ApacheLogVisits.html">ApacheLogVisits</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/module_statistik.html">module_statistik</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_common.html">statistic_common</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_phpcms.html">statistic_phpcms</a> </span> <br /> </div> <div class="package"> module_user<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/module_user.html">module_user</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/phpCMSAuth.html">phpCMSAuth</a> </span> <br /> </div> <div class="package"> module_webdav<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_webdav/module_webdav.html">module_webdav</a> </span> <br /> </div> </td> <td> <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> <h1>Procedural File: class.module_config.php</h1> Source Location: /modules/config/class.module_config.php<br /><br /> <a name="sec-description"></a> <div class="info-box"> <div class="info-box-title">Page Details</div> <div class="nav-bar"> <span class="disabled">Page Details</span> | <a href="#sec-classes">Classes</a> | <a href="#sec-includes">Includes</a> </div> <div class="info-box-body"> <p align="center" class="short-description"><strong>The config module manages the configuration-file config.xml and provide its data to the other modules. </strong></p> <span class="description"><p><strong>License</strong></p><p>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.</p><p>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.</p><p>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</p></span> <table border="0" cellspacing="0" cellpadding="0"> <tr><td><strong>Version:</strong> </td><td>$Id: _modules_config_class_module_config_php.html,v 1.1 2004/12/07 06:42:09 mjahn Exp $</td></tr> <tr><td><strong>Copyright:</strong> </td><td>Copyright (c) 2004, Martin Jahn</td></tr> <tr><td><strong>License:</strong> </td><td><a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a></td></tr> <tr><td><strong>Author:</strong> </td><td>Martin Jahn <<a href="mailto:mj...@us...">mj...@us...</a>></td></tr> </table> </div> </div> <a name="sec-classes"></a> <div class="info-box"> <div class="info-box-title">Classes</div> <div class="nav-bar"> <a href="#sec-description">Page Details</a> | <span class="disabled">Classes</span> | <a href="#sec-includes">Includes</a> </div> <div class="info-box-body"> <table cellpadding="2" cellspacing="0" class="class-table"> <tr> <th class="class-table-header">Class</th> <th class="class-table-header">Description</th> </tr> <tr> <td style="padding-right: 2em; vertical-align: top"> <a href="../../admin4phpCMS/module_config/module_config.html">module_config</a> </td> <td> The config-class encapsulates the access to the configfile against the framework </td> </tr> </table> </div> </div> <a name="sec-includes"></a> <div class="info-box"> <div class="info-box-title">Includes</div> <div class="nav-bar"> <a href="#sec-description">Page Details</a> | <a href="#sec-classes">Classes</a> | <span class="disabled">Includes</span> </div> <div class="info-box-body"> <a name="_PATH_TO_PEAR_XML/Tree_php"><!-- --></a> <div class="oddrow"> <div> <span class="include-title"> <span class="include-type">include_once</span> (<span class="include-name">PATH_TO_PEAR.'XML/Tree.php'</span>) <span class="smalllinenumber">[line 49]</span> </span> </div> <p align="center" class="short-description"><strong>include the PEAR::XML_Tree class </strong></p> <div class="top">[ <a href="#top">Top</a> ]</div> <br /> </div> </div> </div><br /> <div class="credit"> <hr class="separator" /> Documentation generated on Mon, 6 Dec 2004 21:13:26 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> </div> </td></tr></table> </td> </tr> </table> </body> </html> |
From: Martin J. <mj...@us...> - 2004-12-07 06:42:18
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/__examplesource In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14618/docs/__examplesource Added Files: exsource_artin_devel_admin4phpCMS_modules_config_config.xml_8a8c560ef80a7a5b4c8b8756941a6850.html Log Message: prepration of first Alpha-Preview --- NEW FILE: exsource_artin_devel_admin4phpCMS_modules_config_config.xml_8a8c560ef80a7a5b4c8b8756941a6850.html --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>sample configfile</title> <link rel="stylesheet" type="text/css" href="../media/style.css"> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> </head> <body> <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> <tr> <td class="header-top-left"><img src="../media/logo.png" border="0" alt="phpDocumentor " /></td> <td class="header-top-right">admin4phpCMS<br /><div class="header-top-right-subpackage">module_config</div></td> </tr> <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> <tr> <td colspan="2" class="header-menu"> [ <a href="../classtrees_admin4phpCMS.html" class="menu">class tree: admin4phpCMS</a> ] [ <a href="../elementindex_admin4phpCMS.html" class="menu">index: admin4phpCMS</a> ] [ <a href="../elementindex.html" class="menu">all elements</a> ] </td> </tr> <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="195" class="menu"> <div class="package-title">admin4phpCMS</div> <div class="package"> <div id="ric"> <p><a href="../ric_Changelog.html">Changelog</a></p> <p><a href="../ric_INSTALL.html">INSTALL</a></p> </div> </div> <div class="package"> <div id="todolist"> <p><a href="../todolist.html">Todo List</a></p> </div> </div> <b>Packages:</b><br /> <div class="package"> <a href="../li_default.html">default</a><br /> <a href="../li_admin4phpCMS.html">admin4phpCMS</a><br /> </div> <br /> <br /> </td> <td> <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> <h1 align="center">sample configfile</h1> <div class="src-code"><span class="php"> <div class="listing"><pre><ol><li><span class="src-php"><?</span><span class="src-id">xml version</span>=<span class="src-str">"1.0" </span><span class="src-id">encoding</span>=<span class="src-str">"iso-8859-15"</span><span class="src-php">?></span></li> <li><!DOCTYPE framework SYSTEM "config.dtd"></li> <li><framework></li> <li> <module id="user" name="user-service" include="class.module_user.php" class="module_user"></li> <li> <config name="userfile" value="user.db" /></li> <li> <config name="permfile" value="perm.db" /></li> <li> </module></li> <li> <module id="mail" name="email-service" include="class.module_mail.php" class="module_mail"></li> <li> <config name="admin-email" value="ma...@mj..." /></li> <li> <config name="from-email" value="fra...@ma..." /></li> <li> </module></li> <li> <module id="log" name="log-service" include="class.module_log.php" class="module_log"></li> <li> <config name="logfile" value="log/framework.log" /></li> <li> <config name="logrotate" /></li> <li> <config name="logrotate-days" value="2" /></li> <li> <config name="chmod" value="0606" /></li> <li> </module></li> <li> <module id="error" name="error-service" include="class.module_error.php" class="module_error" /></li> <li> <module id="debug" name="debug-service" include="class.module_debug.php" class="module_debug" /></li> <li> <module id="layout" name="layout-service" include="class.module_layout.php" class="module_layout" /></li> <li> <module id="editor" name="editor-service" include="class.module_editor.php" class="module_editor" /></li> <li> <module id="filemanager" name="filemanager" include="class.module_filemanager.php" class="module_filemanager"></li> <li> <config name="startupdir" value="/" /></li> <li> <config name="imagepath" value="filemanager/img/" /></li> <li> <config name="editor_image" value="jpg,jpeg,png,bmp,gif" /></li> <li> <config name="editor_xml" value="xml,dtd" /></li> <li> <config name="editor_phpcms_content" value="phpcms" /></li> <li> <config name="editor_phpcms_menu" value="mnu" /></li> <li> </module></li> <li> <module id="phpcms" name="phpcms" include="class.module_phpcms.php" class="module_phpcms"></li> <li> <config name="configfile" value="/cms/parser/include/default.php" /></li> <li> <config name="projectdir" value="/cms/templates/" /></li> <li> <config name="projectfileext" value="ini" /></li> <li> </module> </li> <li><!--</li> <li> <module id="statistik" name="statistik" include="class.module_statistik.php" class="module_statistik" /></li> <li>--></li> <li> <module id="hilfe" name="help" include="class.module_hilfe.php" class="module_hilfe" /></li> <li></framework></li> </ol></pre></div> </span></div> <div class="credit"> <hr class="separator" /> Documentation generated on Mon, 6 Dec 2004 21:13:26 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> </div> </td></tr></table> </td> </tr> </table> </body> </html> |
From: Martin J. <mj...@us...> - 2004-12-07 06:42:18
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14618/docs/admin4phpCMS/module_debug Added Files: module_debug.html _modules_debug_class_module_debug_php.html Log Message: prepration of first Alpha-Preview --- NEW FILE: _modules_debug_class_module_debug_php.html --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Docs for page class.module_debug.php</title> <link rel="stylesheet" type="text/css" href="../../media/style.css"> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> </head> <body> <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> <tr> <td class="header-top-left"><img src="../../media/logo.png" border="0" alt="phpDocumentor " /></td> <td class="header-top-right">admin4phpCMS<br /><div class="header-top-right-subpackage">module_debug</div></td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> <tr> <td colspan="2" class="header-menu"> [ <a href="../../classtrees_admin4phpCMS.html" class="menu">class tree: admin4phpCMS</a> ] [ <a href="../../elementindex_admin4phpCMS.html" class="menu">index: admin4phpCMS</a> ] [ <a href="../../elementindex.html" class="menu">all elements</a> ] </td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="195" class="menu"> <div class="package-title">admin4phpCMS</div> <div class="package"> <div id="ric"> <p><a href="../../ric_Changelog.html">Changelog</a></p> <p><a href="../../ric_INSTALL.html">INSTALL</a></p> </div> </div> <div class="package"> <div id="todolist"> <p><a href="../../todolist.html">Todo List</a></p> </div> </div> <b>Packages:</b><br /> <div class="package"> <a href="../../li_default.html">default</a><br /> <a href="../../li_admin4phpCMS.html">admin4phpCMS</a><br /> </div> <br /> <b>Files:</b><br /> <div class="package"> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_actionhandler_php.html">class.actionhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_eventhandler_php.html">class.eventhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_framework_php.html">class.framework.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_module_php.html">class.module.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_index_php.html">index.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_info_php.html">info.php</a></span><br /> </div> <div class="package"> <strong>module_config</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_config/_modules_config_class_module_config_php.html">class.module_config.php</a></span><br /> </div> <div class="package"> <strong>module_debug</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_debug/_modules_debug_class_module_debug_php.html">class.module_debug.php</a></span><br /> </div> <div class="package"> <strong>module_editor</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_editor_php.html">class.module_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_image_editor_php.html">class.module_image_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_phpcms_editor_php.html">class.module_phpcms_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_text_editor_php.html">class.module_text_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_xml_editor_php.html">class.module_xml_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_zip_editor_php.html">class.module_zip_editor.php</a></span><br /> </div> <div class="package"> <strong>module_error</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_error/_modules_error_class_module_error_php.html">class.module_error.php</a></span><br /> </div> <div class="package"> <strong>module_filemanager</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_file_util_php.html">class.file_util.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_module_filemanager_php.html">class.module_filemanager.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_config_filemanager_php.html">config.filemanager.php</a></span><br /> </div> <div class="package"> <strong>module_layout</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_layout/_modules_layout_class_module_layout_php.html">class.module_layout.php</a></span><br /> </div> <div class="package"> <strong>module_log</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_log/_modules_log_class_module_log_php.html">class.module_log.php</a></span><br /> </div> <div class="package"> <strong>module_mail</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_mail/_modules_mail_class_module_mail_php.html">class.module_mail.php</a></span><br /> </div> <div class="package"> <strong>module_phpcms</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_module_phpcms_php.html">class.module_phpcms.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_phpcms_menu_php.html">class.phpcms_menu.php</a></span><br /> </div> <div class="package"> <strong>module_statistic</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_module_statistik_php.html">class.module_statistik.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_apache_php.html">class.statistic_apache.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_common_php.html">class.statistic_common.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_phpcms_php.html">class.statistic_phpcms.php</a></span><br /> </div> <div class="package"> <strong>module_statistik</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistik/_modules_hilfe_class_module_hilfe_php.html">class.module_hilfe.php</a></span><br /> </div> <div class="package"> <strong>module_user</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_module_user_php.html">class.module_user.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_webdav_class_module_webdav_php.html">class.module_webdav.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_phpcms_auth_php.html">class.phpcms_auth.php</a></span><br /> </div> <br /> <b>Classes:</b><br /> <div class="package"> <a href="../../admin4phpCMS/actionHandler.html">actionHandler</a> <br /> <a href="../../admin4phpCMS/eventHandler.html">eventHandler</a> <br /> <a href="../../admin4phpCMS/framework.html">framework</a> <br /> </div> <div class="package"> module_filemanager<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/file_util.html">file_util</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/module_filemanager.html">module_filemanager</a> </span> <br /> </div> <div class="package"> module_config<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_config/module_config.html">module_config</a> </span> <br /> </div> <div class="package"> module_debug<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_debug/module_debug.html">module_debug</a> </span> <br /> </div> <div class="package"> module_editor<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_editor.html">module_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_image_editor.html">module_image_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_phpcms_editor.html">module_phpcms_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_text_editor.html">module_text_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_xml_editor.html">module_xml_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_zip_editor.html">module_zip_editor</a> </span> <br /> </div> <div class="package"> module_error<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_error/module_error.html">module_error</a> </span> <br /> </div> <div class="package"> module_help<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_help/module_hilfe.html">module_hilfe</a> </span> <br /> </div> <div class="package"> module_layout<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_layout/module_layout.html">module_layout</a> </span> <br /> </div> <div class="package"> module_log<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_log/module_log.html">module_log</a> </span> <br /> </div> <div class="package"> module_mail<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_mail/module_mail.html">module_mail</a> </span> <br /> </div> <div class="package"> module_phpcms<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/module_phpcms.html">module_phpcms</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/phpcms_menu.html">phpcms_menu</a> </span> <br /> </div> <div class="package"> module_statistic<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/ApacheLogVisits.html">ApacheLogVisits</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/module_statistik.html">module_statistik</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_common.html">statistic_common</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_phpcms.html">statistic_phpcms</a> </span> <br /> </div> <div class="package"> module_user<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/module_user.html">module_user</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/phpCMSAuth.html">phpCMSAuth</a> </span> <br /> </div> <div class="package"> module_webdav<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_webdav/module_webdav.html">module_webdav</a> </span> <br /> </div> </td> <td> <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> <h1>Procedural File: class.module_debug.php</h1> Source Location: /modules/debug/class.module_debug.php<br /><br /> <a name="sec-description"></a> <div class="info-box"> <div class="info-box-title">Page Details</div> <div class="nav-bar"> <span class="disabled">Page Details</span> | <a href="#sec-classes">Classes</a> </div> <div class="info-box-body"> <p align="center" class="short-description"><strong>The debugging-module </strong></p> <span class="description"><p><strong>License</strong></p><p>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.</p><p>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.</p><p>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</p></span> <table border="0" cellspacing="0" cellpadding="0"> <tr><td><strong>Version:</strong> </td><td>$Id: _modules_debug_class_module_debug_php.html,v 1.1 2004/12/07 06:42:08 mjahn Exp $</td></tr> <tr><td><strong>Copyright:</strong> </td><td>Copyright (c) 2004, Martin Jahn</td></tr> <tr><td><strong>License:</strong> </td><td><a href="http://opensource.org/licenses/gpl-license.php">GNU Public License</a></td></tr> <tr><td><strong>Author:</strong> </td><td>Martin Jahn <<a href="mailto:mj...@us...">mj...@us...</a>></td></tr> </table> </div> </div> <a name="sec-classes"></a> <div class="info-box"> <div class="info-box-title">Classes</div> <div class="nav-bar"> <a href="#sec-description">Page Details</a> | <span class="disabled">Classes</span> </div> <div class="info-box-body"> <table cellpadding="2" cellspacing="0" class="class-table"> <tr> <th class="class-table-header">Class</th> <th class="class-table-header">Description</th> </tr> <tr> <td style="padding-right: 2em; vertical-align: top"> <a href="../../admin4phpCMS/module_debug/module_debug.html">module_debug</a> </td> <td> Class for displaying debug-information </td> </tr> </table> </div> </div> <div class="credit"> <hr class="separator" /> Documentation generated on Mon, 6 Dec 2004 21:13:27 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> </div> </td></tr></table> </td> </tr> </table> </body> </html> --- NEW FILE: module_debug.html --- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Docs For Class module_debug</title> <link rel="stylesheet" type="text/css" href="../../media/style.css"> <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/> </head> <body> <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> <tr> <td class="header-top-left"><img src="../../media/logo.png" border="0" alt="phpDocumentor " /></td> <td class="header-top-right">admin4phpCMS<br /><div class="header-top-right-subpackage">module_debug</div></td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> <tr> <td colspan="2" class="header-menu"> [ <a href="../../classtrees_admin4phpCMS.html" class="menu">class tree: admin4phpCMS</a> ] [ <a href="../../elementindex_admin4phpCMS.html" class="menu">index: admin4phpCMS</a> ] [ <a href="../../elementindex.html" class="menu">all elements</a> ] </td> </tr> <tr><td colspan="2" class="header-line"><img src="../../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="195" class="menu"> <div class="package-title">admin4phpCMS</div> <div class="package"> <div id="ric"> <p><a href="../../ric_Changelog.html">Changelog</a></p> <p><a href="../../ric_INSTALL.html">INSTALL</a></p> </div> </div> <div class="package"> <div id="todolist"> <p><a href="../../todolist.html">Todo List</a></p> </div> </div> <b>Packages:</b><br /> <div class="package"> <a href="../../li_default.html">default</a><br /> <a href="../../li_admin4phpCMS.html">admin4phpCMS</a><br /> </div> <br /> <b>Files:</b><br /> <div class="package"> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_actionhandler_php.html">class.actionhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_eventhandler_php.html">class.eventhandler.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_framework_php.html">class.framework.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_include_class_module_php.html">class.module.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_index_php.html">index.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/_info_php.html">info.php</a></span><br /> </div> <div class="package"> <strong>module_config</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_config/_modules_config_class_module_config_php.html">class.module_config.php</a></span><br /> </div> <div class="package"> <strong>module_debug</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_debug/_modules_debug_class_module_debug_php.html">class.module_debug.php</a></span><br /> </div> <div class="package"> <strong>module_editor</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_editor_php.html">class.module_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_image_editor_php.html">class.module_image_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_phpcms_editor_php.html">class.module_phpcms_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_text_editor_php.html">class.module_text_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_xml_editor_php.html">class.module_xml_editor.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_editor/_modules_editor_class_module_zip_editor_php.html">class.module_zip_editor.php</a></span><br /> </div> <div class="package"> <strong>module_error</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_error/_modules_error_class_module_error_php.html">class.module_error.php</a></span><br /> </div> <div class="package"> <strong>module_filemanager</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_file_util_php.html">class.file_util.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_class_module_filemanager_php.html">class.module_filemanager.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_filemanager/_modules_filemanager_config_filemanager_php.html">config.filemanager.php</a></span><br /> </div> <div class="package"> <strong>module_layout</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_layout/_modules_layout_class_module_layout_php.html">class.module_layout.php</a></span><br /> </div> <div class="package"> <strong>module_log</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_log/_modules_log_class_module_log_php.html">class.module_log.php</a></span><br /> </div> <div class="package"> <strong>module_mail</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_mail/_modules_mail_class_module_mail_php.html">class.module_mail.php</a></span><br /> </div> <div class="package"> <strong>module_phpcms</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_module_phpcms_php.html">class.module_phpcms.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_phpcms/_modules_phpcms_class_phpcms_menu_php.html">class.phpcms_menu.php</a></span><br /> </div> <div class="package"> <strong>module_statistic</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_module_statistik_php.html">class.module_statistik.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_apache_php.html">class.statistic_apache.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_common_php.html">class.statistic_common.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistic/_modules_statistik_class_statistic_phpcms_php.html">class.statistic_phpcms.php</a></span><br /> </div> <div class="package"> <strong>module_statistik</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_statistik/_modules_hilfe_class_module_hilfe_php.html">class.module_hilfe.php</a></span><br /> </div> <div class="package"> <strong>module_user</strong><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_module_user_php.html">class.module_user.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_webdav_class_module_webdav_php.html">class.module_webdav.php</a></span><br /> <span style="padding-left: 1em;"><a href="../../admin4phpCMS/module_user/_modules_user_class_phpcms_auth_php.html">class.phpcms_auth.php</a></span><br /> </div> <br /> <b>Classes:</b><br /> <div class="package"> <a href="../../admin4phpCMS/actionHandler.html">actionHandler</a> <br /> <a href="../../admin4phpCMS/eventHandler.html">eventHandler</a> <br /> <a href="../../admin4phpCMS/framework.html">framework</a> <br /> </div> <div class="package"> module_filemanager<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/file_util.html">file_util</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_filemanager/module_filemanager.html">module_filemanager</a> </span> <br /> </div> <div class="package"> module_config<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_config/module_config.html">module_config</a> </span> <br /> </div> <div class="package"> module_debug<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_debug/module_debug.html">module_debug</a> </span> <br /> </div> <div class="package"> module_editor<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_editor.html">module_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_image_editor.html">module_image_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_phpcms_editor.html">module_phpcms_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_text_editor.html">module_text_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_xml_editor.html">module_xml_editor</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_editor/module_zip_editor.html">module_zip_editor</a> </span> <br /> </div> <div class="package"> module_error<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_error/module_error.html">module_error</a> </span> <br /> </div> <div class="package"> module_help<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_help/module_hilfe.html">module_hilfe</a> </span> <br /> </div> <div class="package"> module_layout<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_layout/module_layout.html">module_layout</a> </span> <br /> </div> <div class="package"> module_log<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_log/module_log.html">module_log</a> </span> <br /> </div> <div class="package"> module_mail<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_mail/module_mail.html">module_mail</a> </span> <br /> </div> <div class="package"> module_phpcms<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/module_phpcms.html">module_phpcms</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_phpcms/phpcms_menu.html">phpcms_menu</a> </span> <br /> </div> <div class="package"> module_statistic<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/ApacheLogVisits.html">ApacheLogVisits</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/module_statistik.html">module_statistik</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_common.html">statistic_common</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_statistic/statistic_phpcms.html">statistic_phpcms</a> </span> <br /> </div> <div class="package"> module_user<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/module_user.html">module_user</a> </span> <br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_user/phpCMSAuth.html">phpCMSAuth</a> </span> <br /> </div> <div class="package"> module_webdav<br /> <span style="padding-left: 1em;"> <a href="../../admin4phpCMS/module_webdav/module_webdav.html">module_webdav</a> </span> <br /> </div> </td> <td> <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top"> <h1>Class: module_debug</h1> Source Location: /modules/debug/class.module_debug.php<br /><br /> <h2 class="class-name">Class module_debug</h2> <a name="sec-description"></a> <div class="info-box"> <div class="info-box-title">Class Overview</div> <div class="nav-bar"> <span class="disabled">Class Overview</span> | <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a> </div> <div class="info-box-body"> <table width="100%" border="0"> <tr><td valign="top" width="60%" class="class-overview"> <p align="center" class="short-description"><strong>Class for displaying debug-information </strong></p> <p class="notes"> Located in <a class="field" href="_modules_debug_class_module_debug_php.html">/modules/debug/class.module_debug.php</a> [<span class="field">line 53</span>] </p> <pre>module | --module_debug</pre> <strong>Author(s):</strong> <ul> </ul> <strong>Information Tags:</strong><br /> <table border="0" cellspacing="0" cellpadding="0"> <tr><td><strong>Todo:</strong> </td><td>Get the class working correctly</td></tr> </table> </td> <td valign="top" width="20%" class="class-overview"> <p align="center" class="short-description"><strong><a href="#sec_methods">Methods</a></strong></p> <ul> <li><a href="../../admin4phpCMS/module_debug/module_debug.html#methodgetContent">getContent</a></li> <li><a href="../../admin4phpCMS/module_debug/module_debug.html#methodgetUserData">getUserData</a></li> <li><a href="../../admin4phpCMS/module_debug/module_debug.html#methodinit">init</a></li> <li><a href="../../admin4phpCMS/module_debug/module_debug.html#methodparseParam">parseParam</a></li> <li><a href="../../admin4phpCMS/module_debug/module_debug.html#methodprocess">process</a></li> <li><a href="../../admin4phpCMS/module_debug/module_debug.html#methodsetUserData">setUserData</a></li> </ul> </td> </tr></table> <div class="top">[ <a href="#top">Top</a> ]</div> </div> </div> <a name="sec-method-summary"></a> <div class="info-box"> <div class="info-box-title">Method Summary</span></div> <div class="nav-bar"> <a href="#sec-description">Class Overview</a> | <span class="disabled">Method Summary</span> | <a href="#sec-methods">Methods Detail</a> </div> <div class="info-box-body"> <div class="method-summary"> <table border="0" cellspacing="0" cellpadding="0" class="method-summary"> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#getContent" title="details" class="method-name">getContent</a>() </td> <td class="method-definition"></td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#getUserData" title="details" class="method-name">getUserData</a>() </td> <td class="method-definition"></td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#init" title="details" class="method-name">init</a>() </td> <td class="method-definition"></td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#parseParam" title="details" class="method-name">parseParam</a>() </td> <td class="method-definition"></td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#process" title="details" class="method-name">process</a>() </td> <td class="method-definition"></td></tr> </div> <div class="method-definition"> <tr><td class="method-definition"><span class="method-result">void</span> </td> <td class="method-definition"><a href="#setUserData" title="details" class="method-name">setUserData</a>() </td> <td class="method-definition"></td></tr> </div> </table> </div> <br /><div class="top">[ <a href="#top">Top</a> ]</div> </div> </div> <a name="sec-methods"></a> <div class="info-box"> <div class="info-box-title">Methods</div> <div class="nav-bar"> <a href="#sec-description">Class Overview</a> | | <a href="#sec-method-summary">Method Summary</a> | <span class="disabled">Methods Detail</span> </div> <div class="info-box-body"> <a name='method_detail'></a> <a name="methodgetContent" id="getContent"><!-- --></a> <div class="evenrow"> <div class="method-header"> <span class="method-title">getContent</span> <span class="smalllinenumber">[line 68]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void getContent( mixed &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodgetUserData" id="getUserData"><!-- --></a> <div class="oddrow"> <div class="method-header"> <span class="method-title">getUserData</span> <span class="smalllinenumber">[line 112]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void getUserData( mixed &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodinit" id="init"><!-- --></a> <div class="evenrow"> <div class="method-header"> <span class="method-title">init</span> <span class="smalllinenumber">[line 55]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void init( )</code> </td></tr></table> </td></tr></table><br /></div> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodparseParam" id="parseParam"><!-- --></a> <div class="oddrow"> <div class="method-header"> <span class="method-title">parseParam</span> <span class="smalllinenumber">[line 61]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void parseParam( mixed &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodprocess" id="process"><!-- --></a> <div class="evenrow"> <div class="method-header"> <span class="method-title">process</span> <span class="smalllinenumber">[line 65]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void process( mixed &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> <a name="methodsetUserData" id="setUserData"><!-- --></a> <div class="oddrow"> <div class="method-header"> <span class="method-title">setUserData</span> <span class="smalllinenumber">[line 115]</span> </div> <br /> <div class="function"> <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border"> <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code"> <code>void setUserData( mixed &$actiondata )</code> </td></tr></table> </td></tr></table><br /></div> <br /> <br /> <div class="top">[ <a href="#top">Top</a> ]</div> </div> </div> </div> <div class="credit"> <hr class="separator" /> Documentation generated on Mon, 6 Dec 2004 21:13:27 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a> </div> </td></tr></table> </td> </tr> </table> </body> </html> |