File: getusers.php

package info (click to toggle)
php-letodms-core 3.3.9-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 380 kB
  • sloc: php: 3,419; xml: 266; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 524 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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";

?>