Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

SHOUTcast radio — 2012-12-14 06:17:38 in v2.08 Mods Completed
very big load....Page Generated In 30.071475 secs.
is easy and how to show in block the amount needed and amount received so far for month's donation goal.
"Movie-Torrentz, post: 87111":
When a user downloads a torrent, it shows the description in the torrent with the message shown above, try clicking show torrent info on utorrent to see message..
thanks for the reply
but the ip is not vissible...this is problem
what is it? any images?
how to search a word in short description

maybe the solution is from https://www.torrenttrader.org/topic/17356-search-in-description/#entry86950



foreach (array("torrents.name", "torrents.description") as $sss)

yes its ok the first post, i forgot to remove the below code



$where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

   SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]);

somewhere else i had the below code from arcticwolf. is it ok?



function where ($scriptname = "index", $userid, $update=1){

   if (!is_valid_id($userid))

   die;

$where = str_replace($_SERVER["DOCUMENT_ROOT"], null, $_SERVER["SCRIPT_FILENAME"]);

   if (preg_match("/account-details/i", $scriptname))

   $where = "Browsing Account Details...";

   elseif (preg_match("/account/i", $scriptname))

   $where = "Browsing User Control Panel...";

   elseif (preg_match("/forums/i", $scriptname))

   $where = "Browsing Forums...";

   elseif (preg_match("/index/i", $scriptname))

   $where = "Browsing Homepage...";

   else

   $where = "Unknown Location...";

   if ($update) {

   $query = sprintf("UPDATE users SET page=".sqlesc($where)." WHERE id ='%s'", mysql_real_escape_string($userid));

   $result = SQL_Query_exec($query);

   }

   return $where;

}

function where22($scriptname = "index", $userid, $update = 1, $title)

{

   if (!is_valid_id($userid))

   die;

   if (preg_match("/torrents-details/i", $scriptname)) {

   if (is_valid_id($_GET['id'])) {

   $res = SQL_Query_exec("SELECT `name` FROM `torrents` WHERE `id` = '" . $_GET['id'] . "'");

   $row = mysql_fetch_assoc($res);

   }

   $where = "Browsing Torrents Details (" . ($row ? $row['name'] : "ID: $_GET[id]") . ")...";

   } elseif (preg_match("/torrents.php/i", $scriptname)) {

   $where = "Browsing Torrents";

   } elseif (preg_match("/staff.php/i", $scriptname)) {

   $where = "Staff Page";

   } elseif (preg_match("/download.php/i", $scriptname)) {

   if (is_valid_id($_GET['id'])) {

   $res = SQL_Query_exec("SELECT `name` FROM `torrents` WHERE `id` = '" . $_GET['id'] . "'");

   $row = mysql_fetch_assoc($res);

   }

   $where = "Downloading Torrent (" . ($row ? $row['name'] : "ID: $_GET[id]") . ")...";

   } elseif (preg_match("/download_rss.php/i", $scriptname)) {

   if (is_valid_id($_GET['id'])) {

   $res = SQL_Query_exec("SELECT `name` FROM `torrents` WHERE `id` = '" . $_GET['id'] . "'");

   $row = mysql_fetch_assoc($res);

   }

   $where = "Rss Downloading (" . ($row ? $row['name'] : "ID: $_GET[id]") . ")...";

   } elseif (preg_match("/account-details/i", $scriptname)) {

   if (is_valid_id($_GET['id'])) {

   $res = SQL_Query_exec("SELECT `username` FROM `users` WHERE `id` = '" . $_GET['id'] . "'");

   $row = mysql_fetch_assoc($res);

   }

   $where = "Browsing Account Details (" . ($row ? $row['username'] : "ID: $_GET[id]") . ")...";

   } elseif (preg_match("/torrents-upload/i", $scriptname)) {

   $where = "Uploading Torrent..";

   } elseif (preg_match("/account/i", $scriptname)) {

   $where = "Browsing User Control Panel";

   } elseif (preg_match("/torrents-edit.php/i", $scriptname)) {

   if (is_valid_id($_GET['id'])) {

   $res = SQL_Query_exec("SELECT `name` FROM `torrents` WHERE `id` = '" . $_GET['id'] . "'");

   $row = mysql_fetch_assoc($res);

   }

   $where = "Edited An Torrent (" . ($row ? $row['name'] : "ID: $_GET[id]") . ")...";

   } elseif (preg_match("/torrents-search/i", $scriptname)) {

   $where = "Searching Torrents";

   } elseif (preg_match("/forums/i", $scriptname)) {

   $forumid = $_GET[topicid];

   if ($forumid > 0) {

   $res_forumid = SQL_Query_exec("SELECT subject FROM forum_topics WHERE id=$forumid");

   $row_forumid = mysql_fetch_row($res_forumid);

   $forumname = $row_forumid[0];

   $smallname3 = substr(htmlspecialchars($forumname), 0, 40);

   $where = "Browsing Forums (Topic: $smallname3)";

   } else {

   $where = "Browsing Forums";

   }

   } elseif (preg_match("/index/i", $scriptname)) {

   $where = "Browsing Homepage";

   } else {

   if ($title)

   $where = $title;

   else

   $where = str_replace($_SERVER["DOCUMENT_ROOT"], null, $_SERVER["SCRIPT_FILENAME"]);

   }

   if ($update) {

   $ip = getip();

   $query = sprintf("UPDATE users SET last_access=" . sqlesc(get_date_time()) . ", ip=" . sqlesc($ip) . ", page=" . sqlesc($where) . " WHERE id ='%s'", mysql_real_escape_string($userid));

   $result = SQL_Query_exec($query);

   }

   return $where;

}

"mostvotedplaya, post: 86905":
update the where function in backend/functions.php
ihave the where function



function where ($scriptname = "index", $userid, $update=1){

if (!is_valid_id($userid))

die;

if (preg_match("/torrents-details/i", $scriptname))

$where = "Browsing Torrents Details (ID: $_GET[id])...";

elseif (preg_match("/torrents.php/i", $scriptname))

$where = "Browsing Torrents...";

elseif (preg_match("/account-details/i", $scriptname))

$where = "Browsing Account Details (ID: $_GET[id])...";

elseif (preg_match("/torrents-upload/i", $scriptname))

$where = "Uploading Torrent..";

elseif (preg_match("/account/i", $scriptname))

$where = "Browsing User Control Panel...";

elseif (preg_match("/torrents-search/i", $scriptname))

$where = "Searching Torrents...";

elseif (preg_match("/forums/i", $scriptname))

$where = "Browsing Forums...";

elseif (preg_match("/index/i", $scriptname))

$where = "Browsing Homepage...";

else

$where = "Unknown Location...";

if ($update) {

$query = sprintf("UPDATE users SET page=".sqlesc($where)." WHERE id ='%s'", mysql_real_escape_string($userid));

$result = SQL_Query_exec($query);

}

return $where;

}


[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6248"]functions.php[/url]
as you see in attach i dont see what page see the member, how to fix it?

its ok for me, thanks Arcticwolf
Database Error in admincp.php on line 4847: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, 'confirmed', 'xxxxx@gmail.com')' at line 1. Query was: INSERT INTO users (added, last_access, secret, username, password, status, email) VALUES(NOW(), NOW(), 'xxxxxxxxxxxxxxxxxxxxxxxxxx', 'test', aaaaaaaaaaaaaaa, 'confirmed', 'xxxxxx@gmail.com').

in line 4847

SQL_Query_exec("INSERT INTO users (added, last_access, secret, username, password, status, email) VALUES(NOW(), NOW(), $secret, $username, $passhash, 'confirmed', $email)");
i use the below code but when a user to connect in tracker i take the message. Ithink the problem is somewhere the sha1 password

The specified username or password was incorrect.



#======================================================================#

# Add Users

#======================================================================#

if ($action == "adduser") {

if ($CURUSER["class"] < "7"){

show_error_msg("Error","Sorry you do not have the rights to view this page!",1);

}

if ($_SERVER["REQUEST_METHOD"] == "POST")

{

if ($_POST["username"] == "" || $_POST["password"] == "" || $_POST["email"] == "")

show_error_msg("Error", "Missing form data.");

if ($_POST["password"] != $_POST["password2"])

show_error_msg("Error", "Passwords mismatch.");

$username = sqlesc($_POST["username"]);

$password = $_POST["password"];

$email = sqlesc($_POST["email"]);

$secret = mksecret();

$passhash = sqlesc(md5($password));

$secret = sqlesc($secret);

SQL_Query_exec("INSERT INTO users (added, last_access, secret, username, password, status, email) VALUES(NOW(), NOW(), $secret, $username, $passhash, 'confirmed', $email)");

$res = SQL_Query_exec("SELECT id FROM users WHERE username=$username");

$arr = mysql_fetch_row($res);

if (!$arr)

show_error_msg("Erro", "Unable to create the account. The user name is possibly already taken.");

header("Location: account-details.php?id=$arr[0]");[/b]

die;

}



stdhead("Add user");

navmenu();

begin_frame();

?>

<div align=center>

<h1>Add user</h1>

<form method=post action=admincp.php?action=adduser>

<table border=1 cellspacing=0 cellpadding=5>

<tr><td class=rowhead>Username</td><td><input type=text name=username size=40></td></tr>

<tr><td class=rowhead>Password</td><td><input type=password name=password size=40></td></tr>

<tr><td class=rowhead>Re-type password</td><td><input type=password name=password2 size=40></td></tr>

<tr><td class=rowhead>E-mail</td><td><input type=text name=email size=40></td></tr>

<tr><td colspan=2 align=center><input type=submit value="Okay" class=btn></td></tr>

</table>

</form>

</div>

<?

end_frame();

stdfoot();

}

#======================================================================#

# END Add Users

#======================================================================#

EDIT:i change the
$passhash = sqlesc(md5($password)); 

[b] with the


$passhash = sqlesc(sha1($password)); 
 and its ok now
yes its ok for 2.08 after



//take comment add

if ($_GET["takecomment"] == 'yes'){

$commentbody = $_POST['body'];

if (!$commentbody)

show_error_msg("Error","You did not enter anything!",1);






Below, add:





//PM NOTIF

$res = SQL_Query_exec("SELECT name, owner FROM torrents WHERE id = $id");

$arr = mysql_fetch_array($res);

if($CURUSER['id'] != $arr["owner"]) {

$msg = "You have received a comment on your torrent

."/torrents-details.php?id=$id]" . $arr[name] . "";

SQL_Query_exec("INSERT INTO messages (poster, sender, receiver, msg, added,subject) VALUES('0','0', " . $arr['owner'] . ", " .

sqlesc($msg) . ", '" . get_date_time() . "','New comment!')");

}

//PM NOTIF

[/code]
"mostvotedplaya, post: 80300":
in download.php for 2.07+ change



$res = SQL_Query_exec("SELECT filename, banned, external, announce FROM torrents WHERE id =".intval($id));

to






$res = SQL_Query_exec("SELECT filename, banned, external, announce, thanks, owner FROM torrents WHERE id =".intval($id));






Above







$name = $row['filename'];






Add







if ($CURUSER["id"] != $row["owner"] && !in_array($CURUSER["username"], explode(',', $row["thanks"])))

show_error_msg("Error", "To download you must thank the user.", 1);




Try That ^
when download a torrent i take a message: To download you must thank the user. How to back to torrent from this ....something Back and click this to back in Thanks in torrent details.Something that as attach file. I hope you understand me

Visible torrents — 2012-11-16 07:30:47 in General Chat
i understand now, thanks
Visible torrents — 2012-11-16 04:07:59 in General Chat
then if i set the default the max_dead_torrent_time is wrong because it must after 6 hours to change not 1 hour



$site_config['autoclean_interval'] = '3600';  

$site_config['max_dead_torrent_time'] = '21600';/

Visible torrents — 2012-11-15 17:41:24 in General Chat
yes i Lee is 6 hours but i ask again...why i force cleanup the vidible torrent are not visible?....i hope you understand me.
Visible torrents — 2012-11-15 16:06:21 in General Chat
but if i click the Forced Clean all torrents from visible are not visible

what i change in config to see all torrents atleast 1 day
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728