// -*- mode: c -*- function include_if_exists($file) { if (file_exists($file)) { include $file; return 1; } else { if (array_key_exists('PATH_TRANSLATED', $_SERVER)) { $file = dirname($_SERVER['PATH_TRANSLATED']) . "/" . $file; if (file_exists($file)) { include $file; return 1; } } } return 0; } ?>
|
|
|