?> <?php echo $form->textField($model, 'userFilter', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('userFilter', 'authentication_ldap'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'Limit access to users meeting this criteria. Example: "(objectClass=posixAccount)" or "(&(objectClass=person)(memberOf=CN=Workers,CN=Users,DC=myDomain,DC=com))"'); ?> </p> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'usernameAttribute'); ?> <?php echo $form->textField($model, 'usernameAttribute', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('usernameAttribute', 'authentication_ldap'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"'); ?> </p> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php
<div class="form-group"> <?php echo $form->labelEx($model, 'port'); ?> <?php echo $form->textField($model, 'port', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('port', 'mailing'))); ?> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'encryption'); ?> <?php echo $form->dropDownList($model, 'encryption', $encryptionTypes, array('class' => 'form-control', 'readonly' => HSetting::IsFixed('encryption', 'mailing'))); ?> </div> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_mailing_server', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php $this->widget('application.widgets.DataSavedWidget'); ?> <?php $this->endWidget();
<?php echo $form->checkBox($model, 'internalRequireApprovalAfterRegistration'); ?> <?php echo $model->getAttributeLabel('internalRequireApprovalAfterRegistration'); ?> </label> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'defaultUserGroup'); ?> <?php echo $form->dropDownList($model, 'defaultUserGroup', $groups, array('class' => 'form-control', 'readonly' => HSetting::IsFixed('defaultUserGroup', 'authentication_internal'))); ?> </div> <hr/> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php $this->widget('application.widgets.DataSavedWidget'); ?> <?php
echo $form->labelEx($model, 'usernameAttribute'); ?> <?php echo $form->textField($model, 'usernameAttribute', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('usernameAttribute', 'authentication_ldap'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"'); ?> </p> </div> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($model, 'refreshUsers', array('readonly' => HSetting::IsFixed('refreshUsers', 'authentication_ldap'))); ?> <?php echo $model->getAttributeLabel('refreshUsers'); ?> </label> </div> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving -->
<div class="form-group"> <?php echo $form->labelEx($model, 'type'); ?> <?php echo $form->dropDownList($model, 'type', $cacheTypes, array('class' => 'form-control', 'readonly' => HSetting::IsFixed('type', 'cache'))); ?> <br> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'expireTime'); ?> <?php echo $form->textField($model, 'expireTime', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('expireTime', 'cache'))); ?> <br> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_caching', 'Save & Flush Caches'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php $this->widget('application.widgets.DataSavedWidget'); ?> <?php
<div class="form-group"> <?php echo $form->labelEx($model, 'encryption'); ?> <?php echo $form->dropDownList($model, 'encryption', $encryptionTypes, array('class' => 'form-control', 'readonly' => HSetting::IsFixed('encryption', 'mailing'))); ?> </div> <div id="encryptionOptions"> <div class="form-group"> <strong>Encryption Options</strong> <div class="checkbox"> <label> <?php echo $form->checkbox($model, 'allowSelfSignedCerts', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('allowSelfSignedCerts', 'mailing'))); ?> <?php echo $model->getAttributeLabel('allowSelfSignedCerts'); ?> </label> </div> </div> </div> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_mailing_server', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving -->
echo $form->labelEx($model, 'maxPreviewImageHeight'); ?> <?php echo $form->textField($model, 'maxPreviewImageHeight', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('maxPreviewImageHeight', 'file'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_file', 'If not set, height will default to 200px.'); ?> </p> </div> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($model, 'hideImageFileInfo', array('disabled' => HSetting::IsFixed('hideImageFileInfo', 'file'))); ?> <?php echo $model->getAttributeLabel('hideImageFileInfo'); ?> </label> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'allowedExtensions'); ?> <?php echo $form->textField($model, 'allowedExtensions', array('class' => 'form-control')); ?>
?> <?php echo $form->textField($model, 'baseUrl', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('baseUrl'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_index', 'E.g. http://example.com/humhub'); ?> </p> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'defaultLanguage'); ?> <?php echo $form->dropDownList($model, 'defaultLanguage', Yii::app()->params['availableLanguages'], array('class' => 'form-control', 'readonly' => HSetting::IsFixed('defaultLanguage'))); ?> </div> <?php echo $form->labelEx($model, 'defaultSpaceGuid'); ?> <?php echo $form->textField($model, 'defaultSpaceGuid', array('class' => 'form-control', 'id' => 'space_select')); ?> <?php $this->widget('application.modules_core.space.widgets.SpacePickerWidget', array('inputId' => 'space_select', 'model' => $model, 'attribute' => 'defaultSpaceGuid')); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_index', 'New users will automatically added to these space(s).');
</div> <div class="panel-body"> <?php $form = $this->beginWidget('CActiveForm', array('id' => 'proxy-settings-form', 'enableAjaxValidation' => false)); ?> <?php echo $form->errorSummary($model); ?> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($model, 'enabled', array('readonly' => HSetting::IsFixed('enabled', 'proxy'))); ?> <?php echo $model->getAttributeLabel('enabled'); ?> </label> </div> </div> <hr> <div class="form-group"> <?php echo $form->labelEx($model, 'server'); ?> <?php echo $form->textField($model, 'server', array('class' => 'form-control'));
?> <?php echo $form->textField($model, 'baseUrl', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('baseUrl'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_index', 'E.g. http://example.com/humhub'); ?> </p> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'defaultLanguage'); ?> <?php echo $form->dropDownList($model, 'defaultLanguage', Yii::app()->getLanguages(), array('class' => 'form-control', 'readonly' => HSetting::IsFixed('defaultLanguage'))); ?> </div> <?php echo $form->labelEx($model, 'defaultSpaceGuid'); ?> <?php echo $form->textField($model, 'defaultSpaceGuid', array('class' => 'form-control', 'id' => 'space_select')); ?> <?php $this->widget('application.modules_core.space.widgets.SpacePickerWidget', array('inputId' => 'space_select', 'model' => $model, 'attribute' => 'defaultSpaceGuid')); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_index', 'New users will automatically added to these space(s).');
echo $form->labelEx($model, 'maxFileSize'); ?> <?php echo $form->textField($model, 'maxFileSize', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('maxFileSize', 'file'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_file', 'PHP reported a maximum of {maxUploadSize} MB', array('{maxUploadSize}' => $maxUploadSize)); ?> </p> </div> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($model, 'useXSendfile', array('disabled' => HSetting::IsFixed('useXSendfile', 'file'))); ?> <?php echo $model->getAttributeLabel('useXSendfile'); ?> </label> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'forbiddenExtensions'); ?> <?php echo $form->textField($model, 'forbiddenExtensions', array('class' => 'form-control', 'hint' => Yii::t('AdminModule.views_setting_file', '(comma separated)'))); ?>
<div class="form-group"> <?php echo $form->labelEx($model, 'defaultUserGroup'); ?> <?php echo $form->dropDownList($model, 'defaultUserGroup', $groups, array('class' => 'form-control', 'readonly' => HSetting::IsFixed('defaultUserGroup', 'authentication_internal'))); ?> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'defaultUserIdleTimeoutSec'); ?> <?php echo $form->textField($model, 'defaultUserIdleTimeoutSec', array('class' => 'form-control', 'readonly' => HSetting::IsFixed('defaultUserIdleTimeoutSec', 'authentication_internal'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication', 'Min value is 20 seconds. If not set, session will timeout after 1400 seconds (24 minutes) regardless of activity (default session timeout)'); ?> </p> </div> <hr/> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php