mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-26 05:17:22 +08:00
Refactoring user permissions
This commit is contained in:
+2
-3
@@ -5,8 +5,7 @@ require_once(get_langfile_path());
|
||||
loggedinorreturn();
|
||||
parked();
|
||||
|
||||
if (get_user_class() < $staffmem_class)
|
||||
permissiondenied();
|
||||
user_can('staffmem', true);
|
||||
|
||||
$count = get_row_count("reports");
|
||||
if (!$count){
|
||||
@@ -146,7 +145,7 @@ while ($row = mysql_fetch_array($reportres))
|
||||
print("<tr><td class=rowfollow><nobr>".gettime($row['added'])."</nobr></td><td class=rowfollow>" . get_username($row['addedby']) . "</td><td class=rowfollow>".$reporting."</td><td class=rowfollow><nobr>".$type."</nobr></td><td class=rowfollow>".htmlspecialchars($row['reason'])."</td><td class=rowfollow><nobr>".$dealtwith."</nobr></td><td class=rowfollow><input type=\"checkbox\" name=\"delreport[]\" value=\"" . $row['id'] . "\" /></td></tr>\n");
|
||||
}
|
||||
?>
|
||||
<tr><td class="colhead" colspan="7" align="right"><input type="submit" name="setdealt" value="<?php echo $lang_reports['submit_set_dealt']?>" /><input type="submit" name="delete" value="<?php echo $lang_reports['submit_delete']?>" /></td></tr>
|
||||
<tr><td class="colhead" colspan="7" align="right"><input type="submit" name="setdealt" value="<?php echo $lang_reports['submit_set_dealt']?>" /><input type="submit" name="delete" value="<?php echo $lang_reports['submit_delete']?>" /></td></tr>
|
||||
</form>
|
||||
<?php
|
||||
print("</table>");
|
||||
|
||||
Reference in New Issue
Block a user