Parse error on last line. <?php /** * @package General Utility Functions * @Copyright (C) 2005-2006 Infinityworks Ltd (exceptions applicable) * @ All rights reserved * @version 1.0 **/ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); class HTMLStyle{ function defaultStyle(){ ?> <style type="text/css"> .style3 {color: #000099; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: small;} style5 {font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 11px; text-decoration: none; color: #000000; } .style6 {color: #000000} .style7 {color: black; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: small; } </style> <? } } class HTMLAdminPage{ function startPageWrapperSized($title, $size){ global $mosConfig_live_site , $mosConfig_absolute_path; ?> <table align="left" cellpadding="0" cellspacing="0" width="<?php echo $size?>"> <tr> <td height="30" width="30" style="color:white; background: url(<?php echo $mosConfig_live_site;?>/administrator/components/com_sms/images/tabletopbgleft.png) no-repeat"></td> <td height="30" style="font-size: 14px; font-weight:bold; color:#000000; background: url(<?php echo $mosConfig_live_site?>/administrator/components/com_sms/images/tabletopbgmiddle.png) repeat-x"><?php echo $title?></td> <td height="30" width="30" style="color:white; background: url(<?php echo $mosConfig_live_site;?>/administrator/components/com_sms/images/tabletopbgright.png) no-repeat"></td> </tr> <tr> <td width="30" style="color:white; background: url(<?php echo $mosConfig_live_site?>/administrator/components/com_sms/images/tableleftbgmiddle.png) repeat-y"> </td> <td width="*"> <? } function startPageWrapper($title){ global $mosConfig_live_site , $mosConfig_absolute_path; ?> <table align="left" cellpadding="0" cellspacing="0" width="100%"> <tr> <td height="30" width="30" style="color:white; background: url(<?php echo $mosConfig_live_site;?>/administrator/components/com_sms/images/tabletopbgleft.png) no-repeat"></td> <td height="30" style="font-size: 14px; font-weight:bold; color:#000000; background: url(<?php echo $mosConfig_live_site;?>/administrator/components/com_sms/images/tabletopbgmiddle.png) repeat-x"><?php echo $title?></td> <td height="30" width="30" style="color:white; background: url(<?php echo $mosConfig_live_site;?>/administrator/components/com_sms/images/tabletopbgright.png) no-repeat"></td> </tr> <tr> <td width="30" style="color:white; background: url(<?php echo $mosConfig_live_site?>/administrator/components/com_sms/images/tableleftbgmiddle.png) repeat-y"> </td> <td width="*"> <? } function endPageWrapper(){ global $mosConfig_live_site , $mosConfig_absolute_path; ?> </td> <td width="30" style="color:white; background: url(<?php echo $mosConfig_live_site."/administrator/components/com_sms/images/tablerightbgmiddle.png"?>) repeat-y"> </td> </tr> <tr> <td height="30" width="30" style="color:white; background: url(<?php echo $mosConfig_live_site."/administrator/components/com_sms/images/tablebottombgleft.png"?>) no-repeat"></td> <td height="30" style="font-size: 14px; font-weight:bold; color:white; background: url(<?php echo $mosConfig_live_site."/administrator/components/com_sms/images/tablebottombgmiddle.png"?>) repeat-x"></td> <td height="30" width="30" style="color:white; background: url(<?php echo $mosConfig_live_site."/administrator/components/com_sms/images/tablebottombgright.png"?>) no-repeat"></td> </tr> </table> <? } function startWrapper($overallWidth='950', $menuWidth='220'){ HTMLStyle::defaultStyle(); ?> <table width="<?php echo $overallWidth?>" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" width="<?php echo $menuWidth?>" style="border-right: 0px #800000 dotted;"> <? } function mainWrapper($pageWidth='730'){ ?> </td> <td width="<?php echo $pageWidth?>" valign="top" align="center"> <? } function endWrapper(){?> </td> </tr> </table> <? } } class HTMLPageNav{ function getListFooter(&$pageNav) { global $mosConfig_live_site; $html = '<table border="0" cellspacing="0" cellpadding="0"><tr height="30" ><td width="30" color:#ffffff; style="background: url('.$mosConfig_live_site.'/administrator/components/com_sms/images/tablebottombgleft.png) no-repeat;"><img src="'.$mosConfig_live_site.'/administrator/components/com_sms/images/tablebottombgleft.png"/></td><td style="background: url('.$mosConfig_live_site.'/administrator/components/com_sms/images/tablebottombgmiddle.png) repeat-x; color:cyan;" align="center" colspan="3" width="*">'; $html .= $pageNav->getPagesLinks(); $html .= '</td><td width="30"><img src="'.$mosConfig_live_site.'/administrator/components/com_sms/images/tablebottombgright.png"/></td></tr><tr>'; $html .= '<td></td><td nowrap="true" width="40%" align="right">Display #</td>'; $html .= '<td width="7%">' .$pageNav->getLimitBox() . '</td>'; $html .= '<td nowrap="true" width="50%" align="left">' . $pageNav->getPagesCounter() . '</td>'; $html .= '</tr></table>'; return $html; } } class HTMLMenuBlock{ function createMenuStart($width, $logo){ global $mosConfig_live_site; ?> <table width="<?php echo $width?>" align="center" cellpadding="0" cellspacing="0" border="0"> <tr><td align="center"><img src="<?php echo $mosConfig_live_site.$logo?>"><br><br></td></tr> <? } function createMenuEnd($width){ ?> </table> <? } function createMenuBlock($menuid, &$label, &$url, &$iconurl, $title,$menuheaderbg,$menumiddlebg,$menuheaderft){ global $mosConfig_live_site; echo("<tr>"); echo("<td>"); echo(" <div style=\"cursor:hand;color: #215DC6; cursor:pointer\">"); echo(" <table width=\"100%\" cellpadding=\"0\" height=\"25\" cellspacing=\"0\" >"); echo(" <tr>"); echo(" <th style=\"font-size: 14px; font-weight:bold; color:#000000; background: url($mosConfig_live_site$menuheaderbg) no-repeat\" > <div align=\"center\" >$title</div></th>"); echo(" </tr>"); echo(" </table>"); echo(" </div>"); echo(" <div id=\"$menuid\">"); echo(" <div>"); echo(" <table width=\"200\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#d8d8d8\" >"); echo(" <tr>"); echo(" <td align=\"left\" valign=\"top\" >"); echo(" <table style=\"background: url($mosConfig_live_site$menumiddlebg) repeat-y width=\"200\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#CCCCCC\">"); // Generate menu items $cnt=count($url); for($i=0;$i<$cnt;$i++){ echo(" <tr height=\"35\">"); echo(" <td width=\"20\"> </td>"); echo(" <td width=\"32\"><img src=\"$mosConfig_live_site$iconurl[$i]\" alt=\"$label[$i]\" width=\"24\" height=\"24\" /></td>"); if(substr($url[$i],0,9)=='document.'||substr($url[$i],0,8)=='<script>'){ echo("<td width=\"165\" ><a href=\"javascript:void\" onclick=\"$url[$i]\" style=\"font-weight:plain; color:#404040;\">$label[$i] </a></td>"); }else{ echo("<td width=\"165\" ><a href=\"$url[$i]\" style=\"font-weight:plain; color:#404040;\" >$label[$i] </a></td>"); } echo(" </tr>"); } echo(" </table>"); echo(" </td>"); echo(" </tr>"); echo(" </table>"); echo(" </div>"); echo(" </div>"); echo("</td>"); echo("</tr>"); echo("<tr>"); echo("<td height=\"25\" colspan=\"3\" style=\"background: url($mosConfig_live_site$menuheaderft) no-repeat\"></td>"); echo("</tr>"); } } class HTMLFileUpload{ function uploadImage($file, $option, $redirecturl, $dest_dir, $filename) { global $mosConfig_absolute_path, $mosConfig_live_site; $logourl=""; if(!is_dir($dest_dir) && !is_file($dest_dir)) { mosMakePath($dest_dir); $fp = fopen($dest_dir."/index.html", "w" ); fwrite( $fp, "<html>\n<body bgcolor=\"#FFFFFF\">\n</body>\n</html>" ); fclose( $fp ); mosChmod($dest_dir."/index.html"); } // Do file upload if a file exists to be uploaded if(isset($file)){ if ((strcasecmp(substr($file['name'],-4),".gif")) && (strcasecmp(substr($file['name'],-4),".jpg")) && (strcasecmp(substr($file['name'],-4),".png")) && (strcasecmp(substr($file['name'],-4),".bmp")) ) { mosRedirect( $redirecturl , "Only files of type gif, png, jpg, bmp can be uploaded"."FILE NAME=".$file['name'] ); } if (!move_uploaded_file($file['tmp_name'], $dest_dir."/".$filename)){ mosRedirect( $redirecturl , "Upload FAILED" ); } else { $logourl=$dest_dir."/".$filename; mosChmod($dest_dir."/".$filename); } $_FILES['upload']=NULL; } return $logourl; } } ?> Code (markup): What is the problem? )