[imp] How run IMP instead of DIMP on Mobile Device
Eric Jon Rostetter
eric.rostetter at physics.utexas.edu
Fri Dec 31 04:14:25 UTC 2010
Quoting Brian Leggee <brian at leggee.com>:
> My IPAD automaticlly starts up MIMP when I rum IMP thru a Browser
> (via webmail.MYDOMAIN.com). On the Login Screen, I DO select
> "Traditional" not "Minimalist". How do I either force it to run IMP
> instead of MIMP, or is there a different link that does this?
See the list archives for iphone (rather than ipad) discussions about this.
I "fix" it for iphone via the following patch to
framework/Browser/Browser.php:
Index: Browser.php
===================================================================
RCS file: /repository/framework/Browser/Attic/Browser.php,v
retrieving revision 1.153.2.70
diff -u -r1.153.2.70 Browser.php
--- Browser.php 7 Jun 2009 10:42:51 -0000 1.153.2.70
+++ Browser.php 31 Dec 2010 04:12:07 -0000
@@ -547,6 +547,14 @@
$this->_mobile = true;
}
+/* EJR: Make the iPhone not default to mobile */
+ if ( strpos($agent, 'iPhone' ) !== false &&
+ strpos($agent, 'Safari' ) !== false &&
+ strpos($agent, 'Mobile' ) !== false ) {
+ $this->_mobile = false;
+ }
+/* EJR */
+
$this->_majorVersion = $version[1];
if (isset($version[2])) {
$this->_minorVersion = $version[2];
You might have to modify the above for iPad (where it says 'iPhone', the
iPad may return something different, like "iPad" for example).
--
Eric Rostetter
The Department of Physics
The University of Texas at Austin
This message is provided "AS IS" without warranty of any kind,
either expressed or implied. Use this message at your own risk.
More information about the imp
mailing list