Bug fixes to work with lunarpages
git-svn-id: file:///svn-source/pmgr/branches/hosted_migration_20130215@1023 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -4,22 +4,8 @@
|
|||||||
RewriteRule (.*) webroot/$1 [L]
|
RewriteRule (.*) webroot/$1 [L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Lets deny everyone -- its a clean slate!
|
|
||||||
order deny,allow
|
|
||||||
deny from all
|
|
||||||
|
|
||||||
# Now allow local access
|
|
||||||
# Localhost
|
|
||||||
# allow from 127.0.0
|
|
||||||
# Local subnet
|
|
||||||
# allow from 192.168.7
|
|
||||||
|
|
||||||
# Provide a mechanism for user authentication
|
# Provide a mechanism for user authentication
|
||||||
AuthType Digest
|
AuthType Basic
|
||||||
AuthName "Property Manager"
|
AuthName "Valley Storage"
|
||||||
AuthUserFile "/home/perki2/valley_storage.pmgr.htpasswd"
|
AuthUserFile "/home/perki2/valley_storage.pmgr.htpasswd"
|
||||||
Require valid-user
|
Require valid-user
|
||||||
|
|
||||||
# Instead of satisfy all (too restrictive)
|
|
||||||
# This allows EITHER local domain OR authenticated user
|
|
||||||
satisfy any
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
class AppController extends Controller {
|
class AppController extends Controller {
|
||||||
var $uses = array('Option', 'Permission');
|
var $uses = array('Option', 'Permission');
|
||||||
var $helpers = array('Html', 'Form', 'Javascript', 'Format', 'Time', 'Grid');
|
var $helpers = array('Html', 'Form', 'Javascript', 'Format', 'Time', 'Grid');
|
||||||
var $components = array('DebugKit.Toolbar');
|
//var $components = array('DebugKit.Toolbar');
|
||||||
|
|
||||||
var $sidemenu = array('areas' => array('SITE' => false, 'REPORT' => false, 'CONTROLLER' => false, 'ACTION' => false, 'SANDBOX' => false));
|
var $sidemenu = array('areas' => array('SITE' => false, 'REPORT' => false, 'CONTROLLER' => false, 'ACTION' => false, 'SANDBOX' => false));
|
||||||
var $std_area = 10;
|
var $std_area = 10;
|
||||||
|
|||||||
@@ -7,15 +7,15 @@ class DATABASE_CONFIG {
|
|||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
'login' => 'perki2_pmgruser',
|
'login' => 'perki2_pmgruser',
|
||||||
'password' => 'pmgrauth',
|
'password' => 'pmgrauth',
|
||||||
'database' => 'pmgr',
|
'database' => 'perki2_pmgr',
|
||||||
'prefix' => '',
|
'prefix' => '',
|
||||||
);
|
);
|
||||||
|
|
||||||
function __construct() {
|
function __construct() {
|
||||||
if (devbox())
|
if (devbox())
|
||||||
$this->default['database'] = 'pmgr_dev';
|
$this->default['database'] = 'perki2_pmgr_dev';
|
||||||
if (sandbox())
|
if (sandbox())
|
||||||
$this->default['database'] = 'pmgr_sand';
|
$this->default['database'] = 'perki2_pmgr_sand';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -91,8 +91,8 @@ class UnitSizesController extends AppController {
|
|||||||
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionUnavailable() . ', 1, 0)) AS unavailable';
|
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionUnavailable() . ', 1, 0)) AS unavailable';
|
||||||
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionAvailable() . ', 1, 0)) AS available';
|
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionAvailable() . ', 1, 0)) AS available';
|
||||||
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionOccupied() . ', 1, 0)) AS occupied';
|
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionOccupied() . ', 1, 0)) AS occupied';
|
||||||
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionOccupied() . ', 0, 1)) / COUNT(unit.id) AS vacancy';
|
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionOccupied() . ', 0, 1)) / COUNT(Unit.id) AS vacancy';
|
||||||
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionOccupied() . ', 1, 0)) / COUNT(unit.id) AS occupancy';
|
$fields[] = 'SUM(IF(' . $this->UnitSize->Unit->conditionOccupied() . ', 1, 0)) / COUNT(Unit.id) AS occupancy';
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,3 @@
|
|||||||
abijah:Property Manager:a2369e3cc9e231ea6f02ce799a8b9970
|
abijah:$apr1$UAcTusw6$MNnchaPcc22uE3FFillsf.
|
||||||
anja:Property Manager:4539d5a6e58dd5895f2f3891d29705b0
|
kevin:$apr1$OBob2H/W$cJiPZ2vQMoIxuiOGP9.Tu.
|
||||||
kevin:Property Manager:f01accc9f5e5cdfc028dcf0cca837cf1
|
answerfirst:$apr1$/Ofjdv/n$Bj/f3cxMjpgYS3EtaCTmm1
|
||||||
adam:Property Manager:ae6835569bb2fc0a0a4a773580ac8cda
|
|
||||||
shirley:Property Manager:e7e9d674c700796c99cdbf3cf105e739
|
|
||||||
admin:Property Manager:bab2226685d9b4b66220db8df80f1822
|
|
||||||
dev:Property Manager:e5c27b3c025e47239a45daceea2c0a00
|
|
||||||
vasst:Property Manager:523abc6c2b8458b463d5a9baa4f58f2e
|
|
||||||
answerfirst:Property Manager:6ac128447fab8be985c74ba7539c39b3
|
|
||||||
|
|||||||
Reference in New Issue
Block a user