<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE packagegui SYSTEM "../schema/packages.dtd"> <?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?> <packagegui> <description><![CDATA[Describe your package here]]></description> <requirements>Describe your package requirements here</requirements> <faq>Currently there are no FAQ items provided.</faq> <name>squidguardrewrite</name> <version>none</version> <title>Proxy filter SquidGuard: Rewrites</title> <include_file>/usr/local/pkg/squidguard.inc</include_file> <tabs> <tab> <text>General settings</text> <url>/pkg_edit.php?xml=squidguard.xml&id=0</url> </tab> <tab> <text>Common ACL</text> <url>/pkg_edit.php?xml=squidguard_default.xml&id=0</url> </tab> <tab> <text>Groups ACL</text> <url>/pkg.php?xml=squidguard_acl.xml</url> </tab> <tab> <text>Target categories</text> <url>/pkg.php?xml=squidguard_dest.xml</url> </tab> <tab> <text>Times</text> <url>/pkg.php?xml=squidguard_time.xml</url> </tab> <tab> <text>Rewrites</text> <url>/pkg.php?xml=squidguard_rewr.xml</url> <active/> </tab> <tab> <text>Blacklist</text> <url>/squidGuard/squidguard_blacklist.php</url> </tab> <tab> <text>Log</text> <url>/squidGuard/squidguard_log.php</url> </tab> <tab> <text>XMLRPC Sync</text> <url>/pkg_edit.php?xml=squidguard_sync.xml</url> </tab> </tabs> <adddeleteeditpagefields> <columnitem> <fielddescr>Name</fielddescr> <fieldname>name</fieldname> </columnitem> <columnitem> <fielddescr>Description</fielddescr> <fieldname>description</fieldname> </columnitem> </adddeleteeditpagefields> <fields> <field> <fielddescr>Name</fielddescr> <fieldname>name</fieldname> <description><![CDATA[ Enter a unique name of this rule here.<br> The name must consist between 2 and 15 symbols [a-Z_0-9]. The first one must be a letter.<br> ]]></description> <type>input</type> <required/> <size>100</size> </field> <field> <fielddescr> <b>Rewrite rule.</b><br> Define how url will be replaced.</fielddescr> <type>rowhelper</type> <rowhelper> <rowhelperfield> <fielddescr>Target URL or regular expression</fielddescr> <fieldname>targeturl</fieldname> <type>input</type> <size>35</size> </rowhelperfield> <rowhelperfield> <fielddescr>Replace to URL</fielddescr> <fieldname>replaceto</fieldname> <type>input</type> <size>35</size> </rowhelperfield> <rowhelperfield> <fielddescr>Opt.</fielddescr> <fieldname>mode</fieldname> <type>select</type> <value>no</value> <options> <option> <name>---------</name> <value>no</value> </option> <option> <name>no case </name> <value>nocase</value> </option> <option> <name>redirect </name> <value>redirect</value> </option> <option> <name>no case + redirect</name> <value>nocase_redirect</value> </option> </options> </rowhelperfield> <!-- <rowhelperfield> <fielddescr>Http 301</fielddescr> <fieldname>http301</fieldname> <type>checkbox</type> </rowhelperfield> <rowhelperfield> <fielddescr>Http 302</fielddescr> <fieldname>http302</fieldname> <type>checkbox</type> </rowhelperfield> --> </rowhelper> </field> <field> <fielddescr>Log</fielddescr> <fieldname>enablelog</fieldname> <description><![CDATA[Check this option to enable logging for this ACL.]]></description> <type>checkbox</type> </field> <field> <fielddescr>Description</fielddescr> <fieldname>description</fieldname> <description><![CDATA[You may enter any description here for your reference.<br> <b>Note:</b><br> <b>Rewrite rule:</b> Define how the URL will be replaced.<br> <b>Target URL or Regular Expression:</b> Contains destination URL or regular expression. This is the URL or RegEx the user wants to visit.<br> <b>Replace to URL:</b> Contains the replacing URL. This is the URL the user will see instead the original one. ]]></description> <type>input</type> <size>100</size> </field> </fields> <custom_php_after_form_command> squidGuard_print_javascript(); </custom_php_after_form_command> <custom_php_validation_command> squidguard_validate_rewrite($_POST, &$input_errors); </custom_php_validation_command> <custom_php_resync_config_command> // squidguard_resync_rewrite(); </custom_php_resync_config_command> </packagegui>