User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 403,041 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,933 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 268 | Replies: 2 | Solved
Reply
Join Date: Jun 2008
Posts: 2
Reputation: shariana is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shariana shariana is offline Offline
Newbie Poster

parse error

  #1  
Jun 11th, 2008
Can anyone help me? Obviously, I do not know what I am doing!!! I am getting this error: Parse error: syntax error, unexpected ';' in /home/wbritt/public_html/ADMIN/index.php on line 341




  1. <?php
  2. include("login_config.php");
  3. include_once("Utils.php");
  4. if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
  5. ob_start();
  6. }
  7.  
  8. if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE"))
  9. {
  10. $IE=true;
  11. }
  12. else
  13. {
  14. $IE=false;
  15. }
  16.  
  17. $AC=true;
  18.  
  19. include("security.php");
  20.  
  21.  
  22. $lArray=DataArray("admin_users","username='$AuthUserName'");
  23.  
  24. if(isset($lng)){
  25. $LANGUAGE=$arrSupportedLanguages[$lng][1];
  26. $LANGUAGE2=$arrSupportedLanguages[$lng][1];
  27.  
  28. SQLUpdate_SingleValue(
  29. "admin_users",
  30. "username",
  31. "'".$AuthUserName."'",
  32. "language",
  33. $LANGUAGE
  34. );
  35. }
  36. else{
  37.  
  38. $LANGUAGE=strtolower($lArray["language"]);
  39. $LANGUAGE2=strtolower($lArray["language"]);
  40. }
  41.  
  42. if(!isset($LANGUAGE)||strlen($LANGUAGE)!=2){
  43. $LANGUAGE="en";
  44. $LANGUAGE2="en";
  45. }
  46.  
  47.  
  48. $strJobCategories = "";
  49.  
  50. if(file_exists('../include/categories_'.strtolower($LANGUAGE2).'.php'))
  51. {
  52. $lines = file('../include/categories_'.strtolower($LANGUAGE2).'.php');
  53. }
  54. else
  55. {
  56. $lines = file('../include/categories_en.php');
  57. }
  58.  
  59. foreach ($lines as $line_num => $line)
  60. {
  61. if(trim($line) != "")
  62. {
  63. $strJobCategories .= $line;
  64. }
  65. }
  66.  
  67. include("../include/ui_texts_en.php");
  68. include("texts_".$LANGUAGE.".php");
  69. include("../include/jobs_config.php");
  70.  
  71. if(isset($LANGUAGE2)&&strlen($LANGUAGE2)==2)
  72. {
  73. include("config_".$LANGUAGE2.".php");
  74.  
  75. }
  76. else{
  77.  
  78. include("config_en.php");
  79. }
  80.  
  81. $HISTORY="";
  82. $iRTables=0;
  83.  
  84. $iKEY="AZ8007";
  85.  
  86. EnsureParams();
  87.  
  88. if(get_param("action") == "exit")
  89. {
  90. SQLQuery("
  91. INSERT INTO ".$DBprefix."login_log(username,ip,date,action,cookie)
  92. VALUES('".$AuthUserName."','".$_SERVER['REMOTE_ADDR']."','".time()."','logout','')
  93. ");
  94. $HISTORY=$USER_EXITED;
  95. setcookie("Auth","",time()-1);
  96. echo "<script>document.location.href='login.php';</script>";
  97. }
  98.  
  99.  
  100. $arrMonths=array("","January","February","March","April","May","June","July","August","September","October","November","December");
  101.  
  102.  
  103. if(isset($doExport)){
  104. ExportTable($strTable,str_replace("\\'","'",$strSql),$FileType,$FileName);
  105. exit();
  106. }
  107.  
  108.  
  109. if(!isset($category)){
  110. $category="home";
  111. }
  112.  
  113.  
  114. $arrPermissions=array("PermissionsArray");
  115. $Permissions=DataTable("admin_users_permissions","");
  116.  
  117. while($oPermission=mysql_fetch_array($Permissions))
  118. {
  119. array_push($arrPermissions, $oPermission["permission"]);
  120. }
  121.  
  122. if(!checkForSpecialSymbols($category)){
  123. die("SECURITY VIOLATION DETECTED");
  124. }
  125.  
  126. $vr1 = ($category."_oLinkTexts");
  127. $vr2 = ($category."_oLinkActions");
  128. $vr3 = ($category."_oLinkDescriptions");
  129.  
  130. if(!isset($$vr1))
  131. {
  132. die("<script>document.location.href=\"index.php\";</script>");
  133. }
  134.  
  135. $evLinkTexts = $$vr1;
  136. $evLinkActions = $$vr2;
  137. $evLinkDescriptions = $$vr3;
  138.  
  139. if(!isset($folder)&&!isset($action)){
  140. $action=$evLinkActions[0];
  141. }
  142.  
  143.  
  144. $IPage="";
  145.  
  146. if(isset($action)){
  147. $IPage=$action;
  148. }
  149. else
  150. if(isset($folder)){
  151. $IPage=$folder;
  152. }
  153. else{
  154. die("ACCESS DENIED");
  155. }
  156.  
  157. $ICurrentPage="@".$AuthGroup."@".$category."@".$IPage;
  158.  
  159.  
  160.  
  161. if($AuthGroup=="Administrators"){
  162.  
  163. }
  164. else
  165. if(array_search($ICurrentPage,$arrPermissions,false)){
  166.  
  167. }
  168. else{
  169.  
  170. foreach($arrPermissions as $oPermission){
  171.  
  172. if(strstr($oPermission,("@".$AuthGroup."@".$category))){
  173.  
  174. $arrOPage=explode("@",$oPermission);
  175.  
  176. die("<script>document.location.href='index.php?category=".$arrOPage[2]."&action=".$arrOPage[3]."';</script>");
  177.  
  178. break;
  179. }
  180.  
  181. }
  182.  
  183. die("ACCESS DENIED!");
  184. }
  185.  
  186. $iLastSlogId=SQLInsert("bo_slog",
  187. array("ip","args","uid","date"),
  188. array($_SERVER["REMOTE_ADDR"],serialize($_REQUEST),$AuthUserName,time())
  189. );
  190.  
  191. if(isset($action)){
  192. $IAction=$action;
  193. }
  194. else{
  195. $IAction=$folder;
  196. }
  197.  
  198. $DN = "1";
  199.  
  200. if($lArray["fax"]=="2")
  201. {
  202. $DN = "2";
  203. }
  204.  
  205. ?>
  206. <html>
  207. <head>
  208. <title><?php echo($ProductName);?></title>
  209. <link href="include/new_style2.css" rel="stylesheet" type="text/css">
  210. <script src="include/ContextMenu.js"></script>
  211. </head>
  212. <body oncontextmenu="return false" leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0">
  213.  
  214. <?php
  215. include("include/help_tips.php");
  216. ?>
  217.  
  218.  
  219. <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
  220. <tbody>
  221. <tr>
  222. <td align="center" background="images2/01.png" valign="top"><div align="center">
  223.  
  224.  
  225. <table id="Table_01" align="center" border="0" cellpadding="0" cellspacing="0" height="54" width="800">
  226. <tbody>
  227. <tr>
  228. <td colspan="3" height="19" align=center>
  229.  
  230. <table border="0" width="785" cellspacing="0" bgcolor=#f5f5f5 height=19>
  231. <tr>
  232.  
  233. <td align=left valign=bottom width=585>
  234.  
  235. <!--
  236. &nbsp;<?php echo $M_WELCOME;?> <?php echo strtoupper($AuthUserName);?>, <?php echo $M_TODAY_IS;?> <?php echo date("F j, Y, g:i a");?>
  237. -->
  238. </td>
  239. <td align=right valign=bottom width=200>
  240.  
  241.  
  242. <?php
  243. if($AuthUserName == "administrator")
  244. {
  245. ?>
  246. <a href="../index.php" target=_blank >[open the website]</a>
  247. <?php
  248. }
  249. ?>
  250.  
  251. &nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?category=exit&action=exit" >[<?php echo strtolower($M_LOGOUT);?>]</a>&nbsp;&nbsp;
  252.  
  253.  
  254. </td>
  255.  
  256. </tr>
  257. </table>
  258.  
  259. </td>
  260. </tr>
  261. <tr >
  262. <td height="34" valign=top align=right><img src="images2/44.png" alt="" height="34" width="17"></td>
  263. <td background="images2/top_table_bg.png"><?php include("menus/main.php"); ?></td>
  264. <td width=23><img src="images2/13.png" alt="" height="34" width="23"></td>
  265. </tr>
  266.  
  267. <tr>
  268. <td colspan="3" height="20"><img src="images2/14.png" alt="" height="20" width="800"></td>
  269. </tr>
  270.  
  271. </tbody>
  272.  
  273. </table>
  274.  
  275.  
  276. </td>
  277. </tr>
  278.  
  279. <tr class="full" bgcolor="white" height="440">
  280. <td align=center valign=top>
  281.  
  282. <TABLE WIDTH="800" CELLPADDING="0" CELLSPACING="0">
  283. <TR>
  284. <TD valign=top>
  285.  
  286. <?php include_once("menus/navigation.php");?>
  287.  
  288. </TD>
  289. </TR>
  290. <tr>
  291. <td align=center>
  292. <img src="images2/contact_header.gif" width="770" height="6" alt="" border="0">
  293. </td>
  294. </tr>
  295. <TR>
  296. <TD align=center WIDTH ="800" BGCOLOR="#FFFFFF" style="text-align:center">
  297. <CENTER>
  298. <br>
  299.  
  300.  
  301. <?php
  302. if(isset($folder)){
  303. include($category."/".$folder."_".$page.".php");
  304. }
  305. else{
  306. include($category."/".$action.".php");
  307. }
  308. ?>
  309.  
  310.  
  311. </CENTER>
  312.  
  313. <br>
  314. </TD>
  315. </TR>
  316.  
  317. </TABLE>
  318.  
  319. <br><br>
  320.  
  321.  
  322. </td>
  323. </tr>
  324. <tr>
  325. <td align="center">
  326.  
  327.  
  328.  
  329. <table class="Footer" border="0" cellpadding="0" cellspacing="0" width=800>
  330. <tbody>
  331. <tr>
  332. <td bgcolor="#e6e6e6" height="29" valign="top" width="5"><img alt="" src="images2/item3b.gif" align="absbottom" width=5 border="0" hspace="0"></td>
  333.  
  334. <td bgcolor="#e6e6e6" height="29" valign="middle" width="354">
  335. <p>
  336.  
  337.  
  338.  
  339.  
  340.  
  341. &nbsp;&nbsp;<b><?php echo?></b>&nbsp;</span>
  342. </p>
  343. </td>
  344. <td bgcolor="#e6e6e6" height="29" valign="center" width="354">
  345. <p class="style6" align="center">
  346. <a> PlasticSurgeryCareers.com & Cosmetic SurgeryCareers.com Admin Page
  347. <style="position:relative;top:3px">
  348.  
  349. </a>
  350. </p>
  351. </td>
  352.  
  353.  
  354. <td bgcolor="#ffffff" height="29" valign="top" width="5">
  355. <p><img alt="" src="images2/item3a1.gif"align="absbottom" border="0" hspace="0"></p>
  356. </td>
  357. </tr>
  358. </tbody>
  359. </table>
  360.  
  361.  
  362.  
  363. <br>
  364.  
  365. </td>
  366. </tr>
  367. </tbody>
  368. </table>
  369. </body>
  370.  
  371. </html>
  372.  
  373. <?php
  374. if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
  375. ob_end_flush();
  376. }
  377. ?>
Last edited by peter_budo : Jun 11th, 2008 at 2:20 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Location: Remunj
Posts: 173
Reputation: pritaeas is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
pritaeas's Avatar
pritaeas pritaeas is offline Offline
Junior Poster

Re: parse error

  #2  
Jun 12th, 2008
On line 341 :

<?php echo ?>

This statement is incomplete. Remove it, or put something after the echo.
Reply With Quote  
Join Date: Jun 2008
Posts: 2
Reputation: shariana is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
shariana shariana is offline Offline
Newbie Poster

Re: parse error

  #3  
Jun 12th, 2008
Thank you! Thank you! Problem solved.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 11:31 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC