HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/biblioteka/wp-content/plugins/gallery-by-supsystic/src/GridGallery/Promo/Controller.php
<?php 
/**
* 
*/
class GridGallery_Promo_Controller extends GridGallery_Core_BaseController
{
    public function welcomeAction(RscSgg_Http_Request $request)
    {
		$model = $this->getModel('promo');
		$model->bigStatAdd('Welcome Show');
		update_option('sgg_plug_welcome_show', time());	// Remember this
        return $this->response(
            '@promo/promo.twig',
            array(
                'plugin_name' => $this->getConfig()->get('plugin_title_name'),
                'plugin_version' => $this->getConfig()->get('plugin_version'),
                'start_url' => '?page=supsystic-gallery&module=overview'
            )
        );
    }

    public function showTutorialAction()
    {
        update_user_meta(get_current_user_id(), 'sgg-tutorial_was_showed', false);
        return $this->redirect($this->generateUrl('overview'));
    }
	public function saveDeactivateDataAction(RscSgg_Http_Request $request) {
		$lang = $this->getEnvironment()->getLang();
		$model = $this->getModel('promo');
		$model->saveDeactivateData($request->post);
		return $this->response(
            RscSgg_Http_Response::AJAX,
            $this->getSuccessResponseData(
                $lang->translate('Hope you will come back!')
            )
        );
	}
	/**
     * {@inheritdoc}
     */
    protected function getModelAliases() {
        return array(
            'promo' => 'GridGallery_Promo_Model_Promo',
        );
    }
}