<commit_before><?php

// $Id$
// Copyright (c) 2002-2007, <NAME>, <NAME>, <NAME>, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for
// details.

//this script may only be included - so its better to die if called directly.
$access->check_script($_SERVER["SCRIPT_NAME"],basename(__FILE__));

// Javascript auto-detection
if ( isset($_SESSION['tiki_cookie_jar']) && isset($_SESSION['tiki_cookie_jar']['javascript_enabled']) ) {
	$prefs['javascript_enabled'] = $_SESSION['tiki_cookie_jar']['javascript_enabled'];
} else {
	// Set a session var to be able to generate non-javascript code if there is no javascript, when noscript tag is not useful enough
	$headerlib->add_js("setSessionVar('javascript_enabled','y');");
}<commit_msg>[FIX]javascript: if javascript not allowed, disable tabs<commit_after><?php

// $Id$
// Copyright (c) 2002-2007, <NAME>, <NAME>, <NAME>, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for
// details.

//this script may only be included - so its better to die if called directly.
$access->check_script($_SERVER["SCRIPT_NAME"],basename(__FILE__));

// Javascript auto-detection
if ( isset($_SESSION['tiki_cookie_jar']) && isset($_SESSION['tiki_cookie_jar']['javascript_enabled']) ) {
	$prefs['javascript_enabled'] = $_SESSION['tiki_cookie_jar']['javascript_enabled'];
} else {
	// Set a session var to be able to generate non-javascript code if there is no javascript, when noscript tag is not useful enough
	$headerlib->add_js("setSessionVar('javascript_enabled','y');");
}
if ($prefs['javascript_enabled'] != 'y') {
	$prefs['feature_tabs'] = 'n';
}
{'fraction_non_alphanumeric': 0.14749587231700606, 'fraction_numerical': 0.008805723720418272, 'mean_word_length': 5.378947368421053, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6779234', 'n_tokens_mistral': 560, 'n_tokens_neox': 528, 'n_words': 175}