本文整理匯總了PHP中Tiki_Profile::enableDeveloperMode方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tiki_Profile::enableDeveloperMode方法的具體用法?PHP Tiki_Profile::enableDeveloperMode怎麽用?PHP Tiki_Profile::enableDeveloperMode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tiki_Profile
的用法示例。
在下文中一共展示了Tiki_Profile::enableDeveloperMode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
// $Id$
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) {
header('location: index.php');
exit;
}
$list = new Tiki_Profile_List();
$sources = $list->getSources();
$parserlib = TikiLib::lib('parser');
$show_details_for = "";
if (isset($_REQUEST['show_details_for'])) {
$show_details_for = $_REQUEST['show_details_for'];
}
$smarty->assign('show_details_for', $show_details_for);
if ($prefs['profile_unapproved'] == 'y') {
Tiki_Profile::enableDeveloperMode();
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
check_ticket('admin-inc-profiles');
if (isset($_POST['forget'], $_POST['pp'], $_POST['pd'])) {
$profile = Tiki_Profile::fromNames($_POST['pd'], $_POST['pp']);
$profile->removeSymbols();
$data = array();
foreach ($_POST as $key => $value) {
if ($key != 'url' && $key != 'forget') {
$data[$key] = $value;
}
}
set_time_limit(0);
$transaction = $tikilib->begin();
$installer = new Tiki_Profile_Installer();