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

Narzerus

Full-stack developer and old OT Developer
Joined
Oct 29, 2007
Messages
202
Reaction score
11
I'm making my own shop system on php for Modern AAC.

Does anyone know how can I get the values such as:

Logged in/Not logged in
Acc Name
Etc..

Tried to find it as it should be somewhere.


Thanks people!
 
I think it is like:

Rep if helped

PHP:
$ide = new IDE;
if($ide->isLogged()){
/*your code shit*/
}
else
/*not logged*/

Account name should be stored here:
$_SESSION['name']

Id of account to get players:
$data['id']

Player nickname:
$_SESSION['nickname']
 
Actually I found that one, its
PHP:
if (empty($_SESSION['logged']))
{
   echo ' Basfasfwafwae';
}
else
{
 echo ' dawdwa';
}


So Anyone knows the other session values? Such as acc number, password, etc?

Found so far:
$_SESSION['logged']



EDIT: Oh didn't read the last part of your post, let me try that!
 
Got these for you: $_SESSION[x]:
x's:
access << maybe you need for shop admin
logged << you already mentioned
account_id << acount id
admin << shows if account is admin account or something. Didnt really get it xD
name << account name
 
data['id'] will fo course not work, cause it's not getting values from the cookies.


But I can manage to get anything with $_SESSION['name']

Thanks! rep ++
 
Yea sorry data['id'] was some fuck out of my code. Copied wrong part xD

Didnt get rep :(
 
Yeah it says: "You must spread some Reputation around before giving it to Summ again."

Another question guys, what about sql functions?
Anything built in?
 
If you need it:
PHP:
$ots = POT::getInstance();
$ots->connect(POT::DB_MYSQL, connection());
$SQL = $ots->getDBHandle();

//now like that:
$res = $SQL->query('SELECT something FROM xxx');
 
Back
Top