echo $_POST['dateLimitMonth']; ?> - <?php echo $_POST['dateLimitDay']; ?> - <?php echo $_POST['dateLimitYear']; ?> </dd> </dl> <?php // register autoload include_once '../src/PHP5.2/Padl/PadlLibrary.php'; PadlLibrary::init(); // gets the data and transform to boolean $domain = $_POST['domain']; $useMcrypt = $_POST['useMcrypt'] == 'true' ? true : false; $useTime = $_POST['useTime'] == 'true' ? true : false; $useServer = $_POST['useServer'] == 'true' ? true : false; $allowLocal = $_POST['allowLocal'] == 'true' ? true : false; // calculates the time offset (expire_in) $now = mktime(date('H'), date('i'), date('s'), date('m'), date('d'), date('Y')); $dateLimit = mktime(23, 59, 59, $_POST['dateLimitMonth'], $_POST['dateLimitDay'], $_POST['dateLimitYear']); $expireIn = $dateLimit - $now; // instatiate the class $padl = new PadlLicense($useMcrypt, $useTime, $useServer, $allowLocal); // copy the server vars (important for security, see note below) $server_array = $_SERVER; // set the server vars