diff options
author | Jos Poortvliet <jospoortvliet@gmail.com> | 2016-06-03 22:52:31 +0300 |
---|---|---|
committer | Jos Poortvliet <jospoortvliet@gmail.com> | 2016-06-03 22:52:31 +0300 |
commit | 666499e6af49a0ffe6854d3854bb6d0fe9e40510 (patch) | |
tree | e3b15194ffa2ac59bcfa09fae02c79558deb79dd /page-advisory.php | |
parent | 02e22665f2c4718bfda2a169bf9e8e9a5265eb17 (diff) |
first version
Diffstat (limited to 'page-advisory.php')
-rw-r--r-- | page-advisory.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/page-advisory.php b/page-advisory.php new file mode 100644 index 00000000..a48d5ba4 --- /dev/null +++ b/page-advisory.php @@ -0,0 +1,7 @@ +<?php +$identifier = strtolower(str_replace('.', '', $_GET['id'])); +if(file_exists(__DIR__.'/advisories/'.$identifier.'.php')) { + include(__DIR__.'/advisories/'.$identifier.'.php'); +} else { + get_template_part('404'); +}
\ No newline at end of file |