1. create the plugin
Plugin Name:TEST
Plugin Title:darck mod
Plugin Content:
PHP Code:
<iframe width="100%" scrolling="no" align="middle" height="200" frameborder="0" allowtransparency="yes" marginwidth="0" marginheight="0" src="darck.php" style="margin-left:-30px;" name="torrents"></iframe>
2. create root/darck.php
PHP Code:
<?php
require_once('global.php');
gzip();
dbconn(true);
maxsysop();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>darck mod</title>
<script type="text/javascript" src="carfun/mootools.js"></script>
<script type="text/javascript" src="carfun/imageMenu.js"></script>
</head>
<style>
@import url(carfun/screen.css);
</style>
<body>
<div id="imageMenu">
<ul>
<?php
if($CURUSER)
{
$query="SELECT id, name, t_image FROM torrents WHERE t_image <> '' ORDER BY added DESC limit 10";
$result=mysql_query($query);
$num = mysql_num_rows($result);
{
?>
<?php
while($row = mysql_fetch_assoc($result))
{
$name = substr(htmlspecialchars($row[name]), 0, 30)."...";
?>
<li class="#imageMenu" style="background: url(carfun/dimension_img.php?photo=<?=$row["t_image"]?>) repeat scroll 0%" title="<?=$name?>" >
<a href="details.php?id=<?=$row["id"]?>" target="_blank">
</a><em></em></li>
<?php
}
}
}
?>
</ul></div> <script type="text/javascript">
window.addEvent('domready', function(){
var myMenu = new ImageMenu($$('#imageMenu a'),{openWidth:150});
});
</script>
</body>
</html>
3. upload the root
carfun.tar.gz