View Single Post
  #4  
Old 5th November 2008, 23:42
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
bittorrent.php FIND:
PHP Code:
function genrelist() {
    
$ret = array();
    
$res mysql_query("SELECT id, name FROM categories ORDER BY name");
    while (
$row mysql_fetch_array($res))
        
$ret[] = $row;
    return 
$ret;

REPLACE:
PHP Code:
function genrelist() {
    
$ret = array();
    
$res mysql_query("SELECT id, name, image FROM categories ORDER BY name");
    while (
$row mysql_fetch_array($res))
        
$ret[] = $row;
    return 
$ret;

browse.php FIND:
PHP Code:
foreach ($cats as $cat)
{
    
$catsperrow 7;
    print((
$i && $i $catsperrow == 0) ? "</tr><tr>" "");
    print(
"<td align=center class=bottom style=\"padding-bottom: 2px;padding-left: 7px\"><input name=c$cat[id] type=\"checkboxden\" " . (in_array($cat[id],$wherecatina) ? "checked " "") . "value=1><a class=catlink href=browse.php?cat=$cat[id]>" htmlspecialchars($cat[name]) . "</a></td>\n");
    
$i++;


REPLACE:

PHP Code:
foreach ($cats as $cat)
{
    
$catsperrow 7;
    print((
$i && $i $catsperrow == 0) ? "</tr><tr>" "");
    print(
"<td align=center class=bottom style=\"padding-bottom: 2px;padding-left: 7px\"><input name=c$cat[id] type=\"hidden\" " . (in_array($cat[id],$wherecatina) ? "checked " "") . "value=1><a class=catlink href=browse.php?cat=$cat[id]><img src=pic/" htmlspecialchars($cat[image]) . "></a></td>\n");
    
$i++;

Reply With Quote