<?php

/**
 * WebEngine CMS
 * https://webenginecms.org/
 * 
 * @version 1.2.0
 * @author Lautaro Angelico <http://lautaroangelico.com/>
 * @copyright (c) 2013-2019 Lautaro Angelico, All Rights Reserved
 * 
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 */

echo '<div class="page-title"><span>' . lang('module_titles_txt_8', true) . '</span></div>';

try {

	if (!mconfig('active')) throw new Exception(lang('error_47', true));

	$downloadsCACHE = loadCache('downloads.cache');


	if (is_array($downloadsCACHE)) {
		foreach ($downloadsCACHE as $tempDownloadsData) {
			echo '<div class="box-style1" style="margin-bottom: 20px;">
                <h2 class="title">' . $tempDownloadsData['download_title'] . '</h2>
                    <div class="entry">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
                            <tbody>
							<tr>
                                <td align="left" style="padding-bottom: 10px; padding-left: 20px; text-transform: uppercase; line-height: 1.1;">
                                    Descripcion:
                                    <b>' . $tempDownloadsData['download_description'] . '</b><br>
                                    Tamaño:
                                    <b>' . round($tempDownloadsData['download_size'], 2) . ' ' . lang('downloads_txt_4', true) . '</b><br>
                                    Tipo:
                                    <b>' . ($tempDownloadsData['download_type'] == 1 ? 'Cliente' : ($tempDownloadsData['download_type'] == 2 ? 'Parche' : 'Tool')) . '</b><br>
                                </td>
                                <td width="100px" align="right"><a href="' . $tempDownloadsData['download_link'] . '" target="_blank"><img src="' . __PATH_TEMPLATE_IMG__ . 'download-button.png" title="Download" border="0"></a></td>
                            </tr>
                        	</tbody>
						</table>
                    </div>
                </div>';
		}
	}
} catch (Exception $ex) {
	message('error', $ex->getMessage());
}
?>

<div class="downloadBlock-content" style="height: auto; min-height: 430px;">
	<div class="downloadBlock">
		<div class="downloadBlock-title">
			Fix error Main.exe </div>
		<div class="downloadBlock-text">
			<img src="https://i.imgur.com/XEOg0h2.png"><br><br>
			Si tiene el error que no abre el main.exe, baje la corrección enlace a continuación e instálelo para corregir el problema.
		</div>
		<div class="downloadBlock-button">
			<a href="https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/" target="_blank" class="button buttonsub">Download</a>
		</div>
	</div>
</div>

<div class="col-12">
	<div class="mb-5 mt-3">
		<div class="mb-4"></div>
		<div class="h2-title"><span>Requisitos do sistema</span></div>
		<div class="card-group ml-4 mr-4">
			<div class="card ml-1">
				<ul class="list-group list-group-flush" style="border-top: 2px solid rgba(255, 255, 255,0.1);">
					<li class="list-group-item" style="background: rgba(255,255,255,0);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span style="font-weight: bold;">Mínimo</span></li>
					<li class="list-group-item" style="background: rgba(255,255,255,0);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>Windows 7</span></li>
					<li class="list-group-item" style="background: rgba(255,255,255,0);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>CPU: Pentium 3 700 Mhz<br></span></li>
					<li class="list-group-item" style="background: rgba(255,255,255,0);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>RAM: 512 MB<br></span></li>
					<li class="list-group-item" style="background: rgba(255,255,255,0);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>GPU: 3D graphics processor<br></span></li>
					<li class="list-group-item" style="background: rgba(255,255,255,0);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>DX: DirectX 8.1a<br></span></li>
				</ul>
			</div>
			<div class="card mr-1" style="height: 100%;background: rgba(255,255,255,0);padding-right: 0px;">
				<ul class="list-group list-group-flush" style="border-top: 2px solid rgba(255, 255, 255,0.1);border-radius: 0px;">
					<li class="list-group-item" style="background: rgba(126,95,73,0.09);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span style="font-weight: bold;">Recomendado</span></li>
					<li class="list-group-item" style="background: rgba(126,95,73,0.09);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>Windows 10</span></li>
					<li class="list-group-item" style="background: rgba(126,95,73,0.09);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>CPU: Pentium 4 – 2.0 Ghz or higher<br></span></li>
					<li class="list-group-item" style="background: rgba(126,95,73,0.09);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>RAM: 2 GB or higher</span></li>
					<li class="list-group-item" style="background: rgba(126,95,73,0.09);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>GPU: 128 MB or higher<br></span></li>
					<li class="list-group-item" style="background: rgba(126,95,73,0.09);height: 100%;width: 100%;padding-top: 25px;padding-bottom: 25px;border-bottom-style: solid;border-bottom-color: rgba(255, 255, 255,0.1);"><span>DX: DirectX 9.0c or higher<br></span></li>
				</ul>
			</div>
		</div>
	</div>
</div>


<div class="row">
	<div class="col-12">
		<div class="h2-title"><span>DRIVERS</span></div>
		<div class="drivers">
			<div class="drivers-img flex-s-c">
				<a href="https://www.nvidia.com.br/Download/index.aspx" target="_blank"><img src="<?php echo __PATH_TEMPLATE_IMG__; ?>nvidia.jpg" alt="Nvidia"></a>
				<a href="https://www.microsoft.com/pt-br/download/details.aspx?id=35" target="_blank"><img src="<?php echo __PATH_TEMPLATE_IMG__; ?>directx.jpg" alt="Directx"></a>
				<a href="https://dotnet.microsoft.com/download/dotnet-framework" target="_blank"><img src="<?php echo __PATH_TEMPLATE_IMG__; ?>framework.jpg" alt="Framework"></a>
			</div>
		</div>
	</div>
</div>