Pereiti prie turinio

throy

Nariai
  • Pranešimai

    5
  • Užsiregistravo

  • Lankėsi

  • Atsiliepimai

    0%

throy Pranešimai

  1. if (strpos($_GET['date'], '-') !== false) {
    
    $date = $mysqli_connect->real_escape_string($_GET['date']);
    $date = htmlspecialchars($date, ENT_QUOTES, 'UTF-8');
    $date = stripslashes($date);
    $date = strip_tags($date);
    
    $date = explode('-', $_GET['date']);
    
    if (!checkdate($date[1], $date[2], $date[0])) {
           $date = false;
    }
    
    } else {
           $date = false;
    }
    
    if ($date === false) {
           header('Location: '.BASEDIR.'infusions/stats/matches.php');
           exit;
    }
    

×
×
  • Pasirinkite naujai kuriamo turinio tipą...