Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

27 Zeilen
1.0 KiB

  1. <h3><?php render_navigation($db); ?> &raquo; <?php hm("authentication"); ?></h3>
  2. <div class="operation">
  3. <a href="<?php h(url("db.auth", array("db"=>$db))); ?>" class="current">Users</a> |
  4. <a href="<?php h(url("db.addUser", array("db"=>$db))); ?>">Add User</a>
  5. </div>
  6. <table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
  7. <tr>
  8. <th>ID</th>
  9. <th>User</th>
  10. <th>Read Only</th>
  11. <th>Operation</th>
  12. </tr>
  13. <?php foreach ($users as $user): ?>
  14. <tr bgcolor="#fffeee">
  15. <td width="120" ><?php h($user["_id"]);?></td>
  16. <td><?php h($user["user"]);?></td>
  17. <th><?php if(isset($user["readOnly"])):h($user["readOnly"] ? "Y":""); endif; ?></th>
  18. <th><a href="<?php h(url("db.deleteUser", array("db"=>$db,"user"=>$user["user"]))); ?>" onclick="return window.confirm('Are you sure to remove user \'<?php h($user["user"]); ?>\'?')">Remove</a></th>
  19. </tr>
  20. <?php endforeach; ?>
  21. </table>
  22. <p style="margin-top:60px">
  23. <a href="http://docs.mongodb.org/manual/tutorial/enable-authentication/" target="_blank">Official Document: Enable Authentication</a>
  24. </p>