Parse error: syntax error - Plz help guys

Discussion in 'PHP' started by marshal_ramdev, Dec 23, 2010.

  1. #1
    hi ,

    I am working on testing some scripts .. But there are lots of errors i am facing ..

    the common error is Parse / syntax

    Parse error: syntax error, unexpected '(' ..

    This is the the line which is currently giving errors while executing .



    md5("som3_admin",$username)()setcookie$password$_POST$username$_POST;
    Code (markup):
    plz help

    thnx

    Marshal
     
    marshal_ramdev, Dec 23, 2010 IP
  2. shofstetter

    shofstetter Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    120
    #2
    Your code looks all scrambled, could you post starting about five lines before that one to about five lines after?

    it should look something like"
    
    
    md5("som3_admin",$username);
    
    setcookie([i]cookie_name[/i],[i]value[/i]);
    
    
    //perhaps $password$_POST$username$_POST; should be:
    $password = $_POST['password'];
    $username = $_POST['username'];
    
    Code (markup):
    there really is no way to straighten it out without more info.
     
    shofstetter, Dec 23, 2010 IP
  3. marshal_ramdev

    marshal_ramdev Member

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #3
    This is the full PHP file which is giving errors


    <?php
    header("Location:index.php");
    md5("some3_admin",$username)()setcookie$password$_POST$username$_POST;
    md5("some3_pass",$password)()setcookie;
    header("Location:index.php");
    $_COOKIE;
    $_COOKIE;
    header("Location:index.php");
    header("Location:install.php");
    echo "[Obfuscated]0D 0A 3C 6C 69 6E 6B 20 68 72 65 66 3D 22 73 74 79 6C 65 2E 63 73 73 22 20 72 65 6C 3D 22 73 74 79 6C 65 73 68 65 65 74 22 20 74 79 70 65 3D 22 74 65 78 74 2F 63 73 73 22 3E 0D 0A 0D 0A ";
    echo "<s";
    echo "tyle>
    \n{margin:0; padding:0;}
    \n</style> 
    \n";
    echo "<s";
    echo "cript language="JavaScript">
    \nfunction openBrWindow(theURL,winName) 
    \n{ //v2.0
    \nwindow.open(theURL,winName,'width=550,height=550,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
    \n}
    \n
    \n</script>
    \n
    \n<table width="100%"  border="0" cellspacing="0" cellpadding="0">
    \n
    \n  <tr>
    \n    <td width="14">&nbsp;</td>
    \n    <td>&nbsp;</td>
    \n    <td>&nbsp;</td>
    \n    <td width="19">&nbsp;</td>
    ";
    echo "\n    <td>&nbsp;</td>
    \n    <td>&nbsp;</td>
    \n    <td width="17">&nbsp;</td>
    \n  </tr>
    \n  <tr>
    \n    <td height="33">&nbsp;</td>
    \n    <td colspan="5">";
    echo "<s";
    echo "pan class="pagetable_activecell">Hello Admin!!</span> Welcome back. Did you check the <a href="ppc-admin-to-do.php" class="mainmenu">";
    echo "<s";
    echo "trong>TO DO page</strong></a> today?</td>
    \n    <td>&nbsp;</td>
    \n  </tr>
    \n  <tr>
    \n
    \n    <td height="116">&nbsp;</td>
    \n
    \n    <td valign="top" width="90">";
    echo "<s";
    echo "pan class="main_head"><img src="http://www.v7n.com/forums/images/advertiser.gif"  align="absmiddle"></span></td>
    \n
    \n    <td valign="top" width="287">";
    echo "<s";
    echo "pan class="main_head" >Advertisers</span>
    \n	<a href="javascript:;" onClick="openBrWindow('help_admin.php?id=1','template')" ><img src="http://www.v7n.com/forums/images/help.gif" width="18" height="18" border="0"></a><br />
    \n      <br />
    \n<div style="padding-bottom:2px;"><img src="http://www.v7n.com/forums/images/1rightarrow.gif" width="10" height="10" align="absmiddle"> <a href="ppc-view-users.php" class="mainmenu">Active  Advertisers (";
    echo echo_one("select count(*) from ppc_users where status=1 ")echo ")</a>  </div>
    \n   <div style="padding-bottom:2px;"><img src="http://www.v7n.com/forums/images/1rightarrow.gif" width="10" height="10" align="absmiddle"> <a href="ppc-view-blocked-users.php" class="mainmenu">Blocked  Advertisers ("echo echo_one("select count(*) from ppc_users where status='0' ")echo ")</a></div>
    \n   <div style="padding-bottom:4px;"><img src="http://www.v7n.com/forums/images/1rightarrow.gif" width="10" height="10" align="absmiddle"> <a href="ppc-view-pending-users.php" class="mainmenu">Pending  Advertisers ("echo echo_one("select count(*) from ppc_users where status='-1' ")echo ")</a></div>   
    \n  <div style="padding-bottom:2px;"><img src="http://www.v7n.com/forums/images/1rightarrow.gif" width="10" height="10" align="absmiddle"> <a href="ppc_search_user.php"  class="mainmenu">Search Advertisers</a></div>    </td>
    \n    <td>&nbsp;</td>
    \n
    \n    <td width="97" valign="top">"echo "<s"echo "pan class="main_head"></span><br/>
    \n    <img src="http://www.v7n.com/forums/images/publisher.gif" height="80" width="80" align="absmiddle" /
    Return (1);
    ?>
    
    
    Code (markup):
     
    marshal_ramdev, Dec 24, 2010 IP
  4. shofstetter

    shofstetter Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    120
    #4
    shofstetter, Dec 24, 2010 IP
    robjones likes this.
  5. marshal_ramdev

    marshal_ramdev Member

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #5
    LOL .. attempt to hack v7n and need help from DP members to help me :D lmfao

    thnx anyways
     
    marshal_ramdev, Dec 24, 2010 IP
  6. roshansethia

    roshansethia Active Member

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    63
    #6
    Lol... hahahahaha :)
     
    roshansethia, Dec 26, 2010 IP