<commit_before><?php
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
// 
// 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.
// $Id$

if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

/* ABOUT THE NUMBERING:
 *
 * Because this script calls tiki-setup_base.php , which does very
 * complicated things like checking if users are logged in and so
 * on, this script depends on every other script, because
 * tiki-setup_base.php does.
 *
 * -----
 *
 * 				see http://info.tiki.org/HTMLentities for examples of HTML entities
 */


/**
 * @param $installer
 */
function upgrade_999999991_decode_pages_sources_tiki($installer)
{
	global $user_overrider_prefs, $systemConfiguration;
	set_time_limit(60 * 60); // Set maximum execution time to 1 hour since this runs on all pages
	include_once('tiki-setup_base.php');
	$categlib = TikiLib::lib('categ');
	$wikilib = TikiLib::lib('wiki');

	$converter = new convertToTiki9();
	$converter->convertPages();
	$converter->convertModules();
}

<commit_msg>[FIX] installer: tiki-setup_base.php now seems to require tiki-setup to be included first, so that $tikilib is available for the Perms setup, otherwise this blows up the installer when updating from a pre-version-9 tiki. Thanks Gergely<commit_after><?php
// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
// 
// 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.
// $Id$

if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}

/* ABOUT THE NUMBERING:
 *
 * Because this script calls tiki-setup_base.php , which does very
 * complicated things like checking if users are logged in and so
 * on, this script depends on every other script, because
 * tiki-setup_base.php does.
 *
 * -----
 *
 * 				see http://info.tiki.org/HTMLentities for examples of HTML entities
 */


/**
 * @param $installer
 */
function upgrade_999999991_decode_pages_sources_tiki($installer)
{
	global $user_overrider_prefs, $systemConfiguration;
	set_time_limit(60 * 60); // Set maximum execution time to 1 hour since this runs on all pages
	include_once('tiki-setup.php');
	$categlib = TikiLib::lib('categ');
	$wikilib = TikiLib::lib('wiki');

	$converter = new convertToTiki9();
	$converter->convertPages();
	$converter->convertModules();
}


{'fraction_non_alphanumeric': 0.11818528402592451, 'fraction_numerical': 0.017918414029736943, 'mean_word_length': 4.301010101010101, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '933199', 'n_tokens_mistral': 868, 'n_tokens_neox': 804, 'n_words': 270}