<?php

    // Core
    $_config['core'] = array(
        // Strefa czasowa
        'time_zone' => 'Europe/Berlin',
        'time_format' => 'Y-m-d H:i:s',
        'time_format_js' => 'dd.mm.yyyy HH:MM:ss',
        // Token do hashowania haseł - NIE ZMIENIAĆ
        'token' => 'ed537d9745c7d90b03788229a546ac4b',
        // Kod google analytics np UA-107300285-1
        'google_analytics' => '',
        // Include files after autoload libs
        // :DIR_LIBS: , :DIR_CLASS: , :DIR_MODULE:
        'core_include_files' => array(
        ),
        // Autoload libs
        'autoload' => array(
            // 1 - Dynamic
            // 2 - Static
            'mode' => 1,
            // Dynamic rules
            'dynamic' => array(
                'autoload.php',
                'Autoloader.php',
                'autoloader.php'
            ),
            // include DIR_LIBS . static_autoloader_file.php
            'static' => array(

                ( 'Smarty' . _SEP_ . 'Smarty.class.php' )
            )
        )
    );

    $_config['db'] = array(
        'host' => 'localhost',
        'user' => 'spine_decy',
        'pass' => 'kinwodyced18*',
        'base' => 'spine_decydownik',
        'charset' => 'UTF8'
    );


        
    $_config['web'] = array(
        'dir' => '',
        'domain' => $_SERVER['HTTP_HOST'],
        // true -  wymusza przekierowanie na https
        'ssl_force' => false
    );
    
    $_config['admin'] = array(
        'dir' => 'admin',
        'panel' => 'controlpanel.php'
    );

    // Stronicowanie
    $_config['str'] = array(
        'str_default_insite' => 10,
        'str_default_anomaly' => 5
    );    
    
    // Moduły
    $_config['module'] = array(
        'default' => 'home',
        'default_function' => 'default'
    );

    // PHP Mailer
    $_config['mailer'] = array(
        'email' => 'algorism@interia.pl',
        'username' => 'algorism.mailer@gmail.com',
        'password' => 'TT#E@W!Q',
        'port' => '587',
        'host' => 'smtp.gmail.com'
    );
    
    // SEO
    $_config['seo'] = array(
        'name' => 'Decydownik',
        'title' => array(
            'default' => 'Decydownik'
        ),
        'meta' => array(
            'default' => array(
                'description' => '',
                // Podglad strony/Zrzut lub logo
                'image' => '',
                'twitter:card' => 'summary',
                'twitter:title' => '',
                'twitter:description' => '',
                // Podgląd j.w
                'twitter:image:src' => '',
                'og:title' => '',
                'og:description' => '',
                // Logo
                'og:image' => '',
                'og:site_name' => '',
                'og:locale' => 'en_en',
                'og:type' => 'website'
            )
        ),
        'itemprop' => array(
            'default' => array(
                'name' => 'Decydownik',
                'description' => 'website description',
                'image' => ''
            )
        )
    );

    class _cfg{
        public static $i;
        public function __construct(){
            self::$i = $this;
        }

    }
    
    _cfg::$i = json_decode( json_encode( $_config ) , FALSE );
    $_cfg = _cfg::$i;
    

?>
