<?php if (preg_match('/html..php/i', $_SERVER['PHP_SELF'])) { die('Do not access this page directly.'); } function do_hook($name) { } function register_hook($name) { } ?>