Esempio n. 1
0
			<font size="-1">directories containing these substrings will will not be scanned for files and will not be added to site index; use line break to separate entries</font><br />
			<textarea name="' . PSNG_DISALLOW_DIR . '" cols="40" rows="10" id="idisallow_dir">' . arrToString($SETTINGS[PSNG_DISALLOW_DIR]) . '</textarea>
		</td>
	  </tr>
	  <tr>
	  	<td valign="top"><label for="idisallow_file" accesskey="F">Exclude files</label></td>
		<td>
			<font size="-1">files containing these substrings will not be crawled for further links and not added to site index; use line break to separate entries</font><br/>
			<textarea name="' . PSNG_DISALLOW_FILE . '" cols="40" rows="10" id="idisallow_file">' . arrToString($SETTINGS[PSNG_DISALLOW_FILE]) . '</textarea>
		</td>
	  </tr>
	  <tr>
	  	<td valign="top"><label for="idisallow_key" accesskey="K">Exclude url keys</label></td>
		<td>
			<font size="-1">remove keys in urls; you should add the session key here (default: PHPSESSID)</font>
			<textarea name="' . PSNG_DISALLOW_KEY . '" cols="40" rows="10" id="idisallow_key">' . arrToString($SETTINGS[PSNG_DISALLOW_KEY]) . '</textarea>
		</td>
	  </tr>
	  <tr>
	  	<td valign="top"><label for="isitemap_url" accesskey="S">Sitemap file</label></td>
		<td>
			<input type="Text" name="' . PSNG_SITEMAP_FILE . '" id="isitemap_url" align="LEFT" size="50" value="' . $SETTINGS[PSNG_SITEMAP_FILE] . '"/><br />
			<font size="-1">relativ to your page root; the generated sitemap will be stored to this file</font>
		</td>
	  </tr>
	  <tr>
	  	<td valign="top"><label for="itxtsitemap_url" accesskey="S">TXT Sitemap file</label><br /><font size="-1">Used by Yahoo, ...</font></td>
		<td>
			<input type="Text" name="' . PSNG_TXTSITEMAP_FILE . '" id="itxtsitemap_url" align="LEFT" size="50" value="' . $SETTINGS[PSNG_TXTSITEMAP_FILE] . '"/><br />
			<font size="-1">relativ to your page root; the generated txt sitemap will be stored to this file</font>
		</td>
Esempio n. 2
0
function genConfig($priority, $forbidden_types, $exclude_names, $freq, $method, $level, $maxcon, $sitemap_form, $docroot, $timeout)
{
    $xmlconfig = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>\n<document>\n    <options>\n\t\t<forbiddentypes>" . htmlentities(arrToString($forbidden_types)) . "</forbiddentypes>\n\t\t<excludelist>" . htmlentities(htmlentities(arrToString($exclude_names), ENT_QUOTES, 'UTF-8')) . "</excludelist>\n\t<sitemapurl>" . $sitemap_form . "</sitemapurl>\n\t<priority>" . $priority . "</priority>\n\t<changefreq>" . $freq . "</changefreq>\n\t<method>" . $method . "</method>\n\t<level>" . $level . "</level>\n\t<maxconn>" . $maxcon . "</maxconn>\n\t<docroot>" . $docroot . "</docroot>\n\t<timeout>" . $timeout . "</timeout>\n\t</options>\n</document>";
    return $xmlconfig;
}