printCall($query); $objects['obj']->db_close(); break; case "check_session": $sess = new oprt_session(); $objects = createObject(); $response = $sess->sessionChecker(); //testing(); //isSunday($frmdt,$todt); if ($response === 'true') { deleteInvalidNoti(); $numRows; $broadRows; if ($sess->getLevel() == 1 || $sess->getLevel() == 2) { if ($sess->getLevel() == 2) { $query = $objects['oprt']->dataAdaptor("notificationCountMngr", $sess->getUser()); $result = $objects['obj']->query_db($query); $numRows = mysqli_num_rows($result); } else { $query = $objects['oprt']->dataAdaptor("notificationCount", $data); $result = $objects['obj']->query_db($query); $numRows = mysqli_num_rows($result); } } if ($sess->getLevel() == 3 || $sess->getLevel() == 2) { $query = $objects['oprt']->dataAdaptor("notificationCountPers", $sess->getUser()); $result = $objects['obj']->query_db($query); $numRows1 = mysqli_num_rows($result); $numRows = $numRows + $numRows1; } $qry = $objects['oprt']->dataAdaptor("broadcastCount", $data);