<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd">
<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
<packagegui>
        <copyright>
        <![CDATA[
/* ========================================================================== */
/*
    dansguardian_url_acl.xml
    part of pfSense (http://www.pfSense.com)
    Copyright (C) 2012-2013 Marcello Coutinho
    
    All rights reserved.                                                      
*/
/* ========================================================================== */
/*
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:

     1. Redistributions of source code MUST retain the above copyright notice,
        this list of conditions and the following disclaimer.

     2. Redistributions in binary form must reproduce the above copyright
        notice, this list of conditions and the following disclaimer in the
        documentation and/or other materials provided with the distribution.

    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
    AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.
                                                                              */
/* ========================================================================== */
        ]]>
        </copyright>
    <description>Describe your package here</description>
    <requirements>Describe your package requirements here</requirements>
    <faq>Currently there are no FAQ items provided.</faq>
	<name>dansguardianurlacl</name>
	<version>1.0</version>
	<title>Services: Dansguardian - Access Lists</title>
	<include_file>/usr/local/pkg/dansguardian.inc</include_file>
	<tabs>
<tab>
			<text>Daemon</text>
			<url>/pkg_edit.php?xml=dansguardian.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>General</text>
			<url>/pkg_edit.php?xml=dansguardian_config.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Limits</text>
			<url>/pkg_edit.php?xml=dansguardian_limits.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Blacklist</text>
			<url>/pkg_edit.php?xml=dansguardian_blacklist.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>ACLs</text>
			<url>/pkg.php?xml=dansguardian_site_acl.xml</url>
			<active/>
		</tab>
		<tab>
			<text>LDAP</text>
			<url>/pkg.php?xml=dansguardian_ldap.xml</url>
		</tab>
		<tab>
			<text>Groups</text>
			<url>/pkg.php?xml=dansguardian_groups.xml</url>
		</tab>
		<tab>
			<text>Users</text>
			<url>/pkg_edit.php?xml=dansguardian_users.xml</url>
		</tab>
		<tab>
			<text>IPs</text>
			<url>/pkg_edit.php?xml=dansguardian_ips.xml</url>
		</tab>
		<tab>
			<text>Report and log</text>
			<url>/pkg_edit.php?xml=dansguardian_log.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Sync</text>
			<url>/pkg_edit.php?xml=dansguardian_sync.xml&amp;id=0</url>
		</tab>
		<tab>
			<text>Help</text>
			<url>/dansguardian_about.php</url>
		</tab>
		<tab>
			<text>Antivirus</text>
			<url>/pkg_edit.php?xml=dansguardian_antivirus_acl.xml&amp;id=0</url>
			<tab_level>2</tab_level>
		</tab>
		<tab>
			<text>Pics</text>
			<url>/pkg.php?xml=dansguardian_pics_acl.xml&amp;id=0</url>
			<tab_level>2</tab_level>
		</tab>
		<tab>
			<text>Phrase Lists</text>
			<url>/pkg.php?xml=dansguardian_phrase_acl.xml</url>
			<tab_level>2</tab_level>
		</tab>
		<tab>
			<text>Site Lists</text>
			<url>/pkg.php?xml=dansguardian_site_acl.xml</url>
			<tab_level>2</tab_level>
		</tab>
		<tab>
			<text>URL Lists</text>
			<url>/pkg.php?xml=dansguardian_url_acl.xml</url>
			<tab_level>2</tab_level>
			<active/>
		</tab>
		<tab>
			<text>Extension Lists</text>
			<url>/pkg.php?xml=dansguardian_file_acl.xml</url>
			<tab_level>2</tab_level>
		</tab>
		<tab>
			<text>Content Lists</text>
			<url>/pkg.php?xml=dansguardian_content_acl.xml</url>
			<tab_level>2</tab_level>
		</tab>
		<tab>
			<text>Header</text>
			<url>/pkg.php?xml=dansguardian_header_acl.xml</url>
			<tab_level>2</tab_level>
		</tab>
		<tab>
			<text>Searche Engine</text>
			<url>/pkg.php?xml=dansguardian_search_acl.xml</url>
			<tab_level>2</tab_level>
		</tab>
</tabs>
<adddeleteeditpagefields>
		<columnitem>
			<fielddescr>Access List Name</fielddescr>
			<fieldname>name</fieldname>
		</columnitem>	
		<columnitem>
			<fielddescr>Access List Description</fielddescr>
			<fieldname>description</fieldname>
		</columnitem>
		<movable>on</movable>
	</adddeleteeditpagefields>
	<fields>
		<field>
			<name>URL Access Lists</name>
			<type>listtopic</type>
		</field>
			<field>
			<fielddescr>Name</fielddescr>
			<fieldname>name</fieldname>
			<description></description>
			<type>input</type>
			<size>25</size>
		</field>
			<field>
			<fielddescr>description</fielddescr>
			<fieldname>description</fieldname>
			<type>input</type>
			<size>80</size>
		</field>
	<field>
			<name>Banned</name>
			<type>listtopic</type>
	</field>
		<field>
			<fielddescr>Enable</fielddescr>
			<fieldname>bannedurl_enabled</fieldname>
			<type>checkbox</type>
			<description></description>
		</field>
		<field>
			<fielddescr>Include</fielddescr>
			<fieldname>banned_includes</fieldname>
			<description><![CDATA[Select Include files to URL phrase filter.]]></description>
	    	<type>select_source</type>
			<source><![CDATA[$config['installedpackages']['dansguardianblacklistsurls']['config']]]></source>
			<source_name>descr</source_name>
			<source_value>file</source_value>
			<multiple/>
			<size>6</size>
		</field>
			<field>
			<fielddescr>Config</fielddescr>
			<fieldname>banned_urllist</fieldname>
			<description><![CDATA[Enter Banned Url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>
			<field>
			<fielddescr>Regexp</fielddescr>
			<fieldname>bannedregexp_urllist</fieldname>
			<description><![CDATA[Enter Banned Regex Url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>

	<field>
			<name>Grey</name>
			<type>listtopic</type>
	</field>
		<field>
			<fielddescr>Enable</fielddescr>
			<fieldname>greyurl_enabled</fieldname>
			<type>checkbox</type>
			<description></description>
		</field>
	<field>
			<fielddescr>Grey</fielddescr>
			<fieldname>grey_urllist</fieldname>
			<description><![CDATA[Enter Gray url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>
	<field>
			<name>Exception</name>
			<type>listtopic</type>
	</field>
		<field>
			<fielddescr>Enable</fielddescr>
			<fieldname>exceptionurl_enabled</fieldname>
			<type>checkbox</type>
			<description></description>
		</field>
			<field>
			<fielddescr>Include</fielddescr>
			<fieldname>exception_includes</fieldname>
			<description><![CDATA[Select Include files to exception url lists.]]></description>
	    	<type>select_source</type>
			<source><![CDATA[$config['installedpackages']['dansguardianwhitelistsurls']['config']]]></source>
			<source_name>descr</source_name>
			<source_value>file</source_value>
			<multiple/>
			<size>5</size>
		</field>
	<field>
			<fielddescr>Config</fielddescr>
			<fieldname>exception_urllist</fieldname>
			<description><![CDATA[Enter exception url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>
	<field>
			<fielddescr>regexp</fielddescr>
			<fieldname>exceptionregexp_urllist</fieldname>
			<description><![CDATA[Enter exception regex url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>
		<field>
			<fielddescr>file</fielddescr>
			<fieldname>exceptionfile_urllist</fieldname>
			<description><![CDATA[Enter exception file url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>
	<field>
			<name>Modify</name>
			<type>listtopic</type>
	</field>
		<field>
			<fielddescr>Enable</fielddescr>
			<fieldname>contenturl_enabled</fieldname>
			<type>checkbox</type>
			<description></description>
		</field>
		<field>
			<fielddescr>config</fielddescr>
			<fieldname>modify_urllist</fieldname>
			<description><![CDATA[Enter Exception url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>
	<field>
			<name>Log</name>
			<type>listtopic</type>
	</field>
		<field>
			<fielddescr>Enable</fielddescr>
			<fieldname>logurl_enabled</fieldname>
			<type>checkbox</type>
			<description></description>
		</field>
		<field>
			<fielddescr>config</fielddescr>
			<fieldname>log_urllist</fieldname>
			<description><![CDATA[Enter log only url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>
		<field>
			<fielddescr>regexp</fielddescr>
			<fieldname>logregexp_urllist</fieldname>
			<description><![CDATA[Enter log only regexp url List for this group.<br>	
								  Leave empty to load dansguardian defaults]]></description>
			<type>textarea</type>
			<cols>80</cols>
			<rows>10</rows>
			<encoding>base64</encoding>
		</field>

		</fields>
	<custom_php_install_command>
		dansguardian_php_install_command();
	</custom_php_install_command>
	<custom_php_deinstall_command>
		dansguardian_php_deinstall_command();
	</custom_php_deinstall_command>
	<custom_php_validation_command>
		dansguardian_validate_input($_POST, $input_errors);
	</custom_php_validation_command>	
	<custom_php_resync_config_command>
		sync_package_dansguardian();
	</custom_php_resync_config_command>	
</packagegui>