get_filename(); $len = strlen($html_filename); $request_uri_ending = substr($_SERVER['REQUEST_URI'], -$len-1); if($request_uri_ending != '/' . $html_filename) { die('This script cannot be called directly!'); } // $deals_by_tables = load_deals_for_tables($prefix, $round, $board); foreach($deals_by_tables as $table => $deal) { $protocol->set_deal($table, $deal); } echo $protocol->output();