• 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?

Few days ago index.php had 100KB, not it has 1.4KB :)
PHP:
<?php
$loadConfigs = array(
'ajax' => array('loadDatabase' => true, 'loadLogin' => true, 'loadLayout' => false, 'showErrors' => false), // for AJAX scripts
'ajaxNODB' => array('loadDatabase' => false, 'loadLogin' => false, 'loadLayout' => false, 'showErrors' => false), // for AJAX scripts that load file contents
'default' => array('loadDatabase' => true, 'loadLogin' => true, 'loadLayout' => true, 'showErrors' => true)
);

//START
include_once('./system/load.init.php');

// LOAD LAST SESSION DATA [forms content etc.]
include_once('./system/load.session_data.php');
// LOAD LAST SESSION DATA END
// DEFINE PARAMS AND PAGE
include_once('./system/load.page_parameters.php');
// DEFINE PARAMS AND PAGE END

if(isset($loadConfigs[Website::getPage()]))
	$loadConfig = $loadConfigs[Website::getPage()];
else
	$loadConfig = $loadConfigs['default'];
	
// DATABASE
if($loadConfig['loadDatabase'])
	include_once('./system/load.database.php');
// DATABASE END

// LOGIN
if($loadConfig['loadLogin'])
	include_once('./system/load.login.php');
// LOGIN END

// LOAD LAYOUT
if($loadConfig['loadLayout'])
	include_once('./system/load.layout.php');
// LOAD LAYOUT END

// LOAD PAGE
include_once('./system/load.page.php');
// LOAD PAGE END
if($loadConfig['showErrors'])
	Display::printErrors(WebsiteErrors::getErrorsList());
echo new Display();
?>
 
>My face when people stilll think that less file size means better.
I meant that few days ago all classes were in one file and now they are where they should be...
--------------------------------------------------
Sorry guys, but I don't have enought time to make this acc. maker now. I must study... Maybe I will continue work in future, but first I must start few some OTSes and finish shop page (redstar-jeans.pl) to get some money :$
If you need some scripts and got 10$ or more on paypal - MSG ME :)
My newest script (for old gesior acc. maker):
* House images generated by TFS LUA script + PHP script
* 1399 RL map house images in 2 hours on 1 core 3GHz cpu
* you can press on image to view in full size
* left/right arrow on keyboard to view lower/higher floor
* there are missing some item images, but it look like tibia client image in 99% [generator uses 8.54 .spr/.dat file and map was 8.6)
Tilmera ? houses
 
I've added 'character info' page, Javascript & CSS classes, fixed some bugs (that occured when you was running AAC on webserver without 'rewrite mod' and used 'get' method in class Form), but there isn't 'install.php' page... maybe I will finish AAC :p
 
info update

Part of admin panel - 'config manager' :thumbup:
You don't have to edit .php config files anymore!

in folder with script file you put configmanager.xml and then it's visible on list:
hDxLW.png

in .xml file you put something like ( I will make documentation ):
[version with config for each world]
XML:
<?xml version="1.0" encoding="UTF-8"?>
<configmanager formatVersion="1.0" fileVersion="1.0" author="Gesior" name="character_create">
	<worldconfig>
		<param type="integer" key="formSize" defaultValue="25" />
		<param type="bool" key="useVerifyImage" defaultValue="false" />
		<param type="integer" key="newPlayerGroupId" defaultValue="1" />
		<param type="bool" key="copyItems" defaultValue="true" />
		<param type="bool" key="copySkills" defaultValue="true" />
		<param type="integer" key="maximumNumberOfCharacters" defaultValue="15" />
		<param type="list" key="townsAllowed" multiselect="true" configs="config:towns" defaultValue="" />
		<param type="bool" key="townsUserSelect" defaultValue="true" />
		<param type="bool" key="townsSpawnInTemple" defaultValue="true" />
		<param type="list" key="sexAllowed" multiselect="true" configs="config:sex" defaultValue="" />
		<param type="bool" key="sexUserSelect" defaultValue="true" />
		<param type="bool" key="vocationsShowInfo" defaultValue="true" />
		<param type="bool" key="vocationsShowDescription" defaultValue="true" />
		<param type="array" key="vocationsAllowed" keytype="iterator" childtype="array" defaultValue="" >
			<param type="string" key="characterToCopy" defaultValue="" />
			<param type="string" key="name" defaultValue="" />
			<param type="string" key="description" defaultValue="" />
		</param>
	</worldconfig>
</configmanager>
[version with config for script (all worlds)]
XML:
<?xml version="1.0" encoding="UTF-8"?>
<configmanager formatVersion="1.0" fileVersion="1.0" author="Gesior" name="account_password_change">
	<pageconfig>
		<param type="integer" key="formSize" defaultValue="25" />
		<param type="bool" key="useVerifyImage" defaultValue="false" />
		<param type="bool" key="sendMailWithNewPassword" defaultValue="false" />
	</pageconfig>
</configmanager>
When you press on world name on configs list it shows editor of this world:
[domain.com/admin/pagesconfig/edit/world/character_create/0/ - config of page 'character/create/', world ID 0]
tUdDF.png


CSS of panel will be changed to make it more readable.
 
Back
Top