// ---------------- authentication / passwords and keys stuff ----------------
function isAuth()
{
-
@session_start();
$ff= HTML_FlexyFramework::get();
$im->selectAdd();
$im->selectAs($im, 'company_id_logo_id_%s');
if ($im->find(true)) {
-
+
foreach($im->toArray() as $k=>$v) {
+ if (!preg_match('/^company_id_logo_id_/', $k)) {
+ continue;
+ }
$aur[$k] = $v;
}
}
return;
}
$c = DB_DataObject::Factory('core_company');
- $tc =$c->count();
-
- print_r($tc);exit;
+ $tc = $c->count();
if (!$tc || $tc> 1) {
$roo->jerr("can not create initial user as multiple companies already exist");
$roo->jerr('Fail to generate QR Code');
}
- $roo->jdata($qrcode);
+ $roo->jok($qrcode);
}
}