[Phpcms-plugins-cvs] admin4phpCMS/modules/phpcms layout.phpcms.xml,1.2,1.3 class.module_phpcms.php,1
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-12-07 06:35:07
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13210/modules/phpcms Modified Files: layout.phpcms.xml class.module_phpcms.php Log Message: prepration of first Alpha-Preview Index: class.module_phpcms.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/class.module_phpcms.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- class.module_phpcms.php 1 Oct 2004 07:08:51 -0000 1.5 +++ class.module_phpcms.php 7 Dec 2004 06:34:49 -0000 1.6 @@ -28,12 +28,12 @@ /* * $Log$ -* Revision 1.5 2004/10/01 07:08:51 mjahn -* basic code for tagfile-editor +* Revision 1.6 2004/12/07 06:34:49 mjahn +* prepration of first Alpha-Preview * */ /** -* Class for managing the phpCMS-parser and the phpcms-related website-setting +* Class for managing the phpCMS-configuration and the phpCMS-related website-setting * * <p> * This class provides functionality for manipulating menufiles, projectfiles @@ -95,6 +95,7 @@ $actiondata = array ('filename' => dirname(__FILE__).'/layout.phpcms.xml'); $this->_callEvent('LAYOUT_ADD_TEMPLATE', $actiondata); + return true; } @@ -103,36 +104,45 @@ * * @param array $actiondata $actiondata contains the URI-param-arrays **/ - function parseParam(& $actiondata) { - $this->display = (isset ($actiondata['request']['moduleid']) && $actiondata['request']['moduleid'] == 'phpcms'); + function parseParam(&$actiondata) { + $this->display = (isset ($actiondata['request']['moduleid']) &&$actiondata['request']['moduleid'] == 'phpcms'); $this->action = ''; if (isset ($actiondata['request']['action'])) { $this->action = $actiondata['request']['action']; } - $this->configaction = ''; - if (isset ($actiondata['request']['configform-submit'])) { - $this->configaction = $actiondata['request']['configform-submit']; - $this->_formdata = $actiondata['post']; - } - - $this->_tagfile = ''; - if (isset ($actiondata['post']['submit-tagfile'])) { - $this->_tagfile = $actiondata['post']['select-tagfile']; - } - switch ($this->action) { case 'cache' : $this->_registerAction('doProcess', 'processCache'); + $this->_cacheaction = ''; + if (isset ($actiondata['request']['cacheform-submit'])) { + $this->_cacheaction = $actiondata['request']['cacheform-submit']; + $this->_formdata = $actiondata['post']; + } break; case 'config' : + $this->_configaction = ''; + if (isset ($actiondata['request']['configform-submit'])) { + $this->_configaction = $actiondata['request']['configform-submit']; + $this->_formdata = $actiondata['post']; + } $this->_registerAction('doProcess', 'processConfig'); break; case 'menu' : + $this->_menufile = ''; + if (isset ($actiondata['post']['submit-tagfile'])) { + $this->_tagfile = $actiondata['post']['select-tagfile']; + $this->_formdata = $actiondata['post']; + } $this->_registerAction('doProcess', 'processMenu'); break; case 'tags' : + $this->_tagfile = ''; + if (isset ($actiondata['post']['submit-tagfile'])) { + $this->_tagfile = $actiondata['post']['select-tagfile']; + $this->_formdata = $actiondata['post']; + } $this->_registerAction('doProcess', 'processTags'); break; default : @@ -155,27 +165,16 @@ * * @param array $actiondata **/ - function process(& $actiondata) { + function process(&$actiondata) { $this->_registerAction('doParseContent', 'getContent'); return true; } // function process () - function processTags() { - $this->_registerAction('doParseContent', 'getContentTags'); - - // parse all projectfiles in projectdir - // collect all tagfile-entries - // check for writeability of the tagfiles - // check for formdata and save it if tagfile is writeable else create error-notice - // check if we have to load any tagfile - - } - /** * **/ - function processCache(& $actiondata) { + function processCache(&$actiondata) { $cachedir = $this->docroot.'/cms/parser/cache/'; if (!file_exists($cachedir)) { @@ -192,9 +191,7 @@ $dh = dir($cachedir); while ($file = $dh->read()) { - if ($file { - 0 } - == '.') { + if ($file {0} == '.') { continue; } @@ -219,13 +216,9 @@ } } - function processMenu(& $actiondata) { - $this->_registerAction('doParseContent', 'getContentMenu'); - } - - function processConfig(& $actiondata) { + function processConfig(&$actiondata) { - if ($this->configaction == 'save') { + if ($this->_configaction == 'save') { $this->_parseConfigFormdata(); } @@ -238,12 +231,96 @@ $this->_loadDefault(); } + function processMenu(&$actiondata) { + $this->_registerAction('doParseContent', 'getContentMenu'); + + // check the projectdir for any projectfiles + $_dh = dir($this->docroot.$this->_CONF['projectdir']); + $entries = array (); + $this->_menufiles = array (); + while (false !== ($file = $_dh->read())) { + + if (strrchr($file, '.') != '.'.$this->_CONF['projectfileext']) { + continue; + } + + // parse all projectfiles in projectdir + $data = $this->_parseProjectFile (file ($this->docroot.$this->_CONF['projectdir'].'/'.$file)); + + if (isset ($entries [$data ['MENU']])) { + continue; + } + + // collect all tagfile-entries + $data ['MENU'] = str_replace ('$home', $data ['HOME'], $data ['MENU']); + $data ['MENU'] = str_replace ('//', '/', $data ['MENU']); + + // check for writeability of the tagfiles + if (!is_writeable ($this->docroot.$data ['MENU'])) { + continue; + } + + $this->_menufiles [] = $data ['MENU']; + $entries [$data ['MENU']] = 1; + } + + // check if we have to load any tagfile + if (count ($this->_menufiles) == 1) { + $this->_menufile = $this->_menufiles [0]; + } + + // check if we have to load a menufile and parse it into an array + if ($this->_menufile != '') { + } + } + + function processTags() { + $this->_registerAction('doParseContent', 'getContentTags'); + + // check the projectdir for any projectfiles + $_dh = dir($this->docroot.$this->_CONF['projectdir']); + $entries = array (); + $this->_tagfiles = array (); + while (false !== ($file = $_dh->read())) { + + if (strrchr($file, '.') != '.'.$this->_CONF['projectfileext']) { + continue; + } + + // parse all projectfiles in projectdir + $data = $this->_parseProjectFile (file ($this->docroot.$this->_CONF['projectdir'].'/'.$file)); + + if (isset ($entries [$data ['TAGS']])) { + continue; + } + + // collect all tagfile-entries + $data ['TAGS'] = str_replace ('$home', $data ['HOME'], $data ['TAGS']); + $data ['TAGS'] = str_replace ('//', '/', $data ['TAGS']); + + // check for writeability of the tagfiles + if (!is_writeable ($this->docroot.$data ['TAGS'])) { + continue; + } + + $this->_tagfiles [] = $data ['TAGS']; + $entries [$data ['TAGS']] = 1; + } + + // check for formdata and save it if tagfile is writeable else create error-notice + + // check if we have to load any tagfile + if (count ($this->_tagfiles) == 1) { + $this->_tagfile = $this->_tagfiles [0]; + } + } + /** * Get content for mainmenu * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ - function getMenuMain(& $actiondata) { + function getMenuMain(&$actiondata) { if (!$this->_USER['isLoggedIn']) { return true; } @@ -263,7 +340,7 @@ * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ - function getMenuSub(& $actiondata) { + function getMenuSub(&$actiondata) { if (!$this->_USER['isLoggedIn']) { return true; } @@ -306,7 +383,7 @@ * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ - function getContent(& $actiondata) { + function getContent(&$actiondata) { if (!$this->_USER['isLoggedIn']) { return true; } @@ -338,7 +415,7 @@ * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ - function getContentCache(& $actiondata) { + function getContentCache(&$actiondata) { // check if user-status if (!$this->_USER['isLoggedIn']) { @@ -354,7 +431,7 @@ $root = $actiondata['_root']; // initial list for the cache-view - $actiondata1 = array ('_root' => $root, '_type' => 'cachelist', '_id' => 'cachedir-'); + $actiondata1 = array ('_root' => $root, '_type' => 'cachelist', '_id' => 'cachelist'); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); // ids of elements that were even created in the layout-module @@ -363,55 +440,26 @@ // reset the array with the cache-filenames reset($this->_CACHE); + + //print_r ($this->_CACHE); // walk through the array with the cache-filenames foreach ($this->_CACHE as $url => $cachefile) { - // get path elements - $data = explode('/', $url); - - // set the root-id - $rootid = 'cachedir-'; - - // walk through the path-elements, that are subdirectories - $num = count($data) - 1; - for ($i = 0; $i < $num; $i ++) { - - // empty path-element (i.e. between a double slash in the path) - if ($data[$i] == '') { - continue; - } - - if (isset ($_ids[$rootid.$data[$i].'-'])) { - $rootid = $rootid.$data[$i].'-'; - continue; - } - - // set output for subdirectory - $actiondata1 = array ('_root' => $rootid, '_type' => 'cachedir', '_id' => $rootid.$data[$i].'-', 'cachedir' => $rootid, 'dirname' => $data[$i], 'extra' => 'class="subdir"'); - $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); - - $_ids[$rootid] = '1'; - $rootid = $rootid.$data[$i].'-'; - - } $ext = substr($cachefile, strrpos($cachefile, '.') + 1); switch ($ext) { case 'htm' : - $cs = 'statisch'; + $cs = 'HTM'; break; case 'gz' : - $cs = 'gzip'; + $cs = 'GZ'; break; case 'dyn' : - $cs = 'dynamisch'; + $cs = 'DYN'; break; } - // now we can display the file-entry - $selfid = $rootid.$data[$num]; - - $actiondata1 = array ('_root' => $rootid, '_type' => 'cachefile', '_id' => $selfid, 'cachefile' => $cachefile, 'filename' => $data[$num], 'cachetype' => $cs, 'cachetime' => '24.07.2004 11:58:59'); + $actiondata1 = array ('_root' => 'cachelist', '_type' => 'cachefile', '_id' => 'cachefile-'.$cachefile, 'cachefile' => $cachefile, 'cachetype' => $cs, 'cachetime' => '24.07.2004 11:58:59', 'filename'=>$url); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); } // foreach } @@ -421,7 +469,7 @@ * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ - function getContentConfig(& $actiondata) { + function getContentConfig(&$actiondata) { if (!$this->_USER['isLoggedIn']) { return true; @@ -447,7 +495,7 @@ $actiondata1 = array ('_root' => 'configform', '_id' => 'tabbox', '_type' => 'block', 'extra' => 'class="tabbox"'); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); - $tabs = array ('common' => 'Allgemein', 'pax' => 'PAX & Mail2Crypt', 'cache' => 'Caching', 'server' => 'Servereinstellungen', 'stat' => 'Statistik', 'other' => 'Sonstiges'); + $tabs = array ('common' => 'Allgemein', 'pax' => 'PAX & Mail2Crypt', 'cache' => 'Caching', 'server' => 'Servereinstellungen', 'i18n'=>'I18N', 'stat' => 'Statistik', 'other' => 'Sonstiges'); foreach ($tabs as $id => $label) { @@ -486,7 +534,7 @@ * * @param array $actiondata $actiondata['_root'] must provide the id of the parental element **/ - function getContentMenu(& $actiondata) { + function getContentMenu(&$actiondata) { if (!$this->_USER['isLoggedIn']) { return true; } @@ -495,14 +543,48 @@ return true; } - include_once (dirname(__FILE__).'/class.phpcms_menu.php'); - $this->_MENU = & new phpcms_menu(); - $this->_MENU->load(); - - $content = '<p>Durch Auswahl einer Projectdatei ist es möglich, die Menüdatei, das Seitentemplate und die Tagdatei zu bearbeiten. '.'Eventuell kann die Software auch alle Projectdateien auslesen, obwohl phpCMS ja keine feste Endung für eine Projectdatei vorgibt. '.'Damit wäre es möglich alle Menüdateien, Seitentemplatedateien und Tagdateien getrennt zur Auswahl anzubieten. </p>'; + $_root = $actiondata['_root']; - $actiondata1 = array ('_root' => $actiondata['_root'], '_id' => 'user1content', '_type' => 'paragraph', 'content' => $content); + $actiondata1 = array ('_root' => $_root, '_id' => 'form_menufile', '_type' => 'form', 'action' => '#'); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + + if (count ($this->_menufiles) > 1) { + + reset ($this->_menufiles); + + $actiondata1 = array ('_root' => 'form_menufile', '_id' => 'select-menufile', '_type' => 'form_select', 'name' => 'select-menufile'); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + + foreach ($this->_menufiles as $menufile) { + $actiondata1 = array ('_root' => 'select-menufile', '_id' => 'select-'.$file, '_type' => 'form_select_option', 'value' => $menufile, 'label' => $menufile); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + } + + $actiondata1 = array ('_root' => 'form_menufile', '_id' => 'submit-menufile', '_type' => 'form_submit', 'name' => 'submit-menufile', 'value' => '1', 'content' => 'Menüdatei editieren'); + $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); + } + + if ($this->_menufile != '') { + + // + $actiondata1 = array ('_root' => 'form_menufile', '_id' => 'menulist', '_type' => 'list'); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + +/* // get the tag-array + //$_data = $this->_parseTagFile(file($this->docroot.$this->_tagfile)); + + // sort the tag-array + //ksort ($_data); + + reset ($_data); + + // walk through tag-array + foreach ($_data as $id => $value) { + $actiondata1 = array ('_root' => 'taglist', '_id' => 'tags_status_'.$id, '_type' => 'tagentry', 'tag' => htmlentities ($id), 'value'=>htmlentities ($value)); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + + }*/ + } return true; } // function getMenuContent () @@ -523,49 +605,44 @@ $_root = $actiondata['_root']; - $actiondata1 = array ('_root' => $_root, '_id' => 'form_projectfile', '_type' => 'form', 'action' => '#'); + $actiondata1 = array ('_root' => $_root, '_id' => 'form_tagfile', '_type' => 'form', 'action' => '#xyz'); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); - $actiondata1 = array ('_root' => 'form_projectfile', '_id' => 'select-projectfile', '_type' => 'form_select', 'name' => 'select-projectfile'); - $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + if (count ($this->_tagfiles) > 1) { - $_dh = dir($this->docroot.$this->_CONF['projectdir']); - $_projectfiles = array (); - $content = ''; - $entries = array (); - while (false !== ($file = $_dh->read())) { + reset ($this->_tagfiles); - if (strrchr($file, '.') != '.'.$this->_CONF['projectfileext']) { - continue; - } + $actiondata1 = array ('_root' => 'form_tagfile', '_id' => 'select-tagfile', '_type' => 'form_select', 'name' => 'select-tagfile'); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); - $data = $this->_parseProjectFile (file ($this->docroot.$this->_CONF['projectdir'].'/'.$file)); - - if (isset ($entries [$data ['TAGS']])) { - continue; + foreach ($this->_tagfiles as $tagfile) { + $actiondata1 = array ('_root' => 'select-tagfile', '_id' => 'select-'.$file, '_type' => 'form_select_option', 'value' => $tagfile, 'label' => $tagfile); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); } - - $data ['TAGS'] = str_replace ('$home', $data ['HOME'], $data ['TAGS']); - $data ['TAGS'] = str_replace ('//', '/', $data ['TAGS']); - $actiondata1 = array ('_root' => 'select-tagfile', '_id' => 'select-'.$file, '_type' => 'form_select_option', 'value' => $data ['TAGS'], 'label' => $data ['TAGS']); - $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); - $entries [$data ['TAGS']] = 1; + $actiondata1 = array ('_root' => 'form_tagfile', '_id' => 'submit-tagfile', '_type' => 'form_submit', 'name' => 'submit-tagfile', 'value' => '1', 'content' => 'Tagdatei editieren'); + $this->_callEvent ('LAYOUT_ADD_ELEMENT', $actiondata1); } - $actiondata1 = array ('_root' => 'form_tagfile', '_id' => 'submit-tagfile', '_type' => 'form_submit', 'name' => 'submit-tagfile', 'value' => '1', 'content' => 'Tagdatei editieren'); - $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); - - $actiondata1 = array ('_root' => $_root, '_id' => 'form_tags', '_type' => 'form', 'action' => '#'); - $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); - if ($this->_tagfile != '') { - $_data = $this->_parseTagFile(file($this->docroot.$this->_tagfile)); + + // + $actiondata1 = array ('_root' => 'form_tagfile', '_id' => 'taglist', '_type' => 'taglist'); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + // get the tag-array + $_data = $this->_parseTagFile(file($this->docroot.$this->_tagfile)); + + // sort the tag-array + //ksort ($_data); + + reset ($_data); + + // walk through tag-array foreach ($_data as $id => $value) { - - $actiondata1 = array ('_root' => 'form_tags', '_id' => 'tags_status_'.$id, '_type' => 'paragraph', 'content' => $id.' = '.$value); + $actiondata1 = array ('_root' => 'taglist', '_id' => 'tags_status_'.$id, '_type' => 'tagentry', 'tag' => htmlentities ($id), 'value'=>htmlentities ($value)); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata1); + } } return true; @@ -696,7 +773,7 @@ /** * get a value from the phpCMS-configfile **/ - function _getDefaultValue(& $actiondata) { + function _getDefaultValue(&$actiondata) { if (!is_array($this->_DEFAULTS) || count($this->_DEFAULTS) == 0) { $this->_loadDefault(); } @@ -716,7 +793,7 @@ /** * set a value in the phpCMS-configfile **/ - function _setDefaultValue(& $actiondata) { + function _setDefaultValue(&$actiondata) { if (!is_array($this->_DEFAULTS) || count($this->_DEFAULTS) == 0) { $this->_loadDefault(); } @@ -764,8 +841,13 @@ $current = 0; for ($i = 0; $i < $num; $i++) { - $line = trim ($data [$i]); - if ($line {0} == ';') { + $line = trim ($data [$i]); + + if ($line == '') { + continue; + } + + if ($line{0} == ';') { continue; } @@ -784,6 +866,12 @@ } /** + * + **/ + function _parseMenuFile ($data) { + } + + /** * Callback function for sorting the array with the cache-entries **/ function _sortCacheList($a, $b) { Index: layout.phpcms.xml =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/layout.phpcms.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- layout.phpcms.xml 29 Sep 2004 20:10:45 -0000 1.2 +++ layout.phpcms.xml 7 Dec 2004 06:34:49 -0000 1.3 @@ -22,20 +22,44 @@ <![CDATA[ <fieldset> <legend>PAX-Erweiterung</legend> - <label class="horizontal"><input type="radio" name="config-PAX" value="1"<layout:replace name="PAX_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-PAX" value="0"<layout:replace name="PAX_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-PAX" value="1"<layout:replace name="PAX_ON" /> /> + </label> + <label class="switch"> + <span>Aus<span> + <input type="radio" name="config-PAX" value="0"<layout:replace name="PAX_OFF" /> /> + </label> </fieldset> <fieldset> <legend>PAX-Tags</legend> - <label class="horizontal"><input type="radio" name="config-PAXTAGS" value="1"<layout:replace name="PAXTAGS_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-PAXTAGS" value="0"<layout:replace name="PAXTAGS_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-PAXTAGS" value="1"<layout:replace name="PAXTAGS_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-PAXTAGS" value="0"<layout:replace name="PAXTAGS_OFF" /> /> + </label> </fieldset> <fieldset> <legend>Mail2Crypt</legend> - <label class="horizontal"><input type="radio" name="config-MAIL2CRYPT" value="1"<layout:replace name="MAIL2CRYPT_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-MAIL2CRYPT" value="0"<layout:replace name="MAIL2CRYPT_OFF" /> /> Aus</label> - <label><input type="text" name="config-MAIL2CRYPT_JS" value="<layout:replace name="MAIL2CRYPT_JS" />" />Mail2Crypt JS-Pfad </label> - <label><input type="text" name="config-MAIL2CRYPT_IMG" value="<layout:replace name="MAIL2CRYPT_IMG" />" />Mail2Crypt Img-Pfad </label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-MAIL2CRYPT" value="1"<layout:replace name="MAIL2CRYPT_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-MAIL2CRYPT" value="0"<layout:replace name="MAIL2CRYPT_OFF" /> /> + </label> + <label> + <span>Mail2Crypt JS Pfad</span> + <input type="text" name="config-MAIL2CRYPT_JS" value="<layout:replace name="MAIL2CRYPT_JS" />" /> + </label> + <label> + <span>Mail2Crypt Imagepfad</span> + <input type="text" name="config-MAIL2CRYPT_IMG" value="<layout:replace name="MAIL2CRYPT_IMG" />" /> + </label> ]]> </layout:insert> @@ -44,18 +68,36 @@ <![CDATA[ <fieldset> <legend>Serverseitiger Cache</legend> - <label class="horizontal"><input type="radio" name="config-CACHE_STATE" value="1"<layout:replace name="CACHE_STATE_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-CACHE_STATE" value="0"<layout:replace name="CACHE_STATE_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-CACHE_STATE" value="1"<layout:replace name="CACHE_STATE_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-CACHE_STATE" value="0"<layout:replace name="CACHE_STATE_OFF" /> /> + </label> <div id="pc_config_cache_1"> - <label><input type="text" name="config-CACHE_DIR" value="<layout:replace name="CACHE_DIR" />" />Pfad zum Cacheverzeichnis </label> + <label> + <span>Pfad zum Cacheverzeichnis </span> + <input type="text" name="config-CACHE_DIR" value="<layout:replace name="CACHE_DIR" />" /> + </label> </div> </fieldset> <fieldset> <legend>Clientseitiger Cache</legend> - <label class="horizontal"><input type="radio" name="config-CACHE_CLIENT" value="1"<layout:replace name="CACHE_CLIENT_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-CACHE_CLIENT" value="0"<layout:replace name="CACHE_CLIENT_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-CACHE_CLIENT" value="1"<layout:replace name="CACHE_CLIENT_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-CACHE_CLIENT" value="0"<layout:replace name="CACHE_CLIENT_OFF" /> /> + </label> <div id="pc_config_cache_2"> - <label><input type="text" name="config-PROXY_CACHE_TIME" value="<layout:replace name="PROXY_CACHE_TIME" />" />Pfad zum Cacheverzeichnis </label> + <label> + <span>Pfad zum Cacheverzeichnis</span> + <input type="text" name="config-PROXY_CACHE_TIME" value="<layout:replace name="PROXY_CACHE_TIME" />" /> + </label> </div> </fieldset> ]]> @@ -66,29 +108,84 @@ <![CDATA[ <fieldset> <legend>gzip-Komprimierung</legend> - <label class="horizontal"><input type="radio" name="config-GZIP" value="1"<layout:replace name="GZIP_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-GZIP" value="0"<layout:replace name="GZIP_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-GZIP" value="1"<layout:replace name="GZIP_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-GZIP" value="0"<layout:replace name="GZIP_OFF" /> /> + </label> </fieldset> <fieldset> <legend title="Klau dem Apachen sein Gemachen ;)">Stealth-Mode</legend> - <label class="horizontal"><input type="radio" name="config-STEALTH" value="1"<layout:replace name="STEALTH_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-STEALTH" value="0"<layout:replace name="STEALTH_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-STEALTH" value="1"<layout:replace name="STEALTH_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-STEALTH" value="0"<layout:replace name="STEALTH_OFF" /> /> + </label> <div id="pc_config_server_1"> - <label><input type="text" name="config-NOLINKCHANGE" value="<layout:replace name="NOLINKCHANGE" />" />Links mit folgenden Endungen nicht behandeln</label> + <label> + <span>Links mit folgenden Endungen nicht behandeln</span> + <input type="text" name="config-NOLINKCHANGE" value="<layout:replace name="NOLINKCHANGE" />" /> + </label> </div> <fieldset id="secure-stealth-mode"> <legend>Secure Stealth Mode</legend> - <label class="horizontal"><input type="radio" name="config-STEALTH_SECURE" value="1"<layout:replace name="STEALTH_SECURE_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-STEALTH_SECURE" value="0"<layout:replace name="STEALTH_SECURE_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-STEALTH_SECURE" value="1"<layout:replace name="STEALTH_SECURE_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-STEALTH_SECURE" value="0"<layout:replace name="STEALTH_SECURE_OFF" /> /> + </label> </fieldset> </fieldset> <fieldset> <legend title="Fehlerbehandlung">Debug-Modus</legend> - <label class="horizontal"><input type="radio" name="config-DEBUG" value="1"<layout:replace name="DEBUG_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-DEBUG" value="0"<layout:replace name="DEBUG_OFF" /> /> Aus</label> + <label class="switch"> + <span>An</span> + <input type="radio" name="config-DEBUG" value="1"<layout:replace name="DEBUG_ON" /> /> + </label> + <label class="switch"> + <span>Aus</span> + <input type="radio" name="config-DEBUG" value="0"<layout:replace name="DEBUG_OFF" /> /> + </label> <div id="pc_config_server_2"> - <label><input type="text" name="config-ERROR_PAGE" value="<layout:replace name="ERROR_PAGE" />" />Datei für allgemeine Fehler</label> - <label><input type="text" name="config-ERROR_PAGE_404" value="<layout:replace name="ERROR_PAGE_404" />" />Datei für Fehler 404 </label> + <label> + <span>Datei für allgemeine Fehler</span> + <input type="text" name="config-ERROR_PAGE" value="<layout:replace name="ERROR_PAGE" />" /> + </label> + <label> + <span>Datei für Fehler 404</span> + <input type="text" name="config-ERROR_PAGE_404" value="<layout:replace name="ERROR_PAGE_404" />" /> + </label> + </div> + </fieldset> + ]]> + </layout:insert> + + + <layout:insert name="pc_config_i18n"> + <![CDATA[ + <fieldset> + <legend>I18N</legend> + <label class="switch"><input type="radio" name="config-CACHE_STATE" value="1"<layout:replace name="CACHE_STATE_ON" /> /> An</label> + <label class="switch"><input type="radio" name="config-CACHE_STATE" value="0"<layout:replace name="CACHE_STATE_OFF" /> /> Aus</label> + <div id="pc_config_cache_1"> + <label><input type="text" name="config-CACHE_DIR" value="<layout:replace name="CACHE_DIR" />" />Pfad zum Cacheverzeichnis </label> + </div> + </fieldset> + <fieldset> + <legend>Clientseitiger Cache</legend> + <label class="switch"><input type="radio" name="config-CACHE_CLIENT" value="1"<layout:replace name="CACHE_CLIENT_ON" /> /> An</label> + <label class="switch"><input type="radio" name="config-CACHE_CLIENT" value="0"<layout:replace name="CACHE_CLIENT_OFF" /> /> Aus</label> + <div id="pc_config_cache_2"> + <label><input type="text" name="config-PROXY_CACHE_TIME" value="<layout:replace name="PROXY_CACHE_TIME" />" />Pfad zum Cacheverzeichnis </label> </div> </fieldset> ]]> @@ -99,8 +196,8 @@ <![CDATA[ <fieldset> <legend>Allgemeine Statistik</legend> - <label class="horizontal"><input type="radio" name="config-STATS" value="1"<layout:replace name="STATS_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-STATS" value="0"<layout:replace name="STATS_OFF" /> /> Aus</label> + <label class="switch"><input type="radio" name="config-STATS" value="1"<layout:replace name="STATS_ON" /> /> An</label> + <label class="switch"><input type="radio" name="config-STATS" value="0"<layout:replace name="STATS_OFF" /> /> Aus</label> <div id="pc_config_stat_1"> <label><input type="text" name="config-STATS_DIR" value="<layout:replace name="STATS_DIR" />" />Verzeichnis der Statistik </label> <label><input type="text" name="config-STATS_CURRENT" value="<layout:replace name="STATS_CURRENT" />" />aktuelles Verzeichnis der Statistik </label> @@ -109,8 +206,8 @@ </fieldset> <fieldset> <legend>Referrer</legend> - <label class="horizontal"><input type="radio" name="config-REFERRER" value="1"<layout:replace name="REFERRER_ON" /> /> An</label> - <label class="horizontal"><input type="radio" name="config-REFERRER" value="0"<layout:replace name="REFERRER_OFF" /> /> Aus</label> + <label class="switch"><input type="radio" name="config-REFERRER" value="1"<layout:replace name="REFERRER_ON" /> /> An</label> + <label class="switch"><input type="radio" name="config-REFERRER" value="0"<layout:replace name="REFERRER_OFF" /> /> Aus</label> <label><input type="text" name="config-REFERRER_DIR" value="<layout:replace name="REFERRER_DIR" />" />Verzeichnis für Referrer-Datei </label> <label><input type="text" name="config-REFERRER_FILE" value="<layout:replace name="REFERRER_FILE" />" />Dateiname für Referrer-Datei </label> <label><input type="text" name="config-REF_RELOAD_LOCK" value="<layout:replace name="REF_RELOAD_LOCK" />" />Reloadsperre </label> @@ -130,28 +227,153 @@ </fieldset> <fieldset> <legend>Erkennung von $DOCUMENT_ROOT</legend> - <label class="horizontal"><input type="radio" name="autoconfig-PATH" value="1"<layout:replace name="AUTO_DOCUMENT_ON" /> /> Automatisch</label> - <label class="horizontal"><input type="radio" name="autoconfig-PATH" value="0"<layout:replace name="AUTO_DOCUMENT_ROOT_OFF" /> /> Manuell eingeben</label> + <label class="switch"><input type="radio" name="autoconfig-PATH" value="1"<layout:replace name="AUTO_DOCUMENT_ON" /> /> Automatisch</label> + <label class="switch"><input type="radio" name="autoconfig-PATH" value="0"<layout:replace name="AUTO_DOCUMENT_ROOT_OFF" /> /> Manuell eingeben</label> <label><input type="text" name="config-DOCUMENT_ROOT" value="<layout:replace name="DOCUMENT_ROOT" />" />Document_Root </label> </fieldset> <fieldset> <legend>Erkennung von $DOMAIN_NAME</legend> - <label class="horizontal"><input type="radio" name="autoconfig-DOMAIN_NAME" value="1"<layout:replace name="AUTO_DOMAIN_NAME_ON" /> /> Automatisch</label> - <label class="horizontal"><input type="radio" name="autoconfig-DOMAIN_NAME" value="0"<layout:replace name="AUTO_DOMAIN_NAME_OFF" /> /> Manuell eingeben</label> + <label class="switch"><input type="radio" name="autoconfig-DOMAIN_NAME" value="1"<layout:replace name="AUTO_DOMAIN_NAME_ON" /> /> Automatisch</label> + <label class="switch"><input type="radio" name="autoconfig-DOMAIN_NAME" value="0"<layout:replace name="AUTO_DOMAIN_NAME_OFF" /> /> Manuell eingeben</label> <label><input type="text" name="config-DOMAIN_NAME" value="<layout:replace name="DOMAIN_NAME" />" />Domainname </label> </fieldset> <fieldset> <legend>Erkennung von $SCRIPT_PATH</legend> - <label class="horizontal"><input type="radio" name="autoconfig-SCRIPT_PATH" value="1"<layout:replace name="AUTO_SCRIPT_PATH_ON" /> /> Automatisch</label> - <label class="horizontal"><input type="radio" name="autoconfig-SCRIPT_PATH" value="0"<layout:replace name="AUTO_SCRIPT_PATH_OFF" /> /> Manuell eingeben</label> + <label class="switch"><input type="radio" name="autoconfig-SCRIPT_PATH" value="1"<layout:replace name="AUTO_SCRIPT_PATH_ON" /> /> Automatisch</label> + <label class="switch"><input type="radio" name="autoconfig-SCRIPT_PATH" value="0"<layout:replace name="AUTO_SCRIPT_PATH_OFF" /> /> Manuell eingeben</label> <label><input type="text" name="config-SCRIPT_PATH" value="<layout:replace name="SCRIPT_PATH" />" />Document_Root </label> </fieldset> <fieldset> <legend>Erkennung von $SCRIPT_NAME</legend> - <label class="horizontal"><input type="radio" name="autoconfig-SCRIPT_NAME" value="1"<layout:replace name="AUTO_SCRIPT_NAME_ON" /> /> Automatisch</label> - <label class="horizontal"><input type="radio" name="autoconfig-SCRIPT_NAME" value="0"<layout:replace name="AUTO_SCRIPT_NAME_OFF" /> /> Manuell eingeben</label> + <label class="switch"><input type="radio" name="autoconfig-SCRIPT_NAME" value="1"<layout:replace name="AUTO_SCRIPT_NAME_ON" /> /> Automatisch</label> + <label class="switch"><input type="radio" name="autoconfig-SCRIPT_NAME" value="0"<layout:replace name="AUTO_SCRIPT_NAME_OFF" /> /> Manuell eingeben</label> <label><input type="text" name="config-SCRIPT_NAME" value="<layout:replace name="SCRIPT_NAME" />" />Document_Root </label> </fieldset> ]]> </layout:insert> + + + <layout:insert name="taglist"> + <![CDATA[ + <style> + <!-- + #taglist { + list-item-type:none; + } + #taglist dt { + padding:0.2em; + color:#029544; + border-top:1px solid; + } + #taglist dd { + padding:0 0.2em; + margin-left:3em; + } + --> + </style> + <dl id="taglist"> + <layout:replace name="content" /> + </dl> + ]]> + </layout:insert> + + + <layout:insert name="tagentry"> + <![CDATA[ + <dt><layout:replace name="tag" /></dt> + <dd><layout:replace name="value" /></dd> + ]]> + </layout:insert> + + + <layout:insert name="cachelist"> + <![CDATA[ + <style> + <!-- + #cacheview li { + list-style-type:none; + margin-left:0em; + padding-left:0; + } + #cacheview ul { + margin-left:1.5em; + padding-left:0; + } + #cacheview li { + font-weight:normal; + } + #cacheview li.subdir { + } + #cacheview li.subdir { + font-weight:bold; + } + #cacheview span.gzip { + color:#0f0; + font-weight:bold; + } + #cacheview span.statisch { + color:#f80; + font-weight:bold; + } + #cacheview span.dynamisch { + color:#f00; + font-weight:bold; + } + --> + </style> + <div class="symbolleiste"> + <img src="modules/phpcms/img/cache/del-all.gif" width="16" height="16" alt="" title="Alle Dateien im Cache löschen" /> + <img src="modules/phpcms/img/cache/del-sel.gif" width="16" height="16" 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" class="input" /> + <span class="<layout:replace name="cachetype" />"><layout:replace name="cachetype" /></span> + <a href="http://<layout:replace name="filename" />" title="<layout:replace name="cachefile" /> gecached am <layout:replace name="cachetime" />">http://<layout:replace name="filename" /></a> + </li> + ]]> + </layout:insert> + + + <layout:insert name="menufolder"> + <![CDATA[ + <li class="subdir"> + <input type="checkbox" name="select[<layout:replace name="CLASS" />]" value="1" /> + <layout:replace name="MNAME" /> <a href="<layout:replace name="LINK" />" Goto </a> + <ul> + <layout:replace name="content" default="" /> + </ul> + </li> + ]]> + </layout:insert> + + <layout:insert name="menuentry"> + <![CDATA[ + <li> + <input type="checkbox" name="select[<layout:replace name="CLASS" />]" value="1" /> + <layout:replace name="MNAME" /> <a href="<layout:replace name="LINK" />" Goto </a> + </li> + ]]> + </layout:insert> + </layout> \ No newline at end of file |