1 | <?php |
---|
2 | require_once( "common/admin/admin_menu.php" ); |
---|
3 | require_once('common/includes/class.ship.php'); |
---|
4 | require_once('common/includes/class.corp.php'); |
---|
5 | require_once('common/includes/class.alliance.php'); |
---|
6 | require_once( "common/includes/class.eveapi.php" ); |
---|
7 | |
---|
8 | $page = new Page( "Settings - API user management" ); |
---|
9 | $page->setCachable(false); |
---|
10 | $page->setAdmin(); |
---|
11 | |
---|
12 | /* Setup xajax script */ |
---|
13 | mod_xajax::xajax(); |
---|
14 | |
---|
15 | //*** |
---|
16 | if (isset($_GET['delete']) && isset($_GET['userID'])) |
---|
17 | { |
---|
18 | $qry = new DBQuery(); |
---|
19 | $qry->execute("select usr_id from kb3_api_user where usr_id>0 and userID=".intval($_GET['userID'])); |
---|
20 | $row = $qry->getRow(); |
---|
21 | $qry->execute("delete from kb3_api_user where userID=".intval($_GET['userID'])); |
---|
22 | $qry->execute("delete FROM kb3_user_titles where ust_usr_id=".$row['usr_id']); |
---|
23 | $qry->execute("delete FROM kb3_user where usr_id=".$row['usr_id']." and usr_site='".KB_SITE."'"); |
---|
24 | } |
---|
25 | |
---|
26 | |
---|
27 | define (APIUSER_VERSION,'0.5'); |
---|
28 | |
---|
29 | $phpEx = substr(strrchr(__FILE__, '.'), 1); |
---|
30 | $phpfile=config::get('apiuser_phpbbrelative').'/common.' . $phpEx; |
---|
31 | |
---|
32 | |
---|
33 | $html .= "<div class=block-header2>List Of "; |
---|
34 | if (config::get('apiuser_show3char')) |
---|
35 | $html.='<i>all stored</i>'; |
---|
36 | else |
---|
37 | $html.='<i>valid</i>'; |
---|
38 | $html.=' character</div>'; |
---|
39 | |
---|
40 | |
---|
41 | $html.=apiuser::affListMember(); |
---|
42 | |
---|
43 | #$html.='<div class="block-header2">Roles/Title Management</div>'; |
---|
44 | #$html.='<a href="?a=admin_roles">Acces to the roles/Titles managment</a>'; |
---|
45 | |
---|
46 | $html.='<span class="killcount">APIUser Version '.config::get('apiuser_version').'</span>'; |
---|
47 | $page->setContent( $html ); |
---|
48 | $page->addContext( $menubox->generate() ); |
---|
49 | $page->generate(); |
---|