[HELP] MOD and TMOD Can rank user [Help]

Ulan Hafiz

Member
Oct 20, 2011
139
7
I dont know how to do this
but i know MOD and TMOD can rank people,
i need you to disable hk rights
:'( help me pleasee inbox me and TV mee
 

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669
Open your wwwroot/app/class.users.php
find
PHP:
final public function loginHK()
    {
        global $template, $_CONFIG, $core;
       
        if(isset($_POST['login']))
        {   
            $template->form->setData();
            unset($template->form->error);
           
            if(isset($template->form->username) && isset($template->form->password))
            {
                if($this->nameTaken($template->form->username))
                {   
                    if($this->userValidation($template->form->username, $core->hashed($template->form->password)))
                    {
                        if(($this->getInfo($_SESSION['user']['id'], 'rank')) >= 4)
                        {
                            $_SESSION["in_hk"] = true;
                            header("Location:".$_CONFIG['hotel']['url']."/ase/dash");
                            exit;
                        }
                        else
                        {
                            $template->form->error = 'Incorrect access level.';
                            return;
                        }
                    }
                    else
                    {
                        $template->form->error = 'Incorrect password.';
                        return;
                    }       
                }
                else
                {
                    $template->form->error = 'User does not exist.';
                    return;
                }
            }
   
            $template->form->unsetData();
        }
    }
Change this line:
PHP:
 if(($this->getInfo($_SESSION['user']['id'], 'rank')) >= 4)
 

Ulan Hafiz

Member
Oct 20, 2011
139
7
Open your wwwroot/app/class.users.php
find
PHP:
final public function loginHK()
    {
        global $template, $_CONFIG, $core;
     
        if(isset($_POST['login']))
        { 
            $template->form->setData();
            unset($template->form->error);
         
            if(isset($template->form->username) && isset($template->form->password))
            {
                if($this->nameTaken($template->form->username))
                { 
                    if($this->userValidation($template->form->username, $core->hashed($template->form->password)))
                    {
                        if(($this->getInfo($_SESSION['user']['id'], 'rank')) >= 4)
                        {
                            $_SESSION["in_hk"] = true;
                            header("Location:".$_CONFIG['hotel']['url']."/ase/dash");
                            exit;
                        }
                        else
                        {
                            $template->form->error = 'Incorrect access level.';
                            return;
                        }
                    }
                    else
                    {
                        $template->form->error = 'Incorrect password.';
                        return;
                    }     
                }
                else
                {
                    $template->form->error = 'User does not exist.';
                    return;
                }
            }
 
            $template->form->unsetData();
        }
    }
Change this line:
PHP:
if(($this->getInfo($_SESSION['user']['id'], 'rank')) >= 4)
Thanks!
If your staff are ranking random users or themselves they shouldn't be staff.
LOL Agree.!
 

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669

please quote.
Teamviewer:
Please refrain from offering help via Teamviewer, if you wish to offer help this way it can be done using the private messaging system. Posting things such as 'What's your TV ID?' is not useful for people who have the same problem, because of this, any posts regarding Teamviewer will be regarded as spam and dealt with appropriately.
source:
 

lepos

thinking about you. yes you
Dec 11, 2011
2,022
685

please quote.
Teamviewer:
Please refrain from offering help via Teamviewer, if you wish to offer help this way it can be done using the private messaging system. Posting things such as 'What's your TV ID?' is not useful for people who have the same problem, because of this, any posts regarding Teamviewer will be regarded as spam and dealt with appropriately.

etc.

Also if your problem is fixed tell us so we know it works and what helped!
 

Clit

Posting Freak
Feb 25, 2012
1,065
103
Teamviewer:
Please refrain from offering help via Teamviewer, if you wish to offer help this way it can be done using the private messaging system. Posting things such as 'What's your TV ID?' is not useful for people who have the same problem, because of this, any posts regarding Teamviewer will be regarded as spam and dealt with appropriately.
source:
Not quoting it, look at the section rules not the global
Teamviewer:
Please refrain from offering help via Teamviewer, if you wish to offer help this way it can be done using the private messaging system. Posting things such as 'What's your TV ID?' is not useful for people who have the same problem, because of this, any posts regarding Teamviewer will be regarded as spam and dealt with appropriately.
source:



Please refrain from offering help via Teamviewer, if you wish to offer help this way it can be done using the private messaging system.

He asked. facepalm.jpg
 

Users who are viewing this thread

Top