Optimised Service Display, extended SSL module functionality
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
* @copyright (c) 2009-2013 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Database_MySQL extends Kohana_Database_MySQL {
|
||||
class Database_MySQLi extends Kohana_Database_MySQLi {
|
||||
// MySQL uses a backtick for identifiers
|
||||
protected $_identifier = '';
|
||||
}
|
21
application/classes/Database/Query/Builder/Join.php
Normal file
21
application/classes/Database/Query/Builder/Join.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* This class extends Kohana's [Database_Query_Builder_Join] to ensure that we have a site_id in join statements
|
||||
*
|
||||
* @package OSB
|
||||
* @category Helpers
|
||||
* @author Deon George
|
||||
* @copyright (c) 2009-2013 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
|
||||
class Database_Query_Builder_Join extends Kohana_Database_Query_Builder_Join {
|
||||
|
||||
public function compile($db = NULL) {
|
||||
$this->_on[] = array($this->_table.'.site_id','=',Site::id());
|
||||
|
||||
return parent::compile($db);
|
||||
}
|
||||
}
|
||||
?>
|
@@ -50,6 +50,10 @@ class Model_Account extends Model_Auth_UserDefault {
|
||||
return sprintf('%s-%04s',Company::instance()->site(TRUE),$this->id);
|
||||
}
|
||||
|
||||
public function activated() {
|
||||
return $this->has('group');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the groups that an account belongs to
|
||||
*/
|
||||
@@ -135,7 +139,7 @@ class Model_Account extends Model_Auth_UserDefault {
|
||||
if (empty($result[$mmo->id]))
|
||||
$result[$mmo->id] = $mmo;
|
||||
|
||||
Sort::MAsort($result,'module->name,menu_display');
|
||||
Sort::MAsort($result,array('module->name','menu_display'));
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
return array
|
||||
(
|
||||
'default' => array
|
||||
'old' => array
|
||||
(
|
||||
'type' => 'mysql',
|
||||
'connection' => array(
|
||||
@@ -39,5 +39,46 @@ return array
|
||||
'compress' => FALSE,
|
||||
'profiling' => TRUE,
|
||||
),
|
||||
'pdo' => array(
|
||||
'type' => 'PDO',
|
||||
'connection' => array(
|
||||
/**
|
||||
* The following options are available for PDO:
|
||||
*
|
||||
* string dsn Data Source Name
|
||||
* string username database username
|
||||
* string password database password
|
||||
* boolean persistent use persistent connections?
|
||||
*/
|
||||
'dsn' => 'mysql:host=localhost;dbname=database',
|
||||
'username' => 'username',
|
||||
'password' => 'password',
|
||||
'persistent' => FALSE,
|
||||
),
|
||||
/**
|
||||
* The following extra options are available for PDO:
|
||||
*
|
||||
* string identifier set the escaping identifier
|
||||
*/
|
||||
'table_prefix' => 'ab_',
|
||||
'charset' => 'utf8',
|
||||
'caching' => FALSE,
|
||||
),
|
||||
'default' => array(
|
||||
'type' => 'MySQLi',
|
||||
'connection' => array(
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'username',
|
||||
'password' => 'password',
|
||||
'persistent' => FALSE,
|
||||
'database' => 'database',
|
||||
'ssl' => NULL,
|
||||
),
|
||||
'table_prefix' => 'ab_',
|
||||
'charset' => 'utf8',
|
||||
'caching' => FALSE,
|
||||
'compress' => FALSE,
|
||||
'profiling' => TRUE,
|
||||
),
|
||||
);
|
||||
?>
|
||||
|
18
application/config/session.php
Normal file
18
application/config/session.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php defined('SYSPATH') or die('No direct access allowed.');
|
||||
|
||||
/**
|
||||
* OSB Configuration - Session Configuration
|
||||
*
|
||||
* @package OSB
|
||||
* @category Configuration
|
||||
* @author Deon George
|
||||
* @copyright (c) 2010 Open Source Billing
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
|
||||
return array(
|
||||
'native' => array(
|
||||
'name'=>'OSB',
|
||||
),
|
||||
);
|
||||
?>
|
BIN
application/media/guide/img/logo-small.png
Normal file
BIN
application/media/guide/img/logo-small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Reference in New Issue
Block a user