42 lines
937 B
PHP
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();
|
|
}
|
|
|
|
} |