projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2f423b
)
Pman/Login.php
author
john
<john@roojs.com>
Thu, 14 Jun 2018 05:46:52 +0000
(13:46 +0800)
committer
john
<john@roojs.com>
Thu, 14 Jun 2018 05:46:52 +0000
(13:46 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
7ed1376
..
b3b29cc
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-539,6
+539,12
@@
class Pman_Login extends Pman
return $_SERVER['REMOTE_ADDR'];
}
+ function getOwnerCompany()
+ {
+ $core_company = DB_DataObject::factory('core_company');
+ $core_company->comptype = 'OWNER';
+ return $core_company->count();
+ }
}