Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->trigger(self::EVENT_ON_INIT);
     if ($this->isDatabaseInstalled()) {
         $baseUrl = Setting::get('baseUrl');
         Yii::setAlias("@web", $baseUrl);
         $this->urlManager->scriptUrl = $baseUrl;
     }
 }
Esempio n. 2
0
?>
</div>
    <div class="panel-body">

        <?php 
$currentUser = '';
if (function_exists('get_current_user')) {
    $currentUser = get_current_user();
}
?>

        <p>
            <strong>Status:</strong><br/>
            <?php 
$lastRunHourly = Setting::get('cronLastHourlyRun');
$lastRunDaily = Setting::get('cronLastDailyRun');
if ($lastRunHourly == "") {
    $lastRunHourly = "<span style='color:red'>" . Yii::t('AdminModule.views_setting_cronjob', 'Never') . "</span>";
} else {
    $lastRunHourly = \humhub\widgets\TimeAgo::widget(['timestamp' => $lastRunHourly]);
}
if ($lastRunDaily == "") {
    $lastRunDaily = "<span style='color:red'>" . Yii::t('AdminModule.views_setting_cronjob', 'Never') . "</span>";
} else {
    $lastRunDaily = \humhub\widgets\TimeAgo::widget(['timestamp' => $lastRunDaily]);
}
?>

            <?php 
echo Yii::t('AdminModule.views_setting_cronjob', 'Last run (hourly):');
?>
Esempio n. 3
0
                            <?php 
        echo Html::a(Yii::t('AdminModule.views_module_listOnline', 'More info'), $module['marketplaceUrl'], array('target' => '_blank'));
        ?>
                            &middot; <?php 
        echo Yii::t('AdminModule.views_module_listOnline', 'Latest version:');
        ?>
 <?php 
        echo $module['latestVersion'];
        ?>
                            &middot; <?php 
        echo Yii::t('AdminModule.views_module_listOnline', 'Licence Key:');
        ?>
 <?php 
        echo $module['licence_key'];
        ?>
                        </div>
                    </div>
                </div>
            <?php 
    }
    ?>
        <?php 
}
?>
    </div>
</div>

<small class="pull-right">Installation Id: <?php 
echo \humhub\models\Setting::get('installationId', 'admin');
?>
</small>