OSB enhancements to date
This commit is contained in:
2
application/config/.htaccess
Normal file
2
application/config/.htaccess
Normal file
@@ -0,0 +1,2 @@
|
||||
order allow,deny
|
||||
deny from all
|
19
application/config/auth.php
Normal file
19
application/config/auth.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* OSB authentication configuration
|
||||
*
|
||||
* @package OSB
|
||||
* @category Configuration
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
return array(
|
||||
'driver' => 'OSB',
|
||||
'hash_method' => 'md5',
|
||||
'salt_pattern' => null,
|
||||
'lifetime' => 1209600,
|
||||
'session_key' => 'auth_user',
|
||||
);
|
||||
?>
|
10
application/config/cache.php
Normal file
10
application/config/cache.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
return array
|
||||
(
|
||||
'file' => array
|
||||
(
|
||||
'driver' => 'file',
|
||||
'cache_dir' => '/dev/shm/osb',
|
||||
'default_expire' => 3600,
|
||||
)
|
||||
);
|
37
application/config/config.php
Normal file
37
application/config/config.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* OSB system default configurable items.
|
||||
*
|
||||
* @package OSB
|
||||
* @category Configuration
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
return array(
|
||||
'cache_type' => 'file',
|
||||
'date_format' => 'd-M-Y',
|
||||
'email_admin_only'=> array(
|
||||
'adsl_traffic_notice'=>array('deon@c5t61p.leenooks.vpn'=>'Deon George'),
|
||||
),
|
||||
'method_directory'=> array( // Out method paths for the different functions
|
||||
'admin',
|
||||
'affiliate',
|
||||
'reseller',
|
||||
'task',
|
||||
'user',
|
||||
),
|
||||
'method_security' => TRUE, // Enables Method Security. Setting to false means any method can be run without authentication
|
||||
'site' => array(
|
||||
'172.31.9.4'=>1,
|
||||
'www.graytech.net.au'=>1,
|
||||
),
|
||||
'site_debug' => FALSE,
|
||||
'site_mode' => array(
|
||||
'172.31.10.200'=>Kohana::DEVELOPMENT,
|
||||
'www.graytech.net.au'=>Kohana::PRODUCTION,
|
||||
),
|
||||
'site_name' => 'Graytech Hosting Pty Ltd', // @todo This should come from the DB
|
||||
);
|
||||
?>
|
30
application/config/database.php
Normal file
30
application/config/database.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* OSB Database configuration
|
||||
*
|
||||
* @package OSB
|
||||
* @category Configuration
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
return array
|
||||
(
|
||||
'default' => array
|
||||
(
|
||||
'type' => 'mysql',
|
||||
'connection' => array(
|
||||
'hostname' => 'mysql.leenooks.vpn',
|
||||
'username' => 'gh-webbill',
|
||||
'password' => 'ws0593',
|
||||
'persistent' => FALSE,
|
||||
'database' => 'webghosb',
|
||||
),
|
||||
'table_prefix' => 'ab_',
|
||||
'charset' => 'utf8',
|
||||
'caching' => FALSE,
|
||||
'profiling' => TRUE,
|
||||
),
|
||||
);
|
||||
?>
|
Reference in New Issue
Block a user