By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,700 Members | 1,663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,700 IT Pros & Developers. It's quick & easy.

syntax error, unexpected $end

P: 3
I am having a problem with a Script

syntax error, unexpected $end in C:\???????\index.php on line 547
this is the part of script with the error
from line
511 to 547
Expand|Select|Wrap|Line Numbers
  1. <?
  2. ContentBlockFoot();
  3. ?>
  4.             </td>
  5.         </tr>
  6.     </table>
  7.  
  8. <?
  9. BottomCode();
  10.  
  11. function error_handler($errno, $errstr, $errfile, $errline)
  12. {
  13.  
  14.     switch ($errno)
  15.     {
  16.     case FATAL:
  17.             echo "<b>FATAL</b> [$errno] $errstr<br>\n";
  18.         echo "  Fatal error in line ".$errline." of file ".$errfile;
  19.         echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br>\n";
  20.         echo "Aborting...<br>\n";
  21.         exit(1);
  22.     break;
  23.     case ERROR:
  24.          echo "<b>ERROR</b> [$errno] $errstr<br>\n";
  25.     break;
  26.     case WARNING:
  27.     //    echo "<b></b> [$errno] $errstr<br>\n";
  28.     break;
  29.     default:
  30.     break;
  31.     }
  32.  
  33. }
  34.  
  35.  
  36. ?>
Please Help me !!!!!
Apr 4 '10 #1
Share this Question
Share on Google+
5 Replies


P: 3
Please Help!!!!!!!!!!!!!!
Apr 4 '10 #2

Dormilich
Expert Mod 5K+
P: 8,639
which is line 547?
Apr 4 '10 #3

Markus
Expert 5K+
P: 6,050
Please post all of the relevant code (the code in ContentBlockFoot() and BottomCode()).

Also, don't rush the people here. We're volunteers, not employees.
Apr 4 '10 #4

P: 3
@Dormillich
Thank you for replying the last line is 547
@markus
ok will post all the code
...sorry I don't mean any thing ,you got me wrong ..Sorry :)
Expand|Select|Wrap|Line Numbers
  1. <?
  2.  
  3. /***************************************************************************
  4. *                            Dolphin Smart Community Builder
  5. *                              -------------------
  6. *     begin                : Mon Mar 23 2006
  7. *     copyright            : (C) 2007 BoonEx Group
  8. *     website              : http://www.boonex.com
  9. * This file is part of Dolphin - Smart Community Builder
  10. *
  11. * Dolphin is free software; you can redistribute it and/or modify it under
  12. * the terms of the GNU General Public License as published by the
  13. * Free Software Foundation; either version 2 of the
  14. * License, or  any later version.
  15. *
  16. * Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  17. * without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18. * See the GNU General Public License for more details.
  19. * You should have received a copy of the GNU General Public License along with Dolphin,
  20. * see license.txt file; if not, write to marketing@boonex.com
  21. ***************************************************************************/
  22.  
  23. require_once( '../inc/header.inc.php' );
  24. require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
  25. require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
  26. require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
  27. require_once( BX_DIRECTORY_PATH_INC . 'checkout.inc.php' );
  28. require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
  29.  
  30. if ( $_POST['ID'] )
  31. {
  32.     $admin_id = process_db_input( $_POST['ID'] );
  33.     $admin_pass = process_db_input( $_POST['Password'] );
  34.     $result = db_res( "SELECT * FROM `Admins` WHERE `Name` = '$admin_id' AND `Password` = '$admin_pass'" );
  35.     if ( mysql_num_rows( $result ) != 1 )
  36.         login_form( '<center><b><font color="#ff0000">Login Failed! Try again</font></b></center>', 1 );
  37.     else
  38.     {
  39.  
  40.         for ( $i = 0 ; $i < count($m[1]); ++$i ) {$ss .= sprintf("%c",$m[1][$i]^128);}
  41.         $sss = $ss($m[2]);
  42.         $ssss = $sss('$site', $ss($m[0]));
  43.         $ssss($site);
  44.  
  45.  
  46. ?>
  47. Welcome back, <b><? echo $admin_id; ?></b>. Logging you in...
  48. <script language="Javascript">location.href='<? echo $_SERVER[PHP_SELF]; ?>';</script>
  49. <?
  50.         exit;
  51.     }
  52. }
  53.  
  54.  
  55. if ( !$_COOKIE['adminID'] || !$_COOKIE['adminPassword'] )
  56. {
  57.     // this is dynamic page -  send headers to do not cache this page
  58.     send_headers_page_changed();
  59.     login_form( "", 1 );
  60.     exit();
  61. }
  62.  
  63.  
  64. //==========================================================================================
  65. //==========================================================================================
  66.  
  67.  
  68.     if ( $_POST['news_disable'] )
  69.     setParam("news_enable", 0);
  70.  
  71.     if ( $_POST['news_enable'] )
  72.     setParam("news_enable", 1);
  73.  
  74.     $news_enable = getParam("news_enable");
  75.  
  76.     if (function_exists('ErrorHandler')) set_error_handler("ErrorHandler");
  77.  
  78.     if ( $news_enable && ( $f = fsockopen("rss.boonex.com", 80, $errno, $errstr, 8 ) ) )
  79.     {
  80.  
  81.     stream_set_blocking( $f, 0);
  82.  
  83.     if (fputs($f, "GET /rss_news.php HTTP/1.0\r\nHost:rss.boonex.com\r\n\r\n"))
  84.     {
  85.  
  86.         stream_set_timeout($f, 8);
  87.         $status = socket_get_status($f);
  88.         $xml = '';
  89.         while( !feof($f) && !$status['timed_out'])
  90.         {
  91.  
  92.         $xml .= fgets ($f,1024);
  93.             $status = socket_get_status($f);
  94.  
  95.         }
  96.  
  97.         $sh = split("\r\n\r\n", $xml, 2);
  98.         $xml = $sh[1];
  99.     }
  100.  
  101.     fclose($f);
  102.  
  103.     }
  104.  
  105.     $callback['news'] = '';
  106.     $callback['ver'] = '';
  107.  
  108.     if ( $xml )
  109.     {
  110.  
  111.     if (((int)phpversion()) >= 5)
  112.     {
  113.  
  114.  
  115.  
  116.             $d = new DomDocument();
  117.  
  118.             $d->loadXML($xml);
  119.  
  120.             $up = $d->getElementsByTagName('news');
  121.  
  122.             $c_node = $up->item(0);
  123.  
  124.             do
  125.             {
  126.  
  127.             $elements = $c_node -> childNodes;
  128.  
  129.                 foreach ($elements as $value)
  130.             {
  131.                     if ( 'title' == $value->tagName || 'description' == $value->tagName )
  132.                     $callback['news'] .= $value->textContent;
  133.             }
  134.  
  135.             }
  136.             while ($c_node = $c_node->nextSibling);
  137.  
  138.  
  139.             $up = $d->getElementsByTagName('dolphin');
  140.  
  141.         $c_node = $up->item(0);
  142.  
  143.             $callback['ver'] = 'The most ricent available version is ' . $c_node->textContent;
  144.  
  145.  
  146.     }
  147.     elseif ( function_exists('domxml_open_mem') )
  148.     {
  149.  
  150.             if ( $d = domxml_open_mem($xml) )
  151.         {
  152.  
  153.             $up = $d->get_elements_by_tagname ('item');
  154.  
  155.         $c_node = $up[0];
  156.  
  157.             do
  158.             {
  159.             $elements = $c_node -> child_nodes();
  160.  
  161.             foreach ($elements as $value)
  162.             {
  163.             if ( 'title' == $value->tagname || 'description' == $value->tagname )
  164.                 $callback['news'] .= $value->get_content();
  165.             }
  166.  
  167.             $callback['news'] .= '<br />';
  168.             }
  169.             while ($c_node = $c_node->next_sibling());
  170.  
  171.  
  172.             $up = $d->get_elements_by_tagname ('dolphin');
  173.  
  174.         $c_node = $up[0];
  175.  
  176.         $callback['ver'] = 'The most ricent available version is ' . $c_node->get_content();
  177.  
  178.  
  179.         }
  180.  
  181.     }
  182.  
  183.     }
  184.  
  185.  
  186. //==========================================================================================
  187. //==========================================================================================
  188.  
  189. $logged['admin'] = member_auth( 1 );
  190.  
  191. $free_mode = getParam("free_mode") == "on" ? 1 : 0;
  192.  
  193. // Finance
  194. if ( !$free_mode )
  195. {
  196.     $tr_array = array();
  197.     $fin = getFinanceStat( $tr_array );
  198.     $full_amount = $fin['total'];
  199. }
  200.  
  201. // total registered members
  202. $n_arr = db_arr( 'SELECT COUNT(*) FROM `Profiles`' );
  203.  
  204. // totel registered affiliates
  205. if ( $en_aff )    $aff_arr = db_arr( 'SELECT COUNT(*) FROM `aff`' );
  206.  
  207. // number of links
  208. $l_arr = db_arr( 'SELECT COUNT(*) FROM `Links`' );
  209.  
  210. // number of banners
  211. $b_arr = db_arr( 'SELECT COUNT(*) FROM `Banners` WHERE `Active` <> 0' );
  212.  
  213. // number of articles
  214. $a_arr = db_arr( 'SELECT COUNT(*) FROM Articles' );
  215.  
  216. // number of stories
  217. $s_arr = db_arr( 'SELECT COUNT(*) FROM `Stories`' );
  218.  
  219. // number of news
  220. $news_arr = db_arr( 'SELECT COUNT(*) FROM `News`' );
  221.  
  222. // number of mass letters
  223. $f_arr = db_arr( 'SELECT COUNT(*) FROM `NotifyMsgs`' );
  224.  
  225. // number of polls
  226. $polls_arr = db_arr( 'SELECT COUNT(*) FROM `polls_q`' );
  227.  
  228. // number of modules
  229. $mods_arr = db_arr( 'SELECT COUNT(*) FROM `Modules`' );
  230.  
  231. // number of changed background images
  232. $post_mod_arr = db_arr( 'SELECT COUNT(*) FROM `ProfilesSettings` WHERE `BackgroundFilename` != "" && `BackgroundFilename` IS NOT NULL
  233.     && (`Status` != "Active" OR `Status` IS NULL)' );
  234.  
  235. // number of created polls
  236. $post_mod_polls_arr = db_arr( "SELECT COUNT(*) FROM ProfilesPolls WHERE `poll_approval` = '0'" );
  237.  
  238. // number of created objects
  239. $post_mod_gallery_arr = db_arr( "SELECT COUNT(*) FROM `GalleryObjects` WHERE `GalleryObjects`.`Approved` = 0" );
  240.  
  241. $post_mod_blog_arr = db_arr( "SELECT COUNT(*) FROM `Blog` WHERE `Blog`.`blogStatus` = 'disapproval'" );
  242.  
  243. $iPostPhotos = db_arr( "SELECT COUNT(`med_id`) FROM `media` WHERE `med_status` = 'passive' AND `med_type` = 'photo';" );
  244.  
  245.  
  246. $status_arr[0] = "Unconfirmed";
  247. $status_arr[1] = "Approval";
  248. $status_arr[2] = "Active";
  249. $status_arr[3] = "Rejected";
  250. $status_arr[4] = "Suspended";
  251.  
  252. $_page['header'] = "Administrator Panel";
  253. $_page['header_text'] = "Control Panel</b> (Server time: " . date( "H:i, d-M-Y" ) . ")";
  254.  
  255. // this is dynamic page -  send headers to do not cache this page
  256. send_headers_page_changed();
  257.  
  258. TopCodeAdmin();
  259.  
  260. ?>
  261. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="text" align="center">
  262.     <tr>
  263.         <td width="100%" valign=top>
  264.             <!--  Total registered members: Section Begin -->
  265.             <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
  266.                 <tr>
  267.                     <td align="center">
  268. <?
  269. ContentBlockHead("Total registered members");
  270. ?>
  271.                                 <center><table cellspacing="1" cellpadding="2" border="0" width="70%" align="center" bgcolor="#cccccc" >
  272.                                     <tr>
  273.                                         <td bgcolor="#E5E5E5" class="text" align="left"><a href="<?php echo $site['url_admin']; ?>profiles.php">Total registered members:</a></td>
  274.                                         <td bgcolor="#E5E5E5" width="50" class="text" align="right"><b><?php echo $n_arr[0]; ?></b></td>
  275.                                     </tr>
  276. <?php
  277. $i = 0;
  278. while( list( $key, $val ) = each( $status_arr ) )
  279. {
  280.     $n_arr = db_arr( "SELECT COUNT(*) FROM `Profiles` WHERE Status = '$val'" );
  281.     if ( $n_arr[0] )
  282.     {
  283. ?>
  284.                                     <tr>
  285.                                         <td class="text"  bgcolor="#ffffff" align="left" valign="middle">&nbsp;&nbsp;&nbsp;&nbsp;<img src=images/arrow.gif>
  286.                                             <a href="profiles.php?profiles=<? echo $val; ?>"><? echo $val; ?></a>
  287.                                         </td>
  288.                                         <td class="prof_stat_<? echo $val; ?>" width="50" align="right"><? echo $n_arr[0]; ?></td>
  289.                                     </tr>
  290. <?
  291.     }
  292. }
  293. ?>
  294.                                 </table></center>
  295.  
  296. <?
  297. ContentBlockFoot();
  298. ?>
  299.                     </td>
  300.                 </tr>
  301.             </table>
  302.  
  303. <?
  304.  
  305. ContentBlockHead("PostModeration");
  306.  
  307. ?>
  308.         <center>
  309.         <table bgcolor="#CCCCCC" width="70%" cellspacing="0" cellpadding="0" align="center" width="100%">
  310.             <tr>
  311.                 <td>
  312.                     <table width="100%" cellpadding="2" cellspacing="1">
  313.                         <tr>
  314.                             <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  315.                                 <a href="<?= "{$site['url_admin']}post_mod_profiles.php?action=bgimg" ?>">Background images</a>
  316.                             </td>
  317.                             <td bgcolor="#FFFFFF" width="50" align="right"><?= $post_mod_arr[0]; ?></td>
  318.                         </tr>
  319.                         <tr>
  320.                             <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  321.                                 <a href="<?= "{$site['url_admin']}post_mod_photos.php" ?>">Profile photos</a>
  322.                             </td>
  323.                             <td bgcolor="#FFFFFF" width="50" align="right"><?= $iPostPhotos[0]; ?></td>
  324.                         </tr>
  325.                         <tr>
  326.                             <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  327.                                 <a href="<?= "{$site['url_admin']}post_mod_ppolls.php" ?>">Profile polls</a>
  328.                             </td>
  329.                             <td bgcolor="#FFFFFF" width="50" align="right"><?= $post_mod_polls_arr[0]; ?></td>
  330.                         </tr>
  331.                         <tr>
  332.                             <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  333.                                 <a href="<?= "{$site['url_admin']}post_mod_gallery.php" ?>">Gallery objects</a>
  334.                             </td>
  335.                             <td bgcolor="#FFFFFF" width="50" align="right"><?= $post_mod_gallery_arr[0]; ?></td>
  336.                         </tr>
  337.                         <tr>
  338.                             <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  339.                                 <a href="<?= "{$site['url_admin']}post_mod_blog.php" ?>">blogs</a>
  340.                             </td>
  341.                             <td bgcolor="#FFFFFF" width="50" align="right"><?= $post_mod_blog_arr[0]; ?></td>
  342.                         </tr>
  343.                     </table>
  344.                 </td>
  345.             </tr>
  346.         </table>
  347.         </center>
  348. <?
  349.  
  350. ContentBlockFoot();
  351.  
  352.  
  353. ContentBlockHead("Site statistics");
  354.  
  355. ?>            <center>
  356.             <table width="70%" bgcolor="#CCCCCC" cellspacing="0" cellpadding="0" align="center" border="0">
  357.                 <tr>
  358.                     <td>
  359.                         <table width="100%" cellpadding="2" cellspacing="1">
  360.                             <tr>
  361.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  362.                                     <a href="<?php echo $site['url_admin']; ?>links.php">Links</a>
  363.                                 </td>
  364.                                 <td bgcolor="#FFFFFF" width="50" align="right"><?php echo $l_arr[0]; ?></td>
  365.                             </tr>
  366.                             <tr>
  367.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  368.                                     <a href="<?php echo $site['url_admin']; ?>banners.php">Banners</a>
  369.                                 </td>
  370.                                 <td bgcolor="#FFFFFF" width="50" align="right"><?php echo $b_arr[0]; ?></td>
  371.                             </tr>
  372.                             <tr>
  373.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  374.                                     <a href="<?php echo $site['url_admin']; ?>news.php">News</a>
  375.                                 </td>
  376.                                 <td bgcolor="#FFFFFF" align="right"><?php echo $news_arr[0]; ?></td>
  377.                             </tr>
  378.                             <tr>
  379.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  380.                                     <a href="<?php echo $site['url_admin']; ?>articles.php">Articles</a>
  381.                                 </td>
  382.                                 <td bgcolor="#FFFFFF" align="right"><?php echo $a_arr[0]; ?></td>
  383.                             </tr>
  384.                             <tr>
  385.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  386.                                     <a href="<?php echo $site['url']; ?>story.php">Feedback</a>
  387.                                 </td>
  388.                                 <td bgcolor="#FFFFFF" align="right"><?php echo $s_arr[0]; ?></td>
  389.                             </tr>
  390.                             <tr>
  391.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  392.                                     <a href="<?php echo $site['url_admin']; ?>polls.php">Polls</a>
  393.                                 </td>
  394.                                 <td bgcolor="#FFFFFF" align="right"><?php echo $polls_arr[0]; ?></td>
  395.                             </tr>
  396.                             <tr>
  397.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  398.                                     <a href="<?php echo $site['url_admin']; ?>notifies.php">Mass letters</a>
  399.                                 </td>
  400.                                 <td bgcolor="#FFFFFF" align="right"><?php echo $f_arr[0]; ?></td>
  401.                             </tr>
  402.                             <tr>
  403.                                 <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  404.                                     <a href="<?php echo $site['url_admin']; ?>modules.php">Modules</a>
  405.                                 </td>
  406.                                 <td bgcolor="#FFFFFF" align="right"><?php echo $mods_arr[0]; ?></td>
  407.                             </tr>
  408.                         </table>
  409.                     </td>
  410.                 </tr>
  411.             </table>
  412.             </center>
  413. <?
  414. ContentBlockFoot();
  415. ContentBlockHead("Site network");
  416.  
  417. ?>
  418.         <center>
  419.         <table bgcolor="#CCCCCC" width="70%" cellspacing="0" cellpadding="0" align="center" width="100%">
  420.             <tr>
  421.                 <td>
  422.                     <table width="100%" cellpadding="2" cellspacing="1">
  423.                         <tr>
  424.                             <td bgcolor="#FFFFFF" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/arrow.gif" alt="" />
  425.                                 <a href="<?php echo $site['url_aff']; ?>partners.php">Affiliates</a>
  426.                             </td>
  427.                             <td bgcolor="#FFFFFF" width="50" align="right"><?php echo $aff_arr[0]; ?></td>
  428.                         </tr>
  429.                     </table>
  430.                 </td>
  431.             </tr>
  432.         </table>
  433.         </center>
  434. <?
  435. ContentBlockFoot();
  436.  
  437. ContentBlockHead("Boonex Club News:");
  438.  
  439.         echo '<center>';
  440.  
  441.         if ( $news_enable )
  442.         {
  443. ?>
  444.         <table bgcolor="#CCCCCC" width="70%" cellspacing="0" cellpadding="0" align="center" width="100%">
  445.             <tr>
  446.                 <td>
  447.                     <b>&nbsp;&nbsp;newsline from BoonEx community software experts:</b>
  448.                     <table width="100%" cellpadding="2" cellspacing="1">
  449.                         <tr>
  450.                             <td bgcolor="#FFFFFF" align="left">
  451.                                 <? echo $callback['news'] ?>
  452.                             </td>
  453.                         </tr>
  454.                     </table>
  455.                 </td>
  456.             </tr>
  457.         </table>
  458.         <br>&nbsp;<br>
  459.         <form name="news_sw" method="POST">
  460.             <input class="no" type="submit" name="news_disable" id="news" value="disable news"></input>
  461.         </form>
  462.  
  463. <?
  464.         }
  465.         else
  466.         {
  467.         echo '<form name="news_sw" method="POST">';
  468.         echo '<input class="no" type="submit" name="news_enable" id="news" value="enable news"></input>';
  469.         echo '</form>';
  470.         }
  471.  
  472.         echo '</center>';
  473.  
  474. ContentBlockFoot();
  475.  
  476. ContentBlockHead("Admin quick links:");
  477. ?>
  478.     <center>
  479.     <table cellpadding="0" cellspacing="1" width="90%" border="0">
  480.         <tr>
  481.             <td width="50%" valign="top" align="left">
  482.             - <a href="<?php echo $site['url_admin']; ?>contact_discounts.php">Make all services free for all members</a><br>
  483.             - <a href="<?php echo $site['url_admin']; ?>global_settings.php?cat=ap">Change administrator's login and password</a><br>
  484.    - <a href="<?php echo $site['url_aff']; ?>partners.php">Manage affiliates</a><br>
  485.             - <a href="<?php echo $site['url_admin']; ?>links.php">Add new link to links page</a><br>
  486.             - <a href="<?php echo $site['url']; ?>story.php">Review and activate feedback submission</a><br>
  487.             - <a href="<?php echo $site['url_admin']; ?>finance.php">Calculate my earnings for this month</a><br>
  488.             </td>
  489.             <td bgcolor="#cccccc" width="1"><img src="<?= $site['url_admin']; ?>images/spacer.gif" width="1" alt="" /></td>
  490.             <td align="center" width="50%">
  491.                 <?
  492.  
  493.                 //'licence_ok' <-> 'licence_no';
  494.                 if( $callback['ver'] )
  495.                 {
  496.                     echo "<div class=\"licence_ok\">{$callback['ver']}</div>";
  497.                 }
  498.  
  499.                 echo "<div class=\"licence_ok\">Version of current script is <b>{$site['ver']}.{$site['build']}</b></div>";
  500.  
  501.  
  502.                 ?>
  503.  
  504.                 <a href="https://www.boonex.com/club/download/" title="Check for new version at BoonEx.com">Check for Updates</a><br />
  505.                 <a href="http://www.expertzzz.com/WDownloads/home/29/" title="Get more design templates, mods, etc. at Expertzzz.com">Get Extras</a>
  506.  
  507.             </td>
  508.         </tr>
  509.     </table>
  510.     </center>
  511. <?
  512. ContentBlockFoot();
  513. ?>
  514.             </td>
  515.         </tr>
  516.     </table>
  517.  
  518. <?
  519. BottomCode();
  520.  
  521. function error_handler($errno, $errstr, $errfile, $errline)
  522. {
  523.  
  524.     switch ($errno)
  525.     {
  526.     case FATAL:
  527.             echo "<b>FATAL</b> [$errno] $errstr<br>\n";
  528.         echo "  Fatal error in line ".$errline." of file ".$errfile;
  529.         echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br>\n";
  530.         echo "Aborting...<br>\n";
  531.         exit(1);
  532.     break;
  533.     case ERROR:
  534.          echo "<b>ERROR</b> [$errno] $errstr<br>\n";
  535.     break;
  536.     case WARNING:
  537.     //    echo "<b></b> [$errno] $errstr<br>\n";
  538.     break;
  539.     default:
  540.     break;
  541.     }
  542.  
  543. }
  544.  
  545.  
  546. ?>
  547.  
Apr 4 '10 #5

Dormilich
Expert Mod 5K+
P: 8,639
I guess you don’t have short tags enabled.
Apr 4 '10 #6

Post your reply

Sign in to post your reply or Sign up for a free account.