Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class account {
- function register() {
- // Create a new user
- }
- function modify($type,$data) {
- switch($type) {
- case "account":
- include_once("./resources/library/db.php");
- $db = new db();
- $username = $db->SQL_Safe($data['username']);
- $email = $db->SQL_Safe($data['email']);
- $db->SQL_Connect("main");
- $db->SQL_Query("UPDATE users SET email='$email' WHERE username='$username'");
- $db->SQL_Close("main");
- break;
- case "password":
- echo "Password: $data[previous_password]";
- // NOTE: Preform MD5 here
- // Preform check for matching passwords
- break;
- case "notifications":
- echo "You would like notifications for: <br />
- Email on msg: $data[email_on_message]<br />
- Email on friend request: $data[email_on_friend]<br />
- Email on new referral: $data[email_on_ref]<br />
- Email when you reach cashout: $data[email_on_cashout]<br />";
- break;
- case "payments":
- echo "Your payment email is: $data[payment_email]<br /><br />";
- echo "Your prefered payment processor is:<br />";
- if($data['paypal']==true) echo "Paypal!";
- if($data['alertpay']==true) echo "Alertpay!";
- break;
- }
- }
- function activate() {
- // Confirm account activation link
- }
- function whois($usernmae) {
- // Pull up details about an account
- }
- function permissions($username) {
- /* Access Levels:
- 1 - Admin
- 2 - Super Mod
- 3 - Mod
- 4 - User
- */
- $access_level=1;
- return $access_level;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement