bug fixes, mno,client contract renewals, scheduling
This commit is contained in:
@@ -26,14 +26,16 @@ class Controller extends BaseController
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public function sendNtfy($data){
|
||||
$url = 'https://ntfy.sh/mMjh6hStlSQiyiUr';
|
||||
$url_b = 'https://ntfy.sh/SansaTest';
|
||||
$curl = curl_init();
|
||||
curl_setopt_array($curl, array(
|
||||
CURLOPT_HTTPHEADER => array(
|
||||
CURLOPT_HTTPHEADER => array(
|
||||
'Content-Type: application/json'
|
||||
),
|
||||
CURLOPT_URL => 'https://ntfy.sh/SansaTest',
|
||||
CURLOPT_URL => $url,
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_ENCODING => '',
|
||||
CURLOPT_MAXREDIRS => 10,
|
||||
@@ -45,12 +47,12 @@ class Controller extends BaseController
|
||||
));
|
||||
$response = curl_exec($curl);
|
||||
return $response;
|
||||
|
||||
|
||||
}
|
||||
public function logUsersActivity($type, $content, $user_id = null){
|
||||
if($user_id == null){
|
||||
$user_id = session('current_user.id');
|
||||
}
|
||||
}
|
||||
$activity_arr = [
|
||||
'type' => $type,
|
||||
'content' => $content,
|
||||
@@ -63,7 +65,7 @@ class Controller extends BaseController
|
||||
}
|
||||
public function storeLoggedUser(){
|
||||
$user_id = session('current_user.id');
|
||||
$logged_arr = [
|
||||
$logged_arr = [
|
||||
'user_id' => $user_id,
|
||||
'last_seen_time' => date('Y-m-d H:i:s'),
|
||||
'ip_address' => \Request::ip(),
|
||||
|
||||
Reference in New Issue
Block a user