OSB enhancements to date

This commit is contained in:
Deon George
2010-11-30 09:41:08 +11:00
parent 8715a2059b
commit ec6a542bc3
478 changed files with 23423 additions and 9309 deletions

View File

@@ -0,0 +1,2 @@
order allow,deny
deny from all

View 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',
);
?>

View 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,
)
);

View 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
);
?>

View 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,
),
);
?>