Ejemplo n.º 1
0
function pass_editname($eventData)
{
    global $wuiPage, $wuiMainStatus, $innomaticLocale;
    $log = \Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getLogger();
    $innomaticcfg = new \Innomatic\Config\ConfigFile(\Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer')->getConfigurationFile());
    $innomaticcfg->setValue('PlatformName', $eventData['name']);
    $innomaticcfg->setValue('PlatformGroup', $eventData['domain']);
    $log->logEvent('Innomatic', 'Changed Innomatic network settings', \Innomatic\Logging\Logger::NOTICE);
    $wuiMainStatus->mArgs['status'] = $innomaticLocale->getStr('datachanged');
}
Ejemplo n.º 2
0
 public static function setLanguage($eventData, $log = '')
 {
     $container = \Innomatic\Core\InnomaticContainer::instance('\\Innomatic\\Core\\InnomaticContainer');
     @touch($container->getHome() . 'core/temp/setup_languageset', time());
     if (file_exists($container->getHome() . 'core/temp/setup_settinglanguage')) {
         @unlink($container->getHome() . 'core/temp/setup_settinglanguage');
     }
     $innomaticcfg = new \Innomatic\Config\ConfigFile($container->getConfigurationFile());
     $innomaticcfg->setValue('RootLanguage', $eventData['language']);
     return true;
 }
 public function setReportsEmail($email)
 {
     $cfg = new \Innomatic\Config\ConfigFile($this->configurationFile);
     return $cfg->setValue('MaintenanceReportsEmail', $email);
 }