View Single Post
  #1  
Old 26th September 2019, 23:45
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default Thanks before you can download
Does someone have a code for Thanks before user can download, I found this one but not work here is code use in details.php


this is for comments



Quote:
$em = mysql_query("SELECT user FROM comments WHERE user = ".sqlesc($CURUSER['id'])." AND torrent = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
if ($CURUSER["id"] == $row["owner"]) $CURUSER["downloadpos"] = "yes";
if ($CURUSER["downloadpos"] != "no")
{
print("<tr><td align="right" class="rowhead" width="1%">Download</td><td class="row1" width="99%" align="left">");
if ($owned || ($em==1))
print("<a class="index" href="download.php/$id/" . rawurlencode($row["filename"]) . "">" . htmlspecialchars($row["filename"]) . "</a>");
else
print("<font color=darkred size=3><b>Sorry m8, First say thanks for all the work the uploaders did. <a class=index href=comment.php?action=add&amp;tid=$id><font color=green size=3><b><blink>CLICK HERE</blink></b></font></a> To sign your Thanks!!</b></font>");

print("</td></tr>");
Reply With Quote