示例#1
0
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GLPI; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file:
// Purpose of file:
// ----------------------------------------------------------------------
// Entry menu case
//define('GLPI_ROOT', '../../..');
include "../../../inc/includes.php";
$itemtype = $_REQUEST['itemtype'];
$menu_obj = new PluginMobileMenu();
$menu = $menu_obj->getMenu();
if (isset($_REQUEST['menu']) && isset($_REQUEST['ssmenu'])) {
    $welcome = $menu[$_REQUEST['menu']]['content'][$_REQUEST['ssmenu']]['title'];
    $_SESSION['plugin_mobile']['menu'] = $_REQUEST['menu'];
    $_SESSION['plugin_mobile']['ssmenu'] = $_REQUEST['ssmenu'];
    if (isset($_REQUEST['start'])) {
        $_SESSION['plugin_mobile']['start'] = $_REQUEST['start'];
    } else {
        $_SESSION['plugin_mobile']['start'] = 0;
    }
} else {
    $welcome = " ";
}
$common = new PluginMobileCommon();
$common->displayHeader($welcome, "ss_menu.php?menu=" . $_REQUEST['menu'], true);
示例#2
0
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file:
// Purpose of file:
// ----------------------------------------------------------------------
// Entry menu case
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
$welcome = " ";
//$welcome = "GLPI - Mobile";
//version check
$ver = explode(" ", implode(" ", plugin_version_mobile()));
$urlv = "http://a.fsdn.com/con/app/proj/glpimobile/screenshots/" . $ver[1] . ".png";
$headers = get_headers($urlv, 1);
if ($headers[0] != '') {
    if ($headers[0] == 'HTTP/1.0 404 Not Found') {
        $welcome = 'GLPI - Mobile &nbsp; <a href="https://forge.glpi-project.org/projects/mobile/files" target="_blank" style="color:#fff;">                
	           <span class="blink_me">' . __('New version avaliable') . '</span></a>';
    } else {
        $welcome = "GLPI - Mobile";
    }
}
$common = new PluginMobileCommon();
$common->displayHeader($welcome, 'central.php', true, '', 'ss_menu');
if (!isset($_REQUEST['menu'])) {
    $_REQUEST['menu'] = 'inventory';
}
$menu = new PluginMobileMenu();
$menu->showSpecificMenu($_REQUEST['menu']);
示例#3
0
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 GLPI; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file:
// Purpose of file:
// ----------------------------------------------------------------------
// Entry menu case
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
include '../inc/common.class.php';
//redirect to menu
//define("MOBILE_EXTRANET_ROOT", "../../../plugins/mobile");
$welcome = $LANG['plugin_mobile']["welcome"];
require_once "../hook.php";
//redirect to menu
//Html::redirect(MOBILE_EXTRANET_ROOT . "/front/ss_menu.php?menu=maintain");
if (!isset($_GET['message'])) {
    $_GET['message'] = '';
}
$common = new PluginMobileCommon();
$common->displayHeader($welcome, '', false, '', 'central');
$menu = new PluginMobileMenu();
$menu->showFirstLevel($_GET['message']);
$common->displayFooter();