HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/wwwshoopermcom/application/views/settings/cover_image.php
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div id="wrapper">
    <div class="container">
        <div class="row">
            <div class="col-12">
                <nav class="nav-breadcrumb" aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo lang_base_url(); ?>"><?php echo trans("home"); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo $title; ?></li>
                    </ol>
                </nav>

                <h1 class="page-title"><?php echo trans("settings"); ?></h1>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-12 col-md-3">
                <div class="row-custom">
                    <!-- load profile nav -->
                    <?php $this->load->view("settings/_setting_tabs"); ?>
                </div>
            </div>

            <div class="col-sm-12 col-md-9">
                <div class="row-custom">
                    <div class="profile-tab-content">
                        <!-- include message block -->
                        <?php $this->load->view('partials/_messages'); ?>

                        <?php echo form_open_multipart("cover-image-post", ['id' => 'form_validate']); ?>
                        <div class="form-group">
                            <label class="control-label"><?php echo trans("cover_image"); ?>&nbsp;(1920x400)</label>
                            <?php if (!empty($this->auth_user->cover_image)): ?>
                            <img src="<?= base_url() . $this->auth_user->cover_image; ?>" class="img-fluid m-b-15">
                            <?php else: ?>
                                <div class="edit-profile-cover-image">
                                    <i class="icon-image"></i>
                                </div>
                            <?php endif; ?>
                            <p class="m-0">
                                <a class='btn btn-md btn-info btn-file-upload btn-file-upload-cover'>
                                    <?php echo trans('select_image'); ?>
                                    <input type="file" name="file" size="40" class="input-show-selected" data-id="upload-file-info" accept=".png, .jpg, .jpeg, .gif">
                                </a>
                                <?php if (!empty($this->auth_user->cover_image)): ?>
                                    <button type="submit" class="btn btn-md btn-secondary btn-file-upload btn-file-upload-cover" name="submit" value="delete_cover"><?= trans("delete"); ?></button>
                                <?php endif; ?>
                            </p>
                            <span class='badge badge-light' id="upload-file-info"></span>
                        </div>

                        <div class="form-group m-t-10">
                            <div class="row">
                                <div class="col-12">
                                    <label class="control-label"><?php echo trans('type'); ?></label>
                                </div>
                                <div class="col-md-3 col-sm-4 col-12 col-option">
                                    <div class="custom-control custom-radio">
                                        <input type="radio" name="cover_image_type" value="full_width" id="cover_image_type_1" class="custom-control-input" <?php echo ($this->auth_user->cover_image_type == 'full_width') ? 'checked' : ''; ?>>
                                        <label for="cover_image_type_1" class="custom-control-label"><?php echo trans("full_width"); ?></label>
                                    </div>
                                </div>
                                <div class="col-md-3 col-sm-4 col-12 col-option">
                                    <div class="custom-control custom-radio">
                                        <input type="radio" name="cover_image_type" value="boxed" id="cover_image_type_2" class="custom-control-input" <?php echo ($this->auth_user->cover_image_type == 'boxed') ? 'checked' : ''; ?>>
                                        <label for="cover_image_type_2" class="custom-control-label"><?php echo trans("boxed"); ?></label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <button type="submit" name="submit" value="update" class="btn btn-md btn-custom"><?php echo trans("save_changes") ?></button>
                        <?php echo form_close(); ?>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Wrapper End-->