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

Modern AAC | v0.2

Status
Not open for further replies.
I would love to see a tutorial or guide regarding the command prompt in admin panel?

"Command Prompt - Modern AAC 2010 | CMD 0.1 "

Does it work in Windows?

Code:
/*URL of website including http:// and without slash at the end! */
$config['website'] = $config['website'] = 'http://'.$_SERVER['HTTP_HOST'] . '/'.trim(dirname($_SERVER['SCRIPT_NAME']), '/.\\');

This looks rather weird, it works out of the box if you want to run the server in root.

But what if I want to make an intro/portal page, and run the server from root/aac

i tried this:
Code:
/*URL of website including http:// and without slash at the end! */
$config['website'] = $config['website'] = 'http://'.$_SERVER['HTTP_HOST']/aac . '/'.trim(dirname($_SERVER['SCRIPT_NAME']), '/.\\');

But then the layout got fucked.

Can I remove the "check host function" and just place in a link? And if I can, can you quote how it would look like, I suck in PHP and for me it all seems like a long function, I dont know what to remove and whatnot. :p

$config['website'] = 'http://127.0.0.1/website';

if this is what you mean.

And pre page can now be made within events ;) From 1.0

View guild error.. The sql connection is good

PHP:
A PHP Error was encountered

Severity: Warning

Message: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO)

Filename: files/config.inc.php

Line Number: 4
PHP:
A PHP Error was encountered

Severity: Warning

Message: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'@'localhost' (using password: NO)

Filename: files/config.inc.php

Line Number: 5
PHP:
A PHP Error was encountered

Severity: Warning

Message: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established

Filename: files/config.inc.php

Line Number: 5
Could not select database

That's probably an injection, not Modern AAC's code as we don't use these functions.
 
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$connection = POT::getInstance()->getDBHandle();
 
So I shall remove the whole:
PHP:
$config['website'] = $config['website'] = 'http://'.$_SERVER['HTTP_HOST'] . '/'.trim(dirname($_SERVER['SCRIPT_NAME']), '/.\\');

And just replace it with:
PHP:
$config['website'] = 'http://mywebsite/aac';

Here try this link:
http://slyvera.no-ip.org:7201/aac/

Try to create a character. There is an error message. But im running plain rev 171. Only modification is that its running on port 7201 instead of 80, and its not in www, but in www/aac

I just tried
PHP:
$config['website'] = 'http://mywebsite/aac';

The layout is working but I still have problems creating character without an error.

And how can I strip off the facebook thingy? I don't like it. :p
 
Last edited:
So I shall remove the whole:
PHP:
$config['website'] = $config['website'] = 'http://'.$_SERVER['HTTP_HOST'] . '/'.trim(dirname($_SERVER['SCRIPT_NAME']), '/.\\');

And just replace it with:
PHP:
$config['website'] = 'http://mywebsite/aac';

Here try this link:
http://slyvera.no-ip.org:7201/aac/

Try to create a character. There is an error message. But im running plain rev 171. Only modification is that its running on port 7201 instead of 80, and its not in www, but in www/aac

I just tried
PHP:
$config['website'] = 'http://mywebsite/aac';

The layout is working but I still have problems creating character without an error.

And how can I strip off the facebook thingy? I don't like it. :p

Hmm, thats really weird because you can create account but not chaarcter. What happens if u use standard port?
 
Aight, I cant test it on that computer, because it only has the ports 7200 - 7299 assigned.

But, throwing up my 3rd windows dedicated testing computer! xD

Modern AAC - Powered by IDE Engine.

:|

It worked fine.

So apparently the port is the problem. :S

Can you check it out if you find anything suspicious in your script? Since creating accounts works fine, but char does not.

Ahh, just remember I also removed the character signature folder, because it didn't work on the :7201 server!

Gonna take it back and see if it works.

edit: Recovered the signature folder, still same problem.

Now im going to try to reproduce the port bug on my 64bit server:
http://188.126.219.138/tibia/

using another port.

sec..

Darn, could not reproduce. I guess I have messed something up then. :S
 
Last edited:
Btw PAXTON, you still got that data I gave you for the site on my server? You acn put up an "official" demo there :)
 
Ok, I did not manage to reproduce any bug. But I found something weird when I tried to reproduce the old bug:
3268-keyprob.png


edit: And bam, checked again 40 minutes later~ and error suddenly got removed automatically. :S
 
Last edited:
I see some tag related problems in community.php here is the fix:

* The Lastest Video is in the same row as all tables
* The Latest Comments table contains now the <div class='content'> tag.

PHP:
<div class='message'  style='overflow: hidden; width: 65.8%; float: left; margin-left: 20px; margin-bottom: 10px;'>
	<div class='title'>Latest Video</div>
	<div class='content'>
		<?php 
			if(empty($videos))
				echo "No videos!";
			else {
				foreach($videos as $video) {
						echo "<div style='float: left; width: 150px; text-align: center; border-bottom: 1px dotted silver; margin-bottom: 10px;'>";
							echo "<div style=''>";
							echo "<a href='".WEBSITE."/index.php/video/view/".$video['id']."'><img style='border: 1px groove silver; padding: 1px;' src='http://i1.ytimg.com/vi/".$video['youtube']."/default.jpg'/></a>";
							echo "</div>";
							echo "<div style='float: left; margin-left: 5px;'>";
							echo "<a href='".WEBSITE."/index.php/video/view/".$video['id']."'>".$video['title']."</a><br/>";
							echo "Views: ".$video['views']."<br/>";
							echo "Added: ".ago($video['time'])."<br/>";
							echo "</div>";
						echo "</div>";
					}
			}
		?>
	</div>
</div>

<div class='message'  style='overflow: hidden; width: 65.8%; float: left; margin-left: 20px; margin-bottom: 10px;'>
	<div class='title'>Latest Comments</div>
	<div class='content'>
		<?php 
			if(empty($comments))
				echo "No Comments!";
			else {
				echo "<div style='height: 200px; overflow: auto;'>";
				foreach($comments as $comment) {
					echo "<div style='border-bottom: 1px dotted silver; margin-bottom: 5px; padding: 5px;'><b>Author</b>: ".$comment['author']." &nbsp; ".ago($comment['time'])."<br/>".$comment['body']."<br/><br/></div>";
				}
				echo "</div>";
			}
		?>
		</div>
</div>

<div class='message' style='overflow: hidden; width: 65.8%; float: left; margin-left: 20px; margin-bottom: 10px;'>
	<div class='title'>Facebook Social Recommendations</div>
	<div class='content'>
		<iframe src="http://www.facebook.com/plugins/recommendations.php?site=<?php echo WEBSITE;?>&amp;width=350&amp;height=300&amp;header=false&amp;colorscheme=light&amp;font=tahoma" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:300px;" allowTransparency="true"></iframe>
	</div>
</div>
 
I see some tag related problems in community.php here is the fix:

* The Lastest Video is in the same row as all tables
* The Latest Comments table contains now the <div class='content'> tag.

PHP:
<div class='message'  style='overflow: hidden; width: 65.8%; float: left; margin-left: 20px; margin-bottom: 10px;'>
	<div class='title'>Latest Video</div>
	<div class='content'>
		<?php 
			if(empty($videos))
				echo "No videos!";
			else {
				foreach($videos as $video) {
						echo "<div style='float: left; width: 150px; text-align: center; border-bottom: 1px dotted silver; margin-bottom: 10px;'>";
							echo "<div style=''>";
							echo "<a href='".WEBSITE."/index.php/video/view/".$video['id']."'><img style='border: 1px groove silver; padding: 1px;' src='http://i1.ytimg.com/vi/".$video['youtube']."/default.jpg'/></a>";
							echo "</div>";
							echo "<div style='float: left; margin-left: 5px;'>";
							echo "<a href='".WEBSITE."/index.php/video/view/".$video['id']."'>".$video['title']."</a><br/>";
							echo "Views: ".$video['views']."<br/>";
							echo "Added: ".ago($video['time'])."<br/>";
							echo "</div>";
						echo "</div>";
					}
			}
		?>
	</div>
</div>

<div class='message'  style='overflow: hidden; width: 65.8%; float: left; margin-left: 20px; margin-bottom: 10px;'>
	<div class='title'>Latest Comments</div>
	<div class='content'>
		<?php 
			if(empty($comments))
				echo "No Comments!";
			else {
				echo "<div style='height: 200px; overflow: auto;'>";
				foreach($comments as $comment) {
					echo "<div style='border-bottom: 1px dotted silver; margin-bottom: 5px; padding: 5px;'><b>Author</b>: ".$comment['author']." &nbsp; ".ago($comment['time'])."<br/>".$comment['body']."<br/><br/></div>";
				}
				echo "</div>";
			}
		?>
		</div>
</div>

<div class='message' style='overflow: hidden; width: 65.8%; float: left; margin-left: 20px; margin-bottom: 10px;'>
	<div class='title'>Facebook Social Recommendations</div>
	<div class='content'>
		<iframe src="http://www.facebook.com/plugins/recommendations.php?site=<?php echo WEBSITE;?>&amp;width=350&amp;height=300&amp;header=false&amp;colorscheme=light&amp;font=tahoma" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:300px;" allowTransparency="true"></iframe>
	</div>
</div>

These are child tags.


Try setting $config['website'] to proprer URL don't use relative URL's.
 
I can't understand why the relative URLs don't work for you. I tested with several diffrent webservers, and all of them worked just fine.
 
Just made a nice illustration of SHA1 to make noobs quiet! XD
3273-sha1.png


Crossing fingers that BRs can understand! :D
 
o_O Hurray for Znote! :D
But... I wonder if newbies understand this illustration :D
 
I think we first need an illustration to show them that SHA1 is an encryption of plain. :|
/That is used nowdays for security reasons.

But im out of ideas.

My illustration is not exacly what happens, I mean, tibia loginscreen and config.lua part xD but it might help them to understand that they have to declare sha1 in config.lua, and that even though their phpmyadmin "database" passwords looks fucked up, it should still be correct on tibia loginscreen. :D

Edit: Problems again :S

Jester said:
Can you take a look at the website?
It seems that its fucked up now, I haven't edited much over there, I just added towns and you can't create new characters. Also you can't auction houses because it asks you to choose a character and there is no character in the list. :p

Test yourself:
http://188.126.223.74:7201

Edit: Installed Modern on my Linux box.

Tried to change password in scaffolding:
3287-scaffold1.png


edit: First time you click on a new created character, signatures does not appear. But the 2nd time you click it appears.

Website is slower than Windows - Uniform Server though
(prolly coz uniform server use eaccelerator and atm i don't use any cache systems),

any good tutorials on how to make etc xcache work?
 
Last edited:
How do i open that .tar file?

all i am getting is a .tar file, i cant extract anything from it...
 
Status
Not open for further replies.
Back
Top