From 85b4e3dc56fcec1c751858f70d17f4d4e483e1bf Mon Sep 17 00:00:00 2001 From: JozanLeClerc <bousset.rudy@gmail.com> Date: Sat, 27 Jun 2020 19:10:09 +0200 Subject: Project restructure, subdir content inclusion --- c.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 c.php (limited to 'c.php') diff --git a/c.php b/c.php new file mode 100644 index 0000000..16b9eb2 --- /dev/null +++ b/c.php @@ -0,0 +1,25 @@ +<!-- ----------------------------------------------------------------------- --> +<!-- --> +<!-- File : c.php /_________/ --> +<!-- Authors : Joe | --> +<!-- Date : 06/2020 | --> +<!-- Info : The C welcome page | --> +<!-- / | --> +<!-- \ / --> +<!-- \_____/ --> +<!-- --> +<!-- ----------------------------------------------------------------------- --> + +<?php +$prefix = "./"; +$curr_dir = basename(getcwd()); +if ($curr_dir != "jozan" && $curr_dir != "jozanleclerc.xyz") { + $prefix = "../"; +} +?> +<?php include $prefix."inc/classic-contents.inc.php"; ?> +<?php jo_head("C"); ?> +<?php jo_sidebar(); ?> +<div class="body-contents"> +</div> +<?php jo_footer(); ?> -- cgit v1.2.3