MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with NZBGetter. If not, see <http://www.gnu.org/licenses/>. */ error_reporting(E_ALL & ~E_NOTICE); # Lets write the config file require_once "../classes/nzbg_conf.class.php"; # Create download list object $objQueue = new nzbg_conf("queue"); # Path to NZB queue $strPath = dirname(__FILE__) . "/../../__exec__/queue/"; $html = '<br />There are currently no NZB files in the queue <br /><br />'; $arrQueue = $objQueue->get_xml_as_array(); if (count($arrQueue) > 0) { $html = '<br />Total of NZB files in queue: ' . $objQueue->count_records(); $html .= '<br /><br /><table id="tblDownloadList">'; $html .= '<thead>'; $html .= '<tr>'; $html .= '<th>Match on title</th>'; $html .= '<th>Date of match</th>'; $html .= '<th>NZB file</th>'; $html .= '<th>NZB size</th>'; $html .= '<th></th>'; $html .= '<th></th>'; $html .= '</tr>'; $html .= '</thead>'; $html .= '<tbody>'; foreach ($arrQueue as $k => $v) { $html .= '<tr>'; $html .= '<td>' . $v['matchtitle'];
$jquery_depend = $templateJQ->contents(); break; case "run": # Load log template $templateRun = new nzbg_template("run"); $content = $templateRun->contents(); # This page has some page dependant jquery functionality $templateJQ = new nzbg_template("jquery.run"); $jquery_depend = $templateJQ->contents(); break; default: # No action, so it must be main $templateMain = new nzbg_template("main"); # Check queue $objQueue = new nzbg_conf("queue"); $intQueueRecords = $objQueue->count_records(); if ($intQueueRecords > 0) { $templateMainQueueMsg = new nzbg_template("main.queue.message"); $templateMainQueueMsg->replace("NUMBER", $intQueueRecords); $templateMain->replace("QUEUE_MESSAGE", $templateMainQueueMsg->contents()); } else { $templateMain->replace("QUEUE_MESSAGE", ""); } if ($appGeneral->ipmessageread == 0) { $templateIPMessage = new nzbg_template("main.ip.message"); $templateIPMessage->replace("CURRENTIP", getip()); $templateMain->replace("IP_MESSAGE", $templateIPMessage->contents()); # This page has some page dependant jquery functionality $templateJQ = new nzbg_template("jquery.main.ip.message"); $jquery_depend = $templateJQ->contents(); } else {
} } else { $html .= $v['minsize'] . " MB"; if ($v['maxsize']) { $html .= " (max: " . $v['maxsize'] . " MB)"; } } $html .= '</center></td>'; $html .= '<td valign="top"><center>'; $html .= isset($v["hits"]) ? $v["hits"] : "0"; $html .= '</center></td>'; $html .= '<td valign="top"><center>'; $html .= isset($v["lastdate"]) ? $v["lastdate"] : "-"; $html .= '</center></td>'; $html .= '<td valign="top">'; $html .= '<center><a href="?a=nzbd&e=' . $k . '&t=' . urlencode(stripslashes($v["title"])) . '"><img src="images/edit.png" border="0"></a></center>'; $html .= '</td>'; $html .= '<td valign="top">'; $html .= '<center><a href="?a=nzbd&d=' . $k . '&t=' . urlencode(stripslashes($v["title"])) . '"><img src="images/remove.png" border="0"></a></center>'; $html .= '</td>'; $html .= '</tr>'; } $html .= '</tbody>'; $html .= '</table><br />'; $html .= 'Total number of entries: ' . $objDownload->count_records() . "<br />"; $html .= 'Total of entries for tvnzb.com: ' . $counter_tvnzb . "<br />"; $html .= 'Total of entries for nzbindex.nl: ' . $counter_nzbindex; $html .= '<br /><br />'; } echo $html; }