|
@@ -1125,9 +1125,8 @@
|
|
|
|
|
|
//registration count
|
|
//registration count
|
|
if ($fp && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
|
if ($fp && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
|
- $tmp = event_socket_request($fp, 'api sofia xmlstatus profile internal reg');
|
|
|
|
- $registrations = substr_count($tmp, '<registration>');
|
|
|
|
- $registrations = (is_numeric($registrations)) ? $registrations : 0;
|
|
|
|
|
|
+ $registration = new registrations;
|
|
|
|
+ $registrations = $registration->count();
|
|
$tr_link = "href='".PROJECT_PATH."/app/registrations/registrations.php'";
|
|
$tr_link = "href='".PROJECT_PATH."/app/registrations/registrations.php'";
|
|
$hud[$n]['html'] .= "<tr ".$tr_link.">\n";
|
|
$hud[$n]['html'] .= "<tr ".$tr_link.">\n";
|
|
$hud[$n]['html'] .= "<td valign='top' class='".$row_style[$c]." hud_text'><a ".$tr_link.">".$text['label-registrations']."</a></td>\n";
|
|
$hud[$n]['html'] .= "<td valign='top' class='".$row_style[$c]." hud_text'><a ".$tr_link.">".$text['label-registrations']."</a></td>\n";
|