11 int ValidateUser(char *Username, char *Password);
12 tUserInfo *GetUserInfo(int UID);
19 * \fn int ValidateUser(char *Username, char *Password)
20 * \brief Validates a users credentials
21 * \return UID on success, -1 on failure
23 int ValidateUser(char *Username, char *Password)
25 if(Username == NULL) return -1;
26 if(Password == NULL) return -1;
27 if(strcmp(Username, "root") == 0) return 0;
28 if(strcmp(Username, "tpg") == 0) return 1;
29 if(strcmp(Username, "gui") == 0) return 2;
30 if(strcmp(Username, "gui3") == 0) return 3;
35 * \fn void GetUserInfo(int UID)
36 * \brief Gets a users information
38 tUserInfo *GetUserInfo(int UID)
42 gUserInfo.Shell = "/Acess/Bin/CLIShell";
46 gUserInfo.Home = "/Acess/Root";
49 gUserInfo.Home = "/Acess/Users/tpg";
52 gUserInfo.UID = 0; //HACK!
53 gUserInfo.Home = "/Acess/Users/gui";
54 gUserInfo.Shell = "/Acess/Apps/AxWin/1.0/AxWinWM";
58 gUserInfo.Home = "/Acess/Root";
59 gUserInfo.Shell = "/Acess/Apps/AxWin/3.0/AxWinWM";
62 gUserInfo.Home = "/Acess/Users/Guest";