Server IP : 2a02:4780:3:1493:0:3736:a38e:7 / Your IP : 216.73.216.112 Web Server : LiteSpeed System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u926327694/domains/smsoft.in/public_html/demo/src/../../api/../api/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php $myfile = fopen("log.txt", "a") or die("Unable to open file!"); $file = "EP:".basename($_SERVER['PHP_SELF'])."\n"; fwrite($myfile, $file); $request="REQUEST : (".date('Y-m-d h:i:sa').")-".json_encode($_POST)."\n"; fwrite($myfile, $request); if( isset($_POST['URL']) && isset($_POST['Cls']) && isset($_POST['Div']) && isset($_POST['Message']) && isset($_POST['Code'])){ require_once("dbFunctions.php"); $obj=new dbFunctions($_POST['URL'],"StudMgmt"); if(isset($_FILES['image'])){ $link=$_FILES['image']; } else{ $link="Notification For Class-".$_POST['Cls']." And Division-".$_POST['Div']; } $obj->sendNotification($link,$_POST['Cls'],$_POST['Div'],$_POST['Message'],$_POST['URL'],$_POST['Code']); //$file,$cls,$div,$msg,$url /* $response['Success']="true"; $response['Message']="Marks Updated Successfully"; echo json_encode($response);*/ }else { $response['Success']="false"; //$response['Data']=""; $response['Message']="Fields Cannot be Blank2"; $res="RESPONSE : (".date('Y-m-d h:i:sa').")-".json_encode($response)."\n"; fwrite($myfile, $res); fwrite($myfile, "-----------------------------------------------------------"."\n"); fclose($myfile); echo json_encode($response); } ?>