-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathphone.php
executable file
·40 lines (36 loc) · 1.3 KB
/
phone.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
* This file is part of the phpems/phpems.
*
* (c) oiuv <[email protected]>
*
* 项目维护:oiuv(QQ:7300637) | 定制服务:火眼(QQ:278768688)
*
* This source file is subject to the MIT license that is bundled.
*/
class app
{
public $G;
public function __construct(&$G)
{
$this->G = $G;
$this->ev = $this->G->make('ev');
$this->tpl = $this->G->make('tpl');
$this->sql = $this->G->make('sql');
$this->pdosql = $this->G->make('pdosql');
$this->db = $this->G->make('pdodb');
$this->pg = $this->G->make('pg');
$this->html = $this->G->make('html');
$this->files = $this->G->make('files');
$this->session = $this->G->make('session');
$this->category = $this->G->make('category');
$this->course = $this->G->make('course', 'course');
$this->content = $this->G->make('content', 'content');
$this->user = $this->G->make('user', 'user');
$this->_user = $_user = $this->session->getSessionUser();
$this->tpl->assign('_user', $this->user->getUserById($this->_user['sessionuserid']));
$rcats = $this->category->getCategoriesByArgs([['AND', "catparent = '0'"]]);
$this->tpl->assign('rcats', $rcats);
$this->tpl->assign('userhash', $this->ev->get('userhash'));
}
}