seeddms-code/trunk/LetoDMS_Core/tests/getusers.php
2012-08-31 07:48:51 +00:00

15 lines
524 B
PHP

<?php
include("config.php");
include("LetoDMS/LetoDMS_Core.php");
$db = new LetoDMS_Core_DatabaseAccess($g_config['type'], $g_config['hostname'], $g_config['user'], $g_config['passwd'], $g_config['name']);
$db->connect() or die ("Could not connect to db-server \"" . $g_config['hostname'] . "\"");
$dms = new LetoDMS_Core_DMS($db, $g_config['contentDir'], $g_config['contentOffsetDir']);
$users = $dms->getAllUsers();
foreach($users as $user)
echo $user->getId()." ".$user->getLogin()." ".$user->getFullname()."\n";
?>