File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/APPS/CronJobs/LinkInTimeAllotment.php
Back
<?php include_once("simple_html_dom.php"); $html = file_get_html("https://www.linkintime.co.in/IPO/public-issues.html"); $list = $html->find('select[id=ddlClient]',0); echo $html; /* $path_to_fcm = "https://fcm.googleapis.com/fcm/send"; $server_key = "AAAAzvFKC6k:APA91bGwplf3DZMMEsvtWCoeCXnBttNVgS2h3s5GuPDA6RkYvnFZuYNLy-zYt5TlVAm2fusnmh3ZFZbTxpLs1xMVIRfXmYd-yQe-CpjItU0Im6zUcjbq9bLFuj9-2y7LSkBfp2eS2Qoo"; $curl_session = curl_init(); */ $no = 0; foreach($list->find('option') as $opt) { $no += 1; } /* if ($no != 8){ $title = "Link In Time Option change"; $msg = "Allotment May be live of some ipo"; $headers = array( 'Authorization: key=' . $server_key, 'Content-Type: application/json' ); $fields = array( 'to' => "czkH88A8SqyfR1jQZ0ymVW:APA91bEfUARsc_bF6nPSV0rVucoQryOilHhxwAYXbUQKhHIxRwKZnQoYR2j0Y9imS12rj7F43FqwV-5XuaIWOdlEVfOxPwuz_XmH3zaLWl6dbGujf1xMwAdFexGDsSxNSKq2wFjtK0LU", 'notification'=> array( 'title'=> $title, 'body'=> $msg, 'click_action' => 'MAIN' )); $payload = json_encode($fields); curl_setopt($curl_session, CURLOPT_URL,$path_to_fcm); curl_setopt($curl_session, CURLOPT_POST, true); curl_setopt($curl_session, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_session, CURLOPT_POSTFIELDS, $payload); $res = curl_exec($curl_session); $res = curl_exec($curl_session); $res = curl_exec($curl_session); $title = "Kfintech Option change"; $msg = "Allotment May be live of some ipo"; $headers = array( 'Authorization: key=' . $server_key, 'Content-Type: application/json' ); $fields = array( 'to' => "fbwoejkoRACiQgIkvWhwEO:APA91bEVhM3lEqOWPOkpKFFzSMljbkw6LJJCv6ajxj5YlB4qgW1KLfCXzAA4hZQEzQ-zKPtOT0ZDOxpyBrG1sur40oafQSU3EKffbZSmK2w8yIN6cffBPqLu8LgG4gR-2TI8T00ybwQq", 'notification'=> array( 'title'=> $title, 'body'=> $msg, 'click_action' => 'MAIN' )); $payload = json_encode($fields); curl_setopt($curl_session, CURLOPT_URL,$path_to_fcm); curl_setopt($curl_session, CURLOPT_POST, true); curl_setopt($curl_session, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl_session, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_session, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_session, CURLOPT_POSTFIELDS, $payload); $res = curl_exec($curl_session); $res = curl_exec($curl_session); $res = curl_exec($curl_session); } curl_close($curl_session); */ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings