Beispiel #1
0
    unset($_SESSION['last_request']);
}
$big_image_map = false;
if (get_ie_version() > 7 && file_exists(WEB_CLIENT_ROOT . "/media/image/uovd.png")) {
    $big_image_map = true;
}
if (OPTION_FORCE_LANGUAGE !== true && array_key_exists('language', $_REQUEST)) {
    $available_languages = get_available_languages();
    if (language_is_supported($available_languages, $_REQUEST['language'])) {
        $user_language = $_REQUEST['language'];
        if (OPTION_FORCE_KEYMAP !== true) {
            $user_keymap = $user_language;
        }
    }
}
list($translations, $js_translations) = get_available_translations($user_language);
if (array_key_exists('app', $_REQUEST)) {
    $order = array('id' => $_REQUEST['app']);
    if (array_key_exists('file', $_REQUEST)) {
        $args = array();
        $args['path'] = $_REQUEST['file'];
        $args['share'] = base64_decode($_REQUEST['file_share']);
        $args['type'] = $_REQUEST['file_type'];
        $order['file'] = $args;
    }
    $_SESSION['ovd-client']['start_app'][] = $order;
}
$rdp_provider = null;
if (array_key_exists('type', $_REQUEST)) {
    $rdp_provider = $_REQUEST['type'];
}
Beispiel #2
0
 *
 * 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.
 **/
require_once dirname(__FILE__) . '/includes/core.inc.php';
$seconds_to_cache = 86400 * 15;
$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header("Expires: {$ts}");
header("Pragma: cache");
header("Cache-Control: max-age={$seconds_to_cache}");
$lang = OPTION_LANGUAGE_DEFAULT;
if (array_key_exists('lang', $_REQUEST)) {
    $lang = $_REQUEST['lang'];
}
list($translations, $js_translations) = get_available_translations($lang);
header('Content-Type: text/xml; charset=utf-8');
$dom = new DomDocument('1.0', 'utf-8');
$root = $dom->createElement('translations');
$dom->appendChild($root);
foreach ($translations as $id => $string) {
    $node = $dom->createElement('translation');
    $node->setAttribute('id', $id);
    $node->setAttribute('string', $string);
    $root->appendChild($node);
}
foreach ($js_translations as $id => $string) {
    $node = $dom->createElement('js_translation');
    $node->setAttribute('id', $id);
    $node->setAttribute('string', $string);
    $root->appendChild($node);