GetConfig(); $gcbops = $gCms->GetGlobalContentOperations(); $oneblob = $gcbops->LoadHtmlBlobByName($name); if ($oneblob) { $text = $oneblob->content; $source = $text; $mtime = $oneblob->modified_date; // So no one can do anything nasty, take out the php smarty tags. Use a user // defined plugin instead. if (!(isset($config["use_smarty_php_tags"]) && $config["use_smarty_php_tags"] == true)) { $source = preg_replace("/\{\/?php\}/", "", $source); } } else { $source = ""; // put mention into the admin log audit('', 'Global Content Block: '.$name , 'Can not open or does not exist!'); $mtime = time(); } debug_buffer('end global_content_get_template'); return true; } } // end of class # # EOF # ?>