View Single Post
  #47  
Old 29th October 2008, 20:02
peoncoder peoncoder is offline
Member
 
Join Date: Oct 2008
Posts: 1
Default
I was looking for a source code that has seeding time integrated into the code.

This one seems to have that.

But something is missing in userdetails.php.

When doing select mysql query for the "snatched stuff" row, there is this in that query for the seeding time:
"UNIX_TIMESTAMP(sn.seedtime) AS s_t, sn.seedtime,..."

But the data is never used anywhere in the page.

In staff panel when displaying links for the pages, $BASEURL is never used so if you are using Sub-Dir, the link will not point to the right URL.

On the line around 290 I replaced this

PHP Code:
<tr align="center">
<td align="left">
<a href="/<?php echo rawurlencode($arr['file_name']); ?>.php"  title="<?php echo safechar($arr['page_name']); ?>"><?php echo safechar($arr['page_name']); ?></a><br /><font class="small"><?php echo safechar($arr['description']); ?></font>
with this:

PHP Code:

<?php
$filename
=$BASEURL."/".rawurlencode($arr['file_name']).".php";?>
<tr align="center">
<td align="left">
<a href="<?php echo $filename?>"  title="<?php echo safechar($arr['page_name']); ?>"><?php echo safechar($arr['page_name']); ?></a><br /><font class="small"><?php echo safechar($arr['description']); ?></font>
Reply With Quote