wishthis/index.php

37 lines
566 B
PHP
Raw Normal View History

2021-11-12 15:23:48 +00:00
<?php
/**
* index.php
*
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
/**
* Include
*/
require 'includes/functions/auto-include.php';
autoInclude(__DIR__ . '/includes/classes');
autoInclude(__DIR__ . '/includes/functions');
/**
* Install
*/
$configPath = 'includes/config/config.php';
if (!file_exists($configPath)) {
}
2021-11-12 16:01:04 +00:00
$page = 'install';
2021-11-12 15:23:48 +00:00
/**
* Page
*/
if (!isset($page)) {
$page = isset($_GET['page']) ? $_GET['page'] : 'home';
}
$pagePath = 'includes/pages/' . $page . '.php';
if (file_exists($pagePath)) {
require $pagePath;
}