From: vincent@cubedesigners.com Date: Tue, 17 Jul 2012 17:09:18 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=72bf87715ab12955753797f9aa113029294623f5;p=cubeextranet.git --- diff --git a/inc/commons/class.common.tools.php b/inc/commons/class.common.tools.php index 80889d622..94a2a9c8d 100644 --- a/inc/commons/class.common.tools.php +++ b/inc/commons/class.common.tools.php @@ -374,6 +374,25 @@ class commonTools { exit; } + public static function phonegap() { + $res = commonPage::barre(); + $res .= commonPage::tMain(); + $res .= commonPage::bh(); + $res.='
'; + $res.=''; + $res.=''; + $res.=''; + $res.=''; + $res.=''; + $res.=''; + $res.='
'.__('Générer une application Phonegap').'
' . __("Titre de l'application") . '' . form::field('title', 30, 64) . '
' . __("Description de l'application") . '' . form::textarea('description',25,5) . '
' . __('Package') . '' . form::field('package', 30, 64) . '
' . __('Version') . '' . form::field('version', 30, 64) . '
'; + $res.='
'; + $res .= ''; + $res .= commonPage::bf(); + $res .= commonPage::bMain(); + return $res; + } + } ?> diff --git a/inc/prepend.php b/inc/prepend.php index ffbd910d6..5f6492292 100644 --- a/inc/prepend.php +++ b/inc/prepend.php @@ -1,5 +1,6 @@ registerNamespace('CubeIT_'); if ($ws) { define('GA', 'UA-4339912-7'); @@ -40,9 +45,8 @@ require_once(dirname(__FILE__) . '/' . MODE . '/_common.php'); require_once(dirname(__FILE__) . '/' . MODE . '/prepend.php'); if (isset($_POST['q'])) { - $_SESSION['q'] = $_POST['q']?$_POST['q']:null; + $_SESSION['q'] = $_POST['q'] ? $_POST['q'] : null; } elseif (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest') { $_SESSION['q'] = null; } - ?> \ No newline at end of file