CMXX - Dealers

This commit is contained in:
“VeLiTi”
2025-04-13 17:16:12 +02:00
parent cb18443af9
commit c3e5873912
25 changed files with 2630 additions and 100 deletions

View File

@@ -25,6 +25,10 @@ $create_allowed = isAllowed($page ,$_SESSION['profile'],$_SESSION['permission'],
$pagination_page = isset($_GET['p']) ? $_GET['p'] : 1;
$search = isset($_GET['search']) ? '&search='.$_GET['search'] : '';
//SET PAGE ORIGIN FOR NAVIGATION AND SECURITY
$prev_page = $_SESSION['prev_origin'] ?? '';
$page = $_SESSION['origin'] = 'media';
// Determine the URL
$url = 'index.php?page='.$page.$search;
//GET Details from URL
@@ -103,9 +107,12 @@ $view .= ' <div class="msg success">
}
$view .= '
<div class="content-header responsive-flex-column pad-top-5">';
if ($create_allowed ===1 && isAllowed('media_scanner' ,$_SESSION['profile'],$_SESSION['permission'],'C') === 1){
$view .= '<a href="index.php?page=media_scanner" class="btn">'.($button_media_scanner ?? 'media_scanner').'</a>';
}
if ($create_allowed ===1){
$view .= '
$view .= '
<form action="" method="post" enctype="multipart/form-data">
<input type="file" onchange="this.form.submit()" name="fileToUpload[]" id="fileToUpload" accept=".png, .PNG, .jpg,.JPG,.jpeg,.JPEG" style="width: 30%;padding: 50px 0 0 0;height: 10px;" multiple>
</form>';