* File: /htdocs/babel_mobile.php * Usage: Loader for Mobile Web * Format: 1 tab indent(4 spaces), LF, UTF-8, no-BOM * * Subversion Keywords: * * $Id$ * $LastChangedDate$ * $LastChangedRevision$ * $LastChangedBy$ * $URL$ * * Copyright (C) 2006 Livid Liu * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ DEFINE('V2EX_BABEL', 1); require('core/MobileCore.php'); if (isset($_GET['m'])) { $m = strtolower(trim($_GET['m'])); } else { $m = 'home'; } $GOOGLE_AD_LEGAL = false; $p =& new Mobile(); switch ($m) { default: case 'home': $p->vxHome(); break; case 'login': $p->vxLogin(); break; case 'logout': $p->vxLogout(); break; case 'topic': $GOOGLE_AD_LEGAL = true; $p->vxTopic(); break; case 'post_create': $p->vxPostCreate(); break; case 'user': $p->vxUser(); break; case 'friend': $p->vxFriend(); break; case 'ing_public': $p->vxIngPublic(); break; } ?>