HEX
Server: Apache
System: Linux server11 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: web78 (5081)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client1/web78/web/wp-content/plugins/loco-translate/tpl/admin/init/upload.php
<?php
/**
 * Generic upload template for installing a file into a translation set.
 */
$this->extend('../layout');
/* @var Loco_Locale $locale */
?> 

<form action="" method="post" enctype="multipart/form-data" id="loco-main"><?php
    /* @var Loco_mvc_HiddenFields $hidden */
    $hidden->_e();?> 

    <div class="panel">
        <h2>
            <?php self::e( __('Choose a location','loco-translate') );?> 
        </h2>
        <table class="form-table">
            <tbody class="loco-paths"><?php
                /* @var Loco_mvc_ViewParams[] $locations */
                foreach( $locations as $typeId => $location ):?> 
                <tr class="compact">
                    <td>
                        <p class="description"><?php $location->e('label')?>:</p>
                    </td>
                    <td><?php
                    /* @var Loco_mvc_ViewParams $choice */
                    /* @var Loco_mvc_FileParams $parent */
                    foreach( $location['paths'] as $choice ):
                        $parent = $choice['parent'];?> 
                        <p>
                            <label>
                                <input type="radio" name="dir" value="<?php $parent->e('relpath')?>" />
                                <code class="path"><?php $parent->e('relpath')?>/<?php echo $choice->holder?></code>
                            </label>
                        </p><?php
                    endforeach?> 
                    </td>
                </tr><?php
                endforeach?> 
            </tbody>
        </table>
    </div>
    <div class="panel panel-info">
        <h2>
            <?php  esc_html_e('Upload PO file','loco-translate')?> 
        </h2>
        <p><?php 
            // translators: This is HTML formatted. (1) placeholder for language code, (2) Example language code
            echo wp_kses (
                sprintf( __('Your file must be named as shown above where %1$s is the language code, e.g. %2$s','loco-translate'), '<code>{locale}</code>', '<code>'.$locale.'</code>' ),
                ['code'=>[]]
            )?> 
        </p>
        <p>
            <input type="file" name="f" />
        </p>
        <p class="submit">
            <button type="submit" class="button button-large button-primary has-icon icon-upload" disabled><?php esc_html_e('Upload','loco-translate')?></button>
        </p>
    </div>
</form>