27 lines
442 B
PHP
Executable File
27 lines
442 B
PHP
Executable File
#!/usr/bin/php
|
|
|
|
<?php
|
|
|
|
require("session_init.php");
|
|
require("config.inc.php");
|
|
require("log.php");
|
|
require("db.class.php");
|
|
|
|
function esp( $s )
|
|
{
|
|
$s = " $s ";
|
|
return $s;
|
|
}
|
|
|
|
$doldb = new db("dolibarr");
|
|
//$doldb->database = ;
|
|
$ncdb = new db("nextcloud");
|
|
//$ncdb->database = "nextcloud";
|
|
$doldb->query("SELECT login FROM llx_adherent");
|
|
while ($login = $doldb->result->fetch_assoc())
|
|
{
|
|
echo ($login["login"]);
|
|
}
|
|
$doldb->result->close();
|
|
?>
|