Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getcheck($get,$id) {
- $comma = explode(',',$get);
- if(count($comma > 0)) {
- $komma = true;
- }
- if($komma == false) {
- if($id == 0) {
- if(isset($_GET[$get]) && is_string($_GET['get'])) {
- return true;
- echo 'true';
- }
- }
- if($id == 1) {
- if(isset($_GET[$get]) && is_numeric($_GET['get'])) {
- return true;
- }
- }
- } else {
- if($id == 0) {
- if(isset($_GET[$comma[0]]) && is_string($_GET[$comma[0]])) {
- if($_GET[$comma[0]] == $comma[1]) {
- return true;
- }
- }
- }
- if($id == 1) {
- if(isset($_GET[$comma[0]]) && is_numeric($_GET[$comma[0]])) {
- if($_GET[$comma[0]] == $comma[1]) {
- return true;
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment