Commit 9d763330 authored by rgermain's avatar rgermain

fix name catgegory

parent dd235ba6
Options +FollowSymlinks
RewriteEngine on
RewriteOptions Inherit
RewriteRule ^index.php$ coucou.php
\ No newline at end of file
<?php
use App\Image;
use App\App;
$val = NULL;
if (isset($_GET) && isset($_GET['cat']))
$val = Image::getAllImgByCat($_GET['cat']);
else
if (!count($val))
$val = Image::getAllImg();
$count = App::calculPage($val, 8);
......@@ -60,7 +61,7 @@
<div class="control">
<div class="tags has-addons">
<div class="tag"><time datetime="2016-1-1"><?= App::printString($key2['date']) ?></time></div>
<a class="tag is-link" href="../Public/index.php?cat=<?= App::printString($key2['category']) ?>"><?= App::printString($key2['category']) ?></a>
<a class="tag is-link" href="../Public/index.php?cat=<?= App::printString($key2['category']) ?>">#<?= App::printString($key2['category']) ?></a>
<a class="tag is-light">Tag</a>
</div>
</div>
......
......@@ -63,7 +63,7 @@ if (APP::sessionExist())
<!-- tag -->
<div class="tags has-addons">
<div class="tag"><time datetime="2016-1-1"><?= APP::printString($val['date']) ?></time></div>
<a class="tag is-link" href="../Public/index.php?cat=<?= App::printString($key2['category']) ?>"><?= App::printString($key2['category']) ?></a>
<a class="tag is-link" href="../Public/index.php?cat=<?= App::printString($val['category']) ?>">#<?= App::printString($val['category']) ?></a>
<a class="tag is-light">Tag</a>
</div>
</div>
......
......@@ -2,8 +2,9 @@
use App\App;
use App\Error;
use App\Image;
use App\Pages;
if (!App::sessionExist())
Error::notAccess();
Pages::page_Header("home");
$title = $_SESSION['username'] . " upload pictures";
$val = Image::getCategory();
?>
......
......@@ -115,7 +115,7 @@
<!-- tag -->
<div class="tags has-addons">
<div class="tag"><time datetime="2016-1-1"><?= App::printString($key2['date']) ?></time></div>
<a class="tag is-link" href="../Public/index.php?cat=<?= App::printString($key2['category']) ?>"><?= App::printString($key2['category']) ?></a>
<a class="tag is-link" href="../Public/index.php?cat=<?= App::printString($key2['category']) ?>">#<?= App::printString($key2['category']) ?></a>
<a class="tag is-light">Tag</a>
</div>
</div>
......
......@@ -8,7 +8,7 @@ APP::getPath(NULL);
$page = 'home';
if (isset($_GET) && isset($_GET['p']))
$page = $_GET['p'];
$page = $_GET['p'];
$val = Autoloader::router($page);
$title = $val['title'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment