forked from Pleclown/Commons-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uploadersincat.php
43 lines (33 loc) · 1008 Bytes
/
uploadersincat.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
<?php
include('utils/functions.php');
include('utils/category.php');
include('utils/database.php');
$title = 'Uploaders in cat';
$h1='Commons Uploaders in cat';
include('utils/header.php');
if (!empty($_GET)) {
$category=$_GET['category'];
}else{
$category = '';
}
?>
<fieldset><legend>Find uploaders in cat</legend>
<form method="get" action="uploadersincat.php" id="mw-sulinfo-form1">
<table border="0" id="mw-movepage-table">
<tr><td class='mw-label'><label for="category">Category :</label></td><td class='mw-input'><input id="category" name="category" type="text" value="<?php echo $category; ?>"/></td>
<tr><td> </td><td class='mw-submit'><input type="submit" value="Go !" /></td></tr>
</table>
</form></fieldset>
<?php
if ($category != '') {
$db = new database;
if ($db->connect('commonswiki')) {
$cat = new category($db,$category);
$cat->printCat();
$cat->getUploadersInCat();
$cat->printUploadersInCatPieChart();
$cat->printUploadersInCatList();
}
}
include('utils/footer.php');
?>