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

Create guild is ready:
CREATEGUILD.PNG

Most of Guild classes is also ready, so tommorow I should finish guilds pages.
 
One thing that should be added is requirement of capitol-letter in the beginning of a name.
 
One thing that should be added is requirement of capitol-letter in the beginning of a name.
Already done:
PHP:
	public static function isValidNewPlayerName($string)
	{
		$config = self::getConfig(array('player', 'name'));

		$string = trim($string);

		if($config->isSetKey('nameFirstLettersUpper') && $config->getValue('nameFirstLettersUpper'))
			$string = ucwords(strtolower($string));
...

		return array(true, '', $string);
And when you try to make player with low first letter:
Error occured:
- - Server rules changed your name to Gesior, you cannot use gesior
If you accept it, press Create Character
 
Already done:
PHP:
	public static function isValidNewPlayerName($string)
	{
		$config = self::getConfig(array('player', 'name'));

		$string = trim($string);

		if($config->isSetKey('nameFirstLettersUpper') && $config->getValue('nameFirstLettersUpper'))
			$string = ucwords(strtolower($string));
...

		return array(true, '', $string);
And when you try to make player with low first letter:
Error occured:
- - Server rules changed your name to Gesior, you cannot use gesior
If you accept it, press Create Character
Great!
 
I don't use SVN, because I have problems with SVN client. Everytime I want update SVN I have to go googlecodes and reset project, else it shows errors and doesn't update.
If you want view newest version of code you should visit:
OTSME AAC
 
Dude, use tortoise svn. D:

After modifying gesior acc, you just enter tortoise svn - commit, write comment and it will do the rest. <.<

Or use svn up. (linux).
 
It looks cool. You script (and design) it yourself or its downloadable script from the web?
Script what?
Acc. maker? Yes.
Acc. maker layout made Bufo [otland user].
Script to view files on server? [it has 'admin panel', upload files script etc., generate thumbnails and only 89KB code :) ]
Encode Explorer :: A simple PHP file browser
I've only added script to view all files as text (PHP files were not readable):
.htaccess
PHP:
RewriteEngine on
RewriteRule ^ v.php [L]
v.php
PHP:
<?PHP
// here is substr '10', because file is in folder domain.com/acc/files/, acc/files/ = 10 letters that it cut
$file = substr(trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/'), 10);
if(file_exists($file))
{
	header('Content-Type: text/plain');
	header('Expires: 0');
	header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
	header('Pragma: public');
	header('Content-Length: ' . filesize($file));
	ob_clean();
	flush();
	readfile($file);
}
?>

I use Tortoise, but when I remove some folders with files it doesn't work, only show error about modified files when I try to commit.
 
Last edited:
Files updated:
OTSME AAC
Added:
- guild/create
- guild/list
- guild/view [not finished, I will finish when all Guild pages will be ready]
- guild/invitation/add
- guild/invitation/accept
- guild/invitation/reject
- guild/invitation/cancel
- guild/kickPlayer
- guild/leave
(there are also folders for other Guild pages, but there are wrong codes)
 
Back
Top