Guest User

Untitled

a guest
Feb 19th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1.  
  2. function getcheck($get,$id) {
  3.  
  4.     $comma = explode(',',$get);
  5.     if(count($comma > 0)) {
  6.         $komma = true;
  7.     }
  8.     if($komma == false) {
  9.         if($id == 0) {
  10.             if(isset($_GET[$get]) && is_string($_GET['get'])) {
  11.                 return true;
  12.                 echo 'true';
  13.             }
  14.         }
  15.         if($id == 1) {
  16.             if(isset($_GET[$get]) && is_numeric($_GET['get'])) {
  17.                 return true;
  18.                
  19.             }
  20.         }
  21.     } else {
  22.         if($id == 0) {
  23.             if(isset($_GET[$comma[0]]) && is_string($_GET[$comma[0]])) {
  24.                 if($_GET[$comma[0]] == $comma[1]) {
  25.                     return true;
  26.                    
  27.                 }                      
  28.             }
  29.         }
  30.         if($id == 1) {
  31.             if(isset($_GET[$comma[0]]) && is_numeric($_GET[$comma[0]])) {
  32.                 if($_GET[$comma[0]] == $comma[1]) {
  33.  
  34.                     return true;
  35.                    
  36.                 }              
  37.             }
  38.         }
  39.     }
  40. }
Add Comment
Please, Sign In to add comment