<?php
class include_plugin
{
function setup($s=null)
{
return array('refresh_object'=>false);
}
function parse($contents,&$object)
{
$file=null;
$tags=$object->get_tags('include','plugin');
while (($file=x64Template::get_statement($tags,$contents))!==false)
{
$_file=urldecode($file);
$_file=$object->fetch($_file);
$contents=str_replace($tags['b'].$file.$tags['e'],$_file,$contents);
}
return $contents;
}
function version($of_what)
{
switch ($of_what)
{
case "protocol":
return "1.0";
break;
case "plugin":
return "0.1";
break;
}
}
}
?>
|