Jump to content

Recommended Posts

ok, well, my friend gave me a code a while back, but it dosen't work...

can someone help me? you can go to my webpage, http://crazyadds.freeweb7.com/, and look at the code. it just looks like a text document? here is the code.

<!--p
$ridersfile = "riders.txt";
$baseurl = "http://mspowerwhore.freeweb7.com/";
-->
<link href="http://www.myspace.com/favicon.ico" rel="shortcut icon" /><!--
body
  {
  margin:0cm;
  background-color:white;
  }
.rule
  {
  font-family:tahoma,arial;
  font-size:14px;
  color:ffffff;
  background-color:white;
  }
.paragraph
  {
  font-family:tahoma,arial;
  font-size:14px;
  color:000000;
  background-color:white;
  }
.logo
  {
  background-color:white;
  }
table
  {
  width:700px;
  }
td

  }
img
  {
  border-width:0px;
  }
input
  {
  font-family:tahoma;arial;
  background-color:white;
  color:black;
  font-size:14px;
  }
-->
<table cellspacing="0" cellpadding="5" align="center">
    <!--p
    if(array_key_exists("a", $_POST))
    {$a = $_POST["a"];}
    else
    {$a = "";}
    $riders = file($ridersfile);
    $count = 0;
    $addedcount = 0;
    foreach($riders as $key-->
    <tbody>
        <tr>
            <td class="paragraph" align="center"><br />
            <form action="" method="post" target="_self">
                '; echo '<input type="hidden" name="a" value="' . $a . '[' . $value . ']" />'; echo '<input onclick="window.open('http://collect.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=' . $value . '')" type="image" src="http://i12.tinypic.com/4cj1uee.gif" name="submit" />'; echo '
            </form>
            '; if($valueadded !== false) { echo '<font color="#008000"><strong>Added! =]]</strong></font>'; $addedcount++; } else {echo '<font color="#ff0000"><strong>Not added =[[</strong></font>';} echo '</td>
        </tr>
        <tr>
            <td class="paragraph"> </td>
        </tr>
    </tbody>
</table>
<center><br />
<table style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid" cellspacing="0" cellpadding="5" align="center">
    <tbody>
        <tr>
            <td class="paragraph" style="FONT-WEIGHT: 600"><center>
            <form action="post.php" method="post" name="frmfriendid">
                Friend ID: <input maxlength="10" size="15" name="friend_id" /> <br />
                <br />
                <!--p if($repost == 0) {echo " [Add Everyone Above]";} else { echo"<input type=submit name=subfriend_id value=Log-->"; }?>
            </form>
            <!--p if($repost == 0) {echo '<span style="color:990000;">Login button will appear<BR>
            when you add everyone.</span><br>
            ';}--><br />
            </center></td>
        </tr>
    </tbody>
</table>
<br />
<center><script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="Nice Try Thief ";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 
</script></center></center>

Link to comment
https://forums.phpfreaks.com/topic/72010-advanced-php-please-help-me/
Share on other sites

starts with an invalid tag, it appears to me:

 

<!--p

 

should be

 

<?php

 

the you close improperly too.

-->

 

should be ?>

 

that's as far as i can get before my head hurts.

 

maybe they have a parser for that code that replace <--p to <?php

@addtrain is this a single page that is read by the browser? or theres some pages that parse those code

hmm !

 

or how do you save your file sometimes when you save your file as .html php tags is not working

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.