Jump to content

kenny117

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kenny117's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://www.ideastoempires.com.au
  2. http://www.syeddrivertraining.co.uk
  3. Thanks this is it. /***************************************************************** Universal CMS Frame ver 0.01 Autor: below are all the predefined variables *****************************************************************/ ?> blok['title'] && $this->blok['location']==2 && $this->blok['sort_order']==1):?> blok['title'])?> blok['title']):?> blok['title'])?> blok['location']==1 || $this->blok['location']==4):?> blok['content'])?> blok['location']==2):?> blok['content'])?> blok['content'])?>
  4. Hi can anyone tell me whats wrong with this? /***************************************************************** Universal CMS Frame ver 0.01 Autor: Aaron Hanburg aka blinki bill *****************************************************************/ <? class view{ //private $content = array(); private function __construct(){ } public function build_block($module, $template){ global $config_data; $block = file_get_contents('templates/'.$config_data['template_folder'].'/'.$module.'/'.$template.'.html'); eval($block); $block_content = ob_get_contents(); ob_end_clean(); ob_start(); return $block_content; } public function build_template($content,$template){ global $config_data; $template = file_get_contents('templates/'.$config_data['template_folder'].'/'.$template); $arr1 = array(); $arr2 = array(); foreach($content as $k=>$v){ $arr1[] = '{'.$k.'}'; $arr2[] = $v; } $arr1[] = '{meta}'; $arr2[] = $this->meta; $this->content['meta'].= $this->meta; $template = str_replace($arr1,$arr2,$template); eval($template); } public function add_style($stylefile){ $this->meta .= ' <link rel="stylesheet" type="text/css" href="/templates/'.$stylefile.'" />'; } public function add_js($jsfile){ $this->meta .= ' <script type="text/javascript" src="/js/'.$jsfile.'"></script>'; } public function add_canonical($link){ $this->meta .= ' <link rel="canonical" href="'.$link.'" />'; } public function set_data($d){ foreach($d as $k=>$v){$this->$k = $v;} } public function add_button($action,$text,$controller,$element='',$onclick='',$style='',$class='sbutt'){ return '<a href="/admin/'.$controller.'/'.$action.'/'.($element?'id/'.$element:'').'" class="'.$class.'"'.($style?' style="'.$style.'"':'').($onclick?' onclick="'.$onclick.'"':'').'>'.$text.'</a>'; } public function get_post(){ return controller::get_post(); } public function get_template_dir(){ global $config_data; return 'templates/'.$config_data['template_folder'].'/'; } public function get_skin_dir(){ global $config_data; return 'templates/'.$config_data['template_folder'].'/skin/'; } public function get_header(){ global $config_data; eval(file_get_contents('templates/'.$config_data['template_folder'].'/'.$config_data['template_settings'][$this->page['template']]['header'])); } public function get_footer(){ global $config_data; eval(file_get_contents('templates/'.$config_data['template_folder'].'/'.$config_data['template_settings'][$this->page['template']]['footer'])); } } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.