View Single Post
  #7 (permalink)  
Old 03-31-2005, 10:47 AM
temporalillusion temporalillusion is offline
Junior Member
 
Join Date: Nov 2004
Posts: 5
This is what my function looks like in the theme.php

Code:
function themesidebox($title, $content) 
{
	        /*if (@file_exists($content)) {
                $fp = fopen ($content, "r");
		print filesize($content);
                $content = fread($fp, filesize($content));
                fclose ($fp);
                $content = "?>$content<?";
                $content = eval($content);
        } else if (eregi("^http", $content)) { 
                $fp = fopen ($content, "r"); 
                $content = fread($fp, 65535); 
                fclose ($fp); 
        }*/
    $tmpl_file = "themes/fiblack3d/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
Reply With Quote