<?php
///////////////////////////////////////////////////////////////////////////////////////////////////////
// BotBanish 7.0.10
// Randem Systems: https://randemsystems.support
// BotBanish Install Complete Screen
// Date: 12/14/2025
// Usage: 
//
///////////////////////////////////////////////////////////////////////////////////////////////////////

function CompleteScreenInstall($doc, $type) {
	
	global $BotBanishSettings, $BotBanishText;

	echo '
		<!DOCTYPE html>
		<html>
		<head>
		<title>' . $BotBanishText["BotBanish_Configuration"] . '</title>' .
$BotBanishSettings['BOTBANISH_PAGE_HEADER'] .
'
	</head>
	<body>
	<table width="60%" border="0" cellspacing="0" cellpadding="0" align="center">';

			$heading = $BotBanishSettings['BOTBANISH_SERVER_TYPE'] . ' ' . $BotBanishText['Configuration'];
			$title = $type;
			include $BotBanishSettings['BOTBANISH_TEMPLATES_DIR'] . 'BotBanish_Banner.php';
			$url = '';

			if (!isset($BotBanishSettings['BOTBANISH_CLEANUP'])) {
				
				if ($BotBanishSettings['BOTBANISH_INSTALL_TYPE'] == 'Server')
					
					$url = $BotBanishSettings['BOTBANISH_INSTALL_URL'] . 'Docs/Docs Server/BotBanish_Readme_SERVER - ' . ucwords($BotBanishSettings['BOTBANISH_LANGUAGE_SELECT']) . '.html';
				else
					$url = $BotBanishSettings['BOTBANISH_INSTALL_URL'] . 'Docs/BotBanish_Readme_' . $BotBanishSettings['BOTBANISH_SYSTEM'] . ' - ' . ucwords($BotBanishSettings['BOTBANISH_LANGUAGE_SELECT']) . '.html';
			}

	echo '
		<tr width="100%">
			<div>
				<table width="60%" cellspacing="0" cellpadding="0" align="center" style="background-color: #0099cc;" border="10" style="border-collapse:collapse">
					<tr width="100%">
						<td width="100%" class="face_padding_cell">
							<form name="theForm" id="theForm" action="" method="post" enctype="multipart/form-data">
								<table width="90%" style="background-color: #0099cc;" align="center">
									<tr align="left">
										<td>' . $doc . '</td>
									</tr>
									<tr><td>';

							if (!isset($BotBanishSettings['BOTBANISH_CLEANUP'])) {
									
								echo '
									<div id="readme">
										<iframe id="ReadMe" align="center" width="90%" height="1000" style="background-color: #ffffff;" style="border-collapse:collapse" border=10 scrolling=auto allowtransparency="true" src="' . $url . '"></iframe>
									</div>';
							}
									
							echo '		
									</td>
									</tr>
								</table>
							</form>
						</td>
					</tr>
				</table>
			</div>
		</tr>
	</table>
	</body>
	</html>';
}

function CompleteScreenUninstall($doc, $type) {
	
	global $BotBanishSettings, $BotBanishText;

	echo '
		<!DOCTYPE html>
		<html>
		<head>
		<title>' . $BotBanishText["BotBanish_Configuration"] . '</title>' .
$BotBanishSettings['BOTBANISH_PAGE_HEADER'] .
'
	</head>
	<body>
	<table width="60%" border="0" cellspacing="0" cellpadding="0" align="center">';

			$heading = $BotBanishSettings['BOTBANISH_SERVER_TYPE'] . ' ' . $BotBanishText['Configuration'];
			$title = $type;
			include $BotBanishSettings['BOTBANISH_TEMPLATES_DIR'] . 'BotBanish_Banner.php';
			$url = '';

	echo '
		<tr width="100%">
			<div>
				<table width="60%" cellspacing="0" cellpadding="0" align="center" style="background-color: #0099cc;" border="10" style="border-collapse:collapse">
					<tr width="100%">
						<td width="100%" class="face_padding_cell">
							<form name="theForm" id="theForm" action="" method="post" enctype="multipart/form-data">
								<table width="90%" style="background-color: #0099cc;" align="center">
									<tr align="left">
										<td>' . $doc . '</td>
									</tr>
									<tr><td>';
									
							echo '		
									</td>
									</tr>
								</table>
							</form>
						</td>
					</tr>
				</table>
			</div>
		</tr>
	</table>
	</body>
	</html>';
}
?>