• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Gesior AAC 2011 - Needed? Ideas?

Really ugly, please don't use that layout..
Haters will hate.. , Haven't u ever heard the saying " Patience is a virtue " this is just a starter and it is Pretty sick for a starter so keep your own comments to yourself and leave That guy alone ! ;P
 
Why does the template have to be similar to the tibia.com one? :/
 
Actually, it's illegal to use tibia.com one, and this one is ugly...But the layout isn't the problem, just fix the aac and there are hell of a lot of layouts out there!
 
ya but the distributions use SHA1 and MD5 you would need to edit them not the AAC. the AAC uses what is already built into the distribution
 
Actually, it's illegal to use tibia.com one, and this one is ugly...But the layout isn't the problem, just fix the aac and there are hell of a lot of layouts out there!
this¹
ya but the distributions use SHA1 and MD5 you would need to edit them not the AAC. the AAC uses what is already built into the distribution
this²

Use the tibiacom layout, we are already doing things illegally btw :p
 
I'd prefer Whirlpool or even Salsa20 than SHA1 or MD5, it'll not be that fast, but i prefer security instead speed
AAC will support all 0.4 encryptions which are supported by PHP [default]:
(part of Website class)
PHP:
	public static $passwordsEncryptions = array(
	'plain' => 'plain',
	'md5' => 'md5',
	'sha1' => 'sha1',
	'sha256' => 'sha256',
	'sha512' => 'sha512',
	'vahash' => 'vahash'
	);
	private $passwordsEncryption;

	public function setPasswordsEncryption($encryption)
	{
		if(isset($this->passwordsEncryptions[strtolower($encryption)]))
			$this->passwordsEncryption = strtolower($encryption);
		else
			new Error_Critic('#C-12', 'Invalid passwords encryption ( ' . htmlspecialchars($encryption) . '). Must be one of these: ' . implode(',', $this->passwordsEncryptions));
	}

	public function getPasswordsEncryption()
	{
		return $this->passwordsEncryption;
	}

	public function validatePasswordsEncryption($encryption)
	{
		if(isset($this->passwordsEncryptions[strtolower($encryption)]))
			return true;
		else
			return false;
	}

	public function encryptPassword($password)
	{
		if(isset($this->passwordsEncryption))
			if($this->passwordsEncryption == 'plain')
				return $password;
			else
				return hash($this->passwordsEncryption, $password);
		else
			new Error_Critic('#C-13', 'You cannot use Website::encryptPassword(\$password) when password encryption is not set.');
	}
 
@UP
I have checked it in rev. < 4000. I will check again before first release.
@tibia.com layout lovers
New layouts system [loads faster, more options available, layout can be pure HTML, if you dont want advanced options] will allow you too overwrite [default] classes Form, Table, URL, so it will be possible to add 'tibia com tables style' easy.
Of course there will be new create account and create character site.
 
If you want view code, here is alpha version:
renewal alpha2 zip

TODO tommorow:
- multiworld system [multi config.lua load], fix classes to work with multiworld
- do first pages [login, create account, create character, news]
- test first layout

Part that loads layout and page content:
PHP:
// LOAD LAYOUT
if(file_exists(PATH_LAYOUT . 'layout.functions.php'))
	include_once(PATH_LAYOUT . 'layout.functions.php');
ob_start();
include_once(PATH_LAYOUT . 'layout.php');
Display::addLayoutContent(ob_get_clean());
// LOAD LAYOUT END

// LOAD PAGE
ob_start();
include_once(PATH_SCRIPT . 'index.php');
Display::addPageContent(ob_get_clean());
// LOAD PAGE END

Display::printWebsite();
 
Back
Top