本文整理汇总了PHP中import_error_data函数的典型用法代码示例。如果您正苦于以下问题:PHP import_error_data函数的具体用法?PHP import_error_data怎么用?PHP import_error_data使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了import_error_data函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
} elseif ($action == "stat") {
UpdateTopicStats($info['id']);
ok($lang->phrase('data_success'), 'showtopic.php?id=' . $info['id'] . SID2URL_x);
} elseif ($action == "vote_export") {
require_once "classes/class.charts.php";
$PG = new PowerGraphic();
$skin = $gpc->get('skin', int, 1);
$modus = $gpc->get('modus', int, 1);
echo $tpl->parse("menu");
echo $tpl->parse("admin/topic/vote_export");
} elseif ($action == "vote_edit") {
$error = array();
$result = $db->query('SELECT id, topic, posts, sticky, status, last, board, vquestion, prefix FROM ' . $db->pre . 'topics WHERE id = ' . $_GET['id'] . ' LIMIT 1', __LINE__, __FILE__);
$info = $gpc->prepare($db->fetch_assoc($result));
if (strlen($_GET['fid']) == 32) {
$data = $gpc->prepare(import_error_data($_GET['fid']));
$data[0] = $data['answer'][0];
unset($data['answer'][0]);
$result = $db->query("SELECT id, answer FROM {$db->pre}vote WHERE tid = '{$info['id']}' ORDER BY id", __LINE__, __FILE__);
while ($row = $db->fetch_assoc($result)) {
$data['original'][$row['id']] = $row['answer'];
}
} else {
$data = $data['answer'] = array();
$data['question'] = $info['vquestion'];
$result = $db->query("SELECT id, answer FROM {$db->pre}vote WHERE tid = '{$info['id']}' ORDER BY id", __LINE__, __FILE__);
while ($row = $db->fetch_assoc($result)) {
$data['answer'][$row['id']] = $row['answer'];
$data['original'][$row['id']] = $row['answer'];
}
$data[0] = '';
示例2: eval
($code = $plugins->load('editprofile_about2_query')) ? eval($code) : null;
$db->query("UPDATE {$db->pre}user SET about = '{$_POST['about']}' WHERE id = '{$my->id}'");
ok($lang->phrase('data_success'), "editprofile.php?action=about" . SID2URL_x);
}
} elseif ($_GET['action'] == "about") {
if ($my->p['useabout'] == 0) {
errorLogin($lang->phrase('not_allowed'), "editprofile.php");
}
$breadcrumb->Add($lang->phrase('editprofile_about'));
echo $tpl->parse("header");
echo $tpl->parse("menu");
($code = $plugins->load('editprofile_abos_Start')) ? eval($code) : null;
BBProfile($bbcode);
$fid = $gpc->get('fid', str);
if (is_hash($fid)) {
$data = $gpc->unescape(import_error_data($fid));
if ($_GET['job'] == 'preview') {
$preview = true;
$data = $gpc->unescape($data);
$parsedPreview = $bbcode->parse($data);
} else {
$preview = false;
}
} else {
$data = $my->about;
$preview = false;
}
$chars = numbers($config['maxaboutlength']);
($code = $plugins->load('editprofile_abos_prepared')) ? eval($code) : null;
echo $tpl->parse("editprofile/about");
($code = $plugins->load('editprofile_abos_end')) ? eval($code) : null;