<commit_before><?php

/**
 * @package   Custom Form mod
 * @version   2.2.1
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2014, <NAME>
 * @license   http://opensource.org/licenses/MIT MIT
 */

declare(strict_types=1);

function customform_actions(array &$action_array)
{
	$action_array['form'] = array('CustomForm.php', 'CustomForm');
}

function customform_admin_areas(array &$admin_areas)
{
	global $txt;

	loadLanguage('CustomForm');
	$admin_areas['config']['areas']['modsettings']['subsections']['customform'] = array($txt['customform_tabheader']);
}

function customform_modify_modifications(array &$sub_actions)
{
	$sub_actions['customform'] = 'ModifyCustomFormSettings';
}

function customform_load_theme()
{
	global $context, $scripturl, $smcFunc, $txt;

	if ($context['current_action'] == 'who')
	{
		$request = $smcFunc['db_query']('', 'SELECT id_form, title FROM {db_prefix}cf_forms');
		while ([$id_form, $title] = $smcFunc['db_fetch_row']($result))
			if (allowedTo('custom_forms_' . $form_id))
				$txt['customform_whoallow_' . $id_form] = sprintf(
					$txt['customform_who'],
					$scripturl,
					$id_form,
					$title,
				);
		$smcFunc['db_free_result']($result);
	}<commit_msg>fix: Naming mixup on Whv's Online page<commit_after><?php

/**
 * @package   Custom Form mod
 * @version   2.2.1
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2014, <NAME>
 * @license   http://opensource.org/licenses/MIT MIT
 */

declare(strict_types=1);

function customform_actions(array &$action_array)
{
	$action_array['form'] = array('CustomForm.php', 'CustomForm');
}

function customform_admin_areas(array &$admin_areas)
{
	global $txt;

	loadLanguage('CustomForm');
	$admin_areas['config']['areas']['modsettings']['subsections']['customform'] = array($txt['customform_tabheader']);
}

function customform_modify_modifications(array &$sub_actions)
{
	$sub_actions['customform'] = 'ModifyCustomFormSettings';
}

function customform_load_theme()
{
	global $context, $scripturl, $smcFunc, $txt;

	if ($context['current_action'] == 'who')
	{
		$request = $smcFunc['db_query']('', 'SELECT id_form, title FROM {db_prefix}cf_forms');
		while ([$id_form, $title] = $smcFunc['db_fetch_row']($request))
			if (allowedTo('custom_forms_' . $form_id))
				$txt['customform_whoallow_' . $id_form] = sprintf(
					$txt['customform_who'],
					$scripturl,
					$id_form,
					$title,
				);
		$smcFunc['db_free_result']($request);
	}
{'fraction_non_alphanumeric': 0.18062934205149161, 'fraction_numerical': 0.006538618716796077, 'mean_word_length': 5.818941504178273, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '2230492', 'n_tokens_mistral': 941, 'n_tokens_neox': 874, 'n_words': 146}