Example #1
0
 public function getIEDefaultPackages()
 {
     if (AuxLib::getIEVer() >= 9) {
         return array();
     }
     return array();
     //        return array(
     //            'aight' => array(
     //                'baseUrl' => Yii::app()->request->baseUrl,
     //                'js' => array(
     //                    'js/lib/aight/aight.js',
     //                ),
     //                'depends' => array('jquery'),
     //            ),
     //        );
 }
?>
                <div class='row'>
                <?php 
if (AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'username', array('style' => $profile ? 'display: none;' : ''));
}
if ($profile) {
    echo $form->hiddenField($model, 'username');
} else {
    echo $form->textField($model, 'username', array('placeholder' => Yii::t('app', 'Username'), 'value' => $_GET['username']));
}
?>
                </div>
                <div class='row'>
                <?php 
if (AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'password', array('style' => 'margin-top:5px;'));
}
echo $form->passwordField($model, 'password', array('placeholder' => Yii::t('app', 'Password'), 'value' => $_GET['username']));
echo $form->error($model, 'password');
?>
                </div>
                <?php 
if ($model->useCaptcha && CCaptcha::checkRequirements()) {
    ?>
                <div class="row captcha-row">
                    <?php 
    echo '<div id="captcha-container">';
    $this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false, 'imageOptions' => array('id' => 'captcha-image', 'style' => 'display:block;cursor:pointer;', 'title' => Yii::t('app', 'Click to get a new image'))));
    echo '</div>';
    echo '<p class="hint">' . Yii::t('app', 'Please enter the letters in the image above.') . '</p>';
Example #3
0
    ?>
                <div id='full-name'><?php 
    echo $fullName;
    ?>
</div>
                <?php 
}
if (AuxLib::isIE() && AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'username', array('style' => $hasProfile ? 'display: none;' : ''));
}
if ($hasProfile) {
    echo $form->hiddenField($model, 'username');
} else {
    echo $form->textField($model, 'username', array('placeholder' => Yii::t('app', 'Username')));
}
if (AuxLib::isIE() && AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'password', array('style' => 'margin-top:5px;'));
}
echo $form->passwordField($model, 'password', array('placeholder' => Yii::t('app', 'Password')));
echo $form->error($model, 'password');
if ($model->useCaptcha && CCaptcha::checkRequirements()) {
    ?>
                <div class="row captcha-row">
                    <?php 
    echo '<div id="captcha-container">';
    $this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false, 'imageOptions' => array('id' => 'captcha-image', 'style' => 'display:block;cursor:pointer;', 'title' => Yii::t('app', 'Click to get a new image'))));
    echo '</div>';
    echo '<p class="hint">' . Yii::t('app', 'Please enter the letters in the image above.') . '</p>';
    echo $form->textField($model, 'verifyCode');
    ?>
                </div><?php 
Example #4
0
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
Yii::app()->params->profile = Profile::model()->findByPk(1);
// use the admin's profile since the user hasn't logged in
$jsVersion = '?' . Yii::app()->params->buildDate;
// blueprint CSS framework
$themeURL = Yii::app()->theme->getBaseUrl();
Yii::app()->clientScript->registerCssFile($themeURL . '/css/screen.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/print.css' . $jsVersion, 'print');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/main.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/form.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/ui-elements.css' . $jsVersion, 'screen, projection');
if (AuxLib::getIEVer() < 9) {
    Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/lib/aight/aight.js');
}
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/lib/jquery-migrate-1.2.1.js');
$backgroundImg = '';
$defaultOpacity = 1;
$themeCss = '';
$checkResult = false;
$checkFiles = array('themes/x2engine/images/x2footer.png' => '1393e4af54ababdcf76fac7f075b555b', 'themes/x2engine/images/x2-mini-icon.png' => '153d66b514bf9fb0d82a7521a3c64f36');
foreach ($checkFiles as $key => $value) {
    if (!file_exists($key) || hash_file('md5', $key) != $value) {
        $checkResult = true;
    }
}
$theme2Css = '';
if ($checkResult) {
Example #5
0
 public static function IEBanner($ver = 9, $echo = true)
 {
     if (AuxLib::getIEVer() >= $ver) {
         return false;
     }
     $htmlOptions = array('class' => 'ie-banner');
     $message = Yii::t('app', 'This feature does not support your version of Internet Explorer');
     if ($echo) {
         echo self::tag('h2', $htmlOptions, Yii::t('app', $message));
         return true;
     } else {
         return self::tag('h2', $htmlOptions, Yii::t('app', $message));
     }
 }