[Phpcms-plugins-cvs] onlineEditor4phpCMS Changelog,1.2,1.3 editor.conf.xml,1.2,1.3 editor.js,1.2,1.3
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-07-02 17:41:34
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26107 Modified Files: Changelog editor.conf.xml editor.js editor.php editor.tpl.xml Log Message: general update Index: editor.conf.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.conf.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- editor.conf.xml 21 May 2004 21:12:55 -0000 1.2 +++ editor.conf.xml 2 Jul 2004 17:41:24 -0000 1.3 @@ -1,81 +1,17 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- @version: $Id$ --> +<?xml version="1.0" encoding="iso-8859-1"?> <onlineeditor> - <contentfield> - <id>PROJECT</id> - <type>project</type> - <displayever>1</displayever> - </contentfield> - <contentfield> - <id>MENU</id> - <type>menu</type> - <displayever>1</displayever> - </contentfield> - <contentfield> - <id>TITEL</id> - <type>text</type> - <displayever>1</displayever> - </contentfield> - <contentfield> - <id>KOLUMNE</id> - <type>textarea</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>CONTENT1</id> - <type>wysiwyg</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>SCRIPT1</id> - <type>script</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>CONTENT2</id> - <type>wysiwyg</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>SCRIPT2</id> - <type>script</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>CONTENT</id> - <type>wysiwyg</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>SCRIPT</id> - <type>script</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>FOOTER</id> - <type>textarea</type> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>BILD</id> - <type>image</type> - <imgpath>/photos/big/</imgpath> - <thumbpath>/photos/thumb/</thumbpath> - <preview> - <width>200</width> - <height>200</height> - </preview> - <displayever>0</displayever> - </contentfield> - <contentfield> - <id>BILDDATUM</id> - <type>date</type> - <format>%DD.%MM.%YYYY</format> - <displayever>0</displayever> - </contentfield> - <imagebox> - <thumbpath>/photos/thumb/</thumbpath> - <imgpath>/photos/big/</imgpath> + <contentfield id="PROJECT" type="project" displayever="1" /> + <contentfield id="MENU" type="menu" displayever="1" /> + <contentfield id="TITEL" type="text" displayever="1" /> + <contentfield id="KOLUMNE" type="textarea" displayever="0" /> + <contentfield id="CONTENT1" type="wysiwyg2" displayever="0" /> + <contentfield id="SCRIPT1" type="script" displayever="0" /> + <contentfield id="CONTENT2" type="wysiwyg2" displayever="0" /> + <contentfield id="SCRIPT2" type="script" displayever="0" /> + <contentfield id="CONTENT" type="wysiwyg2" displayever="0" /> + <contentfield id="SCRIPT" type="script" displayever="0" /> + <contentfield id="FOOTER" type="textarea" displayever="0" /> + <imagebox thumbpath="/photos/thumb/" imgpath="/photos/big/"> <filter> <ext>jpeg</ext> <ext>jpg</ext> @@ -83,44 +19,16 @@ <ext>gif</ext> <ext>bmp</ext> </filter> - <preview> - <width>200</width> - <height>200</height> - </preview> - </imagebox> - <script> - <name>Fehlerseiten Skript</name> - <path>$plugindir/error4phpCMS/error4phpcms.php</path> - <title>Komfortable Fehleranzeige</title> - </script> - <script> - <name>FormMailer</name> - <path>$plugindir/formular4phpCMS/formular.php</path> - <title>Formmailer</title> - </script> - <script> - <name>Gaestebuch Ausgabe</name> - <path>$plugindir/guestbook4phpCMS/view.php</path> - <title>XML-basiertes Gaestebuchskript</title> - </script> - <script> - <name>Gaestebuch Eingabe</name> - <path>$plugindir/guestbook4phpCMS/new.php</path> - <title>XML-basiertes Gaestebuchskript</title> - </script> - <wysiwyg> - <id>htmlarea</id> - <tpl>HTMLAREA</tpl> - <path>/cms/plugins/htmlarea/</path> - </wysiwyg> - <wysiwyg1> - <id>htmlarea</id> - <tpl>WYSIWYM</tpl> - <path>/cms/plugins/wysiwym-editor/</path> - </wysiwyg1> - <editor> - <chmod>0606</chmod> - <tempdir>/cms/phpcms2412/temp/</tempdir> - <templatefile>editor.tpl.xml</templatefile> - </editor> + <preview width="200" height="200" /> + </imagebox> + <script name="Fehlerseiten Skript" path="$plugindir/error4phpCMS/error4phpcms.php" title="Komfortable Fehleranzeige" /> + <script name="FormMailer" path="$plugindir/formular4phpCMS/formular.php" title="Formmailer" /> + <script name="Gästebuch Ausgabe" path="$plugindir/guestbook4phpCMS/view.php" title="XML-basiertes Gästebuchskript" /> + <script name="Gästebuch Eingabe" path="$plugindir/guestbook4phpCMS/new.php" title="XML-basiertes Gästebuchskript" /> + <editor type="wysiwyg" id="htmlarea" tpl="HTMLAREA" path="/cms/plugins/htmlarea/" /> + <editor type="wysiwym" id="wysiwym" tpl="WYSIWYM" path="/cms/plugins/wysiwym-editor/" /> + <editor type="wysiwyg1" id="fckeditor" tpl="FCKEDITOR" path="/cms/plugins/fckeditor/" /> + <config id="chmod" value="0606" /> + <config id="tempdir" value="/cms/phpcms2412/temp/" /> + <config id="templatefile" value="editor.tpl.xml" /> </onlineeditor> \ No newline at end of file Index: Changelog =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/Changelog,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Changelog 16 May 2004 22:35:57 -0000 1.2 +++ Changelog 2 Jul 2004 17:41:24 -0000 1.3 @@ -1,3 +1,7 @@ +Juli 2 2004 (mjahn) + * make the editor independent from PEAR::XML_Unserializer + * disabled the user-checking due to function-probs + May 16 2004 (mjahn) * refactoring of class.ext_editor.php * renamed oe_config.xml into editor.conf.xml Index: editor.js =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.js,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- editor.js 21 May 2004 21:12:55 -0000 1.2 +++ editor.js 2 Jul 2004 17:41:24 -0000 1.3 @@ -158,20 +158,53 @@ } } -function toggle_area(divid) { - if (document.getElementById(divid)) { - if (document.getElementById(divid).style.display == "block") { - document.getElementById(divid).style.display = "none"; - } else { - document.getElementById(divid).style.display = "block"; +var tabs = new Array (); + +/** +* display a tab and hide all other tabs +**/ +function displayTab (id) { + var i = 0; + num = tabs.length; + for (i = 0; i < num; i++) { + if (tabs [i] != id) { + hideTab (tabs [i]); +/* alert ('hideTab (' + tabs [i] + ')');*/ + continue; } + showTab (tabs [i]); +/* alert ('showTab (' + tabs [i] + ')');*/ } } -window.onload = function onload_toggle() { - toggle_area("new"); - toggle_area("open"); - toggle_area("delete"); - toggle_area("image"); - toggle_area("upload"); +/** +* helper-function to hide a tab +**/ +function hideTab (id) { + document.getElementById (id).style.display = 'none'; +} + +/** +* helper-function to display a tab +**/ +function showTab (id) { + document.getElementById (id).style.display = 'block'; +} + +/** +* register a tabbox +**/ +function registerTab (id) { + tabs.push (id); +} + +window.onload = function onloadHide () { + registerTab ('new'); + registerTab ('open'); + registerTab ('delete'); + registerTab ('upload'); + registerTab ('image'); + + displayTab ('xyz'); } + Index: editor.tpl.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.tpl.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- editor.tpl.xml 21 May 2004 21:12:55 -0000 1.2 +++ editor.tpl.xml 2 Jul 2004 17:41:24 -0000 1.3 @@ -1,7 +1,7 @@ /** * @package editor * @author Martin Jahn <mj...@us...> -* @author Jan Tank (zeek) <> +* @author Jan Tank (zeek) <ze...@us...> * @copyright (c) Copyright by Martin Jahn * @license GPL * @version $Id$ @@ -17,11 +17,11 @@ <span>User: <span>{USER.NAME}</span> (<a href="{SELF}?logout=logout">Abmelden</a>) | aktuelle Datei: <span>{FILE.NAME}</span> <span>{FILE.CTIME}</span></span> </label> <div class="label"> - <input type="button" name="editor-newfile" class="editor-newfile" onclick="toggle_area('new')" value="Neue Datei anlegen" /> - <input type="button" name="editor-openfile" class="editor-openfile" onclick="toggle_area('open')" value="Datei zum Editieren öffnen" /> + <input type="button" name="editor-newfile" class="editor-newfile" onclick="displayTab('new')" value="Neue Datei anlegen" /> + <input type="button" name="editor-openfile" class="editor-openfile" onclick="displayTab('open')" value="Datei zum Editieren öffnen" /> <input type="submit" name="editor-savefile" class="editor-savefile" value="Datei speichern" /> - <input type="button" name="editor-delfile" class="editor-delfile" onclick="toggle_area('delete')" value="Datei löschen" /> - <input type="submit" name="editor-saveexit" class="editor-exit" value="Speichern und Datei schließen" /> + <input type="button" name="editor-delfile" class="editor-delfile" onclick="displayTab('delete')" value="Datei löschen" /> + <input type="submit" name="editor-saveexit" class="editor-exit" value="Speichern und Datei schließen" /> </div> {EDITOR.ERROR} <div id="new" style="display:block;"> @@ -31,22 +31,22 @@ <input type="text" name="input-newfile" id="input-newfile" /> </label> <label for="input-template"> - <span><a href="{HELP}#selectstyle" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Vorlage wählen</a></span> + <span><a href="{HELP}#selectstyle" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Vorlage wählen</a></span> <select name="input-template" id="input-template"> {EDITOR.TPLSELECT} </select> </label> <label for="input-newmenu"> - <span><a href="{HELP}#selectdoc" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Menüpunkt auswählen</a></span> + <span><a href="{HELP}#selectdoc" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Menüpunkt auswählen</a></span> <select name="input-newmenu" id="input-newmenu"> {MENUS} </select> </label> <div class="label"> - <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="before" /><span>davor einfügen</span> + <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="before" /><span>davor einfügen</span> </div> <div class="label"> - <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="after" selected="selected" /><span>dahinter einfügen</span> + <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="after" selected="selected" /><span>dahinter einfügen</span> </div> <label for="input-newfile-submit"> <input type="submit" name="input-newfile-submit" id="input-newfile-submit" class="editor-newfile" value="Datei anlegen" /> @@ -56,7 +56,7 @@ <div id="open" style="display:block;"> <h3>Dokument öffnen und editieren</h3> <label for="input-openfile"> - <span><a href="{HELP}#selectdoc" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Dokument auswählen</a></span> + <span><a href="{HELP}#selectdoc" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Dokument auswählen</a></span> <select name="input-openfile" id="input-openfile"> {MENUS1} </select> @@ -69,7 +69,7 @@ <div id="delete" style="display:block;"> <h3>Dokument löschen</h3> <label for="input-delfile"> - <span><a href="{HELP}#del" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Dokument auswählen</a></span> + <span><a href="{HELP}#del" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Dokument auswählen</a></span> <select name="input-delfile" id="input-delfile"> {MENUS} </select> @@ -94,20 +94,20 @@ {EDITOR.EDIT.TPL} <!--// Fehlermeldungen und Hinweise: Template ist unter EDITOR.ERROR.TPL //--> {EDITOR.MESSAGE} - <!--// Project- und Menüauswahl: Template ist unter EDITOR.FILELIST.TPL //--> + <!--// Project- und Men�auswahl: Template ist unter EDITOR.FILELIST.TPL //--> <fieldset> <legend>Contentfelder ändern</legend> {EDITOR.FILEEDIT} - <!--// Menü-Eingabefelder: Template ist unter EDITOR.EDITMENU.TPL //--> + <!--// Men�-Eingabefelder: Template ist unter EDITOR.EDITMENU.TPL //--> {EDITOR.MENUEDIT} <!--// Content-Eingabefelder: Template ist unter EDITOR.CONTENTEDIT.TPL //--> {EDITOR.CONTENTEDIT} <div class="label"> <input type="submit" name="editor-savefile" class="editor-savefile" value="Datei speichern" /> <input type="reset" name="editor-reset" class="editor-reset" value="Änderungen rückgängig" /> - <input type="button" name="editor-image" class="editor-insertimage" onclick="toggle_area('image')" value="Bild einfügen" /> - <input type="button" name="editor-upload" class="editor-upload" onclick="toggle_area('upload')" value="Bild hochladen" /> - <input type="submit" name="editor-saveexit" class="editor-exit" value="Speichern und Datei schließen" /> + <input type="button" name="editor-image" class="editor-insertimage" onclick="displayTab('image')" value="Bild einfügen" /> + <input type="button" name="editor-upload" class="editor-upload" onclick="displayTab('upload')" value="Bild hochladen" /> + <input type="submit" name="editor-saveexit" class="editor-exit" value="Speichern und Datei schließen" /> </div> <!-- Bildauswahl-Abteilung: Template ist unter EDITOR.IMAGEEDIT.TPL --> {EDITOR.IMAGEEDIT} @@ -130,28 +130,28 @@ <label for="input-content-PROJECT"> <span><a href="{HELP}#projektfile" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Projektdatei</a></span> <select name="input-content-PROJECT" id="input-content-PROJECT"> - <option value="">Projektdatei wählen...</option> + <option value="">Projektdatei wählen...</option> {PROJECTS} </select> </label> <label for="input-content-MENU"> <span><a href="{HELP}#menufile" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Menüeintrag</a></span> <select name="input-content-MENU" id="input-content-MENU"> - <option value="">Menüpunkt wählen...</option> + <option value="">Menüpunkt wählen...</option> {MENUS} </select> </label> {EDITOR.MENUEDIT.TPL} - <h3>Menüeintrag ändern</h3> + <h3>Menüeintrag ändern</h3> <input type="hidden" name="input-menu-CLASS" id="input-menu-CLASS" value="{MENU.ACTUAL.CLASS}" /> {EDITOR.MENUENTRIES} {EDITOR.CONTENTEDIT.TPL} <h3>Contentfelder</h3> - <!-- Template für <input type="text"> unter EDITOR.INPUTTEXT: Template für <textarea> unter EDITOR.INPUTAREA --> + <!-- Template für <input type="text"> unter EDITOR.INPUTTEXT: Template f�r <textarea> unter EDITOR.INPUTAREA --> {EDITOR.INPUT} @@ -163,7 +163,7 @@ <label for="input-preview-select"> <span>Bild auswählen</span> <select size="10" name="input-preview-select" id="input-preview-select" onchange="selectImage()"> - <!-- Template für <option> unter EDITOR.IMAGELIST.TPL --> + <!-- Template f�r <option> unter EDITOR.IMAGELIST.TPL --> {EDITOR.IMAGELIST} </select> </label> @@ -171,18 +171,18 @@ <img src="/img/preview.png" width="200" width="200" id="input-preview-image" name="input-preview-image" alt="Vorschau" /> </div> <label for="input-preview-size"> - <span>Bildgröße</span> + <span>Bildgröße</span> <input type="text" id="input-preview-size" name="input-preview-size" class="short" value="" readonly="readonly" /> </label> <label for="input-preview-filesize"> - <span>Dateigröße</span> + <span>Dateigröße</span> <input type="text" id="input-preview-filesize" name="input-preview-filesize" class="short" value="" readonly="readonly" /> </label> <label for="input-preview-filectime"> - <span>letzte Änderung</span> + <span>letzte Änderung</span> <input type="text" id="input-preview-filectime" name="input-preview-filectime" class="short" value="" readonly="readonly" /> </label> - <!-- Template für <input type="radio"> unter EDITOR.CONTENTSELECTOR.TPL --> + <!-- Template für <input type="radio"> unter EDITOR.CONTENTSELECTOR.TPL --> {EDITOR.CONTENTSELECTOR} <label for="input-preview-select-submit"> <input type="button" name="input-preview-select-submit" id="input-preview-select-submit" class="editor-insertimage" onclick="return insertImg();" value="Bild einfügen" /> @@ -210,7 +210,7 @@ <span><a href="{HELP}#inputtext" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">{INPUT.ID}</a></span> <input type="text" name="input-content-{INPUT.ID}" id="input-content-{INPUT.ID}" value="{INPUT.VALUE}" /> </label> -{EDITOR.INPUTSCRIPT} <label for="input-content-{INPUT.ID}"><span>{INPUT.ID}</span><select name="input-content-{INPUT.ID}" id="input-content-{INPUT.ID}"><option>Skript wählen...</option>{SCRIPTS}</select></label> +{EDITOR.INPUTSCRIPT} <label for="input-content-{INPUT.ID}"><span>{INPUT.ID}</span><select name="input-content-{INPUT.ID}" id="input-content-{INPUT.ID}"><option>Skript wählen...</option>{SCRIPTS}</select></label> {EDITOR.INPUTAREA} <label for="input-content-{INPUT.ID}"> <span><a href="{HELP}#inputtextarea" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">{INPUT.ID}</a></span> <textarea name="input-content-{INPUT.ID}" id="input-content-{INPUT.ID}" rows="20" cols="40">{INPUT.VALUE}</textarea> @@ -238,10 +238,10 @@ </label> {EDITOR.ERROR.TPL} <div class="label">{ERROR}</label> -{EDITOR.ERROR.OPEN}<span class="error">Datei <q>{ERROR.FILE}</q> konnte nicht geöffnet werden.</span> +{EDITOR.ERROR.OPEN}<span class="error">Datei <q>{ERROR.FILE}</q> konnte nicht geöffnet werden.</span> {EDITOR.ERROR.SAVE}<span class="error">Datei <q>{ERROR.FILE}</q> konnte nicht gespeichert werden.</span> -{EDITOR.ERROR.DEL}<span class="error">Datei <q>{ERROR.FILE}</q> konnte nicht gelöscht werden.</span> -{EDITOR.ERROR.NONE}<span class="error">Es ist ein Fehler aufgetreten. Die gewünschte Aktion konnte nicht durchgeführt werden.</span> +{EDITOR.ERROR.DEL}<span class="error">Datei <q>{ERROR.FILE}</q> konnte nicht gelöscht werden.</span> +{EDITOR.ERROR.NONE}<span class="error">Es ist ein Fehler aufgetreten. Die gewünschte Aktion konnte nicht durchgeführt werden.</span> {WYSIWYG.PRE.HTMLAREA} <!-- Editorfunktionen --> @@ -259,6 +259,16 @@ {WYSIWYG.INPUT.HTMLAREA} <textarea name="input-content-{INPUT.ID}" id="input-content-{INPUT.ID}" rows="20" cols="40">{INPUT.VALUE}</textarea> <script language='javascript1.2'>HTMLArea.replace('input-content-{FIELD}')</script> +{WYSIWYG.PRE.FCKEDITOR} +<!-- load the main FCKEditor files --> +<script type="text/javascript" src="{WYSIWYG.PATH}/fckeditor.js"></script> + +{WYSIWYG.INPUT.FCKEDITOR} <textarea name="input-content-{INPUT.ID}" id="input-content-{INPUT.ID}" rows="20" cols="40">{INPUT.VALUE}</textarea> +<script type="text/javascript"> + var oFCKEditor = new FCKEditor ('input-content-{FIELD}'); + oFCKEditor.ReplaceTextarea (); +</script> + {WYSIWYG.PRE.WYSIWYM} <script type="text/javascript" src="{WYSIWYG.PATH}/online-editor.js"></script> Index: editor.php =================================================================== RCS file: /cvsroot/phpcms-plugins/onlineEditor4phpCMS/editor.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- editor.php 21 May 2004 21:12:55 -0000 1.11 +++ editor.php 2 Jul 2004 17:41:24 -0000 1.12 @@ -1,6 +1,6 @@ <?php /** -* Editor - Erweiterter Online-Editor für phpCMS +* Editor - Erweiterter Online-Editor für phpCMS * * 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 @@ -9,16 +9,16 @@ * Falls du Verbesserungsvorschlaege oder Wuensche bezueglich des Skriptes hast melde dich bei * Martin Jahn <mj...@us...> * -* Dieses Script ist kostenlos für private und kommerzielle Nuzung. +* 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. +* 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, +* 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. * * @package editor @@ -31,11 +31,16 @@ if (!defined('DEBUG')) { define ('DEBUG', false); } +if (DEBUG) { + error_reporting (E_ALL); +} + $is_phpcms = isset($GLOBALS['PHPCMS']); +ini_set ('include_path', dirname (__FILE__).'/pear/:'.ini_get ('include_path')); // import the user-permission-managment from global namespace -global $a; +//global $a; setlocale (LC_TIME, 'de'); // only for non-phpcms call if (!$is_phpcms) { @@ -48,15 +53,27 @@ </head> <body> <?php - include_once (dirname(__FILE__).'/../user4phpCMS/auth_script.php'); + //include_once (dirname(__FILE__).'/auth_script.php'); $GLOBALS['DEFAULTS']->PROJECTFILENAME = $_SERVER['DOCUMENT_ROOT'].'/cms/templates/home.ini'; } // check if user is logged in -if (!$a->isLoggedIn()) { - return false; +//if (!$a->isLoggedIn()) { + //return false; +//} + +if (DEBUG) { + echo '<!--'."\n"; + echo 'POST'."\n"; + print_r($_POST); + echo 'POST'."\n"; + print_r ($_GET); + echo 'FILES'."\n"; + print_r ($_FILES); + echo '-->'; + } // import online-editor class |