",$code); $forbiddenfile="db.inc.php|.htaccess|config.php"; if(ereg($forbiddenfile,$code)) { echo "The file that you want to show the source is not allowed"; exit; } clearstatcache(); if(!file_exists($code)) { return false; } $handle=fopen($code,"r"); // atidaryti source koda $size=filesize($code); $temp=fread($handle,$size); echo ""; $colorcode=highlight_string($temp); // nustatome spalvas echo ""; return true; } //naudojimo pavyzdys source(); ?>