pretty url

This commit is contained in:
/jedi/ 2018-12-30 06:38:05 +01:00
parent 1c1fc418ce
commit 46f6b78040
9 changed files with 65 additions and 64 deletions

View file

@ -88,7 +88,8 @@ $page = isset($_GET["page"])?$_GET["page"]:"dashboard";
if (!auth()) {
header('WWW-Authenticate: Basic realm="C3CLOC"');
header('HTTP/1.0 401 Unauthorized');
include "templates/404.php";
//include "templates/demo/404.html";
exit;
} else {
include "templates/page.php";

View file

@ -29,7 +29,7 @@ $stats = get_stats();
</div>
<div class="mr-5"><?php echo $stats["lost"]; ?> Lost Items</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="/?page=lost">
<a class="card-footer text-white clearfix small z-1" href="/lost/">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
@ -45,7 +45,7 @@ $stats = get_stats();
</div>
<div class="mr-5"><?php echo $stats["found"]; ?> Found Items</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="/?page=table">
<a class="card-footer text-white clearfix small z-1" href="/table/">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
@ -61,7 +61,7 @@ $stats = get_stats();
</div>
<div class="mr-5"><?php echo $stats["match"]; ?> Matched Items</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="/?page=matches">
<a class="card-footer text-white clearfix small z-1" href="/matches/">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
@ -77,7 +77,7 @@ $stats = get_stats();
</div>
<div class="mr-5"><?php echo $stats["unmatched"]; ?> Unmatched Items</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="/?page=tinder">
<a class="card-footer text-white clearfix small z-1" href="/tinder/">
<span class="float-left">View Details</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>

View file

@ -43,19 +43,19 @@
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="/vendor/chart.js/Chart.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<script src="/js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<script src="js/demo/chart-area-demo.js"></script>
<script src="js/demo/chart-bar-demo.js"></script>
<script src="js/demo/chart-pie-demo.js"></script>
<script src="/js/demo/chart-area-demo.js"></script>
<script src="/js/demo/chart-bar-demo.js"></script>
<script src="/js/demo/chart-pie-demo.js"></script>

View file

@ -44,19 +44,19 @@
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="/vendor/chart.js/Chart.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<script src="/js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<script src="js/demo/chart-area-demo.js"></script>
<script src="js/demo/chart-bar-demo.js"></script>
<script src="js/demo/chart-pie-demo.js"></script>
<script src="/js/demo/chart-area-demo.js"></script>
<script src="/js/demo/chart-bar-demo.js"></script>
<script src="/js/demo/chart-pie-demo.js"></script>

View file

@ -66,19 +66,19 @@
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="/vendor/chart.js/Chart.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<script src="/js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<script src="js/demo/chart-area-demo.js"></script>
<script src="js/demo/chart-bar-demo.js"></script>
<script src="js/demo/chart-pie-demo.js"></script>
<script src="/js/demo/chart-area-demo.js"></script>
<script src="/js/demo/chart-bar-demo.js"></script>
<script src="/js/demo/chart-pie-demo.js"></script>

View file

@ -20,16 +20,16 @@
<title>C3CLOC - Tables</title>
<!-- Bootstrap core CSS-->
<link href="../vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template-->
<link href="../vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<!-- Page level plugin CSS-->
<link href="../vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">
<link href="/vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">
<!-- Custom styles for this template-->
<link href="../css/sb-admin.css" rel="stylesheet">
<link href="/css/sb-admin.css" rel="stylesheet">
</head>
@ -37,7 +37,7 @@
<nav class="navbar navbar-expand navbar-dark bg-dark static-top">
<a class="navbar-brand mr-1" href="../demo/index.html">C3CLOC L&F</a>
<a class="navbar-brand mr-1" href="/">C3CLOC L&F</a>
<button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
<i class="fas fa-bars"></i>
@ -153,21 +153,21 @@
</div>
<!-- Bootstrap core JavaScript-->
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="../vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="../vendor/datatables/jquery.dataTables.js"></script>
<script src="../vendor/datatables/dataTables.bootstrap4.js"></script>
<script src="/vendor/datatables/jquery.dataTables.js"></script>
<script src="/vendor/datatables/dataTables.bootstrap4.js"></script>
<!-- Custom scripts for all pages-->
<script src="../js/sb-admin.min.js"></script>
<script src="/js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<script src="../js/demo/datatables-demo.js"></script>
<script src="/js/demo/datatables-demo.js"></script>
</body>

View file

@ -57,19 +57,19 @@
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="/vendor/chart.js/Chart.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<script src="/js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<script src="js/demo/chart-area-demo.js"></script>
<script src="js/demo/chart-bar-demo.js"></script>
<script src="js/demo/chart-pie-demo.js"></script>
<script src="/js/demo/chart-area-demo.js"></script>
<script src="/js/demo/chart-bar-demo.js"></script>
<script src="/js/demo/chart-pie-demo.js"></script>

View file

@ -15,43 +15,43 @@
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/?page=table">
<a class="nav-link" href="/table/">
<i class="fas fa-fw fa-archive"></i>
<span>Found Items</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/?page=insert">
<a class="nav-link" href="/insert/">
<i class="fas fa-fw fa-plus"></i>
<span>Found</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/?page=losttable">
<a class="nav-link" href="/losttable/">
<i class="fas fa-fw fa-archive"></i>
<span>Lost Items</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/?page=lost">
<a class="nav-link" href="/lost/">
<i class="fas fa-fw fa-plus"></i>
<span>Lost</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/?page=matches">
<a class="nav-link" href="/matches/">
<i class="fas fa-fw fa-check"></i>
<span>Matches</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/?page=tinder">
<a class="nav-link" href="/tinder/">
<i class="fas fa-fw fa-comments"></i>
<span>Tinder</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/?page=neo-tinder">
<a class="nav-link" href="/neo-tinder/">
<i class="fas fa-fw fa-comments"></i>
<span>NeoTinder</span>
</a>

View file

@ -44,19 +44,19 @@
<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/vendor/jquery/jquery.min.js"></script>
<script src="/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Page level plugin JavaScript-->
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="/vendor/chart.js/Chart.min.js"></script>
<!-- Custom scripts for all pages-->
<script src="js/sb-admin.min.js"></script>
<script src="/js/sb-admin.min.js"></script>
<!-- Demo scripts for this page-->
<script src="js/demo/chart-area-demo.js"></script>
<script src="js/demo/chart-bar-demo.js"></script>
<script src="js/demo/chart-pie-demo.js"></script>
<script src="/js/demo/chart-area-demo.js"></script>
<script src="/js/demo/chart-bar-demo.js"></script>
<script src="/js/demo/chart-pie-demo.js"></script>