Thread: Add seedbox ip
View Single Post
  #5  
Old 26th April 2011, 01:58
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Wink Fix for pluging
yes there is a problem in queries

I give you the correct file.

PHP Code:
<?php

define
('TS_P_VERSION''1.2 by xam');
// Security Check.
if (!defined('IN_PLUGIN_SYSTEM'))
{
    die(
"<font face='verdana' size='2' color='darkred'><b>Error!</b> Direct initialization of this file is not allowed.</font>");
}

$query sql_query ("SELECT COUNT(seedboxip) as total_seedboxip FROM seedbox");
    
$total_seedboxip mysql_result($query0'total_seedboxip');
    

    
$query sql_query ("SELECT COUNT(p.ip) as total_box FROM peers p LEFT JOIN seedbox s ON (p.ip=s.seedboxip) WHERE p.ip=s.seedboxip");
    
$total_box mysql_result($query0'total_box');


  
$seedbox '
<table border="0" width="100%" height="100">
  <tr>
   <td class=subheader>Stats seedbox</td><td class=subheader></td>
  </tr>
   

  <tr>
   <td><img border="0" src="'
.$BASEURL.'/'.$pic_base_url.'webseede.png.gif" width="50" height="30"><a href="'.$BASEURL.'/admin/index.php?act=Addseedbox.ip">nombre de seedbox :</a> <a href="'.$BASEURL.'/admin/index.php?act=Addseedbox.ip">('.$total_seedboxip.')</a></td>
   <td><img border="0" src="'
.$BASEURL.'/'.$pic_base_url.'webseede.png.gif" width="50" height="30"><a href="'.$BASEURL.'/admin/index.php?act=Addseedbox.ip">nombre de torrent en seedbox :</a> <a href="'.$BASEURL.'/admin/index.php?act=Addseedbox.ip">('.$total_box.')</a></td>
  </tr>



</table>'
;


?>
is shorter compared to the version of Darck ^ ^

Last edited by lafouine022; 26th April 2011 at 04:19.
Reply With Quote
The Following 4 Users Say Thank You to lafouine022 For This Useful Post:
dandanch (19th April 2012), Darkness (28th November 2011), Marco (31st August 2011), nikosuk (26th April 2011)