Location: PHPKode > projects > ZompLog > plugins/lightbox/install.php
<?php
ob_start();

include_once("../../admin/functions.php");
include("../../admin/config.php");
include("../../admin/session.php");
include("../../admin/header.php");
?>

<div id="submenu"><a href="../../admin/plugins.php" class="sub">plugins</a></div>


<div id="side">
<div class="title">&nbsp;</div>
<div class="box"><?php
if(!empty($messages)){
	displayErrors($messages);
}

elseif($_GET[message] && empty($messages)){
  	displayMessage($_GET[message]);
}

else{
  	echo "Install plugin.";
}  
  
?>
</div></div>


<div id="main">
<h1>Install plugin</h1><br />
<?php

// all this plugin needs to do is make itself known to Zomplog

   $query = "INSERT INTO $table_plugins (name,active,installed) VALUES ('lightbox','1','1')";

   mysql_query($query) or die (mysql_error());


echo "<div class='text'><img src='../../install/images/check.gif'> Plugin set to active! All set!</div><br />";

echo "go back to <a href='../../admin/plugins.php'>plugins-panel</a>";

?>
</div>
<?php include ("../../admin/footer.php"); ?>
Return current item: ZompLog