I can't find my mistake, I'm a bit tired from the late night last night, and the work I did on the farm this morning..
function execute()
{
$this->tree($this->lang->photos_title);
$this->set_title($this->lang->photos_title);
$a = '0';
$filepath = "/modules/gallery/thumbs/";
$url_path = "/modules/fullsize/";
$dir = dir($filepath);
echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"5\" width=\"75%\">";
while($entry=$dir->read()) {
if($entry == "." || $entry == "..") {
continue;
}
$fp = @fopen("$filepath/$entry","r");
if ($a == '0') {echo "<tr>";}
if ($a == '5') {echo "<tr>";}
if ($a == '10') {echo "<tr>";}
if ($a == '15') {echo "<tr>";}
echo "<td>
<a href='../modules/fullsize/showlarge.php?image=$entry'><img src='$filepath$entry' alt='$entry' border='0'></a>
</td>";
$a = $a + 1;
echo "</tr>
</table>";
return eval($this->template('PHOTOS_FULL'));
The error is:
Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION' or T_VAR' or'}''
It's definatley something tiny, because I'm looking through and am not finding it.