Commit 7c73fce64b9256c6f5c1e5cf060ee7b9adaa4511

Authored by rob
1 parent ed3cc210

Adds users to the db. For testing purposes only


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@734 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 5 deletions
userCreate.php
1 1 <?php
2 2  
3   -$filename = "c:\script.txt";
4   -
5   -$fp = fopen ($filename, "w");
6   -
7 3 require_once("/config/dmsDefaults.php");
8 4  
9 5 // write to file
10 6 for ($i = 0; $i < 1000; $i++) {
11 7 $sql = $default->db;
12 8 db->query("INSERT INTO users (username, name, password, quota_max, quota_current, email, mobile, email_notification, sms_notification, ldap_dn, max_sessions, language_id) " .
13   - "VALUES ('admin" . $i . "', 'Administrator', '21232f297a57a5a743894a0e4a801fc3', 0, 0, '', '', 1, 1, '', 10000, 1)");
  9 + "VALUES ('admin'" . $i . "', 'Administrator', '21232f297a57a5a743894a0e4a801fc3', 0, 0, '', '', 1, 1, '', 10000, 1)");
14 10 db->query("INSERT INTO users_groups_link (group_id, user_id) SELECT 1, ID FROM users where username = 'admin" . $i . "'");
15 11 }
16 12  
... ...