示例#1
0
 function __construct()
 {
     $vars = new config_vars();
     $vars->load_vars('assets/cfg/ticket.cfg');
     $this->archivo = $vars->cfg['path_tmp'] . 'qrcode.png';
     $this->errorCorrectionLevel = $vars->var['ticket']['qrcode_error_correction_level'];
     #'L','M','Q','H'
     $this->matrixPointSize = $vars->var['ticket']['qrcode_point_size'];
     # 1-10
     $this->margin = $vars->var['ticket']['qrcode_margin'];
 }
示例#2
0
 function __construct()
 {
     $this->ci =& get_instance();
     $vars = new config_vars();
     $vars->load_vars('assets/cfg/email.cfg');
     $this->email_onoff = $vars->var['email']['email_onoff'] ? true : false;
     $this->success = false;
     $this->cuenta = !$vars->var['email']['email_cuenta'] ? 1 : $vars->var['email']['email_cuenta'];
     $this->Host = $vars->var['email']['email_' . $this->cuenta . '_host'];
     $this->email_address = $vars->var['email']['email_' . $this->cuenta . '_address'];
     $this->Username = $vars->var['email']['email_' . $this->cuenta . '_user'];
     $this->Password = $vars->var['email']['email_' . $this->cuenta . '_pass'];
     $this->Port = $vars->var['email']['email_port'];
     $this->SMTPSecure = $vars->var['email']['email_stmp_secure'];
     $this->SMTPAuth = $vars->var['email']['email_stmp_auth'];
     $this->email_name = $vars->var['email']['email_name'];
     $this->email_bcc_onoff = $vars->var['email']['email_bcc_onoff'] ? true : false;
     $this->email_bcc = $vars->var['email']['email_bcc'];
     $this->email_debug = !$vars->var['email']['email_debug'] ? 0 : $vars->var['email']['email_debug'];
 }
示例#3
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
require_once APPPATH . 'libraries/config_vars.php';
$vars = new config_vars();
$vars->load_vars('assets/cfg/db.cfg');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
|	['hostname'] The hostname of your database server.
|	['username'] The username used to connect to the database
|	['password'] The password used to connect to the database
|	['database'] The name of the database you want to connect to
|	['dbdriver'] The database type. ie: mysql.  Currently supported:
				 mysql, mysqli, postgre, odbc, mssql, sqlite, oci8
|	['dbprefix'] You can add an optional prefix, which will be added
|				 to the table name when using the  Active Record class
|	['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|	['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
示例#4
0
<?php

if (!defined('BASEPATH')) {
    exit('No direct script access allowed');
}
require_once APPPATH . 'libraries/config_vars.php';
$vars = new config_vars();
$vars->load_vars('assets/cfg/codeigniter.cfg');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
|	http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
// $config['base_url']	= 'http://localhost/pae/admincontrol.new/adminventasadmin/';
$config['base_url'] = $vars->cfg['base_url'] ? $vars->cfg['base_url'] : 'http://localhost/';
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this