mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-02 10:27:48 -05:00
The new shebang is a portable way to find the php interpreter. It works on Mac, GNU/Linux and BSD.
18 lines
389 B
PHP
Executable File
18 lines
389 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
require(__DIR__ . '/_cli.php');
|
|
|
|
$users = listUsers();
|
|
sort($users);
|
|
if (FreshRSS_Context::$system_conf->default_user !== ''
|
|
&& in_array(FreshRSS_Context::$system_conf->default_user, $users, true)) {
|
|
array_unshift($users, FreshRSS_Context::$system_conf->default_user);
|
|
$users = array_unique($users);
|
|
}
|
|
|
|
foreach ($users as $user) {
|
|
echo $user, "\n";
|
|
}
|
|
|
|
done();
|