本文整理汇总了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();