Пример #1
0
    echo $L['menu_move_del'];
    ?>
</a>
            </td>
    	</tr>
        <?php 
}
?>
		</tbody>
    </table>
    <a href="javascript:void(0)" class="add system_menu_add"><i class="icon-plus pr-10"></i><?php 
echo $L['button_add'];
?>
</a>
    <a href="javascript:void(0);" class="system_menu_save button"><?php 
echo $L['button_save'];
?>
</a>
</div>

<?php 
$error = php_env_check();
if ($error != '' && $GLOBALS['is_root'] == 1) {
    $info = '<a href="javascript:;" class="button warning path_ext_tips"><i class="icon-warning-sign"></i>phpinfo</a>';
    echo '<div class="alert alert-warning" role="alert"><h3>' . $L['php_env_error'] . $info . '</h3>' . $error . '</div>';
}
?>



Пример #2
0
 /**
  * 登陆view
  */
 public function login($msg = '')
 {
     if (!file_exists(USER_SYSTEM . 'install.lock')) {
         $error = php_env_check();
         if ($error == '') {
             $this->assign('msg', $msg);
             $this->display('login.html');
             exit;
         }
         // else{
         //     echo '<div class="error"><h4>error:</h4>'.$error.'</div></div><div class="guest"><a href="./index.php?user/loginFirst">'.$L['php_env_error_ignore'].'</a></div>';
         // }
         // $this->display('install.html');exit;
     }
     $this->assign('msg', $msg);
     $this->display('login.html');
     exit;
 }