Files
grzanieplus.pl/plugins/stUserTrackerLevelPlugin/modules/stUserTrackerLevelBackend/actions/actions.class.php
2025-03-12 17:06:23 +01:00

42 lines
937 B
PHP

<?php
class stUserTrackerLevelBackendActions extends autoStUserTrackerLevelBackendActions
{
public function executeList()
{
parent::executeList();
if(SF_ENVIRONMENT != 'dev')
{
return $this->redirect('stUserTrackerLevelBackend/config');
}
}
protected function saveConfig()
{
parent::saveConfig();
stFunctionCache::clearFrontendModule('stUserTrackerLevelFrontend');
stFastCacheManager::clearCache();
DashboardPeer::doRefreshAll();
}
public function executeConfig()
{
$config = stConfig::getInstance('stUserTrackerLevelBackend');
if($config->get('hash_control')==""){
$config->set('hash_control', md5(microtime()));
$config->save();
}
parent::executeConfig();
}
}