Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Problem on clicking header or logo (index.php)

0 votes

When a logo on the top of the page is clicked, it goes to site url/index.php which is known to me. But this index.php file is returning this script, I'm much amazed:

 

<?php
// pageok
// managed by puppet - hostingcms02
header("Content-type: text/plain");

// Total size of directory
$totalSize = 0;

// List of files in cwd
$dir  = opendir('.');
while (($filename = readdir($dir)) ==! false) {
   $files[] = $filename;
}

// The results of filesize are cached, clear that cache
clearstatcache();

// Total file sizes
foreach ($files as $file) {
  // Add file to total size
  $totalSize += filesize($file);
}

echo "pageok\n\n";
echo "Directory Size: $totalSize\n\n";

?>

I'm on GoDaddy hosting; and 1.5 version running.

Q2A version: 1.5
asked Jan 4 in Q2A Core by rajan

1 Answer

0 votes
No idea what this is, but it's nothing to do with Q2A.
answered Jan 4 by gidgreen
Hey gidgreen, I somehow managed to correct this error.
What was the problem?