What I just did. But it normally takes a day until the mirrors are updated. The actual version is 0.22.1.Give it a try or wait untill onli has time to push it up again.
But the missing fallback really shouldn't be harmful.
What I just did. But it normally takes a day until the mirrors are updated. The actual version is 0.22.1.Give it a try or wait untill onli has time to push it up again.
I want to use the Webblog for a project at the university.Why do you want to download in an area where you just uploaded.
Code: Select all
$sql = "SELECT * FROM {$serendipity['dbPrefix']}dma_downloadmanager_files WHERE catid = ".$id." ORDER BY timestamp DESC";
$files = serendipity_db_query($sql);
$OUTPUT .= "<br /><div align=\"center\">\n";
if (is_array($files)) {
$OUTPUT .= "\n\n\n<table bgcolor=\"#ffffff\" width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n";
$OUTPUT .= " <tr style=\"background-color:#EDEDED\">\n";
$OUTPUT .= " <td style=\"font-weight:bolder;\" width=\"30\"> </td>\n";
$OUTPUT .= " <td style=\"font-weight:bolder;\" width=\"30\"> </td>\n";
$OUTPUT .= " <td style=\"font-weight:bolder;\" width=\"25\"> </td>\n";
$OUTPUT .= " <td style=\"font-weight:bolder;\"> ".$this->get_config('filename_field')." </td>\n";
$OUTPUT .= " <td style=\"font-weight:bolder;\" width=\"50\"> ".$this->get_config('dls_field')." </td>\n";
$OUTPUT .= " <td style=\"font-weight:bolder;\" width=\"100\"> ".$this->get_config('filesize_field')." </td>\n";
$OUTPUT .= " <td style=\"font-weight:bolder;\" width=\"160\"> ".$this->get_config('filedate_field')." </td>\n";
$OUTPUT .= " </tr>\n";
foreach($files as $file) {
if ($thiscolor == $color2) {$thiscolor = $color1;} else {$thiscolor = $color2;}
$mime = $this->getMime($file['realfilename']);
$exticon = "<img src=\"".$mime['ICON']."\" border=0 width=\"".$this->get_config('iconwidth')."\" height=\"".$this->get_config('iconheight')."\" alt=\"".$mime['TYPE']."\" title=\"".$mime['TYPE']."\" />";
$filesize = $this->calcFilesize($file['filesize']);
$OUTPUT .= " <tr style=\"background-color:".$thiscolor."\">\n";
$OUTPUT .= " <td width=\"30\" align=\"center\"><a href=\"./serendipity_admin.php?serendipity[adminModule]=event_display&serendipity[adminAction]=downloadmanager&thiscat=".$_GET['thiscat']."&delfile=".$file['id']."\"><img src=\"".$this->get_config('httppath')."img/del.gif\" border=\"0\" width=\"20\" height=\"20\" alt=\"".PLUGIN_DOWNLOADMANAGER_DEL_FILE."\" title=\"".PLUGIN_DOWNLOADMANAGER_DEL_FILE."\" /></a></td>\n";
$OUTPUT .= " <td width=\"30\" align=\"center\"><a href=\"".$serendipity['baseURL'] . ($serendipity['rewrite'] == "none" ? $serendipity['indexFile'] . "?/" : "") . "plugin/dlfile_" . $file['id']."\"><img src=\"".$this->get_config('httppath')."img/download.png\" border=\"0\" width=\"20\" height=\"20\" alt=\"".PLUGIN_DOWNLOADMANAGER_DOWNLOAD_FILE."\" title=\"".PLUGIN_DOWNLOADMANAGER_DOWNLOAD_FILE."\" /></a></td>\n";
$OUTPUT .= " <td width=\"25\" align=\"center\">".$exticon."</td>\n";
$OUTPUT .= " <td> <a href=\"./serendipity_admin.php?serendipity[adminModule]=event_display&serendipity[adminAction]=downloadmanager&thiscat=".$_GET['thiscat']."&editfile=".$file['id']."\">".$file['realfilename']."</a> </td>\n";
$OUTPUT .= " <td width=\"50\"> ".$file['dlcount']." </td>\n";
$OUTPUT .= " <td width=\"100\"> ".$filesize." </td>\n";
$OUTPUT .= " <td width=\"160\"> ".date($dateformat, $file['timestamp'])." </td>\n";
$OUTPUT .= " </tr>\n";
}
$OUTPUT .= "</table><br /><br />\n";
}
Code: Select all
- added root level file appearance in backend (mooved files to root didnt show up)
The frontend did/does not show root level files, which isn't really a bug,
while it is a feature (by now) ;-)
- changed dlm file work behaviour to support root level files too (please report,
if you experience some unusual behaviour)
- added download file button to backend
- changed 'dlmanager/incoming' folder to '.dlmanager/incoming', (effects new
installations only!)
so it does not appear when the plugin presents the media gallery values
(if have, erase uploads/'dlmanager' folder yourself, next time you upload
the new one will be created)
- fixed download of files with spaces in filename to have replaced spaces (_)
- added the missing style_dlmanager_frontend.css to CVS
- added style_dlmanager_backend.css to support future dlm backend templates
- added dlm_functions.js to support future dlm backend javascript - using
foldable div containers by now
- added some missing closing divs - hopefully all of them at the right place