Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. just echo the javascript, javascript is parsed as the screen loads and php generates the output so <?php $loc = "http://www.phpfreaks.com"; echo "<script LANGUAGE='JavaScript'>"; echo "self.opener.location = $loc;"; echo "</script>"; ?> should work ok
  2. Ahhhh ok remove the line breaks from the array.. add them on the display part <?php //file of links $filename = "links.txt"; $link = array(); $handle = @fopen($filename, "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); // read line by line $link[] = $buffer; //store in array // <--Keep as is } fclose($handle); } shuffle($link); // mix up the array foreach($link as $l) //loop and print the links { echo "<a href=$l>$l</a> <br> "; //<---------DISPLAY <BR> added } ?>
  3. OK look at the code below <?php echo "hello world<br>"; ?> echo "hello world"; this will display now This is a great day <?php , i should go out ?> echo "hello world"; This will error out as isn't in the php syntax, NOW.. lets look at the code you posted <tbody><tr> <td width="264" valign="top" background="pics/ok_01.gif"> </p> <div> include ('mangatop.php'); </div></td> <!--middle column: main content--> again this will NOT parse the "include ('mangatop.php');" as its in the html (to be printed to screen) so to fix it <tbody><tr> <td width="264" valign="top" background="pics/ok_01.gif"> </p> <div> <?php include ('mangatop.php'); ?> </div></td> <!--middle column: main content-->
  4. you don't use javascript
  5. ok #1 check the echo "<a href=$l>$l</a><br>"; the <br> AFTER the </a> , if it is (i guess it is), open your txt file in notepad and check you don't have the <br> in their if you still have problems please post the text file and code
  6. do you have a field for last name ?
  7. foreach($link as $l) //loop and print the links { echo "<a href=$l>$l</a><br>"; } will work also check the txt file (remember use plain text NOT html)
  8. i don't think its 100% it will display all the links.. but if its ok please click solved
  9. heres a quick one <?php //file of links $filename = "links.txt"; $link = array(); $handle = @fopen($filename, "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); // read line by line $link[] = $buffer; //store in array } fclose($handle); } shuffle($link); // mix up the array foreach($link as $l) //loop and print the links { echo "<a href=$l>$l</a> | "; } ?> links.txt http://www.phpfreaks.com/articles.php http://www.phpfreaks.com/tutorials.php http://www.phpfreaks.com/quickcode.php http://www.phpfreaks.com/forums/index.php/topic,138161.0.html normally i would point you to the freelance section but i had a great day this code will probably need cleaning up, but its a start EDIT: Added some comments in the code
  10. well we can help with the problem or do you want one written for you ?
  11. use javascript to send it via get or post, or store in cookies
  12. use fread what code do you have sop far ?
  13. your welcome.. note it will take awhile, but encoding it more about time wasting than protection
  14. Erm.. All of them!! google it!
  15. basically you will need to keep record of evey decode, and on every new one you replace eval with print see here ob_start(); $codelock_l = "FLYU-I3XT-PA9AUS1HYJHR"; $codelock_t = base64_decode("JSA4Jl5pUDcwSDwuWip1KEcpK2psJSo1PDFCIlVjIkwiYR0nJSRWOjAsIWkwLSt1CTtQPzNBPStReiMyQ2h9IisxPCcxPU5yRTkmDXQqVigiMkMsKHE+MzRsfT9LOUIqJ1k/el80OzBFITYkaDEpKDw5QipYeHwJITNbOD0+VSxwajN2MiQwJgB3QTszSjwsUyl1bhFsKDgqKy4hPTEWbUcwPV59f04tLDZVJzIsaG9mbjEhWTkJd3taJzYXNT06XyttJToxI2I6OkBmRyo1TjskS3N6J0MpOiEtIGg8MSUPchcsPEQjbAcnJSRWOjAsIXJ7bHsTYRBmdR0eCBUUERRqcB0KewALDAQLdxZtRzA9Xn1/USI2KVogMSlo b2ZoBgZoG2UdBnZ3EnwTAxZjFxcLBRdhEXdxchp2CgJoAhoeExACZA0KHhcHFAV+CBZtRzA9Xn1/Ui48JFA6PTtob2ZoBhZiBngREXZ3IlYlMD9eKzJtFWliODE8XmQNMjJdITNKNTpzDGh9FQ8XEnckM1gnUCw9Qj5hVjQhI0Q8eWJhcj0lP3UFL1o0MXI1OVAyISAZbC0iISFrcis2Si5fNT5FeWgZOnEmUzgyPz41JGxkdUsmQz06BXQ1USgmfg86Oi0vPismMXkNa0F6fRY5JxlpcSZTODI/PjUkZXkuCT5HLyNBKi9PYWhzE2pibi4xKjssM0Y5E2V0SzckTTJ9d0QqKSE9J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yZDPToFciJWJTA/XisyZDg6Nm51dQ87EXFvRDZhEWUgMUEjLDwvMG9sIiJFIF89dAVxJ1wuM3sVPTs6IycwKzt8BGlIfCNZJzZVOzslEWZkai41IzgqfQk8USg/WCYmW211ZwFxb2NzLzsqOjlCOlZwcFgyMVI0IzRTYWJuMDAuLSgmSj8TZXRANHQRZSInRj81MCYkb3d9I0gqWyo8XClhBGFxJ1khKmd2JSo1PDFCIlV2dhI4NU0xb3weanduP DovP3RrRSpQIj9FOCIXY3M/WCs8JCs3e253cVkhWit5EzYxTiYnOlchd2huMS4pOj5ePF5ldgN0OVspNCJCLy9xIDcnKDwnBWt/NzdMJChWL29zE2Z9PC0xLj4xJFRgCCUpXzU1TDM7cxUnPCktPygpMG5QNA=="); for ($codelock_x=0; $codelock_x < strlen($codelock_t); $codelock_x++) { $codelock_y = substr($codelock_t, $codelock_x, 1); $codelock_z = substr($codelock_l, $codelock_x % strlen($codelock_l), 1); $codelock_c .= chr(ord($codelock_y) ^ ord($codelock_z)); } print($codelock_c);
  16. yep but its a pain use echo for the next code to reverse (replace eval) ie <?php echo (base64_decode("b2Jfc3RhcnQoKTsgJGNvZGVsb2NrX2wgPSAiRkxZVS1JM1hULVBBOUFVUzFIWUpIUiI7ICRjb2RlbG9ja190ID0gYmFzZTY0X2RlY29kZSgiSlNBNEpsNXBVRGN3U0R3dVdpcDFLRWNwSzJwc0pTbzFQREZDSWxWaklrd2lZUjBuSlNSV09qQXNJV2t3TFN0MUNUdFFQek5CUFN0UmVpTXlRMmg5SWlzeFBDY3hQVTV5UlRrbURYUXFWaWdpTWtNc0tIRStNelJzZlQ5TE9VSXFKMWsvZWw4ME96QkZJVFlrYURFcEtEdzVRaXBZZUh3SklUTmJPRDArVlN4d2FqTjJNaVF3SmdCM1FUc3pTandzVXlsMWJoRnNLRGdxS3k0aFBURVdiVWN3UFY1OWYwNHRMRFpWSnpJc2FHOW1iakVoV1RrSmQzdGFK....................................
  17. admin please move to freelance section
  18. show the first 5 lines of the index.php file
  19. erm.. ok
  20. webhostingtalk.com are a webhosting providers.. ok hope that helps, as you post was as pointless as mine!
  21. You will find a number of web sites that suggest that you can simply use the Header set notation to modify the Server header on Apache 2.0. This not true, If you're using Apache 1.3, the answer is that you have to edit the source code and recompile Apache. In particular, you'll need to edit the file src/include/httpd.h. Look for these lines: Change those to whatever amuses you. Recompile. For Apache 2.0, the situation is similar, but different. Edit the file include/ap_release.h and look for these lines: If you happen to be running mod_security (you really should be), you can modify the Server header using the SecServerSignature directive: GoodLuck --MadTechie
  22. OK going to take a guess are you are this is correct? if($this_user['crew'] != 0) { as it looks like it should be if($user['crew'] != 0) { that would be the same for all "$this_user", just a guess, Did you write the code yourself ?
  23. i agree with the don't use GET use POST but its still pretty easy to alter a POST as well as a GET, of course the first attack is the login screen, as soon a member see's a user_id or something like that they will try to exploit it, if you do use the user_id in a get or post then you must verify it after, (personally i would use a session)
×
×
  • 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.