Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/09/2004, 10:09
Avatar de cadec
cadec
 
Fecha de Ingreso: junio-2004
Mensajes: 278
Antigüedad: 19 años, 9 meses
Puntos: 0
codigo del archivo

este es todo el codigo del archivo
le coloco los numero al costado de las lineas que hacen referencia al error

Inicio del codigo__________________________________________

<?php

function navigationPic($name, $gid, $pid, $orderby) {
global
$baseurl,
$basepath,
$font,
$prefix
;

$orderbyA = convertorderbyin($orderby);
$sql = "SELECT pid, name FROM $prefix"._gallery_pictures." where gid=$gid ORDER BY $orderbyA";
$res = mysql_query($sql);
$max = mysql_num_rows($res);
$ind = getPos($res, $pid);
if ($ind>0) {
$prev = mysql_result($res, $ind-1, 0);
$pname = mysql_result($res, $ind-1, 1);
}
if ($ind<$max-1) {
$next = mysql_result($res, $ind+1, 0);
$nname = mysql_result($res, $ind+1, 1);
}

$out = '<p align="center">';
/*$out .= '<font class="'.$font['normal'].'">&lt;&lt; </font>';
if ($prev)
$out .= '<a class="'.$font['normal'].'" href="'.$baseurl.'&amp;do=showpic&amp;gid='.$gid.' &amp;pid='.$prev.'&amp;orderby='.$orderby.'">'._GA LPREV.'</a><font class="'.$font['normal'].'"> | </font>';
else
$out .= '<font class="'.$font['normal'].'">'._GALPREV.'</font> <font class="content"> | </font>';
if ($next)
$out .= '<a class="'.$font['normal'].'" href="'.$baseurl.'&amp;do=showpic&amp;gid='.$gid.' &amp;pid='.$next.'&amp;orderby='.$orderby.'">'._GA LNEXT.'</a>';
else
$out .= '<font class="'.$font['normal'].'">'._GALNEXT.' </font>';
$out .= '<font class="'.$font['normal'].'"> &gt;&gt;</font>';
*/
if ($prev)
$out .= '<a class="'.$font['normal'].'" href="'.$baseurl.'&amp;do=showpic&amp;gid='.$gid.' &amp;pid='.$prev.'&amp;orderby='.$orderby.'"><i mg src="'.$basepath.'/images/left.gif" alt="'._GALPREV.'" border="0" align="middle "></a><font class="'.$font['normal'].'"> ';
else
$out .= '<img src="'.$basepath.'/images/left.gif" alt="'._GALPREV.'" border="0" align="middle "> ';

//$out .= '<font class="content"> | </font>';
$out .= '<font class="'.$font['title'].'"> - '.$name.' - </font>';

if ($next)
$out .= '<a class="'.$font['normal'].'" href="'.$baseurl.'&amp;do=showpic&amp;gid='.$gid.' &amp;pid='.$next.'&amp;orderby='.$orderby.'"><i mg src="'.$basepath.'/images/right.gif" alt="'._GALNEXT.'" border="0" align="middle "></a>';
else
$out .= '<img src="'.$basepath.'/images/right.gif" alt="'._GALNEXT.'" border="0" align="middle ">';

$out .= '</p>';
return $out;
}


function displayPicturePic($row, $size) {
global
$gallerypath
;
$template = $row[displaytag];
$template = str_replace('<:FILENAME:>', "$gallerypath/$row[galloc]/$row[img]", $template);
$template = str_replace('<:WIDTH:>', $size[0], $template);
$template = str_replace('<:HEIGHT:>', $size[1], $template);
$template = str_replace('<:DESCRIPTION:>', $row[description], $template);
return $template;
}

function displayDescriptionPic($row) {
global
$bgcolor1,
$bgcolor2,
$font
;
/*if(!$displaydescription) {
return;
}*/
if ($row[description]!="")
return '<table border="0" cellpadding="2" cellspacing="2" width="80%" align="center">'
.'<tr>'
.'<td align="left" bgcolor="'.$bgcolor2.'" valign="top" width="'.strlen(_GALDESCRIPTION).'"><font class="content">'._GALDESCRIPTION.'&nbsp;</font></td>'
.'<td align="left" bgcolor="'.$bgcolor1.'" valign="top"><font class="'.$font['normal'].'">'.$row[description].'</font></td>'
.'</tr>'
.'</table>'
;
else return "";
}

function displaySizePic($row, $size) {
global
$gallerypath,
$font
;
return '<font class="content'.$font['normal'].'b>'.underscoreTospace($row[name]).'</b></font><br><font class="'.$font['normal'].'">['.$size[0].' x '.$size[1].' '.substr($row[img],strrpos($row[img], '.')+1).']</font>';
}

function displayDateAddedPic($row) {
global
$bgcolor1,
$bgcolor2,
$font
;
return '<table cellpadding="0" width="160">'
.'<tr>'
.'<td width="90" align="left" bgcolor="'.$bgcolor2.'"><font class="'.$font['tiny'].'">'._GALADDED.'</font></td>'
.'<td width="70" align="left" bgcolor="'.$bgcolor1.'"><font class="'.$font['tiny'].'">'.strftime(_GALDATEBRIEF, $row[unix_time]).'</font></td>'
.'</tr>'
.'</table>'
;
}

function displaySubmitterPic($row) {
global
$bgcolor1,
$bgcolor2,
$font,
$prefix
;
$result = mysql_query("SELECT * FROM $prefix"._users." where unserame='".$row[submitter]."'");
if (mysql_numrows($result)>0) {

las dos ultimas lineas son las que dan error