[Phpcms-plugins-cvs] admin4phpCMS/modules/phpcms http-indexer.php,NONE,1.1 module_phpcms_en.lng,1.3,
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2005-05-20 05:54:19
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14729/modules/phpcms Modified Files: module_phpcms_en.lng class.module_phpcms.php Added Files: http-indexer.php Log Message: last step for module_phpcms --- NEW FILE: http-indexer.php --- <?php /** * Admin4phpCMS * * <b>Workflow</b> * * I. Spidering * * <ol> * <li>first URL is the startpage</li> * <li>get the URL-content via HTTP and save it in a tempfile with md5-filename; * save md-filename in assoziated array with URL</li> * <li>get the meta-tags and decide, wether to follow links and or index body</li> * <li>get all links in the body content</li> * <li>get all links that are outside of any <!-- PHPCMS_NOFOLLOW --> <!-- /PHPCMS_NOFOLLOW --></li> * <li>add these links to the $this->url_to_spider array</li> * <li>add the current page to the $this->url_have_spidered array</li> * <li>get the next url from the beginning of $this->url_to_spider</li> * <li>go on with point 1 and the next url from the beginning of $this->url_to_spider if there is any</li> * </ol> * * II. Indexing * * <ol> * <li>get a tempfile from $this->url_have_spidered</li> * <li>get the body-content (excluding all phpcms-noindex, phpcms-content-start and so on tags)</li> * <li>create wordlist with wordcount</li> * <li>clear the wordlist from unwanted words (i.e. blacklist)</li> * <li>write the results into the searchfiles</li> * <li>goon with point 1</li> * </ol> * * III. Saving * * <ol> * <li>create tempfiles with the search-indexes</li> * <li>delete the old search-index-files</li> * <li>copy the tempfiles to the savedir</li> * </ol> * * <b>License</b> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @author Martin Jahn <mj...@us...> * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @copyright Copyright (c) 2005, Martin Jahn * @version $Id: http-indexer.php,v 1.1 2005/05/20 05:54:05 mjahn Exp $ * @package admin4phpcms * @subpackage module_phpcms */ /* * $Log: http-indexer.php,v $ * Revision 1.1 2005/05/20 05:54:05 mjahn * last step for module_phpcms * */ include_once ($PHPCMS_INCLUDEPATH.'/class.lib_indexer_universal_phpcms.php'); class http_indexer { var $url_to_spider = array (); var $url_have_spidered = array (); var $url_address = array (); var $reference = array (); var $progress = 0; function spider () { $PHPCMS_INDEXER_TEMP_SAVE_PATH = ''; # $body ist eine leere Variable, die später den Seiteninhalt enthält while(($urls = $this->get_urls($body)) === FALSE) ; # Seite schreiben if(strlen($body) != 0) { $index = count($this->url_have_spidered); $this->url_have_spidered [$index] = $this->url_to_spider [0]; $current_page = $this->url_to_spider [0]; $this->url_name [$index] = md5(uniqid(microtime(),1)).'.htm'; $fp = fopen($PHPCMS_INDEXER_TEMP_SAVE_PATH.$this->url_name [$index], 'wb+'); fwrite($fp,$body,strlen($body)); fclose($fp); } # Ersten Eintrag entfernen array_shift ($this->url_to_spider); if (is_array($urls)) { $urls = array_unique($urls); foreach ($urls as $alink) { if (!in_array($alink,$this->url_adress,TRUE) AND trim($alink)!= '') { $index = count($this->url_adress); $this->url_adress [$index] = $alink; $this->url_to_spider [] = $index; $this->reference [$current_page][] = $index; } elseif (trim ($alink) != '') { $index = array_search($alink,$this->url_adress); $this->reference [$current_page][] = $index; } } } if (!isset ($this->url_to_spider) OR count ($this->url_to_spider) == 0) { $this->start_indexer(); return true; } if (isset ($this->url_to_spider) AND count ($this->url_to_spider) > 0) { # Prozessanzeige kalkulieren $AllStat = count ($this->url_to_spider) + count ($this->url_have_spidered); $prozent = ($AllStat / 100); $RelStat = floor (count ($this->url_have_spidered) / $prozent); $this->progress = $RelStat; $adress = $this->url_adress [$this->url_to_spider[0]]; $this_path = substr ($adress,strpos ($adress,'/')); $this_host = substr ($adress,0,strpos ($adress,'/')); // Bisher "xxx" von "yyy" Adressen bearbeitet. $message.= $this->progress_bar ($this->progress); echo '<META http-equiv="refresh" content="0; URL='.$PHP_SELF.'?action=start_spider">'; return; } } function index () { } function merge () { } function save () { } function setProfile ($profiledata) { $this->profile = $profiledata; return true; } function __construct () { return true; } function http_indexer () { return $this->_construct (); } } ?> Index: module_phpcms_en.lng =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/module_phpcms_en.lng,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- module_phpcms_en.lng 15 May 2005 12:24:02 -0000 1.3 +++ module_phpcms_en.lng 20 May 2005 05:54:05 -0000 1.4 @@ -1,52 +1,61 @@ -[phpcms] -text_phpcms = """<h2>Welcome to phpCMS!</h2> -<p>Thank you for installing phpCMS</p> - -<p> -This is the phpCMS User Interface (GUI).<br /> -After loggin in you can adjust your site’s basic settings. Have a look at the configuration. -<br /> <br /> -As a reminder: your log-in passwort is the one you set in the file named default.php! Should you ever forget your password you may change it there at any time. -<br /> <br /> -Have fun with phpCMS!</p>""" - +[overview] +title_overview = "phpCMS — Overview" [indexer] title_indexer = "phpCMS — HTTP-Indexer" title_indexer_overview = "Profile-Managment" title_general_information = "General information" +title_indexer_edit = "Profile-Editor" label_name = "Name of the profile" +text_name = "Name of the profile" label_datadir = "Path where we could store the indexfiles" +text_datadir = "Path where we could store the indexfiles" label_gzip = "Compress indexfiles with GZip" +text_gzip = "Compress indexfiles with GZip" label_buffer = "Buffer size in byte" +text_buffer = "Buffer size in byte" title_spider = "Spider options" label_robots = "Take care of robots.txt file" +text_robots = "Take care of robots.txt file" label_robots_meta = "Take care of the robots-meta-tag" +text_robots_meta = "Take care of the robots-meta-tag" label_exklude = "Exclude all URLs that contain" +text_exklude = "Exclude all URLs that contain" label_include = "Include all URLs that contain " +text_include = "Include all URLs that contain " label_noextensions = "Do not index files with following extensions" +text_noextensions = "Do not index files with following extensions" title_options = "Indexer options" label_uris = "List of URIs we have to index" +text_uris = "List of URIs we have to index" label_wordlength = "Minimal word length" +text_wordlength = "Minimal word length" label_stopword = "Path to the stopword-file" +text_stopword = "Path to the stopword-file" label_meta_desc = "Use content of meta description tag as description" +text_meta_desc = "Use content of meta description tag as description" label_description = "Length of the descriptive text" +text_description = "Length of the descriptive text" title_regex = "Change URLs" label_regex_search = "Search with the following expression …" +text_regex_search = "Search with the following expression …" label_regex_replace = "… and replace it with the following text" +text_regex_replace = "… and replace it with the following text" -title_select_action = "Select action" title_select_profile = "Choose profile" -label_new_index = "Create a new index for this profile" -button_new_index = "Index" -label_edit_index = "Edit the settings of this profile" -button_edit_index = "Edit" -label_copy_index = "Copy this profile" -button_copy_index = "Copy" -label_del_index = "Delete this profile" -button_del_index = "Delete" -label_test_index = "Test the index with a searchform" +title_select_action = "Select action for the chosen profile" +label_new_profile = "Create a new profile" +button_new_profile = "Create profile" +label_edit_profile = "Edit the settings of this profile" +button_edit_profile = "Edit profile" +label_copy_profile = "Copy this profile" +button_copy_profile = "Copy profile" +label_del_profile = "Delete this profile" +button_del_profile = "Delete profile" +label_new_index = "Create a new search index for this profile" +button_new_index = "Create index" +label_test_index = "Test the profile index with a searchform" button_test_index = "Test index" label_list_index = "Show a number of the most important searchterms in the index" button_list_index = "Show wordlist" @@ -55,13 +64,38 @@ title_submit_edit = "Save settings" button_submit_edit = "Save settings" label_backlink = "List profiles" -title_new_profile = "Create a new profile" -label_new_profile = "Create a new profile" -button_new_profile = "New profile" + + +title_indexer_del = "Delete the profile " +title_submit_del = "Delete profile" +label_del = "Are you sure?" +text_del = "Are you really sure that you want to delete the profile?" +label_submit_del = " " +button_submit_del = "Delete the profile" + + +title_indexer_create = "Create full text index - step one of five" +text_profile_options = """You have selected this profile to create the full text index. + To create the full text index now, click on the button "continue" + After this, the spider is starting to load the target pages on this system. + This will take a little time, depending on the size of your site. + If the spider »hangs« while processing the download, simply push the "reload" button in your browser. + The spider will then continue the download.""" + +title_profile_options = "Profile options" + +title_submit_start = "Let the indexer doing his work" +label_submit_start = "Start Indexing" +button_submit_start = "Go on" + +title_spider = "Create a new search-index" +text_spider = "Get page " [cache] title_cache = "phpCMS — Cache" +title_cachedir = "Caching is switched on" +title_cachedir_path = "phpCMS-Cache in " label_cache_filename = "Filename" label_cache_ftime = "Last changes" label_cache_fsize = "Filesize" @@ -312,11 +346,26 @@ label_config_146 = "" [server] +title_apache = "Apache headers information" +title_apache_request = "Apache request headers" +title_apache_response = "Apache response headers" +label_apache_name = "name" +label_apache_value = "value" + + +title_headers = "PHP headers information" +title_headers_request = "PHP request headers" +title_headers_response = "PHP response headers" +label_headers_name = "name" +label_headers_value = "value" + + title_server = "phpCMS — Server-Info" -title_vars = "Server variables" +title_vars = "PHP variables" label_vars_name = "variable" label_vars_value = "value" + title_ini = "PHP configuration" label_ini_property ="Property" label_ini_value = "Local value (Global value)" @@ -324,6 +373,20 @@ title_php_ext = "PHP extensions" label_php_ext_desc = "Description" label_php_ext_name = "Extension" +label_php_ext_func = "Available functions of this extension" + + +[mailinglist] +title_mailinglist = "Mailing List phpCMS-News" +title_archive = "Archive" +text_archive = "To see the collection of prior postings to the list, visit the <a href='https://sourceforge.net/mailarchive/forum.php?forum=phpcms-news'>SourceForge.net phpCMS-News Archives</a>." +title_subscribe = "Subscribing to phpCMS-News" +title_subscribe_form = "Subscribe with your email address" +text_subscribe = "Subscribe to phpCMS-News by filling out the following form. You will be sent e-mail requesting confirmation, to prevent others from gratuitously subscribing you. This is a hidden list, which means that the members list is available only to the list administrator." +label_subscribe_email = "Your e-mail address" +text_subscribe_password = "You must enter a privacy password. This provides only mild security, but should prevent others from messing with your subscription. <b>Do not use a valuable password</b> as it will occasionally be e-mailed back to you in clear text." +label_subscribe_password = "Pick a password" +label_subscribe_password2 = "Reenter password to confirm" +label_subscribe_submit = " " + -[phpinfo] -title_phpinfo = "phpCMS — PHP-Info" Index: class.module_phpcms.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/class.module_phpcms.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- class.module_phpcms.php 15 May 2005 12:24:02 -0000 1.9 +++ class.module_phpcms.php 20 May 2005 05:54:05 -0000 1.10 @@ -28,8 +28,8 @@ /* * $Log$ -* Revision 1.9 2005/05/15 12:24:02 mjahn -* Commit as backup during development +* Revision 1.10 2005/05/20 05:54:05 mjahn +* last step for module_phpcms * */ @@ -115,9 +115,6 @@ $this->display = (isset ($actiondata['request']['moduleid']) && $actiondata['request']['moduleid'] == 'phpcms'); $this->action = ''; - echo '<!--'; - print_r ($actiondata); - echo '-->'; if (isset ($actiondata['request']['action'])) { $this->action = $actiondata['request']['action']; } @@ -131,7 +128,7 @@ $this->_cacheaction = ''; if (isset ($actiondata['request']['cacheform-submit'])) { $this->_cacheaction = $actiondata['request']['cacheform-submit']; - $this->_formdata = $actiondata['post']; + $this->_formdata = $actiondata ['post']; } break; case 'config' : @@ -139,21 +136,26 @@ $this->_configaction = ''; if (isset ($actiondata['request']['configform-submit'])) { $this->_configaction = 'save'; - $this->_formdata = $actiondata['post']; + $this->_formdata = $actiondata ['post']; } break; case 'indexer' : $this->_registerAction('doProcess', 'processIndexer'); $this->_indexerAction = ''; if (isset ($actiondata['request']['indexeraction'])) { - $this->_indexerAction = $actiondata['request']['indexeraction']; + $this->_indexerAction = $actiondata ['request']['indexeraction']; } $this->_profileAction = ''; if (isset ($actiondata['request']['configform-submit'])) { $this->_profileAction = 'save'; - $this->_formdata = $actiondata['post']; + $this->_formdata = $actiondata ['post']; } + $this->_areYouSure = false; + if (isset ($actiondata['request']['areYouSure'])) { + $this->_areYouSure = $actiondata ['request'] ['areYouSure']; + } + $this->_showIndexerProfile = ''; if (isset ($actiondata ['request'] ['indexerprofile'])) { $this->_showIndexerProfile = $actiondata ['request'] ['indexerprofile']; @@ -165,7 +167,6 @@ $this->_callEvent('USER_GET_STATUS', $actiondata1); $this->_USER = $actiondata1; - echo '<!--';print_r ($this->_USER);echo '-->'; // load the values in the default.php $this->_loadDefault(); @@ -257,16 +258,36 @@ } - if ($this->_showIndexerProfile != '') { - $data = array_keys ($this->_indexerProfiles); - $this->_showIndexerProfile = $data [$this->_showIndexerProfile - 1]; - } - switch ($this->_indexerAction) { - case 'edit':; - case 'list':; - case 'index':; - case 'test':; + case 'new': + break; + case 'edit': + if ($this->_showIndexerProfile != '') { + $data = array_keys ($this->_indexerProfiles); + $this->_showIndexerProfile = $data [$this->_showIndexerProfile - 1]; + } + break; + case 'copy': + if ($this->_showIndexerProfile != '') { + $data = array_keys ($this->_indexerProfiles); + $this->_showIndexerProfile = $data [$this->_showIndexerProfile - 1]; + } + break; + case 'del': + $id = $this->_showIndexerProfile; + unset ($this->_indexerProfiles [$id]); + $this->_saveIndexer (); + break; + case 'index': + if ($this->_showIndexerProfile != '') { + $data = array_keys ($this->_indexerProfiles); + $this->_showIndexerProfile = $data [$this->_showIndexerProfile - 1]; + } + break; + case 'test': + break; + case 'list': + break; default:; } } @@ -315,11 +336,17 @@ } $_data [] = $data1; - $data1 = array ('name' => 'PHPinfo', 'module' => 'phpcms', 'action' => 'phpinfo'); +/* $data1 = array ('name' => 'PHPinfo', 'module' => 'phpcms', 'action' => 'phpinfo'); if ($this->action == 'phpinfo') { $data1 ['extra'] = 'class="current"'; } $_data [] = $data1; +*/ + $data1 = array ('name' => 'News mailing list', 'module' => 'phpcms', 'action' => 'mailinglist'); + if ($this->action == 'mailinglist') { + $data1 ['extra'] = 'class="current"'; + } + $_data [] = $data1; $data ['_sub_'] = $_data; } @@ -402,29 +429,54 @@ $data ['indexeraction'] = $this->_indexerAction; break; case 'serverinfo': + // PHP-modules $temp = get_loaded_extensions (); $data ['phpModules'] = array (); + sort ($temp); foreach ($temp as $name) { - $data ['phpModules'] [] = array ('name'=>$name, 'desc'=>$name); + $data ['phpModules'] [] = array ('name'=>$name, 'desc'=>$name, 'funcs'=>get_extension_funcs ($name)); } + + // php.ini $data ['phpIniValues'] = ini_get_all (); + foreach ($data ['phpIniValues'] as $id=>$values) { + if (substr ($id, 0, 10) != 'highlight.') { + $data ['phpIniValues'] [$id] ['global_value'] = htmlentities ($values ['global_value']); + $data ['phpIniValues'] [$id] ['local_value'] = htmlentities ($values ['local_value']); + continue; + } + $data ['phpIniValues'] [$id] ['global_value'] = '<span style="color:'.$values ['global_value'].'">'.$values ['global_value'].'</span>'; + $data ['phpIniValues'] [$id] ['local_value'] = '<span style="color:'.$values ['local_value'].'">'.$values ['local_value'].'</span>'; + } - // BOF Fix phpinfo - ob_start(); - phpinfo(); - $infobuffer .= ob_get_contents(); - ob_end_clean(); - - preg_match_all("=<body[^>]*>(.*)</body>=siU", $infobuffer, $a); - $phpinfo = $a[1][0]; - $phpinfo = str_replace( ';','; ', $phpinfo ); - $phpinfo = str_replace( ',',', ', $phpinfo ); - $phpinfo = str_replace( '<br>','<br />', $phpinfo ); - $phpinfo = str_replace( 'align="center"','', $phpinfo ); - $phpinfo = str_replace( 'align="right"','', $phpinfo ); - - $data ['phpInfo'] = $phpinfo; + // PHP-headers + $temp = array (); + $myurl = $_SERVER['SERVER_ADDR'].':'.$_SERVER ['SERVER_PORT'].$_SERVER ['PHP_SELF']; + if (function_exists ('get_headers')) { + $temp = get_headers ($myurl, true); + } else { + $temp = $this->get_headers ($myurl, true); + } + $data ['headersResponse'] = $temp; + $temp = array (); + foreach ($_SERVER as $id=>$value) { + if (substr ($id, 0, 5) != 'HTTP_') { + continue; + } + $temp [substr ($id, 5, strlen ($id))] = $value; + } + $data ['headersRequest'] = $temp; + + // Apache headers + if (function_exists ('apache_request_headers')) { + $data ['apacheRequest'] = apache_request_headers (); + } + if (function_exists ('apache_response_headers')) { + $data ['apacheResponse'] = apache_response_headers (); + } + + // PHP-variables $temp = array ( 'GLOBALS', 'HTTP_SERVER_VARS', @@ -433,17 +485,16 @@ '_ENV', 'HTTP_SESSION_VARS', '_SESSION', -/* 'HTTP_GET_VARS', + 'HTTP_GET_VARS', '_GET', 'HTTP_POST_VARS', '_POST', 'HTTP_POST_FILES', '_FILES', -*/ 'HTTP_COOKIE_VARS', + 'HTTP_COOKIE_VARS', '_COOKIE', '_REQUEST' ); - $data ['serverVars'] = array (); foreach ($temp as $varname) { if (!isset ($GLOBALS [$varname])) { @@ -483,24 +534,53 @@ } // function getData () - function getLanguageData (&$actiondata) { - $langAvailable = array ('de', 'en'); - - $data = $actiondata [$actiondata ['tag']]; - - foreach ($langAvailable as $lang) { - if (!file_exists (dirname (__FILE__).'/module_phpcms_'.$lang.'.lng')) { - continue; - } - if (isset ($data [$lang])) { - $data [$lang] = array_merge ($data [$lang], parse_ini_file (dirname (__FILE__).'/module_phpcms_'.$lang.'.lng')); - } else { - $data [$lang] = parse_ini_file (dirname (__FILE__).'/module_phpcms_'.$lang.'.lng', true); - } + /** + * @return array + * @param string $url + * @param int $format + * @desc Fetches all the headers + * @author cpurruc fh-landshut de + * @modified by dotpointer + * @modified by aeontech + */ + function get_headers($url, $format=0) { + $url_info=parse_url($url); + $port = isset($url_info['port']) ? $url_info['port'] : 80; + $fp=fsockopen($url_info['host'], $port, $errno, $errstr, 30); + + if($fp) + { + $head = "HEAD ".@$url_info['path']."?".@$url_info['query']." HTTP/1.0\r\nHost: ".@$url_info['host']."\r\n\r\n"; + fputs($fp, $head); + while(!feof($fp)) + { + if($header=trim(fgets($fp, 1024))) + { + if($format == 1) + { + $key = array_shift(explode(':',$header)); + // the first element is the http header type, such as HTTP 200 OK, + // it doesn't have a separate name, so we have to check for it. + if($key == $header) + { + $headers[] = $header; + } + else + { + $headers[$key]=substr($header,strlen($key)+2); + } + unset($key); + } + else + { + $headers[] = $header; + } + } + } + return $headers; + } else { + return false; } - $actiondata [$actiondata ['tag']] = $data; - - return true; } /** @@ -701,7 +781,6 @@ function _delCacheEntry ($id) { $id = $this->cachedir.'/'.strip_tags ($id); if (!file_exists ($id) || !is_writable (dirname ($id))) { - echo '-1'.$id; return false; } unlink ($id); @@ -822,11 +901,82 @@ } $this->_indexerProfiles [$id] ['url_regex'] = $temp; } - //print_r ($this->_indexerProfiles); return true; } function _parseIndexerFormdata () { + + $profile = array (); + $id = $this->_formdata ['values'] ['name']; + $temp = explode ("\n", $this->_formdata ['values'] ['host']); + $profile ['host'] = array (); + foreach ($temp as $value) { + if (trim ($value) == '') { + continue; + } + $profile ['host'] [] = trim ($value); + } + $profile ['gzip'] = $this->_formdata ['values'] ['gzip']; + $profile ['savedata'] = $this->_formdata ['values'] ['savedata']; + $profile ['robots'] = $this->_formdata ['values'] ['robots']; + $profile ['meta'] = $this->_formdata ['values'] ['meta']; + $temp = explode ("\n", $this->_formdata ['values'] ['exklude']); + $profile ['exklude'] = array (); + foreach ($temp as $value) { + if (trim ($value) == '') { + continue; + } + $profile ['exklude'] [] = trim ($value); + } + $temp = explode ("\n", $this->_formdata ['values'] ['include']); + $profile ['include'] = array (); + foreach ($temp as $value) { + if (trim ($value) == '') { + continue; + } + $profile ['include'] [] = trim ($value); + } + $temp = explode ("\n", $this->_formdata ['values'] ['noextensions']); + $profile ['noextensions'] = array (); + foreach ($temp as $value) { + if (trim ($value) == '') { + continue; + } + $profile ['noextensions'] [] = trim ($value); + } + $temp = explode ("\n", $this->_formdata ['values'] ['url_pattern']); + $profile ['url_pattern'] = ''; + $t = array (); + for ($i = 0; $i < count ($temp); $i++) { + if (trim ($temp [$i]) == '') { + continue; + } + $t [] = trim ($temp [$i]); + } + if (count ($t) > 0) { + $profile ['url_pattern'] = $t; + } + + $temp = explode ("\n", $this->_formdata ['values'] ['url_replacement']); + $profile ['url_replacement'] = ''; + $t = array (); + for ($i = 0; $i < count ($temp); $i++) { + if (trim ($temp [$i]) == '') { + continue; + } + $t [] = trim ($temp [$i]); + } + if (count ($t) > 0) { + $profile ['url_replacement'] = $t; + } + $profile ['stopword'] = $this->_formdata ['values'] ['stopword']; + $profile ['wordlength'] = $this->_formdata ['values'] ['wordlength']; + $profile ['buffer'] = $this->_formdata ['values'] ['buffer']; + $profile ['description'] = $this->_formdata ['values'] ['description']; + $profile ['meta_tags'] = $this->_formdata ['values'] ['meta_tags']; + + $this->_indexerProfiles [$id] = array_merge ($this->_indexerProfiles [$id], $profile); + $this->_saveIndexer (); } function _filesize($file) { |