Example #1
0
 /**
  * checks from requirements if its compatible or not. Also fills the msg variable
  * @return boolean 
  */
 public static function is_compatible()
 {
     self::$msg = '';
     $compatible = TRUE;
     foreach (install::requirements() as $values) {
         if ($values['mandatory'] == TRUE and $values['result'] == FALSE) {
             $compatible = FALSE;
         }
         if ($values['result'] == FALSE) {
             self::$msg .= $values['message'] . '<br>';
         }
     }
     return $compatible;
 }
 /**
  * checks from requirements if its compatible or not. Also fills the msg variable
  * @return boolean 
  */
 public static function is_compatible()
 {
     self::$msg = array();
     $compatible = TRUE;
     foreach (install::requirements() as $name => $values) {
         if ($values['mandatory'] == TRUE and $values['result'] == FALSE) {
             $compatible = FALSE;
         }
         if ($values['result'] == FALSE) {
             self::$msg[] = $values['message'];
         }
     }
     return $compatible;
 }
Example #3
0
foreach ($languages as $lang) {
    if (strpos($lang, '.') == false && $lang != '.' && $lang != '..') {
        $sel = strtolower($lang) == strtolower(install::$locale) ? ' selected="selected"' : '';
        echo "<option{$sel} value=\"{$lang}\">{$lang}</option>";
    }
}
?>
                                        </select>
                                    </div>
                                    <h3><?php 
echo __('System Check');
?>
</h3>
                                    <ul class="list-unstyled list-requirements">
                                        <?php 
foreach (install::requirements() as $name => $values) {
    $color = $values['result'] ? 'success' : 'danger';
    ?>
                                            <li data-color="<?php 
    echo $color;
    ?>
" data-result="<?php 
    echo $values['result'] ? "check" : "times";
    ?>
">
                                                <span class="check">
                                                    <i class="fa fa-fw fa-spinner fa-pulse"></i>
                                                </span>
                                                <?php 
    echo $name;
    ?>