[horde] Disable motd for mobile view.

Jan Schneider jan at horde.org
Wed Apr 5 11:50:09 UTC 2017


Zitat von ANANT S ATHAVALE <asa at isac.gov.in>:

> Hi list,
>
> I want to disable showing motd.local.php content for mobile view  
> only? Is this configurable?

No, but you can use something like this in motd.local.php to disable  
output for the mobile login screen:

global $browser, $conf;

if ($browser->isMobile() &&
     (!isset($conf['user']['force_view']) ||
      !in_array($conf['user']['force_view'], array('basic', 'dynamic')))) {


-- 
Jan Schneider
The Horde Project
https://www.horde.org/



More information about the horde mailing list