php - Syntax Error: Unexpected "<" on Line 1 -
not sure why it's doing this, i'm getting following syntax error: "unexpected "<" on line1".
i can't seem find out problem, i've tried troubleshooting problem earlier before posting this.
here's code:
<?php include($_server["document_root"].'/admin/classes/classes.php'); // include local class lib $sess = new sessiondata(); // creates session object //$sess->checkvalidfbsession(); if($sess->checkvalidsession()){ header('location: home.php'); } $log= new log($_server["php_self"], $_get, $_post, $_server['http_referer'] ); $stats=new statistics(); $totalusers=$stats->totalscope(); ?> <html xmlns:fb="//www.facebook.com/2008/fbml"> <style> .title { color:#000000; font-family: tahoma, arial, helvetica, sans-serif; font-size: 18px; font-weight: bold; text-decoration:none; } .larger { color:#000000; font-family: tahoma, arial, helvetica, sans-serif; font-size: 13px; font-weight: none; text-decoration:none; } .larger-a { //color:#d19160; color:#538adc; font-family: tahoma, arial, helvetica, sans-serif; font-size: 13px; font-weight: none; text-decoration:none; } .larger-a:hover { //color:#ff0000; color:#77c9f3; font-family: tahoma, arial, helvetica, sans-serif; font-size: 13px; font-weight: none; text-decoration:underline; } select { font-family: tahoma; font-size: 11px; } .white { color:#ffffff; font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px; font-weight: none; text-decoration:none; } .blue { color:#3b5998; font-family: tahoma, arial, helvetica, sans-serif; font-size: 12px; font-weight: none; text-decoration:none; } .red { color:#ff0000; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .menu { color:#ffffff; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .menu:hover { color:#77c9f3; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .alternate { color:#3b5998; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .alternate:hover { color:#000000; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:underline; } { //color:#d19160; color:#538adc; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } a:hover { //color:#ff0000; color:#77c9f3; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:underline; } .bordertable { border-width: 1px; border-color: #3b5998; border-style: solid; } .dashedtable { border-width: 1px; border-color: #3b5998; border-style: dashed; } .bottomborder { border-style:solid; border-color: #3b5998; border-top-width:0px; border-bottom-width:1px; border-right-width:0px; border-left-width:0px; } .one-column { color:#000000; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; border-style:solid; border-color: #3b5998; border-top-width:1px; border-bottom-width:0px; border-right-width:1px; border-left-width:1px; } .text { font-family: serif; font-size: 11px; font-weight: none; text-decoration:none; } .td0 { color:#000000; background-color:#d9dfea; border: 0; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .td1 { color:#000000; background-color:#86a1ce; border: 0; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .schedule_table { border-right-width: 0px; border-bottom-width: 0px; border-left-width: 1px; border-top-width: 1px; border-style: solid; border-color: #000000; } .top-border { border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-width: 1px; border-style: solid; border-color: #3b5998; } .schedule { color:#000000; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 0px; border-top-width: 0px; border-style: solid; border-color:#000000; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .border-td { color:#000000; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-width: 1px; border-style: solid; border-color:#3b5998; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } td { color:#000000; border: 0; font-family: tahoma, arial, helvetica, sans-serif; font-size: 11px; font-weight: none; text-decoration:none; } .inputtext { border:double; border-width:1; border-color:#555555; background-color:#d9dfea; font-size:11px; color: #000000; font-family: tahoma, arial, helvetica, sans-serif; } .inputsubmit { border-style:solid; border-top-width:1px; border-bottom-width:2px; border-right-width:2px; border-left-width:1px; border-top-color:#d9dfea; border-bottom-color:#3b5998; border-right-color:#3b5998; border-left-color:#d9dfea; background-color:#538adc; font-family:tahoma, arial; font-size:11px; color:#ffffff; font-weight:none; } img{ border:none !important; } #container{ margin:0 auto; width:500px; padding:40px; text-align:left; background-color:#fff; } #lightbox h2{ margin:0 0 1em 0; } #lightbox h3{ color:#ff713f; } #lightbox.done p{ color:#333; } #form{ text-align:left; margin:25px; } #form ul{ list-style:none; } #form li{ margin:0 0 1em 0; } #form textarea{ width:100%; height:150px; } #definition{ margin:25px; } .highlight{ background-color:#feffaf; } #lightbox{ display:none; position: absolute; top:50%; left:50%; z-index:9999; width:400px; height:200px; padding:10px; margin:-220px 0 0 -250px; border:1px solid #fff; background:#fdfce9; text-align:left; } #lightbox[id]{ position:fixed; } #overlay{ display:none; position:absolute; top:0; left:0; width:100%; height:100%; z-index:5000; background-color:#000; -moz-opacity: 0.8; opacity:.80; filter: alpha(opacity=80); } #overlay[id]{ position:fixed; } #lightbox.done #lbloadmessage{ display:none; } #lightbox.done #lbcontent{ display:block; } #lightbox.loading #lbcontent{ display:none; } #lightbox.loading #lbloadmessage{ display:block; } #lightbox.done img{ width:100%; height:100%; } <!-- #8ea7c5 - blue #d9dfea - grey 59 89 152 (#3b5998) 217 223 234 (#d9dfea) 83 138 220 - link normal (#538adc) 119 201 243 - link down (#77c9f3) --> </style> <script> window.fbasyncinit = function() { fb.init({ appid : '<?php echo $sess->fbappid; ?>', session : <?php echo json_encode($sess->fbsession); ?>, // don't refetch session when php has status : true, // check login status cookie : true, // enable cookies allow server access session xfbml : true // parse xfbml }); }; (function() { var e = document.createelement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_us/all.js'; e.async = true; document.getelementbyid('fb-root').appendchild(e); }()); </script> <title>kuarrel | welcome kuarrel!</title> <meta name="description" content="kuarrel online directory connects people throughout world." /> <meta name="keywords" content="kuarrel, chaibear, chai, sa-mp, sa:mp, 2014" /> <meta name="generator" content="jb engine designed" /> <meta name="robots" content="index, follow" /> <meta name="originalpublicationdate" content="2014/03/12/01:37:22"> <meta name="headline" content="kuarrel | welcome kuarrel!"> <meta name="ifs_url" content="/index.php"> <meta name="contentflavor" content="page"> <meta name="cps_site_name" content="kuarrel | welcome kuarrel"> <meta name="cps_section_path" content="index"> <meta name="cps_asset_type" content="sty"> <meta name="cps_platform" content="highweb"> <meta name="cps_audience" content="us"> <meta property="og:title" content="kuarrel online directory connects people throughout world."> <meta property="og:type" content="website"> <meta property="og:description" content="kuarrel online directory connects people throughout world."> <meta property="og:image" content="http://www.kuarrel.tk/images/logo-right.jpg"> <meta property="og:url" content="http://www.kuarrel.tk/index.php"> <meta property="og:site_name" content="kuarrel"> <!-- so3vww3hwrnxdrwpgtky2zow6yu --> </head> <body> <div id="fb-root"></div> <script> window.fbasyncinit = function() { fb.canvas.setautoresize(); }; (function() { var e = document.createelement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_us/all.js'; document.getelementbyid('fb-root').appendchild(e); }()); </script> <script src="//connect.facebook.net/en_us/all.js#appid=194568130593245&xfbml=1"></script> <center> <table class="bordertable" cellspacing=0 cellpadding=0 border=0 width=700> <tr><td> <table class="bottomborder" cellspacing=0 cellpadding=0 border=0 width=100%> <tr><td width=350 bgcolor=#3b5998> <img src='images/logo-left.jpg'></td> <td><table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td> <table cellspacing=0 cellpadding=0 border=0 width=100%> <tr><td><a href='register.php'><img alt='register' src='images/logo-right.jpg' border=0></a></td> <td width=100% bgcolor=#3b5998> </td></tr></table></td></tr> <tr><td><table cellspacing=0 cellpadding=4 border=0 width=100%><tr height=21> <!--<td bgcolor=#3b5998 width=10> </td>--> <?php if(!$sess->checkvalidsession()){ include('modules/default/topnav.php'); }else{ include('modules/loggedin/topnav.php'); } ?> <td bgcolor=#3b5998 width=100%> </td> </tr></table></td> </tr></table> </td></tr></table> </td></tr> <tr><td><table cellspacing=0 cellpadding=2 border=0 width=100%> <tr><td valign=top> <table cellspacing=0 cellpadding=0 border=0 width=105> <tr><td> <?php if(!$sess->checkvalidsession()){ include('modules/default/leftnav.php'); }else{ include('modules/loggedin/leftnav.php'); } ?> </td></tr> </table> </td><td width=595 valign=top> <table class="bordertable" cellspacing=0 cellpadding=0 border=1 width=100%><tr><td> <table cellspacing=0 cellpadding=2 border=0 width=100%> <tr><td class='white' bgcolor=#3b5998>welcome kaurrel!</td></tr></table><center><p class='title'>[ welcome kaurell ]<br> <table cellspacing=0 cellpadding=0 border=0 width=95%> <tr><td class='larger'><?=(!empty($_get['error']));?>"<span style='color:red;font-size:16px;'>facebook login has been disabled today, please try again tomorrow.</span><br><br>kaurell online directory connects people facebook through social networks @ colleges. <p>we have opened kaurell popular consumption @ <b>all colleges , universities</b>. if not part of college or university, added default kaurell network. <p>your account limited own college or university. <p>you can use kaurell to: <br> <b>•</b> search people @ school <br> <b>•</b> find out in classes <br> <b>•</b> friends' friends <br> <b>•</b> see visualization of social network <p>to started, click below register facebook account.<!--<br><font size="+1">join <?=$totalusers?> people @ kaurell today.</font>--> <center> <?php if(strlen($_session['notpartofacollege'])>2){ echo "<b>".$_session['notpartofacollege']."</b>"; } ?> <div id="fb-root"></div> <center><input class='inputsubmit' type="button" value='register' onclick='javascript:document.location="register.php";'> <input class='inputsubmit' type="button" value=' login ' onclick='javascript:document.location="login.php";'> <br> </td></tr></table> </td></tr></table> </td></tr></table> <center> <?php include('modules/default/bottomnav.php'); ?> </center><br> </td></tr></table> thanks can figure out what's going on here!
try correct
<?=(!empty($_get['error']))? to
<?=(!empty($_get['error']));?> also </span><br><br>":""?> </span><br><br>
Comments
Post a Comment