<?php class crons{ private $db; private $config; function __construct(){ global $datenbank,$grundconfig; $this->db = $datenbank; $this->config = $grundconfig; } public function liste(){ $aus = '<table class="table table-striped"> <tr> <th>Cron</th> <th>Laufzeit</th> <th>URL</th> </tr>'; $result = $this->db->get_results("SELECT * FROM ". PREFIX . CRONS ." "); foreach($result AS $res){ $aus .= ' <tr> <td><b>' . $res->bezeichnung . '</b><br> <small><i>ID: ' . $res->id . '</i></small> </td> <td class="text-center"> <font color="#000080">' . date("d.m.Y - H:i:s", $res->laufzeit) . '</font> </td> <td class="text-center"> <a href="../cron.php?id=' . $res->id . '&pw=' . $this->config->cron_pw . '" target="_blank"><img src="images/gruen.gif" width="15" height="15" border="0" alt="Ausführen"></a> </td> </tr> '; } $aus .= '</table>'; return $aus; } }