aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/share
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-12-31 22:12:20 +0000
committerJustin Clark-Casey (justincc)2012-12-31 22:12:20 +0000
commitc18e2e45450725e7e946173064a6ae32241c8211 (patch)
tree59cc1e7e9adbe6be0504861e2d7d0e98921e84f1 /share
parentminor: Add README to doc/ to explain that all user-level doc is at http://ope... (diff)
downloadopensim-SC-c18e2e45450725e7e946173064a6ae32241c8211.zip
opensim-SC-c18e2e45450725e7e946173064a6ae32241c8211.tar.gz
opensim-SC-c18e2e45450725e7e946173064a6ae32241c8211.tar.bz2
opensim-SC-c18e2e45450725e7e946173064a6ae32241c8211.tar.xz
Remove php dir which was only populated with a single file that generated a long out-of-date user profile array.
Diffstat (limited to 'share')
-rwxr-xr-xshare/php/generateUserFunction.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/share/php/generateUserFunction.php b/share/php/generateUserFunction.php
deleted file mode 100755
index a262bf5..0000000
--- a/share/php/generateUserFunction.php
+++ /dev/null
@@ -1,46 +0,0 @@
1<?php
2 // GenerateUser (v1.0)
3 // Creates a new user account, and returns it into an associative array.
4 // --
5 // $firstname - The users firstname
6 // $lastname - The users lastname
7 // $password - the users password
8 // $home - the regionhandle of the users home location
9 // --
10 function generateUser($firstname,$lastname,$password,$home) {
11 $user = array();
12 $user['UUID'] = sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
13 mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
14 mt_rand( 0, 0x0fff ) | 0x4000,
15 mt_rand( 0, 0x3fff ) | 0x8000,
16 mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) );
17 $user['username'] = $firstname;
18 $user['lastname'] = $lastname;
19
20 $user['passwordSalt'] = md5(microtime() . mt_rand(0,0xffff));
21 $user['passwordHash'] = md5(md5($password) . ":" . $user['passwordSalt']);
22
23 $user['homeRegion'] = $home;
24 $user['homeLocationX'] = 128;
25 $user['homeLocationY'] = 128;
26 $user['homeLocationZ'] = 128;
27 $user['homeLookAtX'] = 15;
28 $user['homeLookAtY'] = 15;
29 $user['homeLookAtZ'] = 15;
30
31 $user['created'] = time();
32 $user['lastLogin'] = 0;
33
34 $user['userInventoryURI'] = "http://inventory.server.tld:8004/";
35 $user['userAssetURI'] = "http://asset.server.tld:8003/";
36
37 $user['profileCanDoMask'] = 0;
38 $user['profileWantDoMask'] = 0;
39 $user['profileAboutText'] = "I am a user.";
40 $user['profileFirstText'] = "Stuff.";
41 $user['profileImage'] = sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x', 0, 0, 0, 0, 0, 0, 0, 0 );
42 $user['profileFirstImage'] = sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x', 0, 0, 0, 0, 0, 0, 0, 0 );
43
44 return $user;
45 }
46?> \ No newline at end of file