__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package Gantry5
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2022 RocketTheme, LLC
* @license Dual License: MIT or GNU/GPLv2 and later
*
* http://opensource.org/licenses/MIT
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Gantry Framework code that extends GPL code is considered GNU/GPLv2 and later
*/
namespace Gantry\Admin\Controller\Json;
use Gantry\Admin\Events\Event;
use Gantry\Component\Admin\JsonController;
use Gantry\Component\Response\JsonResponse;
/**
* Class Devprod
* @package Gantry\Admin\Controller\Json
*/
class Devprod extends JsonController
{
/**
* @return JsonResponse
*/
public function store()
{
$production = (int)(bool)$this->request->post['mode'];
// Fire save event.
$event = new Event();
$event->gantry = $this->container;
$event->controller = $this;
$event->data = ['production' => $production];
$this->container->fireEvent('admin.global.save', $event);
$response = [
'mode' => $production,
'title' => $production ? 'Production' : 'Development',
'html' => $production ? 'Production mode enabled' : 'Development mode enabled',
];
return new JsonResponse($response);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Icons | Folder | 0775 |
|
|
| Atoms.php | File | 5.66 KB | 0664 |
|
| Changelog.php | File | 3.23 KB | 0664 |
|
| Confirmdeletion.php | File | 1.04 KB | 0664 |
|
| Devprod.php | File | 1.29 KB | 0664 |
|
| Filepicker.php | File | 16.61 KB | 0664 |
|
| Fontpicker.php | File | 3.72 KB | 0664 |
|
| Icons.php | File | 1.84 KB | 0664 |
|
| Layouts.php | File | 8.24 KB | 0664 |
|
| Particle.php | File | 6.44 KB | 0664 |
|
| Unsaved.php | File | 939 B | 0664 |
|