Pith - miter
miter/front/direct.php [1.2 kb]
Modified: 17:48:02 114 026 (11 Jul 026)
50 Days Ago
<?php

if (isset($_GET['m'])) {
	include 'front/miter.php';
} elseif (isset($_GET['t'])) {
	include 'front/tenon.php';
} elseif (isset($_GET['l'])) {
	include 'front/tenons.php';
} elseif (isset($_GET['p'])) {
	include 'front/pith.php';
} elseif (isset($_GET['e'])) {
	if (($login ?? false) === true) {
		include 'front/tenon.php';
	}

} elseif (isset($_GET['q'])) {
	include 'front/search.php';

} elseif (isset($_GET['u']) && ($login ?? false) === true) {
	$action = $_GET['u'];

	$admin_routes = [
		'new'           => 'back/tenon/new.php',
		'panels'        => 'back/panels/panels.php',
		'icons'         => 'back/admin/icons_list.php',
		'tenon_images'  => 'back/tenon/tenon_images.php',
		'tenon_files'   => 'back/tenon/tenon_files.php',
		'settings'      => 'back/admin/settings.php',
		'tenon_inserts' => 'back/tenon/tenon_inserts.php',
		'log'           => 'back/admin/log.php',
		'css'           => 'back/admin/css_editor.php',
		'ditch'         => 'back/ditch/ditch.php',
		'tenons'        => 'front/tenons.php'
	];

	if (array_key_exists($action, $admin_routes)) {
		include $admin_routes[$action];
	}

} elseif (isset($_GET['i'])) {
	header('Location: index.php');
	exit;

} else {
	include 'front/miter.php';
}
?>
Updates
Stave - Android 158.026
Kerf - Android 157.026
Kiln - Android 157.026
Wedge - Android 156.026
Whittle - Linux 155.026

Menu
Calendar
Project Tin (024/029)
Miter
RSS Feed
User Avatar
@vgmlr
=SUM(parts)
0.00467
260,526 (+940)