<?php
    if (!defined("CNCAT_ENGINE")) die();

    // Extended fields
    /* Types:
        1 - int,
        2 - double,
        3 - varchar(255),
        4 - datetime,
        5 - mediumtext,
        6 - mediumblob (not avaliable)
    */

    $CNCAT["config"]["extfields"]["items"] = array(
        /*
        "ext_int1" => array (
            "type" => 1,
            "search" => 0
        ),
        "ext_double1" => array (
            "type" => 2,
            "search" => 0
        ),
        "ext_varchar1" => array (
            "type"=> 3,
            "search"=> 0
        ),
        "ext_datetime1" => array (
            "type" => 4,
            "search" => 0
        )*/
        /*,
        "ext_text1" => array (
            "type" => 5,
            "search" => 0
        ),
        ext_text2" => array (
            "type" => 5,
            "search" => 0
        ),
        "ext_text3" => array (
            "type" => 5,
            "search" => 0
        )*/
    );

    // Sorting orders
    $CNCAT["config"]["sortorders"]["items"] = array (
        /*100 => array (
            "url" => "url", // Part of URL
            "sql" => array ("link_url", "link_url DESC", "") // ORDER BY ...
        )*/
        /*, 
        101 => array (
            "url" => "appdate",
            "sql" => array ("", "", "")
        )*/ 
    );

    $CNCAT["config"]["cncat3"]["seprefix"] = "dir";
    $CNCAT["config"]["cncat3"]["sesortstr"] = "pop,ttl,mdr,pin,pr,cy";
    
    // TinyMCE options
    $CNCAT["config"]["tinymce"] = "
        language : 'ru_utf8',
        mode : 'exact',
        theme : 'advanced',
        convert_urls: false,
        relative_urls: false,
        plugins : 'fullscreen,preview,paste',
        theme_advanced_toolbar_location : 'top',
        theme_advanced_buttons1 : 'bold,italic,underline,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,formatselect',
        theme_advanced_buttons2 : 'cut,copy,paste,pasteword,separator,bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,image,separator,fullscreen,preview,code',
        theme_advanced_buttons3 : 'hr,removeformat,visualaid,separator,sub,sup,separator,charmap',
        skin : 'default'
    ";
?>
