Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.6k views
in Q2A Core by

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

1 Answer

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