wbce / download-gallery-wbce Goto Github PK
View Code? Open in Web Editor NEWDownload Gallery module for use with WBCE or BlackCat CMS
Download Gallery module for use with WBCE or BlackCat CMS
When uploading a large file via FTP to /media/download_gallery (what is necessary when the file size is larger than the upload limit an/or the PDF upload would exhaust the script execution time) and adding it to the DLG as a "Medienverzeichnis Datei", the download from the frontend fails with the message " Sorry, your download failed.".
Furthermore, the file size is shown with "0" (FE/BE).
PHP 7.4 on Xampp WBCE 1.4.1
First try uninstall was not possible, Error log shows:
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php): failed to open stream: No such file or directory"
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(): Failed opening 'D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php' for inclusion (include_path='D:\xampp\php\PEAR')"
2020-01-22T10:17:08+00:00 [Warning] \framework\functions.php:[69] from \admin\modules\uninstall.php:[96] rm_full_dir "rmdir(D:\xampp\htdocs\wbce/modules/download_gallery_3): Directory not empty"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[42] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e
is deprecated. Use either (a ? b : c) ? d : e
or a ? b : (c ? d : e)
"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[198] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e
is deprecated. Use either (a ? b : c) ? d : e
or a ? b : (c ? d : e)
"
Second try uninstall shows "success", but Error Log shows more:
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php): failed to open stream: No such file or directory"
2020-01-22T10:17:08+00:00 [Warning] \admin\modules\uninstall.php:[80] from \admin\modules\uninstall.php:[80] "include_once(): Failed opening 'D:\xampp\htdocs\wbce/modules/download_gallery_3/info.php' for inclusion (include_path='D:\xampp\php\PEAR')"
2020-01-22T10:17:08+00:00 [Warning] \framework\functions.php:[69] from \admin\modules\uninstall.php:[96] rm_full_dir "rmdir(D:\xampp\htdocs\wbce/modules/download_gallery_3): Directory not empty"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[42] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e
is deprecated. Use either (a ? b : c) ? d : e
or a ? b : (c ? d : e)
"
2020-01-22T10:17:08+00:00 [Deprecated] \include\Sensio\Twig\lib\Twig\Node.php:[198] from :[] Twig_Autoloader::autoload "Unparenthesized a ? b : c ? d : e
is deprecated. Use either (a ? b : c) ? d : e
or a ? b : (c ? d : e)
"
Unten am Fußende steht "Zeige -15- von insgesamt -48- Dateien. Dazu wird (siehe beigefügtes Bild) ein Symbolband angezeift mit "Vorherige" Seite und "Nächste" Seite, dazwischen die Seiten zahlen. Leider werden nicht alle Dateien angezeigt (bei 15 von 48 anzuzeigenden Dateien müssten je 15 auf den ersten drei Seiten und auf der vierten Seite noch 3 Dateien angezeigt werden).
Zusätzlich stimmen die Seitenzahlen nicht mit den anzuzeigenden Seiten überein. Ab der zuletzt (gefüllt) anzuzeigenden Seite werden mehr Seiten (ohne Datei-Inhalt) aufgezählt
Vielleicht wäre es möglich, das Modul so zu gestalten, dass die Dateigröße auch bei Unterordnern von "downloadgallery" erkannt wird.
Auch die Auswahl von bereits auf dem Server liegenden Daten, dürfte/sollte die Verzeichnisstruktur so anzeigen wie im normalen Dateimanager (Explorer etc.) und nicht alle einzelnen Dateien, egal ob diese im Hauptordner oder in einem Unterordner liegen. Dies würde die Übersichtlichkeit und somit auch Auswahl bei vielen abgelegten Downloaddateien enorm erleichtern.
Maybe its possible that the modul recognize the datasize even the file is in a subfolder.
Also it would be nice, if you select a file which is already on the server, that you see the whole directory structure - that means the subfolders too - and not only every single file, independt off where the are located, in the mainfolder or in a subfolder. this would improve the handling of many files a lot.
Da sind für MySQL-Strict noch Fehlerchen in der upgrade.php (war auch schon in der vorherigen Version drin):
Zeile 73:
Can't DROP 'extposition' ...
Zeile 72:
Duplicate column name 'position'...
Da sollte man wohl mal entsprechende Abfragen drum klöppeln.
https://forum.wbce.org/viewtopic.php?id=3245
Ich habe im Forum die entsprechenden Fixes gepostet, möglicherweise funktionieren diese dann aber nicht mit BC.
modify_file.phtml / save_file.phtml:
Deprecated-Meldung wegen leerem htmlspecialchars beim WYSIWYG-Editor
Fatal Error, wenn ungültiges Release-Datum angegeben
Vorschlag:
Abfrage date_released mit input file=date und Lösch-Checkbox
<tr>
<td><label for="released"><?php echo $DGTEXT['THRELEASED']; ?></label>:</td>
<td>
<input type="date" name="released" id="released" value="<?php if($data->released > 1): echo date('Y-m-d', $data->released); endif; ?>" />
<input type="checkbox" name="delete_datereleased" id="delete_datereleased" value="yes" /><label for="delete_datereleased"><?php echo $TEXT['DELETE']; ?></label>
</td>
</tr>
Prüfung, ob description leer
<tr>
<td colspan="2">
<?php
if ($data->description != null) {
show_wysiwyg_editor("description","description",htmlspecialchars($data->description), "100%", "400");
} else {
show_wysiwyg_editor("description","description","", "100%", "400");
}
?>
</td>
</tr>
Anpassung der save_file.php
if ($released <> '') {
$rdate = strtotime($released);
if ($rdate==false || isset($_POST['delete_datereleased']) && $_POST['delete_datereleased'] == 'yes') {
$qs = $database->query("UPDATE `".TABLE_PREFIX.$tablename."_files` SET `released` = '' WHERE `file_id` = '$file_id' AND `page_id` = '$page_id'");
} else {
$qs = $database->query("UPDATE `".TABLE_PREFIX.$tablename."_files` SET `released` = '$rdate' WHERE `file_id` = '$file_id' AND `page_id` = '$page_id'");
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.