CHips L MINI SHELL

CHips L pro

Current Path : /opt/cpanel/ea-php56/root/usr/share/doc/pear/Translation2/docs/examples/
Upload File :
Current File : //opt/cpanel/ea-php56/root/usr/share/doc/pear/Translation2/docs/examples/settings.php

<?php
/****************************************************
 * helper methods:
 * debug(), writeTitle(), writeValue() and getValue()
 ****************************************************/
function debug($str='')
{
    echo '<pre><div style="background-color: #ccffcc; border: 1px solid red; padding-left: 4px;">';
    print_r($str);
    echo '</div></pre>';
}
function writeTitle($str='')
{
    echo '<br /> <h2 style="padding: 5px; background-color: #ccccff; border: 1px solid black;">'.$str.'</h2>';
}
function writeValue($desc='', $var)
{
    echo '<div style="background-color: #f8f8f8; border: 1px solid #ccc; margin: 4px; padding: 4px;">'. $desc .' = ';
    var_dump($var);
    echo '</div>';
}
function getValue($var, $color='red')
{
    if (is_null($var)) {
        $str = 'NULL';
    } elseif (empty($var)) {
        $str = 'EMPTY';
    } else {
        $str = $var;
    }
    return '<span style="background-color: '.$color.'; color: white; border: 1px solid black;">'.$str.'</span>';
}

define('TABLE_PREFIX', 'mytable_');

$dbinfo = array(
    'hostspec' => 'host',
    'database' => 'dbname',
    'phptype'  => 'mysql',
    'username' => 'user',
    'password' => 'pwd'
);

$params = array(
    'langs_avail_table' => TABLE_PREFIX.'langs_avail',
    'lang_id_col'       => 'id',
    'lang_name_col'     => 'name',
    'lang_meta_col'     => 'meta',
    'lang_errmsg_col'   => 'error_text',
    'lang_encoding_col' => 'encoding',
    /*
    'strings_tables'  => array(
                            'en' => TABLE_PREFIX.'i18n',
                            'it' => TABLE_PREFIX.'i18n',
                            'de' => TABLE_PREFIX.'i18n',
                         ),
    */
    'strings_default_table' => TABLE_PREFIX.'i18n',  //if you only use one table for all langs, set it here
    'string_id_col'         => 'id',
    'string_page_id_col'    => 'page_id',
    'string_text_col'       => '%s',
    //'prefetch' => false  //more queries, smaller result sets
                           //(use when db load is cheaper than network load)
);

$driver = 'MDB2';

$cache_options = array(
    'cacheDir' => 'cache/', //default is /tmp/
    'lifeTime' => 3600*24,  //default is 3600 (1 minute)
);

Copyright 2K16 - 2K18 Indonesian Hacker Rulez