Форуми / Cotonti / Extensions / Cotonti iPhone Webapp

Sean
#12573 17.05.2009 08:54
@Trustmaster: iWebKit just has the stylesheets and everything premade. I started making my own, before I did some more research and found iWebKit. Theres also a java script file that takes care of the iPhone sliders and checkboxes.

@Fedai: The code in m.php is really simple:

<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
[BEGIN_SED]
File=m.php
Version=100
Updated=2009-may-9
Type=PLugin
Author=Sean Byron
Description=Mobile Page
[END_SED]
==================== */

define('SED_CODE', TRUE);

require_once('./datas/config.php');
require_once($cfg['system_dir'].'/functions.php');
require_once($cfg['system_dir'].'/common.php');

$p = $_GET["page"];

switch($p)
{
	case "home":
		require_once('plugins/mobileplus/mobileplus.home.php');
	break;

	case "page":
		require_once('plugins/mobileplus/mobileplus.page.php');
	break;

	default:
		require_once('plugins/mobileplus/mobileplus.home.php');
	break;
}
	

?>
This is one think that's on my list to improve. I realize this is probably not the most secure way of doing things. Right now Ive just got a separate file for Pages, and Home. A Forums one is on the way.

I did it this way because if I coded it like a regular plugin, and called it with plug.php?e=mobileplus then i'd get the header and footer attached to it and it wouldn't show up full screen on the iPhone. If someone's got a better suggestion then im open to it!