devianceone
Lua Scripter
- Joined
- Jan 24, 2009
- Messages
- 756
- Reaction score
- 28
@UP
What do you think about this layout?
Latest News :: Gesior Acc Renewal
IT'S NOT NEW ACCOUNT MAKER, ONLY NEW LAYOUT
Really ugly, please don't use that layout..
@UP
What do you think about this layout?
Latest News :: Gesior Acc Renewal
IT'S NOT NEW ACCOUNT MAKER, ONLY NEW 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 ! ;PReally ugly, please don't use that layout..
this¹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
AAC will support all 0.4 encryptions which are supported by PHP [default]:I'd prefer Whirlpool or even Salsa20 than SHA1 or MD5, it'll not be that fast, but i prefer security instead speed
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.');
}
// 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();
Make it for OpenTibia SVN too