This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/scripts/site/main/handlers/pcheck.inc

19 lines
337 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
class page_handler {
public $engines = array('page');
public $noTracking = true;
public function handle($input) {
$key = strtolower($input['k']);
if (!$key || strlen($key) != 32 || preg_match('/[^a-z0-9]/', $key)) {
$this->data = "X";
} else {
$this->data = "Key is $key";
}
$this->output = "pcheck";
}
}
?>