• 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 know that I am quite annoying about this admin stuff :p
Anyways, I wonder how to check if you are admin in a php file in /pages.

I understand if this is inconsistent manner, what I am trying to say is, can I somehow use the command
Code:
{if $admin}
{/if}
As in the index.tpl file :p
 
I know that I am quite annoying about this admin stuff :p
Anyways, I wonder how to check if you are admin in a php file in /pages.

I understand if this is inconsistent manner, what I am trying to say is, can I somehow use the command
Code:
{if $admin}
{/if}
As in the index.tpl file :p

{if $admin != ''} IM ADMIN! {/if}

@Znote

It's not actually problem with SQL Queries, but it's gonna take some time before I find the thing that does it, long to explain.
 
:p as I said "I understand if this is inconsistent manner".
I mean in a php file. Like upload.php
Where the submit button is hidden if you aren't an admin (Just an example :p)
Code:
<?php {if $admin != "} ?>
<input type="submit" value="Upload File" />
<?php {/if} ?>
But that doesn't work :p

I hope that this is a bit more clarity:D
 
:p as I said "I understand if this is inconsistent manner".
I mean in a php file. Like upload.php
Where the submit button is hidden if you aren't an admin (Just an example :p)
Code:
<?php {if $admin != "} ?>
<input type="submit" value="Upload File" />
<?php {/if} ?>
But that doesn't work :p

I hope that this is a bit more clarity:D

PHP:
if($ide->isAdmin()) {
 echo 'showed only for admin';
}
 
the? if you were reffering to the website, its up now, I was just changing to uniform server from xampp :D
 
Thanks paxton! <3 (going to try to rep you again(IF it works :D)
 
I Have a problem, I used to use Gesior Acc, but when i changed to modern aac, the accounts made by the players in the Gesior AAC Period, cant login in the Modern AAC webpage, it only lets the accounts created in Modern AAC login in Modern AAC.
Sorry for English, hope u understood me :D
 
Gah, I have to destroy my cool post count for you :< (666) :p

See this link: Modern AAC invalid Password
Going to update it later, for an example for your problem.

Anyways, use this (and change the last number untill the new users aacs comes.
Code:
UPDATE `accounts` SET `password`=SHA1(password) WHERE `id` between 1 AND 8;
(I think this is the corrct way to do this :p
 
@pheniqs
Either do your ISP block that ip, or u got another firewall software installed (your anit-virus?)
 
@tosse12
I was sleeping...my pc was off... that is why the site were offline when you entered lol...
 
@tosse12
I was sleeping...my pc was off... that is why the site were offline when you entered lol...

Well thats weird, because on my PC creating character works, but on your server it doesn't. What OS are u using and what web server?
 
Windows 7 and Xampp (tried with uniform server and get the same result)
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top