67.220.92.12 /forum index.php,http://67.220.92.21/forum/inde PHP静态类

都乐逸
2023-12-01

复制代码 代码如下:

{

if($pathArr[$i]=="")

continue;

else

if(is_dir($currentPath . "/" . $pathArr[$i]))

$currentPath = $currentPath . "/" . $pathArr[$i];

else

mkdir($currentPath = $currentPath . "/" . $pathArr[$i]);

}

}

///

/// 生成静态文件。

/// 描述>

function Create()

{

$tmp = $this->Templet;

foreach($this->DataSource as $key=>$value)

{

$tmp = str_replace("", $value, $tmp);

}

$this->MkDir(dirname($this->fileName));

$this->Open();

$this->Write($tmp);

$this->Close();

}

}

function CreateShtml()

{

ob_start("callback_CteateShtml");

}

function callback_CteateShtml($buffer)

{

$page = intval(@$_REQUEST["page"]);

$shtml = new Shtml();

$shtml->SetFileName($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . "/" . basename($_SERVER['PHP_SELF'],".php") . ($page==0 ? "" : "_" . strval($page)) . ".htm");

$shtml->Templet = $buffer;

$shtml->Create();

return $buffer;

}

?>

以上就介绍了http://67.220.92.21/forum/inde PHP静态类,包括了http://67.220.92.21/forum/inde方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

 类似资料: