[Phpcms-plugins-cvs] admin4phpCMS/modules/statistik .cvsignore,NONE,1.1 class.module_statistik.php,N
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-08-05 16:38:55
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/statistik In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4032/modules/statistik Added Files: .cvsignore class.module_statistik.php config.tpl.xml layout.xml Log Message: tweaked phpcms::cache-module output --- NEW FILE: .cvsignore --- jpgraph* fonts --- NEW FILE: layout.xml --- <?xml version="1.0" encoding="iso-8859-15" standalone="yes"?> <!DOCTYPE layout SYSTEM "layout.dtd"> <layout name="standard"> <layout:insert name="cachelist"> <![CDATA[ <div class="symbolleiste"> <img src="modules/phpcms/img/cache/del-all.gif" width="20" height="20" alt="" title="Alle Dateien im Cache löschen" /> <img src="modules/phpcms/img/cache/del-sel.gif" width="20" height="20" alt="" title="Ausgewählte Dateien im Cache löschen" /> </div> <ul id="cacheview"> <layout:replace name="content" default="" /> </ul> ]]> </layout:insert> <layout:insert name="cachedir"> <![CDATA[ <li class="subdir"> <input type="checkbox" name="deletedir[<layout:replace name="cachedir" />]" value="1" /> <layout:replace name="dirname" /> <ul> <layout:replace name="content" default="" /> </ul> </li> ]]> </layout:insert> <layout:insert name="cachefile"> <![CDATA[ <li> <input type="checkbox" name="delete[<layout:replace name="cachefile" />]" value="1" /> <span title="<layout:replace name="cachefile" />"><layout:replace name="filename" /></span> <span class="<layout:replace name="cachetype" />">CACHE</span> <span><layout:replace name="cachetime" /></span> </li> ]]> </layout:insert> </layout> --- NEW FILE: config.tpl.xml --- <?xml version="1.0" encoding="iso-8859-1"?> <structure> <tab id="standard" label="Allgemein"> <element id="PAGE_EXTENSION" label="Erweiterung der Seiten" type="input_text" /> <element id="PAGE_DEFAULTNAME" label="Standarderweiterung der Seiten" type="input_text" /> <element id="TEMPEXT" label="Erweiterung der Templatedateien" type="input_text" /> <element id="GLOBAL_PROJECT_FILE" label="Standard Projectdatei" type="input_text" /> <element id="GLOBAL_PROJECT_HOME" label="Standard Homeverzeichnis" type="input_text" /> <element id="PLUGIN_DIR" label="Standard-Pluginverzeichnis" type="input_text" /> <element id="START_FIELD" label="Start-Feld" type="input_text" /> <element id="STOP_FIELD" label="Stop-Feld" type="input_text" /> </tab> <tab id="pax" label="PAX & MAil2Crypt"> <element id="PAX" label="PAX-Erweiterung" type="checkbox" /> <element id="PAXTAGS" label="PAX-Tags" type="checkbox" /> <element id="MAIL2CRYPT" label="Mail2Crypt-Erweiterung" type="checkbox" /> <element id="MAIL2CRYPT_JS" label="Mail2Crypt JS-Pfad" type="input_text" /> <element id="MAIL2CRYPT_IMG" label="Mail2Crypt Img-Pfad" type="input_text" /> </tab> <tab id="cache" label="Cache"> <element id="CACHE_STATE" label="Server-Cache" type="checkbox" /> <element id="CACHE_DIR" label="Cacheverzeichnis" type="input_text" /> <element id="CACHE_CLIENT" label="Client-Cache" type="checkbox" /> <element id="PROXY_CACHE_TIME" label="Proxy-Cache-Zeit" type="input_text" /> </tab> <tab id="server" label="Servereinstellungen"> <element id="GZIP" label="GZIP-Komprimierung" type="checkbox" /> <element id="STEALTH" label="Stealth-Modus" type="checkbox" /> <element id="STEALTH_SECURE" label="Secure-Stealth-Mode" type="checkbox" /> <element id="NOLINKCHANGE" label="Non-Stealt-Mode-Endungen" type="input_text" /> <element id="DEBUG" label="Debug-Modus" type="checkbox" /> <element id="ERROR_PAGE" label="allg. Fehlerseite" type="input_text" /> <element id="ERROR_PAGE_404" label="Fehlerseite für Fehler 404" type="input_text" /> <element id="TAGS_ERROR" label="Fehler bei leerem Tag" type="checkbox" /> <element id="P3P_HEADER" label="P3P-Header" type="checkbox" /> <element id="P3P_POLICY" label="P3P-Policy" type="input_text" /> <element id="P3P_HREF" label="P3P-Link" type="input_text" /> </tab> <tab id="statistik" label="Statistik"> <element id="STATS" label="Statistik" type="checkbox" /> <element id="STATS_DIR" label="Verzeichnis für die Statistik" type="input_text" /> <element id="STATS_CURRENT" label="Verzeichnis für die aktuellen Statistikdaten" type="input_text" /> <element id="STATS_FILE" label="Dateiname für die Statistik" type="input_text" /> <element id="STATS_BACKUP" label="Verzeichnis für Backup der Statistik" type="input_text" /> <element id="STATS_IP_COUNT" label="Anzahl IPs loggen" type="input_text" /> <element id="STATS_IP_IGNORE" label="IPs ausschließen" type="input_text" /> <element id="STATS_URL_COUNT" label="Anzahl URLs zählen" type="input_text" /> <element id="REFERRER" label="Referrer-Logging" type="checkbox" /> <element id="REFERRER_FILE" label="Datei für Referrer-Daten" type="input_text" /> <element id="STATS_REFERER_COUNT" label="Anzahl Referrer" type="input_text" /> <element id="STATS_REFERER_IGNORE" label="IPs ausschließen" type="input_text" /> <element id="REF_RELOAD_LOCK" label="Zeitdauer der Reloadsperre" type="input_text" /> </tab> <tab id="other" label="Sonstiges"> <element id="LANGUAGE" label="Sprache" type="input_text" /> <element id="PASS" label="Passwort" type="input_password" /> <element id="ENABLE_ONLINE_EDITOR" label="Online-Editor" type="checkbox" /> </tab> --> </structure> --- NEW FILE: class.module_statistik.php --- <?php /** * Managment of the phpCMS-related administration part * * <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 admin4phpCMS * @subpackage module_statistik **/ /* * $Log$ */ /** * Class for statistic interface * * @package admin4phpCMS * @subpackage module_statistik * @todo Get the class work completly **/ class module_statistik extends module { /** * Initialization of the module * * The module registers its own events and connects his methods to some actions **/ function init () { // connect to actions $this->_registerAction ('doParseParam', 'parseParam'); $this->_registerAction ('doParseMenuMain', 'getMenuMain'); $this->_registerAction ('doParseMenuSub', 'getMenuSub'); return true; } /** * Parse the URI-params * * @param array $actiondata $actiondata contains the URI-param-arrays **/ function parseParam (&$actiondata) { $this->display = (isset ($actiondata['request']['moduleid']) && $actiondata['request']['moduleid'] == 'statistik'); $this->action = ''; if (isset ($actiondata['request']['action'])) { $this->action = $actiondata['request']['action']; } $this->_callEvent ('USER_GET_STATUS', $actiondata); $this->_USER = $actiondata; return true; } // function parseParam () /** * Get content for mainmenu * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ function getMenuMain (&$actiondata) { if (!$this->_USER['isLoggedIn']) { return true; } $root = $actiondata['_root']; $actiondata = array ('_type'=>'menu_main_entry', '_root'=>$root, 'name'=>'Statistik', 'module'=>'statistik', '_id'=>'statistikmenu', '_root'=>'mainmenu'); if ($this->display) { $actiondata ['extra'] = 'class="active"'; } $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata); return true; } // function getMenuMain () /** * Get submenu of module * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ function getMenuSub (&$actiondata) { if (!$this->_USER['isLoggedIn']) { return true; } if (!$this->display) { return true; } $root = $actiondata['_root']; $actiondata = array ('_type'=>'menu_sub_entry', '_root'=>$root, 'name'=>'Allgemein', 'module'=>'statistik', '_id'=>'statistik_common', 'action'=>'common'); if ($this->action == 'cache') { $actiondata['extra'] = 'id="current"'; } $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata); } // function getMenuSub () } ?> |