Thread: H-Tracker v2
View Single Post
  #24  
Old 17th April 2009, 11:21
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
2 bugs fixed:

open account.php & find :

Code:
 htmlspecialchars($CURUSER["age"]) . "\" disabled
& replace with:
Code:
 htmlspecialchars($CURUSER["age"]) . "\" readonly
Open torrents-upload.php , find

Code:
$descr = sqlesc($_POST['descr']);
& replace with:
Code:
$descr = $_POST['descr'];
(this will fix "rnrn" chars from torrent description) (on windows)

if i will found another bugs , i will post in the same topic,
My advice: watch every time this topic

Last fix 17.04.2009
for who receive this error
Code:
Warning: Invalid argument supplied for foreach() in Q:\trackerwindows\xampp\htdocs\torrents-details.php on line 357
Just replace your old files with this


11.05.2009

open uploadapps.php

find:

Code:
  if ($action == "show")
	$hide = "[<a href=/uploadapps.php>Hide accepted/rejected</a>]";
  else {
	$hide = "[<a href=/uploadapps.php?action=show>Show accepted/rejected</a>]";
	$where = "WHERE status = 'pending'";
	$where1 = "WHERE uploadapp.status = 'pending'";
  }

replace with:

Code:
if (!$action || $action == "show") {
  
  if ($action == "show")
	$hide = "[<a href=".$site_config['SITEURL']."/uploadapps.php>Hide accepted/rejected</a>]";
  else {
	$hide = "[<a href=".$site_config['SITEURL']."/uploadapps.php?action=show>Show accepted/rejected</a>]";
	$where = "WHERE status = 'pending'";
	$where1 = "WHERE uploadapp.status = 'pending'";
  }
tnx to Markus Torstensson
Attached Files
File Type: rar 11.05.2009.rar (27.7 KB, 327 views)

Last edited by hack346; 11th May 2009 at 12:32.
Reply With Quote
The Following User Says Thank You to hack346 For This Useful Post:
Krypto (17th April 2009)