summaryrefslogtreecommitdiffstats
path: root/list-users.php
diff options
context:
space:
mode:
Diffstat (limited to 'list-users.php')
-rw-r--r--list-users.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/list-users.php b/list-users.php
new file mode 100644
index 0000000..66cf738
--- /dev/null
+++ b/list-users.php
@@ -0,0 +1,12 @@
+<?php
+
+define('DRUPAL_ROOT', getcwd());
+
+include_once DRUPAL_ROOT . '/includes/bootstrap.inc';
+drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
+
+$result = db_query('SELECT * from {users}');
+foreach ($result as $record) {
+ /* ToDo: call drupal_render? or theme and create a table */
+ print $record->name . PHP_EOL;
+}