From Krayon, 8 Years ago, written in Bash.
">

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 28

Backtrace:

File: /srv/http/stikked.MAIN/htdocs/themes/i386/views/view/view.php
Line: 28
Function: _error_handler

File: /srv/http/stikked.MAIN/htdocs/application/core/MY_Loader.php
Line: 147
Function: include

File: /srv/http/stikked.MAIN/htdocs/application/core/MY_Loader.php
Line: 33
Function: _ci_load

File: /srv/http/stikked.MAIN/htdocs/application/controllers/Main.php
Line: 602
Function: view

File: /srv/http/stikked.MAIN/htdocs/index.php
Line: 284
Function: require_once

from

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type bool

Filename: view/view.php

Line Number: 28

Backtrace:

File: /srv/http/stikked.MAIN/htdocs/themes/i386/views/view/view.php
Line: 28
Function: _error_handler

File: /srv/http/stikked.MAIN/htdocs/application/core/MY_Loader.php
Line: 147
Function: include

File: /srv/http/stikked.MAIN/htdocs/application/core/MY_Loader.php
Line: 33
Function: _ci_load

File: /srv/http/stikked.MAIN/htdocs/application/controllers/Main.php
Line: 602
Function: view

File: /srv/http/stikked.MAIN/htdocs/index.php
Line: 284
Function: require_once

- view diff
Embed
  1. #!/bin/bash
  2.  
  3. [ "${1}" == "-u" ] && setxkbmap us && exit 0
  4. [ "${1}" == "-r" ] && setxkbmap ru && exit 0
  5.  
  6. # Assume toggle
  7.  
  8. cur="$(setxkbmap -query|grep layout:|awk '{print $2}')"
  9.  
  10. [ "${cur}" == "ru" ] && setxkbmap us && exit 0
  11. [ "${cur}" == "us" ] && setxkbmap ru && exit 0
  12.  
  13. # vim:ts=4:tw=80:sw=4:et:ai:si