[r114]: keepassserver / trunk / regexp.php Maximize Restore History

Download this file

regexp.php    12 lines (9 with data), 213 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<?php
$secretCode = $_GET['code']; // '12341234';
if (preg_match('/^\d{8}$/', $secretCode) == 1) {
echo 'Match <br/>';
} else {
//echo 'No Match <br/>';
header('HTTP/1.0 415 Unsupported Type');
}
?>