-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUserManagement.php
executable file
·111 lines (80 loc) · 3.22 KB
/
UserManagement.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
require_once ('class/config.inc.php');
//require_once('class/class.yui.php');
$page = new basic_page();
/*******Checking Authentication****************/
$page->auth->Checklogin();
$user = new User();
$notify = new Notification();
$ajax=new PHPLiveX();
$ajax->AjaxifyObjects(array("user"));
//$yui = new phpyui("/yui2/");
/**********************************************/
/*******Setting Page access Rules & checking Authorization****************/
$access_rule = array( "Admin" =>"Admin" );
$page -> setAccessRules($access_rule);
//$page -> setAccessRulesType('all'); // any or all
print_r($_SESSION[groups]);
//$page -> CheckAuthorization();
/************************************************************************/
$page -> setPageKeywords('');
$page -> setPageDescription('');
$page -> setPageTitle("USER MANAGEMENT");
$page -> setActiveButton('5');
$page -> setInnerNav('');
//$page -> setImportCss1('main_style.css');
//$page -> setImportCss2('form.css'); // each page should have it's own .css sheet. Link mulitple sheets here and below
$page -> SetDynamicCSS_1('main_style.php');
$page -> SetDynamicCSS_2('form.php');
$page -> setImportCss3('css/JTip.css');
$page -> setImportCss4('');
$page -> setImportCss5('');
$page -> setExtJavaScripts2('<script language="javascript" SRC="js/jtip.js"></script>'); // might not need
$page -> setExtJavaScripts1('<script language="javascript" SRC="js/jquery.js"></script>'); // might not need
//$page -> setExtJavaScripts3( $yui->get_header() );
//$page -> setExtJavaScripts4(''); // might not need
//*********************Page Style *******************************//
// used to set page styles. This should be used sparingly. External css should be used instead.
$page_style = '';
$page -> setPageStyle($page_style);
$page -> displayPageTop();
$ajax->Run('js/phplivex.js'); // Must be called inside the 'html' or 'body' tags
// **********************Start html for content column ****************************//
$notify->Notify();
$index=$_REQUEST[index];
$user->user_id=$_REQUEST[user_id];
?>
<div id="prl" style="visibility:hidden;"><img id="prl_image" src="images/spinner.gif" /></div>
<div id="content_column_header" class="textb small_text">
<span>Manage Users and Groups</span><span id="adminnav"><a href="UserManagement.php">users</a> | <a href="GroupManagement.php">groups</a></span>
</div>
<div class="form_main">
<?php $user->Manage_users(); ?>
</div>
<?php
// **********************Closes the Content Column and begins Info Column ****************************//
$page-> printContentColumnEnd();
// **********************Start code for Info Column ****************************//
?>
<!--<div id="content_column_header">
<h2>Invite a new user: </h2>
<?php echo $user->invite_user_form_html(); ?>
</div>-->
<div class="form_bg">
<div class="form_main">
<?php
if($_POST[submit]=='add user')
$user->CreateUser('server');
else
$user->CreateUser('local');
//$iU = $_POST["inviteUser"];
//if( $iU == "yes"){
// $user_email = $_POST["email_id"];
// $user->invite_users( array( array( "email" => $user_email )));
//}
?>
</div>
</div>
<?php
$page -> displayPageBottom();
?>