-
Notifications
You must be signed in to change notification settings - Fork 102
/
persondetail.php
22 lines (21 loc) · 954 Bytes
/
persondetail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
define('JIEQI_MODULE_NAME', 'system');
require_once 'global.php';
jieqi_checklogin();
jieqi_loadlang('users', 'system');
jieqi_includedb();
$query = JieqiQueryHandler::getInstance('JieqiQueryHandler');
$sql = 'SELECT * FROM ' . jieqi_dbprefix('system_persons') . ' WHERE uid = ' . intval($_SESSION['jieqiUserId']) . ' LIMIT 0, 1';
$res = $query->execute($sql);
$persons = $query->getRow($res);
if (!$persons) {
jieqi_jumppage(JIEQI_LOCAL_URL . '/personedit.php', LANG_DO_FAILURE, $jieqiLang['system']['persons_not_set'], true);
} else {
include_once JIEQI_ROOT_PATH . '/header.php';
include_once JIEQI_ROOT_PATH . '/include/funpersons.php';
$personsvars = jieqi_system_personsvars($persons, 's');
$jieqiTpl->assign_by_ref('personsvars', $personsvars);
$jieqiTpl->setCaching(0);
$jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/persondetail.html';
include_once JIEQI_ROOT_PATH . '/footer.php';
}