+ Reply to Thread
Results 1 to 4 of 4

Thread: What is all this above a couple of my pages???
      
   

  1. #1
    andy5956 is offline Staff Sergeant
    Join Date
    Feb 2009
    Posts
    42

    Exclamation What is all this above a couple of my pages???

    Help Please!
    Two of my pages have all this above them when opened in browser!!
    Help please!!
    Andy


    0) { $upload_DstName[$i] = $prefix . "_" . str_replace(" ", "_", $_FILES[$key]['name']); $upload_SrcName[$i] = $_FILES[$key]['name']; $upload_Size[$i] = ($_FILES[$key]['size']); $upload_Temp[$i] = ($_FILES[$key]['tmp_name']); $upload_Type[$i] = ($_FILES[$key]['type']); $uploadlink[$i] = "$upload_folder/$upload_DstName[$i]"; $upload_fieldname[$i] = $key; $upload_fieldname_final[$i] = ucwords(str_replace("_", " ", $key)); $fieldvalue[$i] = $uploadlink[$i]; $i++; } if ($upload_Size[$i] >= $max_filesize) { $error .= "The size of $key (file: $upload_SrcName[$i]) is bigger than the allowed " . $max_filesize/1024 . " Kbytes!\n"; } } $crack[0] = '\n'; $crack[1] = '\r'; $crack[2] = "%0a"; $crack[3] = "%0d"; $crack[4] = "content-type:"; $crack[5] = "to:"; $crack[6] = "cc:"; $crack[7] = "bcc:"; $crack[8] = "mime-version:"; $crack[9] = "x0a"; $crack[10] = "x0d"; foreach ($_POST as $key => $value) { for ($k = 0; $k < count($crack); $k++) { if (substr_count(strtolower($value), $crack[$k])) { $error .= "The field $key contained e-mail headers ($crack[$k]) in the value submitted. This seems to be a cracking attempt and the message has not been sent.!
    "; } } } if ($error) { $errorcode = file_get_contents($error_url); $replace = "##error##"; $errorcode = str_replace($replace, $error, $errorcode); echo $errorcode; exit; } $uploadfolder = basename($upload_folder); for ($i = 0; $i < count($upload_DstName); $i++) { $uploadFile = $uploadfolder . "/" . $upload_DstName[$i]; if (!is_dir(dirname($uploadFile))) { @RecursiveMkdir(dirname($uploadFile)); } else { @chmod(dirname($uploadFile), 0777); } @move_uploaded_file($upload_Temp[$i] , $uploadFile); chmod($uploadFile, 0644); } $internalfields = array ("submit", "reset", "filesize", "upload_folder", "send", "captcha_code"); $message .= "\n"; foreach ($_POST as $key => $value) { if (!in_array(strtolower($key), $internalfields)) { if (!is_array($value)) { $message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . "\n"; } else { $message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . "\n"; } } } if (count($upload_SrcName) > 0) { $message .= "\nThe following file have been uploaded:\n"; for ($i = 0; $i < count($upload_SrcName); $i++) { $message .= $upload_SrcName[$i] . " Link: " . $uploadlink[$i] . "\n"; } } mail($mailto, $subject, stripslashes($message), $header); header('Location: '.$success_url); exit; } ?> div#container { width: 814px; position: relative; margin-top: 0px; margin-left: auto; margin-right: auto; text-align: left; } body { text-align: center; margin: 0; } h1 {font-size:18px;color:#666666;font-family:tahoma;font-style:bold;display:inline;} h2 {font-size:14px;color:#666666;font-family:tahoma;font-style:bold;display:inline;} h3 {font-size:11px;color:#666666;font-family:tahoma;font-style:bold;display:inline} h4 {font-size:11px;color:#666666;font-family:tahoma;font-style:bold;display:inline} h5 {font-size:11px;color:#666666;font-family:tahoma;font-style:bold;display:inline} h6 {font-size:12px;color:#666666;font-family:tahoma;font-style:bold;display:inline} img { behavior: url("pngfix.***"); }

  2. #2
    Join Date
    Feb 2006
    Location
    Kings Lynn, Norfolk (UK)
    Posts
    8,719

    Default Re: What is all this above a couple of my pages???

    Change your page to .php via page properties & the same with the links to it.

  3. #3
    andy5956 is offline Staff Sergeant
    Join Date
    Feb 2009
    Posts
    42

    Red face Re: What is all this above a couple of my pages???

    thanks Chris,
    Could you explain why some files are PHP & others are html...sorry for being a bit thick.
    What context are they used in?
    Thanks again.

  4. #4
    Join Date
    Feb 2006
    Location
    Kings Lynn, Norfolk (UK)
    Posts
    8,719

    Default Re: What is all this above a couple of my pages???

    The form on that page needs .php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49