* Copyright (C) 2000 Robert A. Holak * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA */ $page = $PATH_INFO; error_log(" Dispatcher: Path_info $PATH_INFO "); if (preg_match("/style.css$/", $page)) { $page = dirname($SCRIPT_FILENAME) . $page; Header("Content-type: text/css"); readfile("$page"); exit(0); } $calltype = "SHOW"; if (strpos($page,"index.html")) { $calltype = "INDEX"; } elseif (strpos($page,"/html/")) { $calltype = "VIEW"; } if ($page == "index.php" || $page == "" || $page == "/") { $calltype = "INDEX"; } if ($calltype == "SHOW") { include("showpic.php"); } if ($calltype == "INDEX") { include("indexpic.php"); } if ($calltype == "VIEW") { include("view.php"); } ?>