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

ModernAAC Problem

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,767
Solutions
5
Reaction score
769
Hello,
When a player tries to create an account, and he press create account, it just loads!
u can try urself here

rep++ for the fixer
 
I tested the same site on localhost and that redirecting normal but does not redirect the vps. I use modern acc 1.0.2 and ubuntu linux. help me please
 
Im not sure but it could be something in htdocs\system\application\controllers in account.php can you post yours here?

here account.php
PHP:
<?php 
$GLOBALS['characters'] = $characters;
$ide = new IDE;
try { $ide->loadInjections("account"); } catch(Exception $e) { error($e->getMessage()); }
	echo "<h2>Hello <a href='".url('profile/view/'.$_SESSION['nickname'])."'>".ucfirst($_SESSION['nickname'])."</a>!</h2>";
	
	if($messages != 0)
		if($messages == 1)
			echo "<center><b>You have $messages new message! Click <a href='".url('msg/inbox')."'>here</a> to read them!</b></center><br/>";
		else
			echo "<center><b>You have $messages new messages! Click <a href='".url('msg/inbox')."'>here</a> to read them!</b></center><br/>";
?>
<script>$(function(){$("#tabs").tabs();});</script>
<?php

echo "<div id='tabs'>";
echo '<ul>
		<li><a href="#characters">Characters</a></li>
		<li><a href="#account">Account</a></li>
		<li><a href="#community">Community</a></li>
		<li><a href="#logout">Logout</a></li>
	</ul>';
	echo "<div id='characters'>";
	echo "<center><a href='".WEBSITE."/index.php/character/create_character'><button class='ide_button' onClick=\"window.location.href='".WEBSITE."/index.php/character/create_character';\">Create Character</button></a></center>";
	echo "<table width='100%'>";
	echo "<tr><td><center><b>Name</b></center></td><td><center><b>Level</b></center></td><td><center><b>Actions</b></center></td></tr>";
	foreach($characters as $row) {
		echo "<tr class='highlight'><td><center><a href=\"".WEBSITE."/index.php/character/view/$row->name\">$row->name</a></center></td><td><center>$row->level</center></td><td><center><a href=\"".WEBSITE."/index.php/account/editcomment/$row->id\" class='tipsy' title='Edit comment'><img src='".WEBSITE."/public/images/edit.gif'/></a> <a href='#' onClick='if(confirm(\"Are you sure?\")) window.location.href=\"".WEBSITE."/index.php/account/deletePlayer/$row->id\"' class='tipsy' title='Delete character'><img src='".WEBSITE."/public/images/false.gif'/></a></center></td></tr>";
	
	}
	echo "</table>";
	echo "</div>";
	echo "<div id='account'>";
	echo "<center><a href='".WEBSITE."/index.php/account/changepassword'><button class='ide_button' onClick=\"window.location.href='".WEBSITE."/index.php/account/changepassword';\">Change password</button></a></center>";
	echo "</div>";
	echo "<div id='community'>";
		echo "<b>Profile</b>";
		echo "<li><a href='".WEBSITE."/index.php/profile/update'>Edit Profile</a></li>";
		echo "<li><a href='".WEBSITE."/index.php/profile/avatar'>Update Avatar</a></li>";
		echo "<br/><b>Messages</b>";
		echo "<li><a href='".WEBSITE."/index.php/msg/inbox'>Inbox</a></li>";
		echo "<li><a href='".WEBSITE."/index.php/msg/outbox'>Outbox</a></li>";
		echo "<li><a href='".WEBSITE."/index.php/msg/write'>Write New</a></li>";
	echo "</div>";
	echo "<div id='logout'>";
		echo "<br /><center><b>Are you sure you want to log out?</b><br /><br /><a href='".WEBSITE."/index.php/account/logout'><button class='ide_button' onClick=\"window.location.href='".WEBSITE."/index.php/account/logout';\">Logout</button></a></center>";
	echo "</div>";
echo "</div>";

if(empty($acc[0]['rlname']) || empty($acc[0]['location']) || empty($acc[0]['about_me']))
	alert("You might consider updating your public profile <a href='".WEBSITE."/index.php/profile/update'><b>here</b></a>!");
?>
 
Back
Top