AmbientCMS [PHP,PDO,Themes,Languages]

Status
Not open for further replies.

Laynester

a bad bitch
Nov 7, 2018
305
437
ambient_logo4.gif

About AmbientCMS
AmbientCMS is a Habbo CMS[PHP,PDO] Coded for Arcturus Emulator Theme-able, with tons of configuration.
Habbo Theme: A Responsive Habbo style theme, emulating most of habbo's style with CMS with minimal imaging.

If you would like more information or to see more updates,

Screenshots
Pages That are done/being worked on

Index
Screen_Shot_2018-11-08_at_2.45.01_PM.png

image0.png



Registration
Screen_Shot_2018-11-08_at_2.45.12_PM.png


Me Page
Screen_Shot_2018-11-08_at_2.45.48_PM.png

image0.png


Default Profile Pages
Screen_Shot_2018-11-08_at_2.46.30_PM.png

image0.png


Staff Page
Screen_Shot_2018-11-08_at_2.46.01_PM.png

image0.png

Feature List
Planned Features
  • Minimail
  • Plentiful account settings
  • Integrated Housekeeping
  • RCON Features
  • Installation Setup
  • News Style Old/New

Profile Features
  • Changeable background image
  • Colourable Widget Headers
  • Status Updates
  • Friends
  • Groups
  • Stats
  • GuestBook
  • Badges
  • Enable/Disable widgets

Configuration Options
  • Site URL
  • Avatar Imager
  • Language
  • Logo
  • Cache/No Cache
  • Hotel Name
  • Maintenance
  • Registration Enabled/Disabled
  • Enable/Disable Campaigns

Code Snippets
Login Functionality
Code:
function processForms() {
	global $conn;
	// Login
	$error = false;
	$_SESSION[ 'error' ] = $error;

	if ( ( $_SERVER[ 'REQUEST_METHOD' ] == 'POST' ) && ( isset( $_POST[ 'login' ] ) ) ) {
		if ( !empty( $_POST[ 'Username' ] ) ) {
			if ( !empty( $_POST[ 'Password' ] ) ) {
				ambientUser::login( $_POST[ 'Username' ], $_POST[ 'Password' ] );
				if ( loggedIn() )header( 'Location: /me' );
			} else {
				$error = true;
				$emessage = '%empty_pass%';
				$_SESSION[ 'error' ] = $error;
				$_SESSION[ 'emessage' ] = $emessage;

			}
		} else {
			$error = true;
			$emessage = '%empty_user%';
			$_SESSION[ 'error' ] = $error;
			$_SESSION[ 'emessage' ] = $emessage;
		}
	} else {
		$error = false;
		$_SESSION[ 'error' ] = $error;
	}

Registration
Code:
public static function register($user,$bpass,$motto,$sso,$femail,$avatar,$credits,$userip,$date,$gender)
  {
    global $conn;
      $registry = $conn->prepare("INSERT INTO users(username, password, rank, auth_ticket, motto, account_created, account_day_of_birth, last_online, mail, look, gender, ip_current, ip_register, credits)
      VALUES(:username,:password,'1',:sso,:motto,:timed,:accountbday,:last_online,:email,:avatar,:gender,:userip,:userip,:credits)");
      $registry->bindParam(':username', $user);
      $registry->bindParam(':password', $bpass);
      $registry->bindParam(':motto', $motto);
      $registry->bindParam(':sso', $sso);
      $registry->bindParam(':email', $femail);
      $registry->bindParam(':avatar', $avatar);
      $registry->bindParam(':credits', $credits);
      $registry->bindParam(':userip', $userip);
      $registry->bindParam(':gender', $gender);
      $registry->bindParam(':accountbday', strtotime($date));
      $registry->bindParam(':timed', strtotime('now'));
      $registry->bindParam(':last_online', strtotime('now'));
      $registry->execute();
      $getId = $conn->lastInsertId();
      $_SESSION['id'] = $getId;
      header('Location: /me');
      if (!$registry) {
        echo "\nPDO::errorInfo():\n";
        print_r($registry->errorInfo());
      }
  }

BCRYPT Passwords
Code:
public static function hashed($pass)
  {
    return password_hash($pass,PASSWORD_BCRYPT);
  }
 
Last edited:

n4te

zzz
Oct 27, 2014
669
293
ambient_logo4.gif

About AmbientCMS
AmbientCMS is a Habbo CMS[PHP,PDO] Coded for Arcturus Emulator Theme-able, with tons of configuration.
Habbo Theme: A Responsive Habbo style theme, emulating most of habbo's style with CMS with minimal imaging.

If you would like more information or to see more updates,

Screenshots
Pages That are done/being worked on

Index
Screen_Shot_2018-11-08_at_2.45.01_PM.png

image0.png



Registration
Screen_Shot_2018-11-08_at_2.45.12_PM.png


Me Page
Screen_Shot_2018-11-08_at_2.45.48_PM.png

image0.png


Default Profile Pages
Screen_Shot_2018-11-08_at_2.46.30_PM.png

image0.png


Staff Page
Screen_Shot_2018-11-08_at_2.46.01_PM.png

image0.png

Feature List
Planned Features
  • Minimail
  • Plentiful account settings
  • Integrated Housekeeping
  • RCON Features
  • Installation Setup
  • News Style Old/New

Profile Features
  • Changeable background image
  • Colourable Widget Headers
  • Status Updates
  • Friends
  • Groups
  • Stats
  • GuestBook
  • Badges
  • Enable/Disable widgets

Configuration Options
  • Site URL
  • Avatar Imager
  • Language
  • Logo
  • Cache/No Cache
  • Hotel Name
  • Maintenance
  • Registration Enabled/Disabled
  • Enable/Disable Campaigns

Code Snippets
Login Functionality
Code:
function processForms() {
    global $conn;
    // Login
    $error = false;
    $_SESSION[ 'error' ] = $error;

    if ( ( $_SERVER[ 'REQUEST_METHOD' ] == 'POST' ) && ( isset( $_POST[ 'login' ] ) ) ) {
        if ( !empty( $_POST[ 'Username' ] ) ) {
            if ( !empty( $_POST[ 'Password' ] ) ) {
                ambientUser::login( $_POST[ 'Username' ], $_POST[ 'Password' ] );
                if ( loggedIn() )header( 'Location: /me' );
            } else {
                $error = true;
                $emessage = '%empty_pass%';
                $_SESSION[ 'error' ] = $error;
                $_SESSION[ 'emessage' ] = $emessage;

            }
        } else {
            $error = true;
            $emessage = '%empty_user%';
            $_SESSION[ 'error' ] = $error;
            $_SESSION[ 'emessage' ] = $emessage;
        }
    } else {
        $error = false;
        $_SESSION[ 'error' ] = $error;
    }

Registration
Code:
public static function register($user,$bpass,$motto,$sso,$femail,$avatar,$credits,$userip,$date,$gender)
  {
    global $conn;
      $registry = $conn->prepare("INSERT INTO users(username, password, rank, auth_ticket, motto, account_created, account_day_of_birth, last_online, mail, look, gender, ip_current, ip_register, credits)
      VALUES(:username,:password,'1',:sso,:motto,:timed,:accountbday,:last_online,:email,:avatar,:gender,:userip,:userip,:credits)");
      $registry->bindParam(':username', $user);
      $registry->bindParam(':password', $bpass);
      $registry->bindParam(':motto', $motto);
      $registry->bindParam(':sso', $sso);
      $registry->bindParam(':email', $femail);
      $registry->bindParam(':avatar', $avatar);
      $registry->bindParam(':credits', $credits);
      $registry->bindParam(':userip', $userip);
      $registry->bindParam(':gender', $gender);
      $registry->bindParam(':accountbday', strtotime($date));
      $registry->bindParam(':timed', strtotime('now'));
      $registry->bindParam(':last_online', strtotime('now'));
      $registry->execute();
      $getId = $conn->lastInsertId();
      $_SESSION['id'] = $getId;
      header('Location: /me');
      if (!$registry) {
        echo "\nPDO::errorInfo():\n";
        print_r($registry->errorInfo());
      }
  }

BCRYPT Passwords
Code:
public static function hashed($pass)
  {
    return password_hash($pass,PASSWORD_BCRYPT);
  }
This is looking good. I like the old school type of look on some of the pages.
 
Status
Not open for further replies.

Users who are viewing this thread

Top