Jump to content

Recommended Posts

Posted

Salut incerc sa conectez un panel la gm dar imi da o eroare....

[24-Aug-2021 17:25:46 Europe/Bucharest] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE), expecting end of file in /home/dtyroman/public_html/panel/inc/header.inc.php on line 7

Nu stiu ce sa ii fac am incercat toate modele 

daca sterg asta din panel/inc/header.inc.php

else {

    if(Config::isAdmin(Config::getUser())) {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0'); $get-
>execute();

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0'); $get->execute
();

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0'); $get-
>execute();

        $complaints = $get->rowCount();

    } else {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0 AND `UserID`
= ? OR `Status` = 0 AND `AccusedID` = ?'); $get->execute(array(Config::getUser(),Config::getUser()));

        $complaints = $get->rowCount();

    }

}

Merge dar nu pot sa ma loghez adica imi da pagina alba

 

  • 2 months later...
Posted
On 8/24/2021 at 5:34 PM, Rby Robert said:

Salut incerc sa conectez un panel la gm dar imi da o eroare....

[24-Aug-2021 17:25:46 Europe/Bucharest] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE), expecting end of file in /home/dtyroman/public_html/panel/inc/header.inc.php on line 7

Nu stiu ce sa ii fac am incercat toate modele 

daca sterg asta din panel/inc/header.inc.php

else {

    if(Config::isAdmin(Config::getUser())) {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0'); $get-
>execute();

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0'); $get->execute
();

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0'); $get-
>execute();

        $complaints = $get->rowCount();

    } else {

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $tickets = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0 AND `UserID` =
?'); $get->execute(array(Config::getUser()));

        $unban = $get->rowCount();

        

        $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0 AND `UserID`
= ? OR `Status` = 0 AND `AccusedID` = ?'); $get->execute(array(Config::getUser(),Config::getUser()));

        $complaints = $get->rowCount();

    }

}

Merge dar nu pot sa ma loghez adica imi da pagina alba

 

Salut.

PM pentru ajutor.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.