Pman/Login.php
authorjohn <john@roojs.com>
Thu, 14 Jun 2018 05:46:52 +0000 (13:46 +0800)
committerjohn <john@roojs.com>
Thu, 14 Jun 2018 05:46:52 +0000 (13:46 +0800)
Pman/Login.php

index 7ed1376..b3b29cc 100644 (file)
@@ -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();
+    }
     
 }