<?xml version="1.0" encoding="utf-8" ?>
<config>

    <constants>
        <!-- change http:// to http(s):// if you want to use a mixed https/http environment -->
        <constant name="BX_WEBROOT">http://{$_SERVER['HTTP_HOST']}/##DIR##</constant>
        <constant name="BX_PROJECT_DIR">auto</constant>
        <!-- <constant name="BX_OPEN_BASEDIR">{BX_PROJECT_DIR}_hosts/{BX_STAGE}/</constant>-->
        <constant name="BX_OPEN_BASEDIR">{BX_PROJECT_DIR}</constant>
    </constants>
<!-- set cacheDBOptions to false, if you don't want to write the options from the DB to
        tmp/config.inc.php.post (needed, when you serve more than one site from the 
        same config file... -->
    <options cacheDBOptions="true">

    
    <theme allowFromDB="true">3-cols-2008</theme>
    <themeCss allowFromDB="true">main.css</themeCss>
    <sitename allowFromDB="true">Flux CMS Demo</sitename>
    <sitedescription allowFromDB="true">This is my Flux CMS Site</sitedescription>
    
    <!-- Versioing Support -->
    <!-- <versioning>diff</versioning> -->
	<!-- The Blog can have a different name than the site, if not set, sitename is taken -->     
    <blogname allowFromDB="true"></blogname>
    <!-- you can have a description for the Blog RSS , if not set sitedescription is taken -->        
    <blogdescription allowFromDB="true"></blogdescription>        

    <!--
           Which Comment_mode in the blog plugin should be default for new blog posts
           
           1 = Allow comments for 1 month
           2 = Always allow comments
           3 = No comments allowed 
     -->           
    <blogDefaultPostCommentMode allowFromDB="true">1</blogDefaultPostCommentMode>
    <blogCaptchaAfterDays allowFromDB="true">-1</blogCaptchaAfterDays>
    <blogCaptchaFontPath allowFromDB="true">inc/bx/helpers/captcha/</blogCaptchaFontPath>
    <blogCaptchaFontFile allowFromDB="true">Courier_New.ttf</blogCaptchaFontFile>
    
    <!-- even if comments are allowed, only allow trackbacks for a month -->
    <blogTrackbacksTimeLimit>true</blogTrackbacksTimeLimit>
    
    <!-- Only admin with gid = 1 can edit all blogposts. 
         Admins with gid > 1 can only edit their own blogposts.
         Requires SimplePerm activated.
     -->
     <blogEditOwnOnly>0</blogEditOwnOnly>        
        
    <openIdEnabled allowFromDB="true">false</openIdEnabled>
    
    <!-- If you want to get mail notification when a comment is rejected by the Flux CMS
            comment spam detection, set this to true. Moderated and approved comments
           are still sent.

    --> 
    <blogSendRejectedCommentNotification allowFromDB="true">false</blogSendRejectedCommentNotification>
    <blogSendModeratedCommentNotification allowFromDB="true">true</blogSendModeratedCommentNotification>
            
    <!-- Whether to regard post expiration dates -->
    <blogPostsExpireCatAllOnly allowFromDB="true">false</blogPostsExpireCatAllOnly>
    <blogPostsCheckExpiry>true</blogPostsCheckExpiry>
    
    <!-- your timezone in seconds (eg. 3600), servertime == timezone from server -->
    <timezoneSeconds allowFromDB="true">servertime</timezoneSeconds>
    <!-- your timezone in letters (eg. CET), servertime == timezone from server -->
    <timezoneString allowFromDB="true">servertime</timezoneString>

    <defaultLanguage allowFromDB="true">en</defaultLanguage>
 
    <outputLanguages allowFromDB="true">
         <item>de</item>
         <item>en</item>
    </outputLanguages>


        
    <image_allowed_sizes allowFromDB="true"  mergeArray="true">
	        <!-- 60 is needed for the kupu drawer -->
            <item>60</item>
            
            <!-- these two are needed for dbforms2 -->
            <item>0,30,scale</item>
            <item>200</item>

            <item>100</item>
            <item>370</item>
            <item>430</item>
            <item>480</item>
    </image_allowed_sizes>

	<!-- 
    defines, which php functions are allowed to be called from xslt within
    the templates.
    
    if you want to allow for example just the function print and echo write 
    
    <xslt_allowed_phpfunctions>
        <item>print</item>
        <item>echo</item>
    </xslt_allowed_phpfunctions>
    
    __all__ means everything is allowed
    -->
    <xslt_allowed_phpfunctions>__all__</xslt_allowed_phpfunctions>     
    
    <!--
        If db should be updated automatically, if there are any changes, set this to true
        It may break your webpage, if the db update doesn't work properly...
        But the dbupdate only happens after you updated the installation
        
        If you want to do it manually, log in as admin and go to 
        /admin/webinc/update/
        does the same as the autoupdater.
     -->
    <autodbupdate>false</autodbupdate>
    
    <!-- if you don't have imagemagick installed (command line, not the extension), can't accessed
      or prefer gd2, then set the following to true.
      
      It's not tested for all the features of inc/bx/php/ResizeImage.php, but for the general case of
       resizing to a certain size, it works.
    -->
    
    <useGD>true</useGD>
    
    <!-- 
        unccomment the following if want versioning.
        defines versioning driver.
        yet only svn available 
        (requires svn extension from pecl http://pecl.php.net/package/svn)
    -->
    <!-- <versioning>svn</versioning> -->
    
    <!-- set this to true, if you want to allow uploading php files in the admin
    -->
       <allowPHPUpload>false</allowPHPUpload>
       
       <adminDeleteTmp>true</adminDeleteTmp>
        
       <noOutsideConnections>false</noOutsideConnections>
       <allowHTTPAuthentication>true</allowHTTPAuthentication>
        
       <!-- if you want to log all Mails sent by the CMS, set this to true 
           you can find the logfile in data/mail.log
           
       -->
        <logMails>false</logMails>
    </options>
    
    <connections>
        <db type="dsn">
            <phptype>##dbtype##</phptype>
            <username>##dbuser##</username>
            <password>##dbpass##</password>
            <hostspec>##dbhost##</hostspec>
            <database>##dbdatabase##</database>
            <tableprefix>##dbprefix##</tableprefix>
        </db>
        
        <!-- If you want to write to a different db server than to read (eg, if you're using
                the MySQL Replication feature), define that here.
                
         -->
        <!--    
         <db type="dsnwrite">
            <phptype>mysql</phptype>
            <username>remoteuser</username>
            <password>password</password>
            <hostspec>remote.server.example.org</hostspec>
            <database>##dbdatabase##</database>
            <tableprefix>##dbprefix##</tableprefix>
        </db>
        -->
        
        
        <!--
            Uncomment this, if you want to use the simple perm module
            
            - set auth_overwriteDbFields to 'true', if the authmodule shouldn't
              automatically append its own needed dbfields
            - set auth_prependTablePrefix to 'false', if the authmodule shouldn'tt
              automatically prepend the global table Prefix
            -->
        <!--
        <permm type="permm">
        
            <authModule>
                <type>pearauth</type>
                
                <auth_table>users</auth_table>
                <auth_prependTablePrefix>true</auth_prependTablePrefix>
                
                
                <auth_usernamecol>user_login</auth_usernamecol>
                <auth_passwordcol>user_pass</auth_passwordcol>
                
                <auth_dbfields></auth_dbfields>
                <auth_overwriteDbfields>false</auth_overwriteDbfields>
                
                <cryptType>md5</cryptType>
                <dsn copy="auth_dsn"/>
            </authModule>
            <permModule>
                 <type>simple</type>
            </permModule>
        </permm>
           -->
           
       <!--
        uncomment this, if you want be able to access the cms via webdav.
        
        do not forget to adjust the permModule as well, if you use another
        one than the default.
        -->
        
        <!--
           <permm type="permm_http">
        
            <authModule>
                <type>http</type>
                <auth_table>users</auth_table>
                <auth_usernamecol>user_login</auth_usernamecol>
                <auth_passwordcol>user_pass</auth_passwordcol>
                 <auth_dbfields>user_gid</auth_dbfields>
                <cryptType>md5</cryptType>
                <dsn copy="auth_dsn"/>
            </authModule>
            <permModule>
                 <type>true</type>
            </permModule>
            </permm>
          -->

        
    </connections>
    <!-- how you want to be notificated 
    currently only one transport globally can be assigned
    
    -->
    
    <notifications default="mail">
        <transport>mail</transport>
    </notifications>
    
    <streams>
        <stream>portlet</stream>
    </streams>

    <!--
    If you want the memcached based cache (highly recommended for 
       traffic sites, uncomment the following
    -->   
    
    <!--
    <cache driver="memcache">
        <option>
            <server>localhost</server>
            <port>11211</port>
            <per>true</per>
            <weight>1</weight>
            <timeout>1</timeout>
            <retry>15</retry>
        </option>
    </cache>    
    -->
    
    <files>
    
    <!-- conf/include.php is currently used for cache control. Uncomment the following, if you want to use that.
        And also adjust conf/include.php        
        You can also add your own php files here, which should be included on every request...
        -->
        
        <include>{BX_PROJECT_DIR}conf/include.php</include>
        
    </files>
   
    <!-- for staging in 2.0 
    <staging>
        <stage>live</stage>
        <stage>edit</stage>
   </staging>
    -->
   
</config>
