forked from Pleclown/Commons-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
useractions.php
45 lines (39 loc) · 1.19 KB
/
useractions.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
<?php
include('utils/functions.php');
include('utils/user.php');
include('utils/database.php');
$title = 'Useractions';
$h1='Useractions';
include('utils/header.php');
if (!empty($_GET)) {
$project = $_GET['project'];
$name=$_GET['user'];
}else{
$name='';
$project = '';
}
$metadb = new metadatabase;
?>
<fieldset><legend>User actions</legend>
<form method="get" action="useractions.php" id="mw-sulinfo-form1">
<table border="0" id="mw-movepage-table">
<tr><td class='mw-label'><label for="wiki">Project </label></td><td class='mw-input'><select class="form-control" name="project" id="wikiDb" required>
<?php
echo $metadb->listSelectWiki($project);
?>
</select></td></tr>
<tr><td class='mw-label'><label for="username">Username :</label></td><td class='mw-input'><input id="user" name="user" type="text" value="<?php echo $name; ?>"/></td><tr><td> </td><td class='mw-submit'><input type="submit" value="Go !" /></td></tr>
</table>
</form></fieldset>
<?php
if ($name != '') {
$db = new database;
if ($db->connect($project)) {
$user = new user($db,$name);
$user->printUser();
$user->getUserActions();
$user->printGeneralInfos();
}
}
include('utils/footer.php');
?>