<!-- INCLUDE overall_header.html -->

<a id="maincontent"></a>

<!-- IF S_RESTORE_PERMISSIONS -->

	<h1>{L_PERMISSIONS_TRANSFERRED}</h1>

	<p>{L_PERMISSIONS_TRANSFERRED_EXPLAIN}</p>

<!-- ELSE -->

	<h1>{L_WELCOME_PHPBB}</h1>

	<p>{L_ADMIN_INTRO}</p>

	{% if S_UPDATE_INCOMPLETE %}
		<div class="errorbox">
			<p>{{ lang('UPDATE_INCOMPLETE') }} <a href="{{ U_VERSIONCHECK }}">{{ lang('MORE_INFORMATION') }}</a></p>
		</div>
	{% elseif S_VERSIONCHECK_FAIL %}
		<div class="errorbox notice">
			<p>{{ lang('VERSIONCHECK_FAIL') }}</p>
			<p>{{ VERSIONCHECK_FAIL_REASON }}</p>
			<p><a href="{{ U_VERSIONCHECK_FORCE }}">{{ lang('VERSIONCHECK_FORCE_UPDATE') }}</a> &middot; <a href="{{ U_VERSIONCHECK }}">{{ lang('MORE_INFORMATION') }}</a></p>
		</div>
	{% elseif not S_VERSION_UP_TO_DATE %}
		<div class="errorbox">
			<p>{{ lang('VERSION_NOT_UP_TO_DATE_TITLE') }}</p>
			<p><a href="{{ U_VERSIONCHECK_FORCE }}">{{ lang('VERSIONCHECK_FORCE_UPDATE') }}</a> &middot; <a href="{{ U_VERSIONCHECK }}">{{ lang('MORE_INFORMATION') }}</a></p>
		</div>
	{% elseif S_VERSION_UP_TO_DATE && S_VERSIONCHECK_FORCE %}
		<div class="successbox">
			<p>{{ lang('VERSION_UP_TO_DATE_ACP') }}</p>
		</div>
	{% endif %}
	{% if S_VERSION_UPGRADEABLE %}
		<div class="errorbox notice">
			<p>{{ UPGRADE_INSTRUCTIONS }}</p>
		</div>
	{% endif %}

	<!-- IF S_SEARCH_INDEX_MISSING -->
		<div class="errorbox">
			<h3>{L_WARNING}</h3>
			<p>{L_NO_SEARCH_INDEX}</p>
		</div>
	<!-- ENDIF -->

	<!-- IF S_REMOVE_INSTALL -->
		<div class="errorbox">
			<h3>{L_WARNING}</h3>
			<p>{L_REMOVE_INSTALL}</p>
		</div>
	<!-- ENDIF -->

	<!-- IF S_MBSTRING_LOADED -->
		<!-- IF S_MBSTRING_FUNC_OVERLOAD_FAIL -->
			<div class="errorbox">
				<h3>{L_ERROR_MBSTRING_FUNC_OVERLOAD}</h3>
				<p>{L_ERROR_MBSTRING_FUNC_OVERLOAD_EXPLAIN}</p>
			</div>
		<!-- ENDIF -->

		<!-- IF S_MBSTRING_ENCODING_TRANSLATION_FAIL -->
			<div class="errorbox">
				<h3>{L_ERROR_MBSTRING_ENCODING_TRANSLATION}</h3>
				<p>{L_ERROR_MBSTRING_ENCODING_TRANSLATION_EXPLAIN}</p>
			</div>
		<!-- ENDIF -->

		<!-- IF S_MBSTRING_HTTP_INPUT_FAIL -->
			<div class="errorbox">
				<h3>{L_ERROR_MBSTRING_HTTP_INPUT}</h3>
				<p>{L_ERROR_MBSTRING_HTTP_INPUT_EXPLAIN}</p>
			</div>
		<!-- ENDIF -->

		<!-- IF S_MBSTRING_HTTP_OUTPUT_FAIL -->
			<div class="errorbox">
				<h3>{L_ERROR_MBSTRING_HTTP_OUTPUT}</h3>
				<p>{L_ERROR_MBSTRING_HTTP_OUTPUT_EXPLAIN}</p>
			</div>
		<!-- ENDIF -->

		{% if S_DEFAULT_CHARSET_FAIL %}
			<div class="errorbox">
				<h3>{{ lang('ERROR_DEFAULT_CHARSET') }}</h3>
				<p>{{ lang('ERROR_DEFAULT_CHARSET_EXPLAIN') }}</p>
			</div>
		{% endif %}
	<!-- ENDIF -->

	<!-- IF S_WRITABLE_CONFIG -->
		<div class="errorbox notice">
			<p>{L_WRITABLE_CONFIG}</p>
		</div>
	<!-- ENDIF -->

	<!-- IF S_PHP_VERSION_OLD -->
		<div class="errorbox notice">
			<p>{L_PHP_VERSION_OLD}</p>
		</div>
	<!-- ENDIF -->

	<!-- EVENT acp_main_notice_after -->

		<div class="lside">
			<table class="table2 zebra-table no-header" data-no-responsive-header="true">
				<thead>
					<tr>
						<th>{{ lang('STATISTIC') }}</th>
						<th>{{ lang('VALUE') }}</th>
					</tr>
				</thead>

				<tbody>
					<tr>
						<td class="tabled">{{ lang('BOARD_STARTED') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ START_DATE }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('AVATAR_DIR_SIZE') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ AVATAR_DIR_SIZE }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('DATABASE_SIZE') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ DBSIZE }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('UPLOAD_DIR_SIZE') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ UPLOAD_DIR_SIZE }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('DATABASE_SERVER_INFO') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ DATABASE_INFO }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('GZIP_COMPRESSION') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ GZIP_COMPRESSION }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('PHP_VERSION') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ PHP_VERSION_INFO }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('NUMBER_ORPHAN') ~ lang('COLON') }}</td>
						<td class="tabled">
						{% if TOTAL_ORPHAN > 0 %}
							<a href="{{ U_ATTACH_ORPHAN }}" title="{{ lang('MORE_INFORMATION') }}"><strong>{{ TOTAL_ORPHAN }}</strong></a>
						{% else %}
							<strong>{{ TOTAL_ORPHAN }}</strong>
						{% endif %}
						</td>
					</tr>
					{% if S_VERSIONCHECK %}
					<tr>
						<td class="tabled">{{ lang('BOARD_VERSION') ~ lang('COLON') }}</td>
						<td class="tabled">
							<strong><a href="{{ U_VERSIONCHECK }}" {% if S_VERSION_UP_TO_DATE %}style="color: #228822;" {% elseif not S_VERSIONCHECK_FAIL %}style="color: #BC2A4D;" {% endif %}title="{{ lang('MORE_INFORMATION') }}">{{ BOARD_VERSION }}</a></strong> [&nbsp;<a href="{{ U_VERSIONCHECK_FORCE }}">{{ lang('VERSIONCHECK_FORCE_UPDATE') }}</a>&nbsp;]
						</td>
					</tr>
					{% endif %}
				</tbody>
			</table>

			<table class="table2 zebra-table no-header" data-no-responsive-header="true">
				<thead>
					<tr>
						<th>{{ lang('STATISTIC') }}</th>
						<th>{{ lang('VALUE') }}</th>
					</tr>
				</thead>

				<tbody>
					<tr>
						<td class="tabled">{{ lang('NUMBER_POSTS') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ TOTAL_POSTS }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('POSTS_PER_DAY') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ POSTS_PER_DAY }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('NUMBER_TOPICS') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ TOTAL_TOPICS }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('TOPICS_PER_DAY') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ TOPICS_PER_DAY }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('NUMBER_USERS') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ TOTAL_USERS }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('USERS_PER_DAY') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ USERS_PER_DAY }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('NUMBER_FILES') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ TOTAL_FILES }}</strong></td>
					</tr>
					<tr>
						<td class="tabled">{{ lang('FILES_PER_DAY') ~ lang('COLON') }}</td>
						<td class="tabled"><strong>{{ FILES_PER_DAY }}</strong></td>
					</tr>
					{% if S_VERSIONCHECK %}
					<tr>
						<td class="tabled">&nbsp;</td>
						<td class="tabled">&nbsp;</td>
					</tr>
					{% endif %}
				</tbody>
			</table>
		</div>

	<!-- IF S_ACTION_OPTIONS -->
		<fieldset>
			<legend>{L_STATISTIC_RESYNC_OPTIONS}</legend>

			<form id="action_online_form" method="post" action="{U_ACTION}" data-ajax="true">
				<dl>
					<dt><label for="action_online">{L_RESET_ONLINE}</label><br /><span>&nbsp;</span></dt>
					<dd><input type="hidden" name="action" value="online" /><input class="button2" type="submit" id="action_online" name="action_online" value="{L_RUN}" /></dd>
				</dl>
			</form>

			<form id="action_date_form" method="post" action="{U_ACTION}" data-ajax="true">
				<dl>
					<dt><label for="action_date">{L_RESET_DATE}</label><br /><span>&nbsp;</span></dt>
					<dd><input type="hidden" name="action" value="date" /><input class="button2" type="submit" id="action_date" name="action_date" value="{L_RUN}" /></dd>
				</dl>
			</form>

			<form id="action_stats_form" method="post" action="{U_ACTION}">
				<dl>
					<dt><label for="action_stats">{L_RESYNC_STATS}</label><br /><span>{L_RESYNC_STATS_EXPLAIN}</span></dt>
					<dd><input type="hidden" name="action" value="stats" /><input class="button2" type="submit" id="action_stats" name="action_stats" value="{L_RUN}" /></dd>
				</dl>
			</form>

			<form id="action_user_form" method="post" action="{U_ACTION}">
				<dl>
					<dt><label for="action_user">{L_RESYNC_POSTCOUNTS}</label><br /><span>{L_RESYNC_POSTCOUNTS_EXPLAIN}</span></dt>
					<dd><input type="hidden" name="action" value="user" /><input class="button2" type="submit" id="action_user" name="action_user" value="{L_RUN}" /></dd>
				</dl>
			</form>

			<form id="action_db_track_form" method="post" action="{U_ACTION}">
				<dl>
					<dt><label for="action_db_track">{L_RESYNC_POST_MARKING}</label><br /><span>{L_RESYNC_POST_MARKING_EXPLAIN}</span></dt>
					<dd><input type="hidden" name="action" value="db_track" /><input class="button2" type="submit" id="action_db_track" name="action_db_track" value="{L_RUN}" /></dd>
				</dl>
			</form>

			<!-- IF S_FOUNDER -->
			<form id="action_purge_sessions_form" method="post" action="{U_ACTION}" data-ajax="true">
				<dl>
					<dt><label for="action_purge_sessions">{L_PURGE_SESSIONS}</label><br /><span>{L_PURGE_SESSIONS_EXPLAIN}</span></dt>
					<dd><input type="hidden" name="action" value="purge_sessions" /><input class="button2" type="submit" id="action_purge_sessions" name="action_purge_sessions" value="{L_RUN}" /></dd>
				</dl>
			</form>
			<!-- ENDIF -->

			<form id="action_purge_cache_form" method="post" action="{U_ACTION}" data-ajax="true">
				<dl>
					<dt><label for="action_purge_cache">{L_PURGE_CACHE}</label><br /><span>{L_PURGE_CACHE_EXPLAIN}</span></dt>
					<dd><input type="hidden" name="action" value="purge_cache" /><input class="button2" type="submit" id="action_purge_cache" name="action_purge_cache" value="{L_RUN}" /></dd>
				</dl>
			</form>

			<!-- EVENT acp_main_actions_append -->
  		</fieldset>
	<!-- ENDIF -->

	<!-- IF .log -->
		<h2>{L_ADMIN_LOG}</h2>

		<p>{L_ADMIN_LOG_INDEX_EXPLAIN}</p>

		<div style="text-align: right;"><a href="{U_ADMIN_LOG}">&raquo; {L_VIEW_ADMIN_LOG}</a></div>

		<table class="table1 zebra-table">
		<thead>
		<tr>
			<th>{L_USERNAME}</th>
			<th>{L_IP}</th>
			<th>{L_TIME}</th>
			<th>{L_ACTION}</th>
		</tr>
		</thead>
		<tbody>
		<!-- BEGIN log -->
			<tr>
				<td>{log.USERNAME}</td>
				<td style="text-align: center;">{log.IP}</td>
				<td style="text-align: center;">{log.DATE}</td>
				<td>{log.ACTION}</td>
			</tr>
		<!-- END log -->
		</tbody>
		</table>
	<!-- ENDIF -->

	<!-- IF S_INACTIVE_USERS -->
		<h2>{L_INACTIVE_USERS}</h2>

		<p>{L_INACTIVE_USERS_EXPLAIN_INDEX}</p>

		<div style="text-align: right;"><a href="{U_INACTIVE_USERS}">&raquo; {L_VIEW_INACTIVE_USERS}</a></div>

		<table class="table1 zebra-table">
		<thead>
		<tr>
			<th>{L_USERNAME}</th>
			<th>{L_JOINED}</th>
			<th>{L_INACTIVE_DATE}</th>
			<th>{L_LAST_VISIT}</th>
			<th>{L_INACTIVE_REASON}</th>
		</tr>
		</thead>
		<tbody>
		<!-- BEGIN inactive -->
			<tr>
				<td style="vertical-align: top;">
					{inactive.USERNAME_FULL}
					<!-- IF inactive.POSTS --><br />{L_POSTS}{L_COLON} <strong>{inactive.POSTS}</strong> [<a href="{inactive.U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a>]<!-- ENDIF -->
				</td>
				<td style="vertical-align: top;">{inactive.JOINED}</td>
				<td style="vertical-align: top;">{inactive.INACTIVE_DATE}</td>
				<td style="vertical-align: top;">{inactive.LAST_VISIT}</td>
				<td style="vertical-align: top;">
					{inactive.REASON}
					<!-- IF inactive.REMINDED --><br />{inactive.REMINDED_EXPLAIN}<!-- ENDIF -->
				</td>
			</tr>
		<!-- BEGINELSE -->
			<tr>
				<td colspan="5" style="text-align: center;">{L_NO_INACTIVE_USERS}</td>
			</tr>
		<!-- END inactive -->
		</tbody>
		</table>
	<!-- ENDIF -->

<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->
