'; $size=filesize($file); $file_size = round($size / 1024 * 100) / 100 . "Kb"; echo ' This is a PHP View Source script.


File: '.$file.' Size: '.$file_size.'

'; // This function is part of PHP but the above one hide my secret stuff // $po=show_source($file); $step = 0; $str = ""; foreach ($t_lines as $line) { switch ($step) { case 0: // nothing to hide if (stristr($line, "@@" . "begin_hide_code") ) { // found a begin hide token $step = 1; // $str .= "/* !!! BEGINNING OF THE HIDDEN CODE PART\n"; } else { $str .= $line; } // if break; case 1: // found a begin hide token if (stristr($line, "@@" . "end_hide_code") ) { // found an end hide token $step = 0; // $str .= " !!! END OF THE HIDDEN CODE PART */\n"; } else { // $str .= " ...\n"; } // if break; } // switch } // for highlight_string($str); echo '

'; } highlight_and_hide($file); ?>