!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/tmp/twig/f1/   drwxr-xr-x
Free 25.41 GB of 117.98 GB (21.54%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     f19a8a4ea76e5e1f4db5ef29686c01e5.php (19.34 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

use Twig\Environment;
use 
Twig\Error\LoaderError;
use 
Twig\Error\RuntimeError;
use 
Twig\Extension\SandboxExtension;
use 
Twig\Markup;
use 
Twig\Sandbox\SecurityError;
use 
Twig\Sandbox\SecurityNotAllowedTagError;
use 
Twig\Sandbox\SecurityNotAllowedFilterError;
use 
Twig\Sandbox\SecurityNotAllowedFunctionError;
use 
Twig\Source;
use 
Twig\Template;

/* database/privileges/index.twig */
class __TwigTemplate_f8238e7a5f0591809d171e305281b5a5 extends Template
{
    private 
$source;
    private 
$macros = [];

    public function 
__construct(Environment $env)
    {
        
parent::__construct($env);

        
$this->source $this->getSourceContext();

        
$this->parent false;

        
$this->blocks = [
        ];
    }

    protected function 
doDisplay(array $context, array $blocks = [])
    {
        
$macros $this->macros;
        
// line 1
        
if (($context["is_superuser"] ?? null)) {
            
// line 2
            
echo "  <form id=\"usersForm\" action=\"";
            echo 
PhpMyAdmin\Url::getFromRoute("/server/privileges");
            echo 
"\">
    "
;
            
// line 3
            
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null));
            echo 
"

    <div class=\"w-100\">
      <fieldset class=\"pma-fieldset\">
        <legend>
          "
;
            
// line 8
            
echo PhpMyAdmin\Html\Generator::getIcon("b_usrcheck");
            echo 
"
          "
;
            
// line 9
            
echo twig_sprintf(_gettext("Users having access to \"%s\""), ((((("<a href=\"" . ($context["database_url"] ?? null)) . PhpMyAdmin\Url::getCommon(["db" => ($context["db"] ?? null)], "&")) . "\">") . twig_escape_filter($this->env, ($context["db"] ?? null), "html")) . "</a>"));
            echo 
"
        </legend>

        <div class=\"table-responsive jsresponsive\">
          <table class=\"table table-striped table-hover w-auto\">
            <thead>
              <tr>
                <th></th>
                <th scope=\"col\">"
;
echo 
_gettext("User name");
            
// line 17
            
echo "</th>
                <th scope=\"col\">"
;
echo 
_gettext("Host name");
            
// line 18
            
echo "</th>
                <th scope=\"col\">"
;
echo 
_gettext("Type");
            
// line 19
            
echo "</th>
                <th scope=\"col\">"
;
echo 
_gettext("Privileges");
            
// line 20
            
echo "</th>
                <th scope=\"col\">"
;
echo 
_gettext("Grant");
            
// line 21
            
echo "</th>
                <th scope=\"col\" colspan=\"2\">"
;
echo 
_gettext("Action");
            
// line 22
            
echo "</th>
              </tr>
            </thead>

            <tbody>
              "
;
            
// line 27
            
$context['_parent'] = $context;
            
$context['_seq'] = twig_ensure_traversable(($context["privileges"] ?? null));
            
$context['_iterated'] = false;
            
$context['loop'] = [
              
'parent' => $context['_parent'],
              
'index0' => 0,
              
'index'  => 1,
              
'first'  => true,
            ];
            if (
is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                
$length count($context['_seq']);
                
$context['loop']['revindex0'] = $length 1;
                
$context['loop']['revindex'] = $length;
                
$context['loop']['length'] = $length;
                
$context['loop']['last'] = === $length;
            }
            foreach (
$context['_seq'] as $context["_key"] => $context["privilege"]) {
                
// line 28
                
echo "                ";
                
$context["privileges_amount"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["privilege"], "privileges", [], "any"falsefalsefalse28));
                
// line 29
                
echo "                <tr>
                  <td"
;
                
// line 30
                
if ((($context["privileges_amount"] ?? null) > 1)) {
                    echo 
" class=\"align-middle\" rowspan=\"";
                    echo 
twig_escape_filter($this->env, ($context["privileges_amount"] ?? null), "html"nulltrue);
                    echo 
"\"";
                }
                echo 
">
                    <input type=\"checkbox\" class=\"checkall\" name=\"selected_usr[]\" id=\"checkbox_sel_users_"
;
                
// line 31
                
echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse31), "html"nulltrue);
                echo 
"\" value=\"";
                
// line 32
                
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["privilege"], "user", [], "any"falsefalsefalse32) . "&amp;#27;") . twig_get_attribute($this->env$this->source$context["privilege"], "host", [], "any"falsefalsefalse32)), "html"nulltrue);
                echo 
"\">
                  </td>
                  <td"
;
                
// line 34
                
if ((($context["privileges_amount"] ?? null) > 1)) {
                    echo 
" class=\"align-middle\" rowspan=\"";
                    echo 
twig_escape_filter($this->env, ($context["privileges_amount"] ?? null), "html"nulltrue);
                    echo 
"\"";
                }
                echo 
">
                    "
;
                
// line 35
                
if (twig_test_empty(twig_get_attribute($this->env$this->source$context["privilege"], "user", [], "any"falsefalsefalse35))) {
                    
// line 36
                    
echo "                      <span class=\"text-danger\">";
echo 
_gettext("Any");
                    echo 
"</span>
                    "
;
                } else {
                    
// line 38
                    
echo "                      ";
                    echo 
twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["privilege"], "user", [], "any"falsefalsefalse38), "html"nulltrue);
                    echo 
"
                    "
;
                }
                
// line 40
                
echo "                  </td>
                  <td"
;
                
// line 41
                
if ((($context["privileges_amount"] ?? null) > 1)) {
                    echo 
" class=\"align-middle\" rowspan=\"";
                    echo 
twig_escape_filter($this->env, ($context["privileges_amount"] ?? null), "html"nulltrue);
                    echo 
"\"";
                }
                echo 
">
                    "
;
                
// line 42
                
echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["privilege"], "host", [], "any"falsefalsefalse42), "html"nulltrue);
                echo 
"
                  </td>
                  "
;
                
// line 44
                
$context['_parent'] = $context;
                
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["privilege"], "privileges", [], "any"falsefalsefalse44));
                foreach (
$context['_seq'] as $context["_key"] => $context["priv"]) {
                    
// line 45
                    
echo "                    <td>
                      "
;
                    
// line 46
                    
if ((twig_get_attribute($this->env$this->source$context["priv"], "type", [], "any"falsefalsefalse46) == "g")) {
                        
// line 47
                        
echo "                        ";
echo 
_gettext("global");
                        
// line 48
                        
echo "                      ";
                    } elseif ((
twig_get_attribute($this->env$this->source$context["priv"], "type", [], "any"falsefalsefalse48) == "d")) {
                        
// line 49
                        
echo "                        ";
                        if ((
twig_get_attribute($this->env$this->source$context["priv"], "database", [], "any"falsefalsefalse49) == twig_replace_filter(($context["db"] ?? null), ["_" => "\\_""%" => "\\%"]))) {
                            
// line 50
                            
echo "                          ";
echo 
_gettext("database-specific");
                            
// line 51
                            
echo "                        ";
                        } else {
                            
// line 52
                            
echo "                          ";
echo 
_gettext("wildcard");
                            echo 
": <code>";
                            echo 
twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["priv"], "database", [], "any"falsefalsefalse52), "html"nulltrue);
                            echo 
"</code>
                        "
;
                        }
                        
// line 54
                        
echo "                      ";
                    } elseif ((
twig_get_attribute($this->env$this->source$context["priv"], "type", [], "any"falsefalsefalse54) == "r")) {
                        
// line 55
                        
echo "                        ";
echo 
_gettext("routine");
                        
// line 56
                        
echo "                      ";
                    }
                    
// line 57
                    
echo "                    </td>
                    <td>
                      <code>
                        "
;
                    
// line 60
                    
if ((twig_get_attribute($this->env$this->source$context["priv"], "type", [], "any"falsefalsefalse60) == "r")) {
                        
// line 61
                        
echo "                          ";
                        echo 
twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["priv"], "routine", [], "any"falsefalsefalse61), "html"nulltrue);
                        echo 
"
                          ("
;
                        
// line 62
                        
echo twig_escape_filter($this->envtwig_upper_filter($this->envtwig_join_filter(twig_get_attribute($this->env$this->source$context["priv"], "privileges", [], "any"falsefalsefalse62), ", ")), "html"nulltrue);
                        echo 
")
                        "
;
                    } else {
                        
// line 64
                        
echo "                          ";
                        echo 
twig_join_filter(twig_get_attribute($this->env$this->source$context["priv"], "privileges", [], "any"falsefalsefalse64), ", ");
                        echo 
"
                        "
;
                    }
                    
// line 66
                    
echo "                      </code>
                    </td>
                    <td>
                      "
;
                    
// line 69
                    
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source$context["priv"], "has_grant", [], "any"falsefalsefalse69)) ? (_gettext("Yes")) : (_gettext("No"))), "html"nulltrue);
                    echo 
"
                    </td>
                    <td>
                      "
;
                    
// line 72
                    
if (($context["is_grantuser"] ?? null)) {
                        
// line 73
                        
echo "                        <a class=\"edit_user_anchor\" href=\"";
                        echo 
PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" => twig_get_attribute($this->env$this->source,                         // line 74
$context["privilege"], "user", [], "any"falsefalsefalse74), "hostname" => twig_get_attribute($this->env$this->source,                         // line 75
$context["privilege"], "host", [], "any"falsefalsefalse75), "dbname" => (((twig_get_attribute($this->env$this->source,                         // line 76
$context["priv"], "database", [], "any"falsefalsefalse76) != "*")) ? (twig_get_attribute($this->env$this->source$context["priv"], "database", [], "any"falsefalsefalse76)) : ("")), "tablename" => """routinename" => (((twig_get_attribute($this->env$this->source,                         // line 78
$context["priv"], "routine", [], "any"truetruefalse78) &&  !(null === twig_get_attribute($this->env$this->source$context["priv"], "routine", [], "any"falsefalsefalse78)))) ? (twig_get_attribute($this->env$this->source$context["priv"], "routine", [], "any"falsefalsefalse78)) : (""))]);
                        
// line 79
                        
echo "\">
                          "
;
                        
// line 80
                        
echo PhpMyAdmin\Html\Generator::getIcon("b_usredit"_gettext("Edit privileges"));
                        echo 
"
                        </a>
                      "
;
                    }
                    
// line 83
                    
echo "                    </td>
                    <td class=\"text-center\">
                      <a class=\"export_user_anchor ajax\" href=\""
;
                    
// line 85
                    
echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["username" => twig_get_attribute($this->env$this->source,                     // line 86
$context["privilege"], "user", [], "any"falsefalsefalse86), "hostname" => twig_get_attribute($this->env$this->source,                     // line 87
$context["privilege"], "host", [], "any"falsefalsefalse87), "export" => true"initial" => ""]);
                    
// line 90
                    
echo "\">
                        "
;
                    
// line 91
                    
echo PhpMyAdmin\Html\Generator::getIcon("b_tblexport"_gettext("Export"));
                    echo 
"
                      </a>
                    </td>
                  </tr>
                    "
;
                    
// line 95
                    
if ((($context["privileges_amount"] ?? null) > 1)) {
                        
// line 96
                        
echo "                      <tr class=\"noclick\">
                    "
;
                    }
                    
// line 98
                    
echo "                  ";
                }
                
$_parent $context['_parent'];
                unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['priv'], $context['_parent'], $context['loop']);
                
$context array_intersect_key($context$_parent) + $_parent;
                
// line 99
                
echo "              ";
                
$context['_iterated'] = true;
                ++
$context['loop']['index0'];
                ++
$context['loop']['index'];
                
$context['loop']['first'] = false;
                if (isset(
$context['loop']['length'])) {
                    --
$context['loop']['revindex0'];
                    --
$context['loop']['revindex'];
                    
$context['loop']['last'] = === $context['loop']['revindex0'];
                }
            }
            if (!
$context['_iterated']) {
                
// line 100
                
echo "                <tr>
                  <td colspan=\"7\">
                    "
;
echo 
_gettext("No user found.");
                
// line 103
                
echo "                  </td>
                </tr>
              "
;
            }
            
$_parent $context['_parent'];
            unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['privilege'], $context['_parent'], $context['loop']);
            
$context array_intersect_key($context$_parent) + $_parent;
            
// line 106
            
echo "            </tbody>
          </table>
        </div>

        <div class=\"float-start\">
          <img class=\"selectallarrow\" src=\""
;
            
// line 111
            
echo twig_escape_filter($this->env$this->extensions['PhpMyAdmin\Twig\AssetExtension']->getImagePath((("arrow_" . ($context["text_dir"] ?? null)) . ".png")), "html"nulltrue);
            echo 
"\" alt=\"";
echo 
_gettext("With selected:");
            
// line 112
            
echo "\" width=\"38\" height=\"22\">
          <input type=\"checkbox\" id=\"usersForm_checkall\" class=\"checkall_box\" title=\""
;
echo 
_gettext("Check all");
            
// line 113
            
echo "\">
          <label for=\"usersForm_checkall\">"
;
echo 
_gettext("Check all");
            
// line 114
            
echo "</label>
          <em class=\"with-selected\">"
;
echo 
_gettext("With selected:");
            
// line 115
            
echo "</em>
          <button class=\"btn btn-link mult_submit\" type=\"submit\" name=\"submit_mult\" value=\"export\" title=\""
;
echo 
_gettext("Export");
            
// line 116
            
echo "\">
            "
;
            
// line 117
            
echo PhpMyAdmin\Html\Generator::getIcon("b_tblexport"_gettext("Export"));
            echo 
"
          </button>
        </div>
      </fieldset>
    </div>
  </form>
"
;
        } else {
            
// line 124
            
echo "  ";
            echo 
$this->env->getFilter('error')->getCallable()(_gettext("Not enough privilege to view users."));
            echo 
"
"
;
        }
        
// line 126
        
echo "
"
;
        
// line 127
        
if (($context["is_createuser"] ?? null)) {
            
// line 128
            
echo "  <div class=\"row\">
    <div class=\"col-12\">
      <fieldset class=\"pma-fieldset\" id=\"fieldset_add_user\">
        <legend>"
;
echo 
_pgettext("Create new user""New");
            
// line 131
            
echo "</legend>
        <a id=\"add_user_anchor\" href=\""
;
            
// line 132
            
echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["adduser" => true"dbname" =>             // line 134
($context["db"] ?? null)]);
            
// line 135
            
echo "\" rel=\"";
            echo 
PhpMyAdmin\Url::getCommon(["checkprivsdb" => ($context["db"] ?? null)]);
            echo 
"\">
          "
;
            
// line 136
            
echo PhpMyAdmin\Html\Generator::getIcon("b_usradd"_gettext("Add user account"));
            echo 
"
        </a>
      </fieldset>
    </div>
  </div>
"
;
        }
    }

    public function 
getTemplateName()
    {
        return 
"database/privileges/index.twig";
    }

    public function 
isTraitable()
    {
        return 
false;
    }

    public function 
getDebugInfo()
    {
        return array (  
390 => 136,  385 => 135,  383 => 134,  382 => 132,  379 => 131,  373 => 128,  371 => 127,  368 => 126,  362 => 124,  352 => 117,  349 => 116,  345 => 115,  341 => 114,  337 => 113,  333 => 112,  329 => 111,  322 => 106,  314 => 103,  309 => 100,  296 => 99,  290 => 98,  286 => 96,  284 => 95,  277 => 91,  274 => 90,  272 => 87,  271 => 86,  270 => 85,  266 => 83,  260 => 80,  257 => 79,  255 => 78,  254 => 76,  253 => 75,  252 => 74,  250 => 73,  248 => 72,  242 => 69,  237 => 66,  231 => 64,  226 => 62,  221 => 61,  219 => 60,  214 => 57,  211 => 56,  208 => 55,  205 => 54,  197 => 52,  194 => 51,  191 => 50,  188 => 49,  185 => 48,  182 => 47,  180 => 46,  177 => 45,  173 => 44,  168 => 42,  160 => 41,  157 => 40,  151 => 38,  145 => 36,  143 => 35,  135 => 34,  130 => 32,  127 => 31,  119 => 30,  116 => 29,  113 => 28,  95 => 27,  88 => 22,  84 => 21,  80 => 20,  76 => 19,  72 => 18,  68 => 17,  56 => 9,  52 => 8,  44 => 3,  39 => 2,  37 => 1,);
    }

    public function 
getSourceContext()
    {
        return new 
Source("""database/privileges/index.twig""/home/picotech/public_html/phpmyadmin/templates/database/privileges/index.twig");
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0083 ]--