This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/main/git/git.php

13 lines
282 B
PHP
Raw Normal View History

2015-03-08 03:59:12 +00:00
<?php
$userFile = file_get_contents('passwd');
$usersTemp = explode("\r\n", $userFile);
$users = array();
foreach($usersTemp as $user) {
2015-03-08 04:02:17 +00:00
$userTemp = explode(":", $userFile);
$users[$userTemp[0]] = $userTemp[1];
unset($userTemp);
2015-03-08 03:59:12 +00:00
}
print_r($users);