You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
758 B
35 lines
758 B
<?php
|
|
|
|
/**
|
|
|
|
* [Laike System] Copyright (c) 2017-2020 laiketui.com
|
|
|
|
* Laike is not a free software, it under the license terms, visited http://www.laiketui.com/ for more details.
|
|
|
|
*/
|
|
require_once(MO_LIB_DIR . '/DBAction.class.php');
|
|
|
|
class ajaxAction extends Action {
|
|
|
|
public function getDefaultView() {
|
|
$db = DBAction::getInstance();
|
|
$request = $this->getContext()->getRequest();
|
|
$userid = addslashes(trim($request->getParameter('id')));
|
|
$type = $request->getParameter('type');
|
|
$sql = "select permission from lkt_admin where name = '$userid'";
|
|
$r = $db->select($sql);
|
|
echo json_encode(unserialize($r[0]->permission));
|
|
return;
|
|
}
|
|
|
|
public function execute(){
|
|
|
|
}
|
|
|
|
public function getRequestMethods(){
|
|
return Request :: NONE;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|