Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // funkce //
- /*
- * includování stránky
- *
- * vyhledání souboru
- * je zadán soubor + existuje = include
- * není = pracovna
- */
- ######################################################
- function includeSubpage($category) {
- $path = "includes/" . $category . ".php";
- if (!empty ($category) && file_exists($path)) {
- include_once $path;
- }
- else {
- include 'includes/pracovna.php';
- }
- }
- ######################################################
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement