fix de la page photos

This commit is contained in:
thaaoblues 2023-06-27 15:09:34 +02:00
parent 1b3fedd473
commit c8c6e527a4
3 changed files with 7 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -4,7 +4,8 @@ ob_start(); // Start reading html
//header('Location: construction.php');
define("urlParam", "path");
define("photoRoot", "photos_folders/photos");
define("photoRoot", "assets/img/com_photo/thumbs");
define("photoRootHQ", "assets/img/com_photo/full_q");
/**
* Get active path from url and prevent from seeing folders before 'photos/'
@ -106,8 +107,8 @@ function createDirectories($path)
*/
function createPhotos($path_in)
{
$path = photoRoot . "_thumb" . $path_in;
$path_no_thumb = photoRoot . $path_in;
$path = photoRoot . $path_in;
$path_no_thumb = photoRootHQ . $path_in;
$files = scandir($path);
$displayedItems = 0;
foreach ($files as $key => $value) {
@ -247,7 +248,6 @@ function generatePath($path)
}
//CAS
require_once("phpCAS-1.3.6/CAS.php");
@ -262,6 +262,8 @@ if (isset($_REQUEST['logout'])) {
phpCAS::logout();
}
?>
<div class="inner">
<div class="zone_txt">
@ -283,7 +285,7 @@ if (isset($_REQUEST['logout'])) {
?>
</ul>
<?php if (isAlbumAvailable(getActivePath())): ?>
<a download="" href="photos_folders/photos<?php echo getActivePath().DIRECTORY_SEPARATOR.GetActiveFolder(getActivePath()); ?>.zip" id="downloadAlbum">
<a download="" href="assets/com_photo/"<?php echo getActivePath().DIRECTORY_SEPARATOR.GetActiveFolder(getActivePath()); ?>.zip" id="downloadAlbum">
<span id="downloadText">Télécharger</span>
<span id="albumPhotoCount"><?php echo getTotalPhotoCount(photoRoot . getActivePath()) ?> photos</span>
</a>