本文整理汇总了PHP中Output::PrepSV3方法的典型用法代码示例。如果您正苦于以下问题:PHP Output::PrepSV3方法的具体用法?PHP Output::PrepSV3怎么用?PHP Output::PrepSV3使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Output
的用法示例。
在下文中一共展示了Output::PrepSV3方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
}
if (!file_exists('config.php')) {
die('Please complete step 1 first.');
}
if ($_SESSION['allowNewAdminAcct'] != true) {
die('Creating new accounts disabled.');
}
require_once "config.php";
// Patch to get shit working on Dreamhost/GoDaddy. Also no extra shit to download.
set_include_path(get_include_path() . PATH_SEPARATOR . '../includes/3rdParty/');
include 'adodb/adodb.inc.php';
include "adodb/adodb-exceptions.inc.php";
include 'Savant3.php';
require_once '../includes/db.php';
require_once '../includes/input.php';
require_once '../includes/output.php';
require_once '../includes/header.php';
require_once '../includes/functions.php';
require_once '../includes/user.php';
// Connect to the database.
Output::PrepSV3();
DB::Connect();
if (!DB::$rdb) {
die('Database connection failure.');
}
$User = new User();
$cfg = file_get_contents('config.php');
$cfg = str_replace('%%ADMIN_ID%%', $User->ID, $cfg);
file_put_contents('../includes/config.php', $cfg);
file_put_contents('.LOCK', '.LOCK');
Output::Redirect('/', 'Account created.');
示例2: Flush
static function Flush()
{
// Prep Savant3
//
if(!isset(self::$tpl))
Output::PrepSV3();
if(defined('USING_NEW_TEMPLATE_FORMAT'))
{
$mb='';
$head=self::$tpl->fetch('gheader.tpl.php');
if(count(Output::$messages['__'])>0)
{
//echo '<!-- messagebox.tpl.php -->';
$mb=self::$tpl->fetch('messagebox.tpl.php');
}
$out=self::$tpl->fetch('pages/'.Output::$cpage.'.tpl.php');
if(self::$tpl->isError($out))
Output::HardError('Savant3 template error.<br />"'.$out->code.'"<br />Page ID:'.Output::$cpage);
else
echo $head.$mb.$out;
self::$tpl->display('footer.tpl.php');
} else {
self::$tpl->display('gheader.tpl.php');
}
if(defined('USING_PROFILER'))
{
//
}
die('</body></html>');
}