<? include("vars.inc.php"); ?>
<table width="600" cellspacing="1">
	<tr>
		<td id="titel">
          <a onclick="PluginHistory()">
            <img onmouseover="Tip('<? echo $TIP_PLUGINS_AKT; ?>')" src="images/reload.png" align="right">
          </a>
          <a onclick="DelVerlauf()">
            <img onmouseover="Tip('<? echo $TIP_PLUGINS_DEL; ?>')" src="images/trash.png" align="right">
          </a>
          Pluginverlauf
        </td>
	</tr>
	<tr>
		<td>
			<table width="100%" cellspacing="10" id="tableborderless">
				<tr>
					<td valign="top" width="70">
						<img src="images/verlauf.png" alt="Verlauf">
					</td>
					<td align="left">
						<table border="0" id="tableborderless" width="100%">
						<?
							$LOG="";
							exec("cat ".$EASYPORTAL_PLUGIN_LOG,$LOG);

							foreach($LOG as $ROW) {

								$DATA=explode(";",$ROW);

								if($DATA[2]=="aktiviert") {
									$IMG="greenled.png";
									$ACT="off";
									$BUTTON="Deaktivieren";
									$MESSAGE=$TIP_PLUGINS_OFF;
								}

								if($DATA[2]=="deaktiviert") {
									$IMG="redled.png";
									$ACT="on";
									$BUTTON="Aktivieren";
									$MESSAGE=$TIP_PLUGINS_ON;
								}

								echo "<tr>
								<td><img src=\"images/$IMG\">&nbsp;</td>
								<td>$DATA[0]</td>
								<td><b>$DATA[1]</b></td>
								<td>wurde $DATA[2]</td>
								<td><INPUT onmouseover=\"Tip('$MESSAGE')\" type=\"button\" value=\"$BUTTON\" onclick=\"EditPluginVerlauf('$ACT','$DATA[1]','$EASYPORTAL_PLUGIN_LOG')\"></td>
								</tr>";
							}
						?>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>