1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- function fill_users()
- {
- $users = array();
- require_once 'data_users.php';
- $output = array();
- $output[] = array('title'=>'Users Filling Report:');
- foreach ($users as $i => $user) {
-
- $output[$i]['line-init'] = $user['firstname'];
- $res = UserManager::create_user(
- $user['firstname'],
- $user['lastname'],
- $user['status'],
- $user['email'],
- $user['username'],
- $user['pass'],
- null,
- null,
- null,
- null,
- $user['auth_source'],
- null,
- $user['active']
- );
- $output[$i]['line-info'] = $res ? get_lang('Inserted') : get_lang('NotInserted');
- }
- return $output;
- }
|