<commit_before>
<script>
	$(function(){
		$(".collapse").on('show.bs.collapse', function(e) {
			var id = $(e.target).attr('id');
			$("input[name=active_panel]").val(id);
		});
		var url = document.location.toString();
		if ( url.match('#') ) {
			var element = '#'+url.split('#')[1];
				$(element).addClass('in');
			window.scroll(0, $(element).offset().top - 120);
		}

		$("#cnftheme").click(function(){
			document.location.assign("{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val());
			return false;
		});
	});
</script>
<link rel="stylesheet" href="view/theme/frio/css/mod_admin.css" type="text/css" media="screen"/>

<div id='adminpage' class="adminpage generic-page-wrapper">
	<h1>{{$title}} - {{$page}}</h1>
	<form action="{{$baseurl}}/admin/site" method="post">
		<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
		<input type='hidden' name='active_panel' value=''>
		<div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true">
			<!--
			/*
			*    General Information
			*/ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-general">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-general-collapse" aria-expanded="false" aria-controls="admin-settings-general-collapse">
							General Information
						</a>
					</h4>
				</div>
				<div id="admin-settings-general-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-general">
					{{include file="field_input.tpl" field=$sitename}}
					{{include file="field_input.tpl" field=$sender_email}}
					{{include file="field_textarea.tpl" field=$banner}}
					{{include file="field_input.tpl" field=$shortcut_icon}}
					{{include file="field_input.tpl" field=$touch_icon}}
					{{include file="field_textarea.tpl" field=$additional_info}}
					{{include file="field_select.tpl" field=$language}}
					{{include file="field_select.tpl" field=$theme}}
					{{include file="field_select.tpl" field=$theme_mobile}}
					{{include file="field_select.tpl" field=$ssl_policy}}
					{{if $ssl_policy.2 == 1}}{{include file="field_checkbox.tpl" field=$force_ssl}}{{/if}}
					{{include file="field_checkbox.tpl" field=$hide_help}}
					{{include file="field_select.tpl" field=$singleuser}}
					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>

			<!--
			/*
			 *    Registration
			 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-registration">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-registration-collapse" aria-expanded="false" aria-controls="admin-settings-registration-collapse">
							{{$registration}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-registration-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-registration">

					{{include file="field_input.tpl" field=$register_text}}
					{{include file="field_select.tpl" field=$register_policy}}
					{{include file="field_input.tpl" field=$daily_registrations}}
					{{include file="field_checkbox.tpl" field=$no_multi_reg}}
					{{include file="field_checkbox.tpl" field=$no_openid}}
					{{include file="field_checkbox.tpl" field=$no_regfullname}}
					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>



			<!--
				/*
				 *    File upload
				 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-upload">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-upload-collapse" aria-expanded="false" aria-controls="admin-settings-upload-collapse">
							{{$upload}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-upload-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-upload">
					{{include file="field_select.tpl" field=$storagebackend}}
					{{foreach from=$storageform item=$field}}
						{{include file=$field.field field=$field}}
					{{/foreach}}
					<hr>
					{{include file="field_input.tpl" field=$maximagesize}}
					{{include file="field_input.tpl" field=$maximagelength}}
					{{include file="field_input.tpl" field=$jpegimagequality}}
					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>


			<!--
			/*
			 *    Corporate
			 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-corporate">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-corporate-collapse" aria-expanded="false" aria-controls="admin-settings-corporate-collapse">
							{{$corporate}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-corporate-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-corporate">
					{{include file="field_input.tpl" field=$allowed_sites}}
					{{include file="field_input.tpl" field=$allowed_email}}
					{{include file="field_input.tpl" field=$forbidden_nicknames}}
					{{include file="field_checkbox.tpl" field=$no_oembed_rich_content}}
					{{include file="field_input.tpl" field=$allowed_oembed}}
					{{include file="field_checkbox.tpl" field=$block_public}}
					{{include file="field_checkbox.tpl" field=$force_publish}}
					{{include file="field_select.tpl" field=$community_page_style}}
					{{include file="field_input.tpl" field=$max_author_posts_community_page}}

					{{include file="field_checkbox.tpl" field=$ostatus_disabled}}

					{{if $diaspora_able}}
					{{include file="field_checkbox.tpl" field=$diaspora_enabled}}
					{{else}}
					<div class='field checkbox' id='div_id_{{$diaspora_enabled.0}}'>
						<label for='id_{{$diaspora_enabled.0}}'>{{$diaspora_enabled.1}}</label>
						<span id='id_{{$diaspora_enabled.0}}'>{{$diaspora_not_able}}</span>
					</div>
					{{/if}}
					{{include file="field_checkbox.tpl" field=$dfrn_only}}
					{{include file="field_input.tpl" field=$global_directory}}
					<div class="panel-footer">
						<input type="submit" name="republish_directory" class="btn btn-primary" value="{{$republish}}"/>
					</div>
					{{include file="field_checkbox.tpl" field=$newuser_private}}
					{{include file="field_checkbox.tpl" field=$enotify_no_content}}
					{{include file="field_checkbox.tpl" field=$private_addons}}
					{{include file="field_checkbox.tpl" field=$disable_embedded}}
					{{include file="field_checkbox.tpl" field=$allow_users_remote_self}}
					{{include file="field_checkbox.tpl" field=$explicit_content}}

					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>

			<!--
			/*
			 *    Corporate
			 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-$dvanced">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-advanced-collapse" aria-expanded="false" aria-controls="admin-settings-advanced-collapse">
							{{$advanced}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-advanced-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-advanced">

					{{include file="field_select.tpl" field=$rino}}
					{{include file="field_checkbox.tpl" field=$verifyssl}}
					{{include file="field_input.tpl" field=$proxy}}
					{{include file="field_input.tpl" field=$proxyuser}}
					{{include file="field_input.tpl" field=$timeout}}
					{{include file="field_input.tpl" field=$maxloadavg_frontend}}
					{{include file="field_input.tpl" field=$optimize_max_tablesize}}
					{{include file="field_input.tpl" field=$optimize_fragmentation}}
					{{include file="field_input.tpl" field=$abandon_days}}
					{{include file="field_input.tpl" field=$temppath}}
					{{include file="field_input.tpl" field=$basepath}}
					{{include file="field_checkbox.tpl" field=$suppress_tags}}
					{{include file="field_checkbox.tpl" field=$nodeinfo}}<commit_msg>[frio] remove basepath form field from admin panel site page<commit_after>
<script>
	$(function(){
		$(".collapse").on('show.bs.collapse', function(e) {
			var id = $(e.target).attr('id');
			$("input[name=active_panel]").val(id);
		});
		var url = document.location.toString();
		if ( url.match('#') ) {
			var element = '#'+url.split('#')[1];
				$(element).addClass('in');
			window.scroll(0, $(element).offset().top - 120);
		}

		$("#cnftheme").click(function(){
			document.location.assign("{{$baseurl}}/admin/themes/" + $("#id_theme :selected").val());
			return false;
		});
	});
</script>
<link rel="stylesheet" href="view/theme/frio/css/mod_admin.css" type="text/css" media="screen"/>

<div id='adminpage' class="adminpage generic-page-wrapper">
	<h1>{{$title}} - {{$page}}</h1>
	<form action="{{$baseurl}}/admin/site" method="post">
		<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
		<input type='hidden' name='active_panel' value=''>
		<div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true">
			<!--
			/*
			*    General Information
			*/ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-general">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-general-collapse" aria-expanded="false" aria-controls="admin-settings-general-collapse">
							General Information
						</a>
					</h4>
				</div>
				<div id="admin-settings-general-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-general">
					{{include file="field_input.tpl" field=$sitename}}
					{{include file="field_input.tpl" field=$sender_email}}
					{{include file="field_textarea.tpl" field=$banner}}
					{{include file="field_input.tpl" field=$shortcut_icon}}
					{{include file="field_input.tpl" field=$touch_icon}}
					{{include file="field_textarea.tpl" field=$additional_info}}
					{{include file="field_select.tpl" field=$language}}
					{{include file="field_select.tpl" field=$theme}}
					{{include file="field_select.tpl" field=$theme_mobile}}
					{{include file="field_select.tpl" field=$ssl_policy}}
					{{if $ssl_policy.2 == 1}}{{include file="field_checkbox.tpl" field=$force_ssl}}{{/if}}
					{{include file="field_checkbox.tpl" field=$hide_help}}
					{{include file="field_select.tpl" field=$singleuser}}
					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>

			<!--
			/*
			 *    Registration
			 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-registration">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-registration-collapse" aria-expanded="false" aria-controls="admin-settings-registration-collapse">
							{{$registration}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-registration-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-registration">

					{{include file="field_input.tpl" field=$register_text}}
					{{include file="field_select.tpl" field=$register_policy}}
					{{include file="field_input.tpl" field=$daily_registrations}}
					{{include file="field_checkbox.tpl" field=$no_multi_reg}}
					{{include file="field_checkbox.tpl" field=$no_openid}}
					{{include file="field_checkbox.tpl" field=$no_regfullname}}
					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>



			<!--
				/*
				 *    File upload
				 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-upload">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-upload-collapse" aria-expanded="false" aria-controls="admin-settings-upload-collapse">
							{{$upload}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-upload-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-upload">
					{{include file="field_select.tpl" field=$storagebackend}}
					{{foreach from=$storageform item=$field}}
						{{include file=$field.field field=$field}}
					{{/foreach}}
					<hr>
					{{include file="field_input.tpl" field=$maximagesize}}
					{{include file="field_input.tpl" field=$maximagelength}}
					{{include file="field_input.tpl" field=$jpegimagequality}}
					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>


			<!--
			/*
			 *    Corporate
			 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-corporate">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-corporate-collapse" aria-expanded="false" aria-controls="admin-settings-corporate-collapse">
							{{$corporate}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-corporate-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-corporate">
					{{include file="field_input.tpl" field=$allowed_sites}}
					{{include file="field_input.tpl" field=$allowed_email}}
					{{include file="field_input.tpl" field=$forbidden_nicknames}}
					{{include file="field_checkbox.tpl" field=$no_oembed_rich_content}}
					{{include file="field_input.tpl" field=$allowed_oembed}}
					{{include file="field_checkbox.tpl" field=$block_public}}
					{{include file="field_checkbox.tpl" field=$force_publish}}
					{{include file="field_select.tpl" field=$community_page_style}}
					{{include file="field_input.tpl" field=$max_author_posts_community_page}}

					{{include file="field_checkbox.tpl" field=$ostatus_disabled}}

					{{if $diaspora_able}}
					{{include file="field_checkbox.tpl" field=$diaspora_enabled}}
					{{else}}
					<div class='field checkbox' id='div_id_{{$diaspora_enabled.0}}'>
						<label for='id_{{$diaspora_enabled.0}}'>{{$diaspora_enabled.1}}</label>
						<span id='id_{{$diaspora_enabled.0}}'>{{$diaspora_not_able}}</span>
					</div>
					{{/if}}
					{{include file="field_checkbox.tpl" field=$dfrn_only}}
					{{include file="field_input.tpl" field=$global_directory}}
					<div class="panel-footer">
						<input type="submit" name="republish_directory" class="btn btn-primary" value="{{$republish}}"/>
					</div>
					{{include file="field_checkbox.tpl" field=$newuser_private}}
					{{include file="field_checkbox.tpl" field=$enotify_no_content}}
					{{include file="field_checkbox.tpl" field=$private_addons}}
					{{include file="field_checkbox.tpl" field=$disable_embedded}}
					{{include file="field_checkbox.tpl" field=$allow_users_remote_self}}
					{{include file="field_checkbox.tpl" field=$explicit_content}}

					<div class="panel-footer">
						<input type="submit" name="page_site" class="btn btn-primary" value="{{$submit}}"/>
					</div>
				</div>
			</div>

			<!--
			/*
			 *    Corporate
			 */ -->
			<div class="panel">
				<div class="section-subtitle-wrapper" role="tab" id="admin-settings-$dvanced">
					<h4>
						<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-advanced-collapse" aria-expanded="false" aria-controls="admin-settings-advanced-collapse">
							{{$advanced}}
						</a>
					</h4>
				</div>
				<div id="admin-settings-advanced-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-advanced">

					{{include file="field_select.tpl" field=$rino}}
					{{include file="field_checkbox.tpl" field=$verifyssl}}
					{{include file="field_input.tpl" field=$proxy}}
					{{include file="field_input.tpl" field=$proxyuser}}
					{{include file="field_input.tpl" field=$timeout}}
					{{include file="field_input.tpl" field=$maxloadavg_frontend}}
					{{include file="field_input.tpl" field=$optimize_max_tablesize}}
					{{include file="field_input.tpl" field=$optimize_fragmentation}}
					{{include file="field_input.tpl" field=$abandon_days}}
					{{include file="field_input.tpl" field=$temppath}}
					{{include file="field_checkbox.tpl" field=$suppress_tags}}
					{{include file="field_checkbox.tpl" field=$nodeinfo}}
{'fraction_non_alphanumeric': 0.18677270335068125, 'fraction_numerical': 0.0026899011753698616, 'mean_word_length': 4.4343819510645055, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 173, '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': '2480689', 'n_tokens_mistral': 6615, 'n_tokens_neox': 5406, 'n_words': 865}