0) { $part = ''; foreach ($query as $key => $value) { if (strcasecmp($key, 'referer') === 0) continue; $part .= "&$key=$value"; } //$history .= substr($part, 0, -1); $history .= $part; } //print $history; //exit; $menu = <<<_MENU _MENU; //file_put_contents('/tmp/davical.log', $menu, FILE_APPEND); print $menu;