1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Issue #12 Moved Downloads code out of request.php and into it's own requester. Corrected download class issue.

This commit is contained in:
Cameron
2013-02-23 12:39:58 -08:00
parent b6f45d838b
commit 71b71d42b4
4 changed files with 510 additions and 489 deletions

View File

@@ -1527,8 +1527,12 @@ $columnInfo = array(
{
$filesize = filesize($DOWNLOADS_DIRECTORY.$dlInfo['download_url']);
}
elseif($dlInfo['download_url'][0] == '{')
{
$filesize = filesize($tp->replaceConstants($dlInfo['download_url']));
}
else
{
{
$filesize = filesize(e_BASE.$DOWNLOADS_DIRECTORY.$dlInfo['download_url']);
}
}
@@ -1593,8 +1597,8 @@ $columnInfo = array(
$dlInfo['download_thumb'] = $tp->toDB($_POST['download_thumb']);
$dlInfo['download_image'] = $tp->toDB($_POST['download_image']);
$dlInfo['download_comment'] = $tp->toDB($_POST['download_comment']);
$dlInfo['download_class'] = intval($_POST['download_class']);
$dlInfo['download_visible'] = intval($_POST['download_visible']);
$dlInfo['download_class'] = $tp->toDB($_POST['download_class']);
$dlInfo['download_visible'] = $tp->toDB($_POST['download_visible']);
$dlInfo['download_datestamp'] = e107::getDate()->convert($_POST['download_datestamp'],'inputdate');