1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00
php-e107/e107_plugins/download/e_dashboard.php
Tijn Kuyper 1b9251e75f
Fixes #3622 - Reported broken downloads reworked
- Moved away from e107_admin/message.php to its own place in the Downloads admin area.
- Notification of broken downloads now controlled by e_notify (see Admin Area > Settings > Notify)
- Updated notification message
- Added e_dashboard addon to show latest status on broken download reports
2019-10-27 21:40:59 +01:00

29 lines
660 B
PHP

<?php
if (!defined('e107_INIT')) { exit; }
class download_dashboard
{
function chart()
{
return false;
}
function status()
{
return false;
}
function latest()
{
$sql = e107::getDb();
$reported_downloads = $sql->count('generic', '(*)', "WHERE gen_type='Broken Download'");
$var[0]['icon'] = "<img src='".e_PLUGIN_ABS."download/images/downloads_16.png' style='width: 16px; height: 16px; vertical-align: bottom' alt='download plugin icon' /> ";
$var[0]['title'] = LAN_DL_LATEST_01;
$var[0]['url'] = e_PLUGIN."download/admin_download.php?mode=broken&action=list";
$var[0]['total'] = $reported_downloads;
return $var;
}
}