代码拉取完成,页面将自动刷新
<?php session_start(); ?>
<?php header("Content-type: text/html; charset=utf-8"); ?>
<?php
include __DIR__ . '/db/db.php';
include __DIR__ . '/func/functions.php';
//$args = filter_input_array(INPUT_GET, [
// 'do' => FILTER_DEFAULT,
// 'id' => FILTER_DEFAULT
// ]);
$owner = Owner::find_by_user_id($_SESSION['id']);
if ($owner == null) {
jumpTo('no role', 'main.php');
}
$queue[] = [
'id' => $owner->role_id
];
while ($queue != null) {
$record = array_pop($queue);
foreach (Level::find('all', ['h_id' => $record['id']]) as $value) {
$roles_name[] = ['name' => $value->low->name];
array_push($queue, ['id' => $value->l_id]);
}
}
$result = [];
array_push($result, [
'name' => Role::find_by_id($owner->role_id)->name
]);
if ($roles_name != null) {
foreach ($roles_name as $value) {
$role[] = $value['name'];
}
$role = array_unique($role);
foreach ($role as $value) {
$result[] = ['name' => $value];
}
}
$temple = __DIR__ . '/module/power.phtml';
include __DIR__ . '/module/public/layout.phtml';
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。