lvhao пре 13 часа
родитељ
комит
277063d005
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      core/CoreApp/controllers/Lyerpapi/v1/Yyys.php

+ 5 - 1
core/CoreApp/controllers/Lyerpapi/v1/Yyys.php

@@ -11,8 +11,12 @@ class Yyys extends Lyapi_Controller{
 
 
     public function lyysmsghz() {
     public function lyysmsghz() {
         $ip = $this->input->ip_address();
         $ip = $this->input->ip_address();
+        $gsmc = $this->input->get('gsmc');
+        if($gsmc != 'LYERP'){
+            exit('No direct script access allowed !');
+        }
         if($ip != '59.110.247.93'){
         if($ip != '59.110.247.93'){
-            exit('No direct script access allowed');
+            exit('No direct script access allowed !!!');
         }
         }
         $json_str = $this->input->raw_input_stream;
         $json_str = $this->input->raw_input_stream;
         $this->db->insert("ysnorecords",[
         $this->db->insert("ysnorecords",[