define( "LICENSE_KEY", "000-0000-0000-0000" ); if( !( ini_get(allow_url_fopen) ) ) exit('Configuration Error: allow_url_fopen must be enabled on your server for this script to work'); define( "LICENSE_SERV", "https://licencing.domain.com/check.php?key=" ); $LICENSE_SERV=LICENSE_SERV; $LICENSE_KEY=LICENSE_KEY; $licserv = "$LICENSE_SERV$LICENSE_KEY"; $lines = @file($licserv); foreach($lines as $line){ $license = htmlspecialchars($line); if ($license == "INVALID") { exit("Invalid License Key"); } }
$lines
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)