<commit_before><?php

// $Header: /cvsroot/tikiwiki/tiki/modules/mod-categories.php,v 1.1 2005-07-30 11:34:05 sylvieg Exp $

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}
if (!function_exists("categories_help")) {
	function categories_help() {
		return "type=wiki page|article|faq|blog|image gallery|image|file gallery|tracker|trackerItem|quiz|poll|survey|sheet|...,deep=on|off, categId=0";
	}
}


if ($feature_categories != 'y') {
	$smarty->assign('module_error', tra("This feature is disabled").": feature_categories");
} elseif ($tiki_p_view_categories != 'y') {
	$smarty->assign('module_error', tra("You do not have permission to use this feature"));
} else {
	global $user;
	global $categlib; include_once ('lib/categories/categlib.php');
	$ctall = $categlib->get_all_categories_respect_perms($user, 'tiki_p_view_categories');
	if (isset($module_params["type"])) {
		$type = $module_params["type"];
		$urlEnd = "&amp;type=".urlencode($type);
	} else {
		$type = '';
		$urlEnd = "";
	}
	if (isset($module_params["deep"]))
		$deep = $module_params["type"];
	else<commit_msg>deep param<commit_after><?php

// $Header: /cvsroot/tikiwiki/tiki/modules/mod-categories.php,v 1.2 2005-08-15 12:04:53 sylvieg Exp $

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}
if (!function_exists("categories_help")) {
	function categories_help() {
		return "type=wiki page|article|faq|blog|image gallery|image|file gallery|tracker|trackerItem|quiz|poll|survey|sheet|...,deep=on|off, categId=0";
	}
}


if ($feature_categories != 'y') {
	$smarty->assign('module_error', tra("This feature is disabled").": feature_categories");
} elseif ($tiki_p_view_categories != 'y') {
	$smarty->assign('module_error', tra("You do not have permission to use this feature"));
} else {
	global $user;
	global $categlib; include_once ('lib/categories/categlib.php');
	$ctall = $categlib->get_all_categories_respect_perms($user, 'tiki_p_view_categories');
	if (isset($module_params["type"])) {
		$type = $module_params["type"];
		$urlEnd = "&amp;type=".urlencode($type);
	} else {
		$type = '';
		$urlEnd = "";
	}
	if (isset($module_params["deep"]))
		$deep = $module_params["deep"];
	else
{'fraction_non_alphanumeric': 0.18301189987689784, 'fraction_numerical': 0.013951579811243332, 'mean_word_length': 6.046242774566474, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 9, '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': '7636757', 'n_tokens_mistral': 898, 'n_tokens_neox': 857, 'n_words': 168}