Jucausii.Net - Just play it!
[Tutorial] Fondatorul primeste toate permisiunile - Printable Version

+- Jucausii.Net - Just play it! (https://jucausii.net/forum)
+-- Forum: Zona IT & Web / IT & Web Area (https://jucausii.net/forum/forum-169.html)
+--- Forum: Resurse, stiinte si tehnologie / Resources , Science and Technology (https://jucausii.net/forum/forum-171.html)
+---- Forum: Platforme Web / Web platform (https://jucausii.net/forum/forum-173.html)
+----- Forum: PHPBB (https://jucausii.net/forum/forum-204.html)
+------ Forum: Tutoriale / Tutorials (https://jucausii.net/forum/forum-205.html)
+------ Thread: [Tutorial] Fondatorul primeste toate permisiunile (/thread-2316.html)



[Tutorial] Fondatorul primeste toate permisiunile - ra!z0r - 01-12-2015

Autor: Martin

Deschideti includes/auth.php

Cauta :

Code:
function acl_get($opt, $f = 0)
   {
      $negate = false;

      if (strpos($opt, '!') === 0)
      {
         $negate = true;
         $opt = substr($opt, 1);
      }

Inlocuieste cu :

Code:
function acl_get($opt, $f = 0)
   {
      global $user;
      $negate = false;

      if (strpos($opt, '!') === 0)
      {
         $negate = true;
         $opt = substr($opt, 1);
         if ($user->data['user_type'] == USER_FOUNDER)
         {
            return false;

Sursa : phpbbCodes.ro