diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2012-12-18 15:41:58 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2012-12-18 15:41:58 +0100 |
commit | 586cc9a83b27f54647c3425403cfcfa0cd9210c2 (patch) | |
tree | 61305f81a41e0380b65da0fcb20b738ef813d8f6 /core/templates/layout.user.php | |
parent | b05666219e43e59cfeab13a53b992cf71ad8bfad (diff) | |
parent | dd5e39ca71d80c97e1b62427642ba1a08f75624d (diff) | |
download | nextcloud-server-586cc9a83b27f54647c3425403cfcfa0cd9210c2.tar.gz nextcloud-server-586cc9a83b27f54647c3425403cfcfa0cd9210c2.zip |
merge master into navigation
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r-- | core/templates/layout.user.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index ddc97d34cc7..8cb49aaf3db 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -8,11 +8,11 @@ <link rel="stylesheet" href="<?php echo $cssfile; ?>" type="text/css" media="screen" /> <?php endforeach; ?> <script type="text/javascript"> + var oc_debug = <?php echo (defined('DEBUG') && DEBUG) ? 'true' : 'false'; ?>; var oc_webroot = '<?php echo OC::$WEBROOT; ?>'; var oc_appswebroots = <?php echo $_['apps_paths'] ?>; var oc_current_user = '<?php echo OC_User::getUser() ?>'; var oc_requesttoken = '<?php echo $_['requesttoken']; ?>'; - var oc_requestlifespan = '<?php echo $_['requestlifespan']; ?>'; var datepickerFormatDate = <?php echo json_encode($l->l('jsdate', 'jsdate')) ?>; var dayNames = <?php echo json_encode(array((string)$l->t('Sunday'), (string)$l->t('Monday'), (string)$l->t('Tuesday'), (string)$l->t('Wednesday'), (string)$l->t('Thursday'), (string)$l->t('Friday'), (string)$l->t('Saturday'))) ?>; var monthNames = <?php echo json_encode(array((string)$l->t('January'), (string)$l->t('February'), (string)$l->t('March'), (string)$l->t('April'), (string)$l->t('May'), (string)$l->t('June'), (string)$l->t('July'), (string)$l->t('August'), (string)$l->t('September'), (string)$l->t('October'), (string)$l->t('November'), (string)$l->t('December'))) ?>; @@ -21,6 +21,13 @@ <?php foreach($_['jsfiles'] as $jsfile): ?> <script type="text/javascript" src="<?php echo $jsfile; ?>"></script> <?php endforeach; ?> + <script type="text/javascript"> + requesttoken = '<?php echo $_['requesttoken']; ?>'; + OC.EventSource.requesttoken=requesttoken; + $(document).bind('ajaxSend', function(elm, xhr, s) { + xhr.setRequestHeader('requesttoken', requesttoken); + }); + </script> <?php foreach($_['headers'] as $header): ?> <?php echo '<'.$header['tag'].' '; |