<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>conf.ini_file[ Search for &quot;&quot;]</title>
        <description></description>
        <link>http://xataface.com/wiki/index.php?-action=single_record_search&amp;-table=wiki&amp;page_id=%3D25&amp;-cursor=0&amp;-skip=0&amp;-limit=30&amp;-mode=list&amp;--subsearch=</link>
        <lastBuildDate>Wed, 22 May 2013 13:41:58 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>conf.ini_file</title>
            <link>http://www.xataface.com/wiki/conf.ini_file</link>
            <description>&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Field&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page name&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;conf.ini_file&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page id&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;25&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page title&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;conf.ini_file&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Content&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;
&lt;h2 id=&quot;toc0&quot;&gt;conf.ini File&lt;/h2&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;
&lt;div id=&quot;toc&quot;&gt;&lt;strong&gt;Table of Contents&lt;/strong&gt;
	&lt;div style=&quot;margin-left: 0em;&quot;&gt;&lt;a href=&quot;#toc0&quot;&gt;conf.ini File&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc1&quot;&gt;Stand-alone Attributes&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc2&quot;&gt;Example 1: A simple conf.ini file&lt;/a&gt;&lt;/div&gt;
	&lt;div style=&quot;margin-left: 1em;&quot;&gt;&lt;a href=&quot;#toc3&quot;&gt;Example 2: A more complex conf.ini file&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;p&gt;The conf.ini file is where most of the application-level configuration information is stored for a Xataface application.  It contains information such as:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt; database connection information&lt;/li&gt;
    &lt;li&gt; which tables should appear in the tables menu.&lt;/li&gt;
    &lt;li&gt; &lt;a href=&quot;/wiki/preferences&quot;&gt;preference settings&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt; &lt;a href=&quot;/wiki/authentication&quot;&gt;authentication&lt;/a&gt; settings&lt;/li&gt;
    &lt;li&gt; which add-on &lt;a href=&quot;/wiki/modules&quot;&gt;modules&lt;/a&gt; are to be used&lt;/li&gt;
    &lt;li&gt; output caching settings&lt;/li&gt;
    &lt;li&gt; history/undo settings&lt;/li&gt;
    &lt;li&gt; other misc settings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every conf.ini file must contain at least the following sections:&lt;/p&gt;



&lt;table class=&quot;listing listing2&quot;&gt;
    &lt;tr&gt;
        &lt;th&gt; Name&lt;/th&gt;
        &lt;th&gt; Description&lt;/th&gt;
        &lt;th&gt; Version&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; _database&lt;/td&gt;
        &lt;td&gt; Contains database connection info.&lt;/td&gt;
        &lt;td&gt; all&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; _tables&lt;/td&gt;
        &lt;td&gt; Contains a list of tables that are to be included in the navigation menu of the application.&lt;/td&gt;
        &lt;td&gt; all&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;The following optional sections may also be included:&lt;/p&gt;



&lt;table class=&quot;listing listing2&quot;&gt;
    &lt;tr&gt;
        &lt;th&gt; Name&lt;/th&gt;
        &lt;th&gt; Description&lt;/th&gt;
        &lt;th&gt; Version&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; &lt;a href=&quot;http://xataface.com/documentation/how-to/disallow_tables&quot; onclick=&quot;window.open(this.href, '_blank'); return false;&quot;&gt;_allowed_tables&lt;/a&gt;&lt;/td&gt;
        &lt;td&gt; Specifies tables that should be explicitly allowed to override disallowed tables listed or matched in the &lt;a href=&quot;http://xataface.com/documentation/how-to/disallow_tables&quot; onclick=&quot;window.open(this.href, '_blank'); return false;&quot;&gt;_disallowed_tables&lt;/a&gt; section.&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; &lt;a href=&quot;/wiki/_auth&quot;&gt;_auth&lt;/a&gt;&lt;/td&gt;
        &lt;td&gt; Contains information about &lt;a href=&quot;/wiki/authentication&quot;&gt;authentication&lt;/a&gt;.&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; &lt;a href=&quot;http://xataface.com/documentation/how-to/disallow_tables&quot; onclick=&quot;window.open(this.href, '_blank'); return false;&quot;&gt;_disallowed_tables&lt;/a&gt;&lt;/td&gt;
        &lt;td&gt; A list of tables or patterns that match tables that should be blocked from being accessed directly through the application.  By default any table beginning with an underscore, 'dataface_', or ending in '__history' are blocked.  This prevents unintended access to some of the automatically created tables in Xataface.&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; _feed&lt;/td&gt;
        &lt;td&gt; Configuration options for &lt;a href=&quot;/wiki/Introduction_to_RSS_Feeds_in_Xataface&quot;&gt;RSS feeds&lt;/a&gt; that are generated by the application.&lt;/td&gt;
        &lt;td&gt; 1.0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; _history&lt;/td&gt;
        &lt;td&gt; Settings pertaining to the &lt;a href=&quot;http://xataface.com/documentation/how-to/history-howto&quot; onclick=&quot;window.open(this.href, '_blank'); return false;&quot;&gt;history feature&lt;/a&gt; (e.g. whether it has been enabled).&lt;/td&gt;
        &lt;td&gt; 0.7&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; _index&lt;/td&gt;
        &lt;td&gt; Settings for the full site search indexing.&lt;/td&gt;
        &lt;td&gt; 1.0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; _modules&lt;/td&gt;
        &lt;td&gt; A list of &lt;a href=&quot;/wiki/modules&quot;&gt;modules&lt;/a&gt; that are enabled for this application.&lt;/td&gt;
        &lt;td&gt; 1.0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; &lt;a href=&quot;/wiki/_output_cache&quot;&gt;_output_cache&lt;/a&gt;&lt;/td&gt;
        &lt;td&gt; Output cache settings.  Using output caching can dramatically improve performance for busier sites.&lt;/td&gt;
        &lt;td&gt; 0.8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; _themes&lt;/td&gt;
        &lt;td&gt; A list of the themes that are to be applied to the application.&lt;/td&gt;
        &lt;td&gt; 0.8&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;


&lt;h3 id=&quot;toc1&quot;&gt;Stand-alone Attributes&lt;/h3&gt;
&lt;p&gt;Stand-alone attributes for an INI file must appear at the beginning of the INI file (before any of the sections).  The conf.ini may contain the following stand-alone attributes.&lt;/p&gt;



&lt;table class=&quot;listing listing2&quot;&gt;
    &lt;tr&gt;
        &lt;th&gt; Name&lt;/th&gt;
        &lt;th&gt; Description&lt;/th&gt;
        &lt;th&gt; Values&lt;/th&gt;
        &lt;th&gt; Version&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; cache_queries&lt;/td&gt;
        &lt;td&gt; Enables query caching.  Enabling this feature can yield drastic performance improvements especially on busy sites with large databases.&lt;/td&gt;
        &lt;td&gt; boolean (0 or 1)&lt;/td&gt;
        &lt;td&gt; 1.2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; cache_queries_log&lt;/td&gt;
        &lt;td&gt; Enables logging of query caching to the file /tmp/querylog.log so that you can tell whether your queries are being cached, and which ones are being cached.&lt;/td&gt;
        &lt;td&gt; boolean (0 or 1)&lt;/td&gt;
        &lt;td&gt; 1.2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; default_action&lt;/td&gt;
        &lt;td&gt; The default action to be performed if it is not explicitly specified in the query (e.g. 'list', 'find', 'edit').  Default is 'list'.&lt;/td&gt;
        &lt;td&gt; string&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; debug&lt;/td&gt;
        &lt;td&gt; If this is set to 1, then the application will run in debug mode which displays the available slots and blocks on the screen, along with some other debug information.&lt;/td&gt;
        &lt;td&gt; 0 or 1 (default is 0)&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; default_browse_action&lt;/td&gt;
        &lt;td&gt; The default action to perform in the details tab.  E.g. When you click on the &amp;quot;details&amp;quot; tab there are a number of sub-tabs including 'view', 'edit', etc... .   The default value for this directive is 'view'.  If you want to go directly to the edit form when clicking on a record in list view, you would set &lt;em&gt;default_browse_action&lt;/em&gt; to 'edit'.&lt;/td&gt;
        &lt;td&gt; string&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; default_language&lt;/td&gt;
        &lt;td&gt; The default language to use.  This is the 2-digit ISO language code.  If this value is not specified it defaults to the first language listed in the &lt;em&gt;[languages]&lt;/em&gt; section.&lt;/td&gt;
        &lt;td&gt; string (2-digit ISO language code)&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; default_limit&lt;/td&gt;
        &lt;td&gt; The default limit (i.e. the number of records to show per page) if none is explicitly specified in the query.  Default is 30.&lt;/td&gt;
        &lt;td&gt; int&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; default_table&lt;/td&gt;
        &lt;td&gt; The default table to show if none is specified by the query.  If you do not define this value, then the first table in the &lt;em&gt;[_tables]&lt;/em&gt; section is used.&lt;/td&gt;
        &lt;td&gt; string&lt;/td&gt;
        &lt;td&gt;0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; disable_session_ip_check&lt;/td&gt;
        &lt;td&gt; Default behaviour automatically tracks the IP address of the user when they log in.  If a request is made for a session from a different IP then the session is automatically destroyed and the user is logged out.&lt;/td&gt;
        &lt;td&gt; boolean&lt;/td&gt;
        &lt;td&gt; 1.3rc4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; title&lt;/td&gt;
        &lt;td&gt; A title for the application (appears in the browser title bar).&lt;/td&gt;
        &lt;td&gt; string&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; usage_mode&lt;/td&gt;
        &lt;td&gt; The usage mode of the application.  If this value is set to &lt;em&gt;edit&lt;/em&gt;, then ajax inline editing is enabled (i.e. you can click on any value in the application to edit it inline.&lt;/td&gt;
        &lt;td&gt; 'view' or 'edit'&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;


&lt;h3 id=&quot;toc2&quot;&gt;Example 1: A simple conf.ini file&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;[_database]
    host=&amp;quot;localhost&amp;quot;
    name=&amp;quot;mydb&amp;quot;
    user=&amp;quot;mydbuser&amp;quot;
    password=&amp;quot;foo&amp;quot;
    
[_tables]
webpage_sites=&amp;quot;Websites&amp;quot;
translations = &amp;quot;Translations&amp;quot;
packages=&amp;quot;Packages&amp;quot;
users=Users
proof_jobs=&amp;quot;Jobs&amp;quot;
webpage_status=&amp;quot;Webpages Status&amp;quot;
&lt;/code&gt;&lt;/pre&gt;


&lt;h3 id=&quot;toc3&quot;&gt;Example 2: A more complex conf.ini file&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;;debug=1
;default_action=home
;google_translate_url=&amp;quot;http://weblite-dns2.com/proxy.php&amp;quot;
google_translate_url=&amp;quot;http://ec2-75-101-244-123.compute-1.amazonaws.com/proxy.php&amp;quot;
title=&amp;quot;Web Lite Translate&amp;quot;
default_price_per_word=0.15

;;Configuration settings for application
title=&amp;quot;translation_weblite_ca&amp;quot;
scriptUrl=&amp;quot;http://translation.weblite.ca/index.php&amp;quot;
multilingual_content=1

[_database]
    host=&amp;quot;localhost&amp;quot;
    name=&amp;quot;mydb&amp;quot;
    user=&amp;quot;mydbuser&amp;quot;
    password=&amp;quot;foo&amp;quot;
    
[_tables]
    webpage_sites=&amp;quot;Websites&amp;quot;
    translations = &amp;quot;Translations&amp;quot;
    packages=&amp;quot;Packages&amp;quot;
    users=Users
    proof_jobs=&amp;quot;Jobs&amp;quot;
    webpage_status=&amp;quot;Webpages Status&amp;quot;

[_auth]
    users_table=users
    username_column=username
    password_column=password
    secret_code=&amp;quot;ljkasdfjkldsafliasdoiudsfoi&amp;quot;
    allow_register=1
    session_timeout=999999999
    
[_modules]
    modules_ShoppingCart=&amp;quot;modules/ShoppingCart/ShoppingCart.php&amp;quot;

[ShoppingCart_taxes]
    ;; This section is necessary to declare that we have NO taxes.
    
[metatags]
    keywords = &amp;quot;translation, translate&amp;quot;
    description = &amp;quot;Good translation service&amp;quot;
    
;[_output_cache]
;    enabled=1

[_mail]
    func=mail2
    &lt;/code&gt;&lt;/pre&gt;

&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Language&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;en&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description>
            <author>conf.ini_file</author>
        </item>
    </channel>
</rss>
