123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php if (!defined('PmWiki')) exit();
- $f = 1;
- for($p=$pagename;$p;$p=preg_replace('/\\.*[^.]*$/','',$p)) {
- if (!IsEnabled($EnablePGCust,1)) return;
- if (file_exists("$LocalDir/$p.php"))
- { include_once("$LocalDir/$p.php"); $f=0; }
- }
- if ($f && IsEnabled($EnablePGCust,1) && file_exists("$LocalDir/default.php"))
- include_once("$LocalDir/default.php");
|