ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/geniusgroove.in/crm/application/config/
Upload File :
Current File : //proc/self/root/home2/selectio/www/geniusgroove.in/crm/application/config/database.php

<?php defined('BASEPATH') or exit('No direct script access allowed');

$query_builder = true;

$db['default'] = array(
    'dsn'          => '',
    'hostname' => 'localhost',
    'username' => 'selectio_ggcrm',
    'password' => 'selectio_ggcrm',
    'database' => 'selectio_ggcrm',
    'dbdriver'     => 'mysqli',
    'dbprefix'     => '',
    'pconnect'     => false,
    'db_debug'     => (ENVIRONMENT !== 'production'),
    'cache_on'     => false,
    'cachedir'     => '',
    'char_set'     => 'utf8',
    'dbcollat'     => 'utf8_general_ci',
    'swap_pre'     => '',
    'encrypt'      => false,
    'compress'     => false,
    'stricton'     => false,
    'failover'     => array(),
    'save_queries' => true,
    'multi_branch' => false,
);

$active_group = 'default';

$mydb   = $db['default'];
$mysqli = new mysqli($mydb['hostname'], $mydb["username"], $mydb["password"], $mydb["database"]);

if ($mysqli->connect_errno) {
    printf("connection failed: %s\n", $mysqli->connect_error());
    exit();
}

if ($results = $mysqli->query("SHOW TABLES LIKE 'multi_branch'")) {
    if ($results->num_rows == 1) {

        if ($result = $mysqli->query("SELECT * FROM multi_branch where is_verified =1")) {
            while ($row = $result->fetch_assoc()) {
                $short_name                      = "branch_" . $row['id'];
                $db[$short_name]['hostname']     = $row['hostname'];
                $db[$short_name]['username']     = $row['username'];
                $db[$short_name]['password']     = $row['password'];
                $db[$short_name]['database']     = $row['database_name'];
                $db[$short_name]['dbdriver']     = 'mysqli';
                $db[$short_name]['dbprefix']     = '';
                $db[$short_name]['pconnect']     = false;
                $db[$short_name]['db_debug']     = false;
                $db[$short_name]['cache_on']     = false;
                $db[$short_name]['cachedir']     = '';
                $db[$short_name]['char_set']     = 'utf8';
                $db[$short_name]['dbcollat']     = 'utf8_general_ci';
                $db[$short_name]['swap_pre']     = '';
                $db[$short_name]['autoinit']     = false;
                $db[$short_name]['stricton']     = false;
                $db[$short_name]['multi_branch'] = true;

            }
        }
    }
}

$mysqli->close();

Zerion Mini Shell 1.0