phpcms-plugins-cvs Mailing List for phpCMS-plugins (Page 17)
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...> - 2004-05-26 11:26:11
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv597/modules/config Added Files: class.module_config.php Log Message: restructured directory module/ --- NEW FILE: class.module_config.php --- <?php class module_config extends module { var $configfile; function init () { $this->__registerEvent ('CONFIG_READ', 'doReadConfig'); $this->__registerAction ('doReadConfig', 'readConfig'); $this->__registerEvent ('CONFIG_SAVE', 'doSaveConfig'); $this->__registerAction ('doSaveConfig', 'saveConfig'); $this->__registerEvent ('CONFIG_SET_FILE', 'doSetConfigFile'); $this->__registerAction ('doSetConfigFile', 'setConfigFile'); } function readConfig (&$actiondata) { $this->configfile = $actiondata ['configfile']; } function saveConfig (&$actiondata) { } function setConfigFile (&$actiondata) { } } ?> |
From: Martin J. <mj...@us...> - 2004-05-26 11:19:42
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32079/layout Log Message: Directory /cvsroot/phpcms-plugins/admin4phpCMS/modules/layout added to the repository |
From: Martin J. <mj...@us...> - 2004-05-26 11:19:42
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32079/config Log Message: Directory /cvsroot/phpcms-plugins/admin4phpCMS/modules/config added to the repository |
From: Martin J. <mj...@us...> - 2004-05-26 11:19:42
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/mail In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32079/mail Log Message: Directory /cvsroot/phpcms-plugins/admin4phpCMS/modules/mail added to the repository |
From: Martin J. <mj...@us...> - 2004-05-26 11:19:42
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/log In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32079/log Log Message: Directory /cvsroot/phpcms-plugins/admin4phpCMS/modules/log added to the repository |
From: Martin J. <mj...@us...> - 2004-05-21 21:13:44
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385/docs Modified Files: Benutzerhandbuch.lyx Log Message: cleaned for release Index: Benutzerhandbuch.lyx =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/docs/Benutzerhandbuch.lyx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Benutzerhandbuch.lyx 16 May 2004 22:35:59 -0000 1.3 +++ Benutzerhandbuch.lyx 21 May 2004 21:12:55 -0000 1.4 @@ -33,6 +33,19 @@ \layout Author Martin Jahn +\layout Date + +Stand +\begin_inset ERT +status Collapsed + +\layout Standard + +\backslash +today +\end_inset + + \layout Publishers Veröffentlicht von Martin Jahn <mj...@us...> @@ -179,7 +192,7 @@ Erstelle ein neues Template (z.B. authed.ini). - Darin muss als statisches Plugin das Sckript user4phpCMS/auth.php eingebunden + Darin muss als statisches Plugin das Script user4phpCMS/auth.php eingebunden werden und ein zusätzliches {SCRIPT}-Feld namens {SCRIPT_USER} vor allen anderen Skripten. \layout Standard @@ -191,7 +204,7 @@ authed.ini) \layout Standard -Verschiebe den Ordner img aus dem Paket nach /img/editor oder aendere den +Verschiebe den Ordner img/ aus dem Paket nach /img/editor oder aendere den Pfad in der editor.tpl.xml ab \layout Section @@ -214,6 +227,9 @@ \layout Chapter Konfiguration +\layout Section + +Die Konfigurationsdateien \layout Standard Die Konfigurationsdateien liegen im XML Format vor: @@ -226,11 +242,178 @@ Benutzer \layout Description -onlineEditor4phpCMS/oe_config.xml beinhaltet die Konfiguration des Online-Editors +onlineEditor4phpCMS/editor.conf.xml beinhaltet die Konfiguration des Online-Editor +s \layout Standard Am einfachsten ist die Konfiguration mit der modularen Administration im PluginManager. +\layout Subsection + +editor.conf.xml +\layout Subsubsection + +<contentfield> +\layout Standard + +Eine solche Abteilung ist für jedes Contentfeld anzulegen, das angezeigt + werden soll. + +\layout Paragraph + +<id> +\layout Standard + +Dieses Feld enthält den Namen des Contentfeldes. +\layout Paragraph + +<type> +\layout Standard + +Dieses Feld enthält den Typ der Anzeige. + Mögliche Angaben sind +\emph on +script +\emph default +, +\emph on +text +\emph default +, +\emph on +textarea +\emph default + und +\emph on +wysiwyg +\emph default + (später auch +\emph on +imagelist +\emph default + und +\emph on +filelist +\emph default +) +\layout Standard + +<displayever> +\layout Standard + +Gibt an, ob das Feld immer angezeigt werden soll, auch wenn es in der Contentdat +ei nicht vorhanden ist. + Mögliche Werte sind +\emph on +1 +\emph default + für +\emph on +immer anzeigen +\emph default + und +\emph on +0 +\emph default + für +\emph on +nicht immer anzeigen +\emph default +. +\layout Subsubsection + +<script> +\layout Standard + +Für jedes Script, welches in ein SCRIPT-Feld einfügbar ist, kann hier eingetrage +n werden. + Der Editor generiert daraus für das entsprechende Feld eine Auswahlliste + für die SCRIPT-Felder. +\layout Paragraph + +<name> +\layout Standard + +Der Name, der in der Auswahlbox angezeigt wird. +\layout Paragraph + +<path> +\layout Standard + +Der Pfad zur ausführbaren Script-Datei, wie sie dann in der Contentdatei + eingetragen wird. +\layout Paragraph + +<title> +\layout Standard + +Ein Titel für das Skript, wird als Tooltip angeboten. +\layout Subsubsection + +<editor> +\layout Standard + +Die Abteilung <editor> enthält Einstellungen zum Editor +\layout Paragraph + +<chmod> +\layout Standard + +Wenn eine neue Datei angelegt wird, wird sie mit diesem CHMOD-Wert versehen. +\layout Paragraph + +<templatefile> +\layout Standard + +Der Pfad zur Editor-Templatedatei relativ zur Datei editor.php oder absolut + zum Document-Root (dann mit führendem Slash) +\layout Subsubsection + +<wysiwyg> +\layout Standard + +Die Abteilungen <wysiwyg> enthalten die Einstellungen zu den vorhandenen + WYSIWYG-Editoren (diese werden jedoch nicht mitgeliefert) +\layout Subsubsection + +<imagebox> +\layout Standard + +Die Abteilung <imagebox> enthält Einstellungen zu der Bilder-Einfüge-Box +\layout Paragraph + +<imgpath> +\layout Standard + +Pfad zu einem Verzeichnis mit Bildern +\layout Paragraph + +<thumbpath> +\layout Standard + +Pfad zu einem Verzeichnis mit Schreibrechten für PHP. + dort werden die Vorschaubilder abgelegt (deswegen die Schreibrechte) +\layout Paragraph + +<filter> +\layout Standard + +Für jede Dateiendung wird hier eine Zeile angelegt +\layout LyX-Code + +<ext> +\emph on +\noun on +Dateiendung +\emph default +\noun default +</ext> +\layout Paragraph + +<preview> +\layout Standard + +Hier können Höhe und Breite der Vorschaubilder eingestellt werden. \layout Chapter Anhang |
From: Martin J. <mj...@us...> - 2004-05-21 21:13:35
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385 Modified Files: editor.conf.xml editor.css editor.js editor.php editor.tpl.xml help.htm Added Files: Todo Log Message: cleaned for release Index: editor.tpl.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.tpl.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- editor.tpl.xml 16 May 2004 22:35:57 -0000 1.1 +++ editor.tpl.xml 21 May 2004 21:12:55 -0000 1.2 @@ -1,6 +1,6 @@ /** * @package editor -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @author Jan Tank (zeek) <> * @copyright (c) Copyright by Martin Jahn * @license GPL Index: editor.js =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.js,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- editor.js 16 May 2004 22:35:57 -0000 1.1 +++ editor.js 21 May 2004 21:12:55 -0000 1.2 @@ -1,5 +1,10 @@ -/* version $Id$ */ - +/** +* @package editor +* @author Martin Jahn <mj...@us...> +* @copyright (c) Copyright by Martin Jahn +* @license GPL +* @version $Id$ +**/ /** * changed some things: * - body onload-eventhandler is no more needed Index: editor.css =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.css,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- editor.css 15 May 2004 11:26:10 -0000 1.8 +++ editor.css 21 May 2004 21:12:55 -0000 1.9 @@ -1,3 +1,10 @@ +/** +* @package editor +* @author Martin Jahn <mj...@us...> +* @copyright (c) Copyright by Martin Jahn +* @license GPL +* @version $Id$ +**/ #editor fieldset { width: 90%; margin-bottom: 2em; Index: editor.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- editor.php 16 May 2004 22:35:57 -0000 1.10 +++ editor.php 21 May 2004 21:12:55 -0000 1.11 @@ -7,7 +7,7 @@ * die Anwendung des Plugins/Skriptes entstehenden Schaeden. * * Falls du Verbesserungsvorschlaege oder Wuensche bezueglich des Skriptes hast melde dich bei -* Martin Jahn <ma...@ma...> +* Martin Jahn <mj...@us...> * * Dieses Script ist kostenlos für private und kommerzielle Nuzung. * Es wird unter den Bedingungen der GNU General Public License, wie von der Free @@ -22,7 +22,7 @@ * Verbesserungsvorschläge oder -wünsche habt, wäre ich dankbar für eine Benachrichtigung. * * @package editor -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @copyright (c) Copyright by Martin Jahn * @license GPL * @version $Id$ --- NEW FILE: Todo --- (This appears to be a binary file; contents omitted.) Index: help.htm =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/help.htm,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- help.htm 15 May 2004 11:26:10 -0000 1.2 +++ help.htm 21 May 2004 21:12:55 -0000 1.3 @@ -1,4 +1,5 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<!-- $Id$ --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> <head> <title>Hilfe zum onlineEditor4phpCMS</title> Index: editor.conf.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.conf.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- editor.conf.xml 16 May 2004 22:35:57 -0000 1.1 +++ editor.conf.xml 21 May 2004 21:12:55 -0000 1.2 @@ -120,7 +120,7 @@ </wysiwyg1> <editor> <chmod>0606</chmod> - <backupdir>/cms/backup/</backupdir> + <tempdir>/cms/phpcms2412/temp/</tempdir> <templatefile>editor.tpl.xml</templatefile> </editor> </onlineeditor> \ No newline at end of file |
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385/include Modified Files: class.editor.php class.ext_editor.php class.image.php class.phpcmsMenu.php class.template.php class.utilities.php Log Message: cleaned for release Index: class.ext_editor.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/class.ext_editor.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- class.ext_editor.php 16 May 2004 22:35:59 -0000 1.12 +++ class.ext_editor.php 21 May 2004 21:13:02 -0000 1.13 @@ -23,7 +23,7 @@ * * * @package editor -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @copyright (c) Copyright by Martin Jahn * @license GPL * @version $Id$ @@ -454,7 +454,7 @@ **/ function __processFile($x) { // get temporary name for contentfile - $tempname = tempnam ($this->docroot.$this->CONF['editor']['backupdir'], 'editor'); + $tempname = tempnam ($this->docroot.$this->CONF['editor']['tempdir'], 'editor'); // save content in temporary file $this->__saveFile($x, $tempname); $this->__backupFile ($this->editfile) ; Index: class.image.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/class.image.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- class.image.php 8 May 2004 10:19:09 -0000 1.4 +++ class.image.php 21 May 2004 21:13:02 -0000 1.5 @@ -3,7 +3,7 @@ * Klasse zur Bildbearbeitung * * @package image -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @copyright (c) Copyright by Martin Jahn * @license GPL * @version $Id$ Index: class.editor.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/class.editor.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- class.editor.php 10 May 2004 21:32:30 -0000 1.7 +++ class.editor.php 21 May 2004 21:13:02 -0000 1.8 @@ -10,7 +10,7 @@ * die Anwendung des Plugins/Skriptes entstehenden Schaeden. * * Falls du Verbesserungsvorschlaege oder Wuensche bezueglich des Skriptes hast melde dich bei -* Martin Jahn <ma...@ma...> +* Martin Jahn <mj...@us...> * * Dieses Script ist kostenlos für private und kommerzielle Nuzung. * Es wird unter den Bedingungen der GNU General Public License, wie von der Free @@ -31,7 +31,7 @@ /** * @package editor -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @copyright (c) Copyright by Martin Jahn * @license: GPL * @version: 0.1 Index: class.template.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/class.template.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- class.template.php 5 May 2004 21:25:24 -0000 1.4 +++ class.template.php 21 May 2004 21:13:02 -0000 1.5 @@ -2,7 +2,7 @@ /** * * @package editor -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @copyright (c) Copyright by Martin Jahn * @license GPL * @version $Id$ Index: class.utilities.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/class.utilities.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- class.utilities.php 15 May 2004 11:26:11 -0000 1.1 +++ class.utilities.php 21 May 2004 21:13:02 -0000 1.2 @@ -2,7 +2,7 @@ /** * * @package editor -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @copyright (c) Copyright by Martin Jahn * @license GPL * @version $Id$ Index: class.phpcmsMenu.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/class.phpcmsMenu.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- class.phpcmsMenu.php 15 May 2004 11:26:11 -0000 1.7 +++ class.phpcmsMenu.php 21 May 2004 21:13:02 -0000 1.8 @@ -3,7 +3,7 @@ * Backend of menufile-editor * * @package menueditor -* @author Martin Jahn <ma...@ma...> +* @author Martin Jahn <mj...@us...> * @copyright (c) Copyright by Martin Jahn * @license GPL * @version $Id$ |
From: Martin J. <mj...@us...> - 2004-05-21 21:13:13
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip/pcltrace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385/include/pclzip/pcltrace Added Files: pcltrace.lib.php Log Message: cleaned for release --- NEW FILE: pcltrace.lib.php --- <? // -------------------------------------------------------------------------------- // PhpConcept Library (PCL) Trace 2.0-beta1 // -------------------------------------------------------------------------------- // License GNU/GPL - Vincent Blavet - August 2003 // http://www.phpconcept.net // -------------------------------------------------------------------------------- // // The PCL Trace library description is not available yet. // This library was first released only with PclZip library. // An independant release will be soon available on http://www.phpconcept.net // // -------------------------------------------------------------------------------- // // Warning : // This library and the associated files are non commercial, non professional // work. // It should not have unexpected results. However if any damage is caused by // this software the author can not be responsible. // The use of this software is at the risk of the user. // // -------------------------------------------------------------------------------- // ----- Version $g_pcltrace_version = "2.0-beta1"; // ----- Internal variables // These values must be change by PclTrace library functions $g_pcl_trace_mode = "memory"; $g_pcl_trace_filename = "trace.txt"; $g_pcl_trace_name = array(); $g_pcl_trace_index = 0; $g_pcl_trace_level = 0; $g_pcl_trace_suspend = false; //$g_pcl_trace_entries = array(); // ----- For compatibility reason define ('PCLTRACE_LIB', 1); // -------------------------------------------------------------------------------- // Function : TrOn($p_level, $p_mode, $p_filename) // Description : // Parameters : // $p_level : Trace level // $p_mode : Mode of trace displaying : // 'normal' : messages are displayed at function call // 'memory' : messages are memorized in a table and can be display by // TrDisplay() function. (default) // 'log' : messages are writed in the file $p_filename // -------------------------------------------------------------------------------- function PclTraceOn($p_level=1, $p_mode="memory", $p_filename="trace.txt") { TrOn($p_level, $p_mode, $p_filename); } function TrOn($p_level=1, $p_mode="memory", $p_filename="trace.txt") { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; global $g_pcl_trace_entries; global $g_pcl_trace_suspend; // ----- Enable trace mode $g_pcl_trace_level = $p_level; // ----- Memorize mode and filename switch ($p_mode) { case "normal" : case "memory" : case "log" : $g_pcl_trace_mode = $p_mode; break; default : $g_pcl_trace_mode = "logged"; } // ----- Memorize filename $g_pcl_trace_filename = $p_filename; $g_pcl_trace_suspend = false; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : IsTrOn() // Description : // Return value : // The trace level (0 for disable). // -------------------------------------------------------------------------------- function PclTraceIsOn() { return IsTrOn(); } function IsTrOn() { global $g_pcl_trace_level; return($g_pcl_trace_level); } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : TrOff() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclTraceOff() { TrOff(); } function TrOff() { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; // ----- Clean $g_pcl_trace_mode = "memory"; unset($g_pcl_trace_entries); unset($g_pcl_trace_name); unset($g_pcl_trace_index); // ----- Switch off trace $g_pcl_trace_level = 0; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclTraceSuspend() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclTraceSuspend() { global $g_pcl_trace_suspend; $g_pcl_trace_suspend = true; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclTraceResume() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclTraceResume() { global $g_pcl_trace_suspend; $g_pcl_trace_suspend = false; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : TrFctStart() // Description : // Just a trace function for debbugging purpose before I use a better tool !!!! // Start and stop of this function is by $g_pcl_trace_level global variable. // Parameters : // $p_level : Level of trace required. // -------------------------------------------------------------------------------- function PclTraceFctStart($p_file, $p_line, $p_name, $p_param="", $p_message="") { TrFctStart($p_file, $p_line, $p_name, $p_param, $p_message); } function TrFctStart($p_file, $p_line, $p_name, $p_param="", $p_message="") { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; global $g_pcl_trace_entries; global $g_pcl_trace_suspend; // ----- Look for disabled trace if (($g_pcl_trace_level < 1) || ($g_pcl_trace_suspend)) return; // ----- Add the function name in the list if (!isset($g_pcl_trace_name)) $g_pcl_trace_name = $p_name; else $g_pcl_trace_name .= ",".$p_name; // ----- Update the function entry $i = sizeof($g_pcl_trace_entries); $g_pcl_trace_entries[$i]['name'] = $p_name; $g_pcl_trace_entries[$i]['param'] = $p_param; $g_pcl_trace_entries[$i]['message'] = ""; $g_pcl_trace_entries[$i]['file'] = $p_file; $g_pcl_trace_entries[$i]['line'] = $p_line; $g_pcl_trace_entries[$i]['index'] = $g_pcl_trace_index; $g_pcl_trace_entries[$i]['type'] = "1"; // means start of function // ----- Update the message entry if ($p_message != "") { $i = sizeof($g_pcl_trace_entries); $g_pcl_trace_entries[$i]['name'] = ""; $g_pcl_trace_entries[$i]['param'] = ""; $g_pcl_trace_entries[$i]['message'] = $p_message; $g_pcl_trace_entries[$i]['file'] = $p_file; $g_pcl_trace_entries[$i]['line'] = $p_line; $g_pcl_trace_entries[$i]['index'] = $g_pcl_trace_index; $g_pcl_trace_entries[$i]['type'] = "3"; // means message } // ----- Action depending on mode PclTraceAction($g_pcl_trace_entries[$i]); // ----- Increment the index $g_pcl_trace_index++; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : TrFctEnd() // Description : // Just a trace function for debbugging purpose before I use a better tool !!!! // Start and stop of this function is by $g_pcl_trace_level global variable. // Parameters : // $p_level : Level of trace required. // -------------------------------------------------------------------------------- function PclTraceFctEnd($p_file, $p_line, $p_return=1, $p_message="") { TrFctEnd($p_file, $p_line, $p_return, $p_message); } function TrFctEnd($p_file, $p_line, $p_return=1, $p_message="") { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; global $g_pcl_trace_entries; global $g_pcl_trace_suspend; // ----- Look for disabled trace if (($g_pcl_trace_level < 1) || ($g_pcl_trace_suspend)) return; // ----- Extract the function name in the list // ----- Remove the function name in the list if (!($v_name = strrchr($g_pcl_trace_name, ","))) { $v_name = $g_pcl_trace_name; $g_pcl_trace_name = ""; } else { $g_pcl_trace_name = substr($g_pcl_trace_name, 0, strlen($g_pcl_trace_name)-strlen($v_name)); $v_name = substr($v_name, -strlen($v_name)+1); } // ----- Decrement the index $g_pcl_trace_index--; // ----- Update the message entry if ($p_message != "") { $i = sizeof($g_pcl_trace_entries); $g_pcl_trace_entries[$i]['name'] = ""; $g_pcl_trace_entries[$i]['param'] = ""; $g_pcl_trace_entries[$i]['message'] = $p_message; $g_pcl_trace_entries[$i]['file'] = $p_file; $g_pcl_trace_entries[$i]['line'] = $p_line; $g_pcl_trace_entries[$i]['index'] = $g_pcl_trace_index; $g_pcl_trace_entries[$i]['type'] = "3"; // means message } // ----- Update the function entry $i = sizeof($g_pcl_trace_entries); $g_pcl_trace_entries[$i]['name'] = $v_name; $g_pcl_trace_entries[$i]['param'] = $p_return; $g_pcl_trace_entries[$i]['message'] = ""; $g_pcl_trace_entries[$i]['file'] = $p_file; $g_pcl_trace_entries[$i]['line'] = $p_line; $g_pcl_trace_entries[$i]['index'] = $g_pcl_trace_index; $g_pcl_trace_entries[$i]['type'] = "2"; // means end of function // ----- Action depending on mode PclTraceAction($g_pcl_trace_entries[$i]); } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : TrFctMessage() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclTraceFctMessage($p_file, $p_line, $p_level, $p_message="") { TrFctMessage($p_file, $p_line, $p_level, $p_message); } function TrFctMessage($p_file, $p_line, $p_level, $p_message="") { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; global $g_pcl_trace_entries; global $g_pcl_trace_suspend; // ----- Look for disabled trace if (($g_pcl_trace_level < $p_level) || ($g_pcl_trace_suspend)) return; // ----- Update the entry $i = sizeof($g_pcl_trace_entries); $g_pcl_trace_entries[$i]['name'] = ""; $g_pcl_trace_entries[$i]['param'] = ""; $g_pcl_trace_entries[$i]['message'] = $p_message; $g_pcl_trace_entries[$i]['file'] = $p_file; $g_pcl_trace_entries[$i]['line'] = $p_line; $g_pcl_trace_entries[$i]['index'] = $g_pcl_trace_index; $g_pcl_trace_entries[$i]['type'] = "3"; // means message of function // ----- Action depending on mode PclTraceAction($g_pcl_trace_entries[$i]); } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : TrMessage() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclTraceMessage($p_file, $p_line, $p_level, $p_message="") { TrMessage($p_file, $p_line, $p_level, $p_message); } function TrMessage($p_file, $p_line, $p_level, $p_message="") { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; global $g_pcl_trace_entries; global $g_pcl_trace_suspend; // ----- Look for disabled trace if (($g_pcl_trace_level < $p_level) || ($g_pcl_trace_suspend)) return; // ----- Update the entry $i = sizeof($g_pcl_trace_entries); $g_pcl_trace_entries[$i]['name'] = ""; $g_pcl_trace_entries[$i]['param'] = ""; $g_pcl_trace_entries[$i]['message'] = $p_message; $g_pcl_trace_entries[$i]['file'] = $p_file; $g_pcl_trace_entries[$i]['line'] = $p_line; $g_pcl_trace_entries[$i]['index'] = $g_pcl_trace_index; $g_pcl_trace_entries[$i]['type'] = "4"; // means simple message // ----- Action depending on mode PclTraceAction($g_pcl_trace_entries[$i]); } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : TrDisplay() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclTraceDisplay() { TrDisplay(); } function TrDisplay() { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; global $g_pcl_trace_entries; global $g_pcl_trace_suspend; // ----- Look for disabled trace if (($g_pcl_trace_level <= 0) || ($g_pcl_trace_mode != "memory") || ($g_pcl_trace_suspend)) return; $v_font = "\"Verdana, Arial, Helvetica, sans-serif\""; // ----- Trace Header echo "<table width=100% border=0 cellspacing=0 cellpadding=0>"; echo "<tr bgcolor=#0000CC>"; echo "<td bgcolor=#0000CC width=1>"; echo "</td>"; echo "<td><div align=center><font size=3 color=#FFFFFF face=$v_font>Trace</font></div></td>"; echo "</tr>"; echo "<tr>"; echo "<td bgcolor=#0000CC width=1>"; echo "</td>"; echo "<td>"; // ----- Content header echo "<table width=100% border=0 cellspacing=0 cellpadding=0>"; // ----- Display $v_again=0; for ($i=0; $i<sizeof($g_pcl_trace_entries); $i++) { // ---- Row header echo "<tr>"; echo "<td><table width=100% border=0 cellspacing=0 cellpadding=0><tr>"; $n = ($g_pcl_trace_entries[$i]['index']+1)*10; echo "<td width=".$n."><table width=100% border=0 cellspacing=0 cellpadding=0><tr>"; for ($j=0; $j<=$g_pcl_trace_entries[$i]['index']; $j++) { if ($j==$g_pcl_trace_entries[$i]['index']) { if (($g_pcl_trace_entries[$i]['type'] == 1) || ($g_pcl_trace_entries[$i]['type'] == 2)) echo "<td width=10><div align=center><font size=2 face=$v_font>+</font></div></td>"; } else echo "<td width=10><div align=center><font size=2 face=$v_font>|</font></div></td>"; } //echo "<td> </td>"; echo "</tr></table></td>"; echo "<td width=2></td>"; switch ($g_pcl_trace_entries[$i]['type']) { case 1: echo "<td><font size=2 face=$v_font>".$g_pcl_trace_entries[$i]['name']."(".$g_pcl_trace_entries[$i]['param'].")</font></td>"; break; case 2: echo "<td><font size=2 face=$v_font>".$g_pcl_trace_entries[$i]['name']."()=".$g_pcl_trace_entries[$i]['param']."</font></td>"; break; case 3: case 4: echo "<td><table width=100% border=0 cellspacing=0 cellpadding=0><td width=20></td><td>"; echo "<font size=2 face=$v_font>".$g_pcl_trace_entries[$i]['message']."</font>"; echo "</td></table></td>"; break; default: echo "<td><font size=2 face=$v_font>".$g_pcl_trace_entries[$i]['name']."(".$g_pcl_trace_entries[$i]['param'].")</font></td>"; } echo "</tr></table></td>"; echo "<td width=5></td>"; echo "<td><font size=1 face=$v_font>".basename($g_pcl_trace_entries[$i]['file'])."</font></td>"; echo "<td width=5></td>"; echo "<td><font size=1 face=$v_font>".$g_pcl_trace_entries[$i]['line']."</font></td>"; echo "</tr>"; } // ----- Content footer echo "</table>"; // ----- Trace footer echo "</td>"; echo "<td bgcolor=#0000CC width=1>"; echo "</td>"; echo "</tr>"; echo "<tr bgcolor=#0000CC>"; echo "<td bgcolor=#0000CC width=1>"; echo "</td>"; echo "<td><div align=center><font color=#FFFFFF face=$v_font> </font></div></td>"; echo "</tr>"; echo "</table>"; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclTraceAction() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclTraceAction($p_entry) { global $g_pcl_trace_level; global $g_pcl_trace_mode; global $g_pcl_trace_filename; global $g_pcl_trace_name; global $g_pcl_trace_index; global $g_pcl_trace_entries; if ($g_pcl_trace_mode == "normal") { for ($i=0; $i<$p_entry['index']; $i++) echo "---"; if ($p_entry['type'] == 1) echo "<b>".$p_entry['name']."</b>(".$p_entry['param'].") : ".$p_entry['message']." [".$p_entry[file].", ".$p_entry[line]."]<br>"; else if ($p_entry['type'] == 2) echo "<b>".$p_entry['name']."</b>()=".$p_entry['param']." : ".$p_entry['message']." [".$p_entry[file].", ".$p_entry[line]."]<br>"; else echo $p_entry['message']." [".$p_entry['file'].", ".$p_entry['line']."]<br>"; } } // -------------------------------------------------------------------------------- ?> |
From: Martin J. <mj...@us...> - 2004-05-21 21:13:13
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip/pclerror In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385/include/pclzip/pclerror Added Files: pclerror.lib.php Log Message: cleaned for release --- NEW FILE: pclerror.lib.php --- <? // -------------------------------------------------------------------------------- // PhpConcept Library (PCL) Error 1.0 // -------------------------------------------------------------------------------- // License GNU/GPL - Vincent Blavet - Mars 2001 // http://www.phpconcept.net & http://phpconcept.free.fr // -------------------------------------------------------------------------------- // Français : // La description de l'usage de la librairie PCL Error 1.0 n'est pas encore // disponible. Celle-ci n'est pour le moment distribuée qu'avec les // développements applicatifs de PhpConcept. // Une version indépendante sera bientot disponible sur http://www.phpconcept.net // // English : // The PCL Error 1.0 library description is not available yet. This library is // released only with PhpConcept application and libraries. // An independant release will be soon available on http://www.phpconcept.net // // -------------------------------------------------------------------------------- // // * Avertissement : // // Cette librairie a été créée de façon non professionnelle. // Son usage est au risque et péril de celui qui l'utilise, en aucun cas l'auteur // de ce code ne pourra être tenu pour responsable des éventuels dégats qu'il pourrait // engendrer. // Il est entendu cependant que l'auteur a réalisé ce code par plaisir et n'y a // caché aucun virus, ni malveillance. // Cette libairie est distribuée sous la license GNU/GPL (http://www.gnu.org) // // * Auteur : // // Ce code a été écrit par Vincent Blavet (vi...@bl...) sur son temps // de loisir. // // -------------------------------------------------------------------------------- // ----- Look for double include if (!defined("PCLERROR_LIB")) { define( "PCLERROR_LIB", 1 ); // ----- Version $g_pcl_error_version = "1.0"; // ----- Internal variables // These values must only be change by PclError library functions $g_pcl_error_string = ""; $g_pcl_error_code = 1; // -------------------------------------------------------------------------------- // Function : PclErrorLog() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclErrorLog($p_error_code=0, $p_error_string="") { global $g_pcl_error_string; global $g_pcl_error_code; $g_pcl_error_code = $p_error_code; $g_pcl_error_string = $p_error_string; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclErrorFatal() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclErrorFatal($p_file, $p_line, $p_error_string="") { global $g_pcl_error_string; global $g_pcl_error_code; $v_message = "<html><body>"; $v_message .= "<p align=center><font color=red bgcolor=white><b>PclError Library has detected a fatal error on file '$p_file', line $p_line</b></font></p>"; $v_message .= "<p align=center><font color=red bgcolor=white><b>$p_error_string</b></font></p>"; $v_message .= "</body></html>"; die($v_message); } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclErrorReset() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclErrorReset() { global $g_pcl_error_string; global $g_pcl_error_code; $g_pcl_error_code = 1; $g_pcl_error_string = ""; } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclErrorCode() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclErrorCode() { global $g_pcl_error_string; global $g_pcl_error_code; return($g_pcl_error_code); } // -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclErrorString() // Description : // Parameters : // -------------------------------------------------------------------------------- function PclErrorString() { global $g_pcl_error_string; global $g_pcl_error_code; return($g_pcl_error_string." [code $g_pcl_error_code]"); } // -------------------------------------------------------------------------------- // ----- End of double include look } ?> |
From: Martin J. <mj...@us...> - 2004-05-21 21:13:13
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385/include/pclzip Added Files: pclzip-trace.lib.php Log Message: cleaned for release --- NEW FILE: pclzip-trace.lib.php --- <?php // -------------------------------------------------------------------------------- // PhpConcept Library - Zip Module 2.1 // -------------------------------------------------------------------------------- // License GNU/LGPL - Vincent Blavet - December 2003 // http://www.phpconcept.net // -------------------------------------------------------------------------------- // // Presentation : // PclZip is a PHP library that manage ZIP archives. // So far tests show that archives generated by PclZip are readable by // WinZip application and other tools. // // Description : // See readme.txt and http://www.phpconcept.net // // Warning : // This library and the associated files are non commercial, non professional // work. [...4932 lines suppressed...] // Return Values : // The path translated. // -------------------------------------------------------------------------------- function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) { if (stristr(php_uname(), 'windows')) { // ----- Look for potential disk letter if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { $p_path = substr($p_path, $v_position+1); } // ----- Change potential windows directory separator if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) { $p_path = strtr($p_path, '\\', '/'); } } return $p_path; } // -------------------------------------------------------------------------------- ?> |
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/img In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385/img Added Files: editor_cancel.png editor_cancel_x.png editor_delete.png editor_edit.png editor_exit.png editor_insertimage.png editor_new.png editor_ok.png editor_save.png editor_undo.png editor_upload.png Removed Files: configure.png editdelete.png exit.png fileclose.png filenew.png fileopen.png filesave.png filesaveas.png images.png messagebox_critical.png messagebox_info.png messagebox_warning.png Log Message: cleaned for release --- NEW FILE: editor_edit.png --- (This appears to be a binary file; contents omitted.) --- messagebox_warning.png DELETED --- --- configure.png DELETED --- --- NEW FILE: editor_insertimage.png --- (This appears to be a binary file; contents omitted.) --- fileclose.png DELETED --- --- images.png DELETED --- --- NEW FILE: editor_cancel.png --- (This appears to be a binary file; contents omitted.) --- editdelete.png DELETED --- --- messagebox_info.png DELETED --- --- NEW FILE: editor_exit.png --- (This appears to be a binary file; contents omitted.) --- messagebox_critical.png DELETED --- --- NEW FILE: editor_delete.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: editor_upload.png --- (This appears to be a binary file; contents omitted.) --- filesaveas.png DELETED --- --- NEW FILE: editor_new.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: editor_cancel_x.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: editor_ok.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: editor_undo.png --- (This appears to be a binary file; contents omitted.) --- fileopen.png DELETED --- --- filesave.png DELETED --- --- filenew.png DELETED --- --- NEW FILE: editor_save.png --- (This appears to be a binary file; contents omitted.) --- exit.png DELETED --- |
From: Martin J. <mj...@us...> - 2004-05-21 21:10:20
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip/pcltrace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18920/pcltrace Log Message: Directory /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip/pcltrace added to the repository |
From: Martin J. <mj...@us...> - 2004-05-21 21:10:19
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip/pclerror In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18920/pclerror Log Message: Directory /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip/pclerror added to the repository |