Replace page code by directory handlers. Essentially the same,
preparing for upcoming placeholder includes.
--- /dev/null
+<?php
+include 'login/commits.php';
if (empty($Args) and !empty($User['admin'])) {
include_once 'login/admin.html';
- include_once 'login/admin.php';
+ include_once 'login/admin/index.php';
}
--- /dev/null
+<?php
+include 'login/visits.php';
$PageAccess = $Page;
}
- if (file_exists("$Page.php")) {
+ if (file_exists("$Page/index.php")) {
break;
}
# execute dynamic code
if ($Page) {
- $found |= require "./$Page.php";
+ $found |= require "./$Page/index.php";
}
# global html