refactoring of table database, added script for upgrading to versions >= 2.0, added multi-user support
Signed-off-by: giandonato.inverso@edempg.it <giandonato.inverso@studenti.unimi.it>
This commit is contained in:
committed by
giandonato.inverso@edempg.it
parent
e36c26a37a
commit
876b6736b6
@@ -16,6 +16,7 @@
|
||||
<tr>
|
||||
<th><input type="checkbox" name="bulk-select" value="1"></th>
|
||||
<th>ID</th>
|
||||
<th>Owner</th>
|
||||
<th>Filename</th>
|
||||
<th>Type</th>
|
||||
<th>Content</th>
|
||||
@@ -28,6 +29,21 @@
|
||||
<tr>
|
||||
<td><input type="checkbox" name="action[]" value="<?=$row['id']?>" onchange="updateBulkActionVisibility()"></td>
|
||||
<td><?php echo $row['id']; ?></td>
|
||||
<td>
|
||||
<?php
|
||||
if(!isset($row['id_owner']))
|
||||
echo "";
|
||||
else {
|
||||
require_once BASE_PATH . '/lib/Users/Users.php';
|
||||
$users = new Users();
|
||||
$user = $users->getUser($row['id_owner']);
|
||||
if($user !== NULL)
|
||||
echo $user["username"];
|
||||
else
|
||||
echo "";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><?php echo htmlspecialchars($row['filename']); ?></td>
|
||||
<td><?php echo htmlspecialchars($row['type']); ?></td>
|
||||
<td><?php echo $row['content']; ?></td>
|
||||
|
||||
Reference in New Issue
Block a user