Oh, maybe it'll be early. :)
Maybe next week....
PHP Code:
<?php
/*
Decoded by Devil Team
*/
$SafeModeCheck = new _obfuscated_FF9BA38F97BEC09E8DADBC8B97B7B7B1BB98979682B791_();
$Sifrele = new _obfuscated_FF9187A690B7B1BC8EB486C0A8B7B3928ABBA89A95B691_("TSSE8.02020httpstemplateshares.net!");
$__step = isset($_POST["step"]) ? intval($_POST["step"]) : (isset($_GET["step"]) ? intval($_GET["step"]) : 0);
_obfuscated_0D16081C03083337322E0E3D3340373F2A3D1B350F0522_();
_obfuscated_0D031434370D3E1E1F2F341C1D3E091B0E0340021F2B22_();
_obfuscated_0D5B1F1028061E063E0F02273C1D1C29150E041E263F22_();
_obfuscated_0D1F1E102C2930062B2D0E052F2D32222C1E3C0D152201_();
_obfuscated_0D1809010A2117082E15133B26233129260C3209131501_();
_obfuscated_0D2907372A1D2A0B182703322A020E0429320930150D01_();
_obfuscated_0D075B0F0C0D323F122329150C282C293B021415291032_();
_obfuscated_0D215B0C3C01070739080935401B140821243508393B01_();
check_license();
_obfuscated_0D04211C311A323F1C310E17132E1E2A053D1F15370101_();
class _obfuscated_FF9BA38F97BEC09E8DADBC8B97B7B7B1BB98979682B791_
{
public $ZavaZingo = NULL;
public $TavaZingo = NULL;
public $Havai = NULL;
public $PokeMon = NULL;
public function __construct()
{
if (@ini_get("safe_mode") == 1 || strtolower(@ini_get("safe_mode")) == "on") {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Please disable PHP Safe Mode to continue installation!");
exit;
}
}
}
class _obfuscated_FF9187A690B7B1BC8EB486C0A8B7B3928ABBA89A95B691_
{
public $AnahtarKelime = NULL;
public function __construct($AK)
{
$this->AnahtarKelime = trim($AK);
}
public function _obfuscated_FFAD8BA18BB199B684989BA99BB59CA593B6A5B99FB0A1_($NEYI)
{
$result = "";
for ($i = 0; $i < strlen($NEYI); $i++) {
$_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_ = substr($NEYI, $i, 1);
$_obfuscated_0D21011728181C063F3235230D393D5B1A252F13350A01_ = substr($this->AnahtarKelime, $i % strlen($this->AnahtarKelime) - 1, 1);
$_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_ = chr(ord($_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_) + ord($_obfuscated_0D21011728181C063F3235230D393D5B1A252F13350A01_));
$result .= $_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_;
}
return urlencode(base64_encode($result));
}
public function _obfuscated_FFBE958DB99D8390B8ABA38AAF928C9EA4B5AF9483BDB1_($NEYI)
{
$result = "";
$NEYI = urldecode(base64_decode($NEYI));
for ($i = 0; $i < strlen($NEYI); $i++) {
$_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_ = substr($NEYI, $i, 1);
$_obfuscated_0D21011728181C063F3235230D393D5B1A252F13350A01_ = substr($this->AnahtarKelime, $i % strlen($this->AnahtarKelime) - 1, 1);
$_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_ = chr(ord($_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_) - ord($_obfuscated_0D21011728181C063F3235230D393D5B1A252F13350A01_));
$result .= $_obfuscated_0D35012C3D051B24251A3E0B2217335B3B1E05042A4022_;
}
return $result;
}
}
function _obfuscated_0D16081C03083337322E0E3D3340373F2A3D1B350F0522_()
{
@error_reporting(32759);
@ini_set("display_errors", 0);
@ini_set("display_startup_errors", 0);
@set_time_limit(90);
}
function _obfuscated_0D031434370D3E1E1F2F341C1D3E091B0E0340021F2B22_()
{
session_name(_obfuscated_0D021303302D0C2D2830341802361418225B3F1A061101_());
session_start();
}
function _obfuscated_0D021303302D0C2D2830341802361418225B3F1A061101_()
{
$_obfuscated_0D360B0307291739280E350D371B1E31315B4032382822_ = isset($_SERVER["SERVER_NAME"]) && !empty($_SERVER["SERVER_NAME"]) ? trim($_SERVER["SERVER_NAME"]) : (isset($_SERVER["HTTP_HOST"]) && !empty($_SERVER["HTTP_HOST"]) ? trim($_SERVER["HTTP_HOST"]) : "tsse_session");
return preg_replace("/[^a-zA-Z0-9_]/", "", $_obfuscated_0D360B0307291739280E350D371B1E31315B4032382822_) . "_install";
}
function _obfuscated_0D5B1F1028061E063E0F02273C1D1C29150E041E263F22_()
{
define(_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("aDNyM24zdzNtNHg0bDM3NHYzbjRyM3QzcjRwM3Az"), "9.0");
define(_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("aDNyM24zdzNtNHg0bDM3NHUzMDVsMw=="), !empty($_SERVER["SERVER_NAME"]) ? _obfuscated_0D1A0D0B1F0A3D3907352D1B2E3D033206110417332601_($_SERVER["SERVER_NAME"]) : (!empty($_SERVER["HTTP_HOST"]) ? _obfuscated_0D1A0D0B1F0A3D3907352D1B2E3D033206110417332601_($_SERVER["HTTP_HOST"]) : ""));
define(_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("aDNyM24zdzNtNHg0bDM3NGkzeTQ="), _obfuscated_0D5C08130C3332242F161D35382B390A0D3B2125211532_());
define(_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("czNsM2QzdjNnNTM1bzNyM3QzZDVwM2IzMjVpMw=="), "./");
define(_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("cTNzM2ozdzNnNTE1YTN3M2gz"), "./../");
define(_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("YjNlMzczazNxNHA0NDRkM2QzdjRpM28zZDVnM2szaTNxNA=="), ROOT_PATH . _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("NzRhNDM0ZzRtNTQ0NjRjNGk0bjVqNDU0eDViNHE0bDRxNXc1azRvMmw1YTRyNA=="));
define(_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("YjNlMzczazNxNHA0NDR3M3IzajRjM2wzbjRzMzY0YzN1NHg0ZjM="), ROOT_PATH . _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("NzRhNDM0ZzRtNTQ0bzR4NG80eTVhNGo0aDU3NGE0YTRtNTM0YTQzNDE2"));
}
function _obfuscated_0D2A0F04393D26312623242C2F35323D34221C24312922_()
{
$_obfuscated_0D05363F1A2A171E391F391A3718272819393B2B040D22_ = "./../cache/ip.srv";
if (isset($_SERVER["SERVER_ADDR"]) && !empty($_SERVER["SERVER_ADDR"]) && _obfuscated_0D132F06323F171B3335022B301B5B263C04215B062F01_($_SERVER["SERVER_ADDR"])) {
$ip = $_SERVER["SERVER_ADDR"];
} else {
if (isset($_SERVER["LOCAL_ADDR"]) && !empty($_SERVER["LOCAL_ADDR"]) && _obfuscated_0D132F06323F171B3335022B301B5B263C04215B062F01_($_SERVER["LOCAL_ADDR"])) {
$ip = $_SERVER["LOCAL_ADDR"];
} else {
if (file_exists($_obfuscated_0D05363F1A2A171E391F391A3718272819393B2B040D22_) && TIMENOW < filemtime($_obfuscated_0D05363F1A2A171E391F391A3718272819393B2B040D22_) + 1800) {
$ip = file_get_contents($_obfuscated_0D05363F1A2A171E391F391A3718272819393B2B040D22_);
} else {
if (function_exists("curl_init") && ($ch = curl_init())) {
curl_setopt($ch, CURLOPT_URL, base64_decode("aHR0cDovL3RlbXBsYXRlc2hhcmVzLmJpei9pcC5waHA="));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0");
$ip = curl_exec($ch);
curl_close($ch);
if (is_writable("./../cache/ip.srv")) {
@file_put_contents($_obfuscated_0D05363F1A2A171E391F391A3718272819393B2B040D22_, $ip);
}
}
}
}
}
if (_obfuscated_0D132F06323F171B3335022B301B5B263C04215B062F01_($ip)) {
return $ip;
}
if (file_exists($_obfuscated_0D05363F1A2A171E391F391A3718272819393B2B040D22_)) {
@unlink($_obfuscated_0D05363F1A2A171E391F391A3718272819393B2B040D22_);
}
}
function _obfuscated_0D132F06323F171B3335022B301B5B263C04215B062F01_($ip)
{
return $ip != "127.0.0.1" && $ip != "::1" && filter_var($ip, FILTER_VALIDATE_IP);
}
function _obfuscated_0D1F1E102C2930062B2D0E052F2D32222C1E3C0D152201_()
{
clearstatcache();
}
function _obfuscated_0D1809010A2117082E15133B26233129260C3209131501_()
{
require ROOT_PATH . "/version.php";
require ROOT_PATH . "include/php_default_timezone_set.php";
}
function _obfuscated_3F160339240A060322_($string = "", $find = "")
{
return @strpos($string, $find) === false ? false : true;
}
function _obfuscated_0D2907372A1D2A0B182703322A020E0429320930150D01_()
{
$_obfuscated_0D3415221513122B370E162435241B011B3B1B3D2D2C32_ = explode("~~~", "192.168.1.~~~127.0.0~~~localhost~~~templateshares~~~template-shares~~~1tam1ogrenci.com~~~78.159.111.12~~~82.137.61.162~~~82.137.61.162~~~83.99.133.91~~~~~~alien-scene.org~~~91.121.149.102~~~ancientbits.com~~~82.47.208.141~~~angels-torrents.net~~~89.149.255.72~~~arab-peer.org~~~174.121.11.17~~~arabpeer.org~~~188.40.162.120~~~arabsong.org~~~69.72.149.25~~~biotorrents.org~~~~~~bkt.si~~~149.210.145.52~~~blades-heaven.co.uk~~~88.191.26.186~~~blades-heaven.com~~~74.86.40.71~~~chixy.org~~~82.81.156.237~~~ddtorrents.com~~~66.90.109.57~~~demonicsouls.net~~~88.191.35.248~~~destamkroeg.org~~~85.214.110.80~~~dev.bigfangroup.org~~~77.130.134.245~~~deviltorrents.org~~~66.197.138.21~~~filetracker.org~~~216.246.57.130~~~firestar.pl~~~37.187.73.130~~~flash-dragon.co.uk~~~94.23.45.92~~~homemadeporntorrents2.com~~~208.53.143.102~~~iraqigate.org~~~66.49.137.208~~~kinoclub.eu~~~78.47.214.119~~~learnbits.info~~~70.47.114.167~~~leechseed.net~~~216.227.216.220~~~mazikalek.com~~~174.120.105.219~~~mediotekayu.com~~~91.185.194.96~~~mightytunez.com/beta~~~118.210.69.244~~~mojtorrent.com~~~195.246.15.79~~~movietorrents.org~~~95.211.129.88~~~musicgate.org~~~216.104.38.146~~~new.alientorrent.com~~~76.73.5.226~~~omarco.eu~~~91.196.170.205~~~oz708-speeds.info~~~89.149.194.50~~~planetatorrent.cl~~~87.98.221.150~~~ransackedcrew.com~~~88.191.35.248~~~saucytorrents.com~~~85.234.133.165~~~scenedemon.com~~~80.86.83.213~~~seedboxworld.biz~~~62.75.149.199~~~serko.se~~~212.97.132.131~~~shetos.org~~~97.74.121.119~~~sicktorrents.com~~~88.198.53.215~~~speed-xxx.com~~~195.246.15.139~~~speedy-torrents.info~~~184.107.184.106~~~stancamantuirii.ro~~~89.36.134.61~~~swemops.com~~~67.210.100.3~~~tailz.us~~~209.11.245.165~~~test.biotorrents.org~~~~~~the-jedi-knights.info~~~216.245.205.187~~~thedvdclub.no-ip.org~~~192.168.1.30~~~tnt-vision.com~~~86.105.223.222~~~top-balkan.com~~~203.121.68.164~~~top-balkan.net~~~203.121.69.26~~~top-torrent.com~~~212.112.250.157~~~torrents-gate.com~~~69.72.149.25~~~torrents4u.org~~~85.17.145.104~~~torrentsworld.org~~~66.90.109.57~~~tracker.power-on.kiev.ua~~~217.20.163.65~~~underground-addicts.com~~~24.102.56.34~~~vale-date.com~~~69.72.149.25~~~vehd.net~~~178.33.103.17~~~wizzdvd.net~~~195.246.219.4~~~x-releases.org~~~209.44.113.82~~~y-k-m.net~~~174.120.127.92");
foreach ($_obfuscated_0D3415221513122B370E162435241B011B3B1B3D2D2C32_ as $_obfuscated_0D30082D1F16192612112E38363F3B013E021238375C01_) {
if (strlen(INSTALL_URL) < 5 || strlen(INSTALL_IP) < 8 || _obfuscated_0D0D243B0511092C0905182B315C3F160339240A060322_(INSTALL_URL, $_obfuscated_0D30082D1F16192612112E38363F3B013E021238375C01_) || _obfuscated_0D0D243B0511092C0905182B315C3F160339240A060322_(INSTALL_IP, $_obfuscated_0D30082D1F16192612112E38363F3B013E021238375C01_)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Sorry, I can not continue due a Critical Error. The error code is: SE1. Please contact us at <a href="https://templateshares.net/?u=" . urlencode(INSTALL_URL) . "&i=" . urlencode(INSTALL_IP) . "">https://templateshares.net/</a>.");
}
}
}
function _obfuscated_0D075B0F0C0D323F122329150C282C293B021415291032_()
{
if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/" . _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("NTR1NGs0ZzRtNXY1cDRoNDg0ZjVwNGI0") . "/" . SHORT_SCRIPT_VERSION . "/" . _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("ZzRpNDM0ZDR2NTA2YTR1Mmw0bTVsNA=="))) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Sorry, I can not continue due a Critical Error. The Error Code is: AL. Please contact us at <a href="https://templateshares.net/?u=" . urlencode(INSTALL_URL) . "&i=" . urlencode(INSTALL_IP) . "">https://templateshares.net/</a>.");
}
}
function _obfuscated_0D215B0C3C01070739080935401B140821243508393B01_()
{
if (!ini_get("allow_url_fopen") && (!function_exists("curl_init") || !($ch = curl_init()))) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("PHP allow_url_fopen or CURL Function must be turned on for this script to work!");
}
}
function check_license()
{
global $Sifrele;
global $__step;
$_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_ = "";
$_obfuscated_0D05181B0A26252E5B013D180A3C312B25133119061622_ = _obfuscated_0D400F233E342139212B262D1F2E153221311D3F332522_();
$_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_ = "";
$_obfuscated_0D08023319302629243D135B3D30251E120E0E32303B11_ = "0=1&1=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(INSTALL_URL) . "&2=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(INSTALL_IP) . "&3=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(SHORT_SCRIPT_VERSION);
$_obfuscated_0D191B1E212B050F0A131C1F031A0D010D2E173E140D32_ = _obfuscated_0D060901051D080201322C3B162A1A39232E0C2A051B22_($_obfuscated_0D08023319302629243D135B3D30251E120E0E32303B11_);
if ($_obfuscated_0D191B1E212B050F0A131C1F031A0D010D2E173E140D32_ && preg_match("#" . _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("djRwM2QzdjNxNHo0YzNoMzQ0dDRlM3ozZDVzM2czcDMxNTA1bzNwM3E0MjVuMm4ycTJ2Mzk2eTRqM3MzbzRqM2EzbzRkNW8zZDN1MzI0cjNkM3czazNyM3o0NDVlMzE1") . "#is", $_obfuscated_0D191B1E212B050F0A131C1F031A0D010D2E173E140D32_, $_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_)) {
$_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_ = strtoupper(trim($_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_[1]));
}
if (preg_match("#404 Not Found#isU", $_obfuscated_0D191B1E212B050F0A131C1F031A0D010D2E173E140D32_)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Server response failed. Please contact Administrator.");
}
if (!_obfuscated_0D103C24022F1C23352E0C2504282C2214284029253932_($_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_)) {
$_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_ = $_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_;
unset($_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_);
}
if (strtoupper($_SERVER["REQUEST_METHOD"]) == "POST" && isset($_POST["LICENSE_KEY"])) {
$_POST["LICENSE_KEY"] = trim(strtoupper($_POST["LICENSE_KEY"]));
if (empty($_POST["LICENSE_KEY"])) {
$_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_ = "License key can not be empty.";
} else {
if (!_obfuscated_0D103C24022F1C23352E0C2504282C2214284029253932_($_POST["LICENSE_KEY"])) {
$_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_ = "Invalid license key.";
} else {
$_obfuscated_0D0F031E0721355C0C082E3D3440260D0634122E271522_ = true;
}
}
unset($_SESSION["LICENSE_KEY"]);
$_SESSION["LICENSE_KEY"] = $_POST["LICENSE_KEY"];
}
if (isset($_SESSION["LICENSE_KEY"]) && !_obfuscated_0D103C24022F1C23352E0C2504282C2214284029253932_($_SESSION["LICENSE_KEY"])) {
unset($_SESSION["LICENSE_KEY"]);
}
if (empty($_SESSION["LICENSE_KEY"]) || empty($_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_) || $_SESSION["LICENSE_KEY"] != $_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_ || !_obfuscated_0D103C24022F1C23352E0C2504282C2214284029253932_($_SESSION["LICENSE_KEY"]) || !_obfuscated_0D103C24022F1C23352E0C2504282C2214284029253932_($_obfuscated_0D35232F383B040F330330361F3137030D0F322C3D1A11_)) {
if (isset($_obfuscated_0D0F031E0721355C0C082E3D3440260D0634122E271522_) && !$_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_) {
$_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_ = "The entered license key does not match.";
}
$_obfuscated_0D28051F3D023F16063E0111141A2E40112908161D1701_ = ($_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_ ? "<font color="red"><b>" . $_obfuscated_0D380337300C2E2C130E0108210A283F2B0A01022E2D32_ . "</b></font><br /><br />" : "") . "\r\n\t\t<form method="POST" action="" . $_SERVER["SCRIPT_NAME"] . "?step=" . $__step . "" name="LICENSE_KEY" onsubmit="document.LICENSE_KEY.submit.value='Checking the key...';document.LICENSE_KEY.submit.disabled=true;">\r\n\t\t<input type="hidden" name="step" value="" . $__step . "" />\r\n\t\tPlease enter your LICENSE KEY: <input type="text" name="LICENSE_KEY" size="60" />\r\n\t\t<input type="submit" name="submit" value="Confirm License Key" />\r\n\t\t</form>\r\n\t\t";
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, "\r\n\t\t" . $_obfuscated_0D28051F3D023F16063E0111141A2E40112908161D1701_ . "\r\n\t\t", "Validation");
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
exit;
}
if (substr(sprintf("%o", @fileperms(CACHED_ADMIN_FILE)), -4) != "0777") {
@chmod(CACHED_ADMIN_FILE, 511);
}
if (!file_put_contents(CACHED_ADMIN_FILE, md5(INSTALL_URL . $_SESSION["LICENSE_KEY"] . INSTALL_URL))) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(CACHED_ADMIN_FILE . " is not writable!");
}
}
function _obfuscated_0D2B32313201080B23120F2D2D091317331C3E402D0901_()
{
global $__step;
switch ($__step) {
case 0:
_obfuscated_0D192323110E3504131D190138092F070D0C160C183111_();
exit;
break;
case 1:
_obfuscated_0D282B2F041F1C5B25310E1C5B3225322F1E24012E1E01_();
exit;
break;
case 2:
_obfuscated_0D14132F170B2B3040371B120204162C1B1B5B03023301_();
exit;
break;
case 3:
_obfuscated_0D051D18030B3B2A2712383516045B17361C291B153F22_();
exit;
break;
case 4:
_obfuscated_0D2911172B28083E3B10324034240D170E12333E152201_();
exit;
break;
case 5:
_obfuscated_0D09062F1C160B01283B224012263D1E1F1D3011072332_();
exit;
break;
case 6:
_obfuscated_0D3B2113155C2B240B1D272F3037122D1C0C2C1E5C1A22_();
exit;
break;
case 7:
_obfuscated_0D263E2E235B24270B0A25391E0F27073B1E0F1F1A1101_();
exit;
break;
default:
_obfuscated_0D192323110E3504131D190138092F070D0C160C183111_();
exit;
}
}
function _obfuscated_0D060901051D080201322C3B162A1A39232E0C2A051B22_($__query = "")
{
$_obfuscated_0D1507331840050F3E0D21110423061635023F121E1032_ = _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("YzR0NGs0bzRmNDQ0czJ2NHM0MTZyMnE0ajVqNG40ZTRpNTE2YjRsNHA1YTRwNDY0cjQwNHI1dzVjNGs0");
$_obfuscated_0D332836264026231D381D37261A062B3C35291D342E11_ = _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("cjR3NG40dTIxNm01aTRvNGg0ZjVwNGI0eDVlNDg0azRtNTA2czJiNHY1ZjRtNA==");
$_obfuscated_0D26303C0B0D0D3C252F3F012C143409021634302F1C11_ = "/" . _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("NTR1NGs0ZzRtNXY1cDRoNDg0ZjVwNGI0") . "/" . SHORT_SCRIPT_VERSION . "/" . _obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("ZzRpNDM0ZDR2NTA2YTR1Mmw0bTVsNA==");
$_obfuscated_0D06243F3C0E143B1A061F06365C342706360C1E041911_ = "TssEv8.0070420201510A";
$_obfuscated_0D17232324301227332B5B062912142A13293C063C2D32_ = "TssEv8.0070420201510R";
$_obfuscated_0D2E080E35362C352B083E5C03163715122E4030221532_ = 15;
if (function_exists("curl_init") && ($ch = curl_init())) {
curl_setopt($ch, CURLOPT_URL, $_obfuscated_0D1507331840050F3E0D21110423061635023F121E1032_ . $_obfuscated_0D26303C0B0D0D3C252F3F012C143409021634302F1C11_);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $_obfuscated_0D2E080E35362C352B083E5C03163715122E4030221532_);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $_obfuscated_0D06243F3C0E143B1A061F06365C342706360C1E041911_);
curl_setopt($ch, CURLOPT_REFERER, $_obfuscated_0D17232324301227332B5B062912142A13293C063C2D32_);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $__query);
$_obfuscated_0D3F2326262D2A170A14033B06392D5C3D253101050A11_ = curl_exec($ch);
curl_close($ch);
return $_obfuscated_0D3F2326262D2A170A14033B06392D5C3D253101050A11_;
}
if ($_obfuscated_0D19283B30303B0A0D32073421082A2D25380E332D3F32_ = @fsockopen($_obfuscated_0D332836264026231D381D37261A062B3C35291D342E11_, 80, $_obfuscated_0D1B0F09023918103E3B35025C1130093E115C26343F11_, $_obfuscated_0D093526350E3C2D13160C1214011F2B18293D34280322_, $_obfuscated_0D2E080E35362C352B083E5C03163715122E4030221532_)) {
$_obfuscated_0D401113120B333323262C250F3D253925092E1B101411_ = "POST " . $_obfuscated_0D26303C0B0D0D3C252F3F012C143409021634302F1C11_ . " HTTP/1.0\r\n";
$_obfuscated_0D401113120B333323262C250F3D253925092E1B101411_ .= "Host: " . $_obfuscated_0D332836264026231D381D37261A062B3C35291D342E11_ . "\r\n";
$_obfuscated_0D401113120B333323262C250F3D253925092E1B101411_ .= "User-Agent: " . $_obfuscated_0D06243F3C0E143B1A061F06365C342706360C1E041911_ . "\r\n";
$_obfuscated_0D401113120B333323262C250F3D253925092E1B101411_ .= "Referer: " . $_obfuscated_0D17232324301227332B5B062912142A13293C063C2D32_ . "\r\n";
$_obfuscated_0D401113120B333323262C250F3D253925092E1B101411_ .= "Content-Type: application/x-www-form-urlencoded\r\n";
$_obfuscated_0D401113120B333323262C250F3D253925092E1B101411_ .= "Content-Length: " . strlen($__query) . "\r\n\r\n";
@socket_set_timeout($_obfuscated_0D19283B30303B0A0D32073421082A2D25380E332D3F32_, $_obfuscated_0D2E080E35362C352B083E5C03163715122E4030221532_);
@fwrite($_obfuscated_0D19283B30303B0A0D32073421082A2D25380E332D3F32_, $_obfuscated_0D401113120B333323262C250F3D253925092E1B101411_ . $__query);
$_obfuscated_0D3F2326262D2A170A14033B06392D5C3D253101050A11_ = "";
while (!@feof($_obfuscated_0D19283B30303B0A0D32073421082A2D25380E332D3F32_)) {
$_obfuscated_0D3F2326262D2A170A14033B06392D5C3D253101050A11_ .= @fgets($_obfuscated_0D19283B30303B0A0D32073421082A2D25380E332D3F32_, 1024);
}
@fclose($_obfuscated_0D19283B30303B0A0D32073421082A2D25380E332D3F32_);
return $_obfuscated_0D3F2326262D2A170A14033B06392D5C3D253101050A11_;
}
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("PHP allow_url_fopen or CURL Function must be turned on for this script to work!");
}
function _obfuscated_0D400F233E342139212B262D1F2E153221311D3F332522_()
{
require_once "./config.php";
if (USERNAME == "" || PASSWORD == "" || SECURITYKEY == "" || USERNAME == "Your_TS_Username_Goes_Here" || PASSWORD == "Your_TS_Password_Goes_Here" || SECURITYKEY == "Your_TS_Script_Security_Code_Goes_Here") {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Please open following file: <b>install/config.php</b> and enter/check your account details which you have registered on Templateshares.");
} else {
return "&U=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(USERNAME) . "&P=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(PASSWORD) . "&S=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(SECURITYKEY) . "&I=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_($_SERVER["REMOTE_ADDR"]);
}
}
function _obfuscated_0D103C24022F1C23352E0C2504282C2214284029253932_($installkey = "")
{
$_obfuscated_0D3B080B063D2B01242921161204152C0E1D3F34380611_ = "{########-####-####-####-############}";
$_obfuscated_0D3B080B063D2B01242921161204152C0E1D3F34380611_ = str_replace("#", "[0-9,A-F]", $_obfuscated_0D3B080B063D2B01242921161204152C0E1D3F34380611_);
if (@preg_match($_obfuscated_0D3B080B063D2B01242921161204152C0E1D3F34380611_, $installkey)) {
return true;
}
return false;
}
function _obfuscated_0D1133100E343106180A262F18282C0E330803070F0411_($length = 20)
{
$_obfuscated_0D052137041D1105365B34110A2D05023D061131323B22_ = "";
$_obfuscated_0D055B3F293C2E043C060B040F3804130B271305071F01_ = ["a", "A", "b", "B", "c", "C", "d", "D", "e", "E", "f", "F", "g", "G", "h", "H", "i", "I", "j", "J", "k", "K", "l", "L", "m", "M", "n", "N", "o", "O", "p", "P", "q", "Q", "r", "R", "s", "S", "t", "T", "u", "U", "v", "V", "w", "W", "x", "X", "y", "Y", "z", "Z", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
for ($i = 1; $i <= $length; $i++) {
$ch = rand(0, count($_obfuscated_0D055B3F293C2E043C060B040F3804130B271305071F01_) - 1);
$_obfuscated_0D052137041D1105365B34110A2D05023D061131323B22_ .= $_obfuscated_0D055B3F293C2E043C060B040F3804130B271305071F01_[$ch];
}
return $_obfuscated_0D052137041D1105365B34110A2D05023D061131323B22_;
}
function _obfuscated_021D22_()
{
return date("Y-m-d H:i:s");
}
function _obfuscated_0D16191B0F351C38383023240A06020D132C165B1B2232_($value)
{
if (@get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
return "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], $value) . "'";
}
function _obfuscated_0D293030053E5B073804252E37302D231B081831351C01_()
{
$db = _obfuscated_0D21102A0335113F0634231E010B222E32100E312A1B22_();
if (!empty($db)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(implode("<br />", $db) . "<br />There seems to be one or more errors with the database configuration information that you supplied. Click <a href="" . $_SERVER["SCRIPT_NAME"] . "?step=2">here</a> to to back step 2.");
}
$_obfuscated_0D3507162E1D15053C132D331833030B335B1511232432_ = _obfuscated_0D1133100E343106180A262F18282C0E330803070F0411_();
$_obfuscated_0D120516052B073E40131F0A0D3F262518131516053B11_ = "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], $_obfuscated_0D3507162E1D15053C132D331833030B335B1511232432_) . "'";
$username = "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], $_SESSION["username"]) . "'";
$_obfuscated_0D0C5B15042A1B5C17050B18172235230B2805163E1332_ = "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], md5($_obfuscated_0D3507162E1D15053C132D331833030B335B1511232432_ . $_SESSION["password"] . $_obfuscated_0D3507162E1D15053C132D331833030B335B1511232432_)) . "'";
$_obfuscated_0D042213130602280B210F40072D041E033429370B5B01_ = "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], $_SESSION["email"]) . "'";
$status = "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], "confirmed") . "'";
$_obfuscated_0D3016220836323D3F0E23311731390C37310735250232_ = "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], "8") . "'";
$_obfuscated_0D091D3D2B36225B3D10232F06380F3B1F5B23302D3522_ = "'" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], _obfuscated_0D1F22232C381B390830220F383D341626183E5C021D22_()) . "'";
mysqli_query($GLOBALS["DatabaseConnect"], "INSERT INTO users (username, passhash, secret, email, status, usergroup, added) VALUES (" . $username . ", " . $_obfuscated_0D0C5B15042A1B5C17050B18172235230B2805163E1332_ . ", " . $_obfuscated_0D120516052B073E40131F0A0D3F262518131516053B11_ . ", " . $_obfuscated_0D042213130602280B210F40072D041E033429370B5B01_ . ", " . $status . ", " . $_obfuscated_0D3016220836323D3F0E23311731390C37310735250232_ . ", " . $_obfuscated_0D091D3D2B36225B3D10232F06380F3B1F5B23302D3522_ . ")") || _obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(mysqli_errno($GLOBALS["DatabaseConnect"]) . " : " . mysqli_error($GLOBALS["DatabaseConnect"]));
$id = mysqli_insert_id($GLOBALS["DatabaseConnect"]);
$_obfuscated_0D281631220E2A022C3937321C161D392D0B2840370311_ = md5($_SESSION["SITENAME"]);
$_obfuscated_0D3018213915123D2B37030F2B01033D0E1225025C0632_ = md5(md5($_obfuscated_0D281631220E2A022C3937321C161D392D0B2840370311_) . md5($_SESSION["pincode"]));
mysqli_query($GLOBALS["DatabaseConnect"], "INSERT INTO pincode SET pincode = " . _obfuscated_0D16191B0F351C38383023240A06020D132C165B1B2232_($_obfuscated_0D3018213915123D2B37030F2B01033D0E1225025C0632_) . ", sechash = " . _obfuscated_0D16191B0F351C38383023240A06020D132C165B1B2232_($_obfuscated_0D281631220E2A022C3937321C161D392D0B2840370311_) . ", area = '2'");
$_obfuscated_0D5C160C3638155B0801121F10351930072812382E0A32_ = $_SESSION["username"] . ":" . $id;
mysqli_query($GLOBALS["DatabaseConnect"], "REPLACE INTO `ts_config` VALUES ("STAFFTEAM", "" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], $_obfuscated_0D5C160C3638155B0801121F10351930072812382E0A32_) . "")");
}
function _obfuscated_0D5B162A2D280637111D13290D2D1A3B27322138161932_()
{
if (substr(sprintf("%o", @fileperms(CACHED_TRACKER_FILE)), -4) != "0777") {
@chmod(CACHED_TRACKER_FILE, 511);
}
return file_put_contents(CACHED_TRACKER_FILE, sha1(md5(SCRIPT_VERSION . INSTALL_URL)));
}
function _obfuscated_2E063D072A2337033C0B22_($configname, $config)
{
$configname = strtoupper($configname);
$data = @serialize($config);
if (empty($data)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("I can't serialize the " . $configname . ".");
}
$_obfuscated_0D17283C0D1F0E102A053B1D0A3C1E114011121C2C2D22_ = mysqli_query($GLOBALS["DatabaseConnect"], "REPLACE INTO `ts_config` VALUES ("" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], $configname) . "", "" . mysqli_real_escape_string($GLOBALS["DatabaseConnect"], $data) . "")");
if (!$_obfuscated_0D17283C0D1F0E102A053B1D0A3C1E114011121C2C2D22_) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("I can't insert the " . $configname . " into database.");
}
return true;
}
function _obfuscated_0D072A1C1D0E5B1D3E2A1D0D252F1D0A060C3F140B2232_($file)
{
$file = strtolower(substr(strrchr($file, "."), 1));
return $file;
}
function _obfuscated_0D1A0D0B1F0A3D3907352D1B2E3D033206110417332601_($url)
{
return str_replace(["http://www.", "https://www.", "http://", "https://", "www."], "", $url);
}
function _obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_($message)
{
if (isset($_SESSION["LICENSE_KEY"])) {
unset($_SESSION["LICENSE_KEY"]);
}
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("A critical error has occured.", "<span style="color: darkred; font-weight: bold;">" . $message . "</span>");
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
exit;
}
function _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_($step, $message = "", $error = false)
{
return "<p><table width="100%" border="0" cellpadding="10" cellspacing="0" align="center"><tr><td class="subheader"><span style="float: right"><input type="button" value="NEXT" class="button" onclick="" . (!$error ? "this.disabled='disabled';this.value='loading next step..';window.location='" . $_SERVER["SCRIPT_NAME"] . "?step=" . $step . "'" : "alert('The installer has detected some problems, which will not allow " . SCRIPT_VERSION . " to operate correctly. Please correct these issues and then refresh the page.')") . ""></span>" . $message . "</td></tr></table></p>";
}
function _obfuscated_0D32130712161C18301A3807105B2315372F2B010D3D22_($message, $good)
{
if ($good) {
$_obfuscated_0D3F2B1F2728240F3F221F5B012635160F113B2F1D1411_ = _obfuscated_0D3934023904270E0E3F2D3D27313B1E0E060802281211_();
} else {
$_obfuscated_0D3F2B1F2728240F3F221F5B012635160F113B2F1D1411_ = _obfuscated_0D3C06190A07061B2D022D1211090A3105230A192F0E01_();
}
return "<tr><td width="85%" align="left">" . $message . "</td><td class="req" width="15%" align="center">" . $_obfuscated_0D3F2B1F2728240F3F221F5B012635160F113B2F1D1411_ . "</td></tr>";
}
function _obfuscated_0D2A030F193F39011F29271538193B35080C0331322E22_()
{
$_obfuscated_0D35132F0938020E252A101B3B102F322C1322063D2432_ = "";
$_obfuscated_0D1F373504350E2B140C5C0230260310091D12283D1522_ = "http" . ($_SERVER["HTTPS"] == "on" ? "s" : "") . "://" . (!empty($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : (!empty($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : "")) . ($_SERVER["SERVER_PORT"] ? ":" . $_SERVER["SERVER_PORT"] : "") . ($_SERVER["SCRIPT_NAME"] ? $_SERVER["SCRIPT_NAME"] : $_SERVER["PHP_SELF"]);
$_obfuscated_0D261A2D38101E1D315B2D2B300C041B3F060A180D2222_ = _obfuscated_0D2A0F04393D26312623242C2F35323D34221C24312922_();
$_obfuscated_0D12300306021B172F270F095C1211100323272A2E3C22_ = trim(@file_get_contents(ROOT_PATH . "version.txt"));
if ($_SERVER["SERVER_ADMIN"]) {
$_obfuscated_0D35132F0938020E252A101B3B102F322C1322063D2432_ .= "&SA=" . urlencode($_SERVER["SERVER_ADMIN"]);
}
if ($_SERVER["SERVER_SOFTWARE"]) {
$_obfuscated_0D35132F0938020E252A101B3B102F322C1322063D2432_ .= "&SS=" . urlencode($_SERVER["SERVER_SOFTWARE"]);
}
if ($_SERVER["HTTP_USER_AGENT"]) {
$_obfuscated_0D35132F0938020E252A101B3B102F322C1322063D2432_ .= "&UA=" . urlencode($_SERVER["HTTP_USER_AGENT"]);
}
if ($_SERVER["REMOTE_ADDR"]) {
$_obfuscated_0D35132F0938020E252A101B3B102F322C1322063D2432_ .= "&UI=" . urlencode($_SERVER["REMOTE_ADDR"]);
}
@file_get_contents(@_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("YzR0NGs0bzRmNDQ0czJzNGE0cjVsNGk0ZjVxNGM0bDRwNWk1bzQ3NDA2djJnNGY0ZTR0NTU0ajVyNHA0bjU2NGg0ejVuNWM0NTRsNDg0czI=") . SHORT_SCRIPT_VERSION . @_obfuscated_0D33150237031B271838253E113F5C2C24290237301911_("cjJpNGU0cjQxNmk1aDRrNDY0eTVlNGw0czVzMm40YTR4NWs0ajNyM2k0") . @urlencode($_obfuscated_0D1F373504350E2B140C5C0230260310091D12283D1522_) . "&IP=" . $_obfuscated_0D261A2D38101E1D315B2D2B300C041B3F060A180D2222_ . "&SK=" . @urlencode($_obfuscated_0D12300306021B172F270F095C1211100323272A2E3C22_) . $_obfuscated_0D35132F0938020E252A101B3B102F322C1322063D2432_);
}
function _obfuscated_0D163C2C1D0D30100434093221353D121D240C340E3601_($values)
{
foreach ($values as $_obfuscated_0D17073D17023924021C1130020D232615392123123322_ => $value) {
unset($_SESSION[$_obfuscated_0D17073D17023924021C1130020D232615392123123322_]);
$_SESSION[$_obfuscated_0D17073D17023924021C1130020D232615392123123322_] = $value;
}
}
function _obfuscated_0D21102A0335113F0634231E010B222E32100E312A1B22_()
{
$_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_ = [1 => "<li>Don't leave any fields blank in include/config_database.php!</li>", 2 => "<li>Could not connect to the database server at '" . (isset($_POST["mysql_host"]) ? htmlspecialchars(trim($_POST["mysql_host"])) : (isset($_SESSION["mysql_host"]) ? $_SESSION["mysql_host"] : "empty")) . "' with the supplied username and password.<br>Are you sure the hostname and user details are correct?</li>", 3 => "<li>Could not select the database '" . (isset($_POST["mysql_db"]) ? htmlspecialchars(trim($_POST["mysql_db"])) : (isset($_SESSION["mysql_db"]) ? $_SESSION["mysql_db"] : "empty")) . "'.<br>Are you sure it exists and the specified username and password have access to it?</li>", 4 => "<li>The passwords you entered do not match.</li>"];
$GLOBALS["DatabaseConnect"] = @mysqli_connect($_SESSION["mysql_host"], $_SESSION["mysql_user"], $_SESSION["mysql_pass"], $_SESSION["mysql_db"]);
if (!$GLOBALS["DatabaseConnect"]) {
$error[] = $_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_[2];
}
if (isset($error) && 0 < count($error)) {
return $error;
}
return NULL;
}
function _obfuscated_2D230436170B23131111_($message, $url, $wait = 3)
{
exit("\r\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\t<html lang="en">\r\n\t<head>\r\n\t<title>" . $message . "</title>\r\n\t<meta http-equiv="refresh" content="" . $wait . ";URL=" . $url . "">\r\n\t<link rel="stylesheet" href="templates/default/style/style.css" type="text/css" media="screen" />\r\n\t</head>\r\n\t<body>\r\n\t<br />\r\n\t<br />\r\n\t<br />\r\n\t<br />\r\n\t<div style="margin: auto auto; width: 50%" align="center">\r\n\t<table border="0" cellspacing="0" cellpadding="4" class="tborder">\r\n\t<tr>\r\n\t<td class="trow1" align="center"><p><font color="#000000">" . $message . "</font></p></td>\r\n\t</tr>\r\n\t<tr>\r\n\t<td class="trow2" align="right"><a href="" . $url . "">\r\n\t<span class="smalltext">Please click here if your browser does not automatically redirect you.</span></a></td>\r\n\t</tr>\r\n\t</table>\r\n\t</div>\r\n\t</body>\r\n\t</html>\r\n\t");
}
function _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_($title = "TS SE Installation Wizard", $content = "", $step = "")
{
return "\r\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r\n\t<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r\n\t\t<head>\r\n\t\t\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r\n\t\t\t<title>" . $title . "</title>\r\n\t\t\t<link rel="stylesheet" href="templates/default/style/style.css" type="text/css" media="screen" />\r\n\t\t</head>\r\n\t\t<body>\r\n\t\t\t<div class="content">\r\n\t\t\t\t<div id="top">\r\n\t\t\t\t\t<div style="float: left; padding: 5px 25px 0 25px; position:relative;" class="padding">" . date("F j, Y, g:i a") . "</div>\r\n\t\t\t\t\t<div class="padding" align="center">TS SE Installation Wizard v." . INSTALL_VERSION . "</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div id="header">\r\n\t\t\t\t</div>\r\n\t\t\t\t<div id="main">\r\n\t\t\t\t\t<div class="left_side">\r\n\t\t\t\t\t\t<table width="100%" border="0" cellpadding="5" cellspacing="0">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td class="thead" align="center"><font size="2"><b>" . $title . "</b></font></td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t\t\t" . ($content ? $content . "\r\n\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</table>" : "") . "\r\n\t";
}
function _obfuscated_103B0109133D081C0215110E221E1A0402350C2201_()
{
return "\r\n\t\t\t\t\t\t<br />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div id="footer">\r\n\t\t\t\t\t<div class="padding">Powered by <font color="white"><strong><a href="https://templateshares.net/?" . INSTALL_URL . "" target="_blank">" . SCRIPT_VERSION . "</a></strong></font> - Copyright © 2006-" . date("Y") . " Templateshares, All rights reserved.</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</body>\r\n\t</html>";
}
function _obfuscated_0D3C06190A07061B2D022D1211090A3105230A192F0E01_()
{
return "<img src="templates/default/images/error.gif" alt="NO" border="0" />";
}
function _obfuscated_0D3934023904270E0E3F2D3D27313B1E0E060802281211_()
{
return "<img src="templates/default/images/success.gif" alt="YES" border="0" />";
}
function _obfuscated_0D192323110E3504131D190138092F070D0C160C183111_()
{
$_obfuscated_0D232A0D270D0C1A1A02052D07030D012A151F030F1D32_ = "\r\n\tThis wizard will install and configure a copy of " . SCRIPT_VERSION . " on your server.\r\n\t<p>Now that you've uploaded the " . SCRIPT_VERSION . " files, the database and settings need to be created and imported. Below is an outline of what is going to be completed during installation.</p>\r\n\t<ul>\r\n\t<li>" . SCRIPT_VERSION . " requirements checked,</li>\r\n\t<li>Configuration of database engine,</li>\r\n\t<li>Creation of database tables,</li>\r\n\t<li>Popularite tables,</li>\r\n\t<li>Basic script settings configured,</li>\r\n\t<li>Creation of an administrator account to manage your script,</li>\r\n\t<li>Finishing Setup.</li>\r\n\t</ul>\r\n\tBefore we go any further, please ensure that all the files have been uploaded in binary mode, and that the folder "CACHE" has suitable permissions to allow this script to write to it (0777 should be sufficient).<br /><br />\r\n\r\n\t" . SCRIPT_VERSION . " requires PHP 5.2 or better and an MYSQL database.<br /><br />\r\n\r\n\t<b>You will also need the following information that your webhost can provide:</b><br />\r\n\t<ul>\r\n\t<li> Any linux (unix), windows webserver running Apache will work. IIS may work but is not recommended, some users might have trouble with file permissions when running IIS.</li>\r\n\t<li><b>The Apache webserver version 1.3 or greater.</b></li>\r\n\t<li><b>MYSQL 5.1 or greater.</b></li>\r\n\t<ul><li> Your MYSQL database name.</li></ul>\r\n\t<ul><li> Your MYSQL username.</li></ul>\r\n\t<ul><li> Your MYSQL password.</li></ul>\r\n\t<ul><li> Your MYSQL host address (usually localhost).</li></ul>\r\n\t<li><b>PHP version 5.2 or greater.</b></li>\r\n\t<ul><li>Ioncube Loader</li></ul>\r\n\t<ul><li>Session Support</li></ul>\r\n\t</ul>\r\n\t<div class=warnbox>Using this installer will delete any current " . SCRIPT_VERSION . " database if you are using the same table prefix.</div>\r\n\t<br />\r\n\tAfter each step has successfully been completed, click Next button to move on to the next step." . _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(1);
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, $_obfuscated_0D232A0D270D0C1A1A02052D07030D012A151F030F1D32_, "Welcome Screen");
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
}
function _obfuscated_0D282B2F041F1C5B25310E1C5B3225322F1E24012E1E01_()
{
_obfuscated_0D1F1E102C2930062B2D0E052F2D32222C1E3C0D152201_();
$_obfuscated_0D310E0F5B14222C3F331C3E0C362A252E1C1524121111_ = ["admin/backup", "cache", "include/avatars", "torrents", "torrents/images", "tsf_forums/uploads", "ts_albums/album_images", "ts_albums/album_thumbnails"];
$_obfuscated_0D3C330B03163E022110103D0F2E243F0A2D33113F2C11_ = ["include/config_announce.php", "shoutcast/cache.xml", "shoutcast/lps.dat"];
$_obfuscated_0D051B1E1C060D130621282F3835303B34131415345C01_ = false;
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ = "\r\n\tIn this step, the " . SCRIPT_VERSION . " installer will determine if your system meets the requirements for the server environment. To use " . SCRIPT_VERSION . ", you must have PHP with MySQL support and write-permissions on certain directories/files.<br /><br />";
$_obfuscated_0D5C1123043413091B08043421153D23231F02272C1A11_ = "";
$_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_ = 1;
$good = version_compare(PHP_VERSION, "5.4.0", "<") ? 0 : 1;
$_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_ = $_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_ && $good;
$_obfuscated_0D5C1123043413091B08043421153D23231F02272C1A11_ .= _obfuscated_0D32130712161C18301A3807105B2315372F2B010D3D22_("PHP version >= 5.4.0: ", $good);
$_SESSION["testing_string"] = "Just a Test!";
$good = $_SESSION["testing_string"] === "Just a Test!" ? 1 : 0;
$_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_ = $_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_ && $good;
$_obfuscated_0D5C1123043413091B08043421153D23231F02272C1A11_ .= _obfuscated_0D32130712161C18301A3807105B2315372F2B010D3D22_("PHP session support:", $good);
$good = function_exists("mysqli_connect") ? 1 : 0;
$_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_ = $_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_ && $good;
$_obfuscated_0D5C1123043413091B08043421153D23231F02272C1A11_ .= _obfuscated_0D32130712161C18301A3807105B2315372F2B010D3D22_("MySQLi support exists: ", $good);
if (!$_obfuscated_0D2124173540261515172F1D1A251C240C2C2301273611_) {
$_obfuscated_0D051B1E1C060D130621282F3835303B34131415345C01_ = true;
}
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t<table width="100%" border="0" cellpadding="4" cellspacing="0" align="center">\r\n\t\t<tr>\r\n\t\t\t<td class="thead" colspan="2" width="100%" align="left">Requirements Check</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class="subheader" width="75%" align="left">Function / Feature / Requirement</td>\r\n\t\t\t<td class="subheader" width="25%" align="center">Available</td>\r\n\t\t</tr>\r\n\t\t" . $_obfuscated_0D5C1123043413091B08043421153D23231F02272C1A11_ . "\r\n\t\t</table><br />";
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t<table width="100%" border="0" cellpadding="4" cellspacing="0" align="center">\r\n\t\t<tr>\r\n\t\t\t<td class="thead" colspan="2" width="100%" align="left">Checking Directory Chmod Permissions</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class="subheader" width="75%" align="left">Directory</td>\r\n\t\t\t<td class="subheader" width="25%" align="center">Writable</td>\r\n\t\t</tr>\r\n\t";
sort($_obfuscated_0D310E0F5B14222C3F331C3E0C362A252E1C1524121111_);
foreach ($_obfuscated_0D310E0F5B14222C3F331C3E0C362A252E1C1524121111_ as $_obfuscated_0D5C03110B0A2E0A35330B08233D18251E0F25313F2232_) {
$_obfuscated_0D36255C012834141B1B113C2F293B152B5C1D0D185C22_ = ROOT_PATH . $_obfuscated_0D5C03110B0A2E0A35330B08233D18251E0F25313F2232_;
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t\t<tr>\r\n\t\t\t<td width="85%" align="left">" . str_replace(ROOT_PATH, "", $_obfuscated_0D36255C012834141B1B113C2F293B152B5C1D0D185C22_) . "</td>";
if (!is_writable($_obfuscated_0D36255C012834141B1B113C2F293B152B5C1D0D185C22_) || !is_dir($_obfuscated_0D36255C012834141B1B113C2F293B152B5C1D0D185C22_)) {
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t\t\t<td align="center" width="15%">" . _obfuscated_0D3C06190A07061B2D022D1211090A3105230A192F0E01_() . "</td>\r\n\t\t</tr>";
$_obfuscated_0D051B1E1C060D130621282F3835303B34131415345C01_ = true;
} else {
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t\t\t<td align="center" width="15%">" . _obfuscated_0D3934023904270E0E3F2D3D27313B1E0E060802281211_() . "</td>\r\n\t\t</tr>";
}
}
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t</table><br />";
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t<table width="100%" border="0" cellpadding="4" cellspacing="0" align="center">\r\n\t\t<tr>\r\n\t\t\t<td class="thead" colspan="2" width="100%" align="left">Checking File Chmod Permissions</td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class="subheader" width="75%" align="left">File</td>\r\n\t\t\t<td class="subheader" width="25%" align="center">Writable</td>\r\n\t\t</tr>\r\n\t";
if ($handle = scandir(ROOT_PATH . "cache/")) {
foreach ($handle as $file) {
if ($file != "." && $file != ".." && $file != ".htaccess" && $file != "htaccess" && _obfuscated_0D072A1C1D0E5B1D3E2A1D0D252F1D0A060C3F140B2232_($file) != "html") {
array_push($_obfuscated_0D3C330B03163E022110103D0F2E243F0A2D33113F2C11_, "cache/" . $file);
}
}
}
sort($_obfuscated_0D3C330B03163E022110103D0F2E243F0A2D33113F2C11_);
foreach ($_obfuscated_0D3C330B03163E022110103D0F2E243F0A2D33113F2C11_ as $file) {
$_obfuscated_0D2930241A172D2B30015B1823161D5C242803321E2F01_ = ROOT_PATH . $file;
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t\t<tr>\r\n\t\t\t<td width="85%" align="left">" . str_replace(ROOT_PATH, "", $_obfuscated_0D2930241A172D2B30015B1823161D5C242803321E2F01_) . "</td>";
if (!is_writable($_obfuscated_0D2930241A172D2B30015B1823161D5C242803321E2F01_) || !is_file($_obfuscated_0D2930241A172D2B30015B1823161D5C242803321E2F01_)) {
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t\t\t<td align="center" width="15%">" . _obfuscated_0D3C06190A07061B2D022D1211090A3105230A192F0E01_() . "</td>\r\n\t\t</tr>";
$_obfuscated_0D051B1E1C060D130621282F3835303B34131415345C01_ = true;
} else {
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t\t\t<td align="center" width="15%">" . _obfuscated_0D3934023904270E0E3F2D3D27313B1E0E060802281211_() . "</td>\r\n\t\t</tr>";
}
}
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= "\r\n\t</table>";
if (!$_obfuscated_0D051B1E1C060D130621282F3835303B34131415345C01_) {
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(2, "Congratulations, no errors found!");
} else {
$_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ .= _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(2, "The installer has detected some problems with your server environment, which will not allow " . SCRIPT_VERSION . " to operate correctly. Please correct these issues and then refresh the page to re-check your environment.", true);
}
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, "\r\n\t" . $_obfuscated_0D01085B3B3E370A3528295C0A2B163733310D32080E11_ . "\r\n\t", "Requirements Check");
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
}
function _obfuscated_0D14132F170B2B3040371B120204162C1B1B5B03023301_()
{
require ROOT_PATH . "include/config_database.php";
$_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_ = [1 => "<li>Don't leave any fields blank in include/config_database.php!</li>", 2 => "<li>Could not connect to the database server at '" . MYSQL_HOST . "' with the supplied username and password.<br>Are you sure the hostname and user details are correct in include/config_database.php file?</li>", 3 => "<li>Could not select the database '" . MYSQL_DB . "'.<br>Are you sure it exists and the specified username and password have access to it?</li>", 4 => "<li>The passwords you entered do not match.</li>"];
if (MYSQL_HOST == "" || MYSQL_USER == "" || MYSQL_PASS == "" || MYSQL_DB == "") {
$_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_[] = $_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_[1];
}
$GLOBALS["DatabaseConnect"] = @mysqli_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
if (!$GLOBALS["DatabaseConnect"]) {
$_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_[] = $_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_[2];
}
if (!isset($_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_)) {
$values = ["mysql_host" => MYSQL_HOST, "mysql_user" => MYSQL_USER, "mysql_pass" => MYSQL_PASS, "mysql_db" => MYSQL_DB];
_obfuscated_0D163C2C1D0D30100434093221353D121D240C340E3601_($values);
$_obfuscated_0D153F010D2B1D27252E2B0D0403350A14322A12262832_ = _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("\r\n\t\t\tDatabase Confirmation", "Please check your Database details.\r\n\t\t\t<br /><br />\r\n\t\t\t<b>Database Host</b>: " . MYSQL_HOST . "<br />\r\n\t\t\t<b>Database Username</b>: " . MYSQL_USER . "<br />\r\n\t\t\t<b>Database Name</b>: " . MYSQL_DB . "<br />\r\n\t\t\t<b>Database Password</b>: <i>Hidden</i>" . _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(3, "If your Database details shown above are correct, click Next button to move on to the next step."));
$_obfuscated_0D153F010D2B1D27252E2B0D0403350A14322A12262832_ .= _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
exit($_obfuscated_0D153F010D2B1D27252E2B0D0403350A14322A12262832_);
}
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(implode("<br />", $_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_));
}
function _obfuscated_0D051D18030B3B2A2712383516045B17361C291B153F22_()
{
$db = _obfuscated_0D21102A0335113F0634231E010B222E32100E312A1B22_();
if (!empty($db)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(implode("<br />", $db) . "<br />There seems to be one or more errors with the database configuration information that you supplied. Click <a href="" . $_SERVER["SCRIPT_NAME"] . "?step=2">here</a> to to back step 2.");
}
$_obfuscated_0D192524065C031F3E2A34051C2E05333D2A0D01163601_ = "0=2&1=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(INSTALL_URL) . "&2=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(INSTALL_IP) . "&3=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(SHORT_SCRIPT_VERSION) . _obfuscated_0D400F233E342139212B262D1F2E153221311D3F332522_();
$_obfuscated_0D3E27311C212D373C030C1133400F183E065B09351311_ = _obfuscated_0D060901051D080201322C3B162A1A39232E0C2A051B22_($_obfuscated_0D192524065C031F3E2A34051C2E05333D2A0D01163601_);
if (preg_match("#INVALID USER ACCOUNT#", $_obfuscated_0D3E27311C212D373C030C1133400F183E065B09351311_)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("I am unable to confirm your Account in our database. This could be because of one of the following reasons. <ul><li>Are you sure that you have entered your Templateshares login details correctly into <b>config.php</b>?</li><li>Are you sure that you have a valid TS SE license to use this version?</li></ul>");
}
$_obfuscated_0D3E27311C212D373C030C1133400F183E065B09351311_ = @preg_match("#--BEGIN--(.*)--END--#is", $_obfuscated_0D3E27311C212D373C030C1133400F183E065B09351311_, $_obfuscated_0D27285C252F0C335B241F3C2D3E18315C1B1B160D0401_);
$_obfuscated_0D3E27311C212D373C030C1133400F183E065B09351311_ = @str_replace(["\n", "\r"], "", $_obfuscated_0D27285C252F0C335B241F3C2D3E18315C1B1B160D0401_[1]);
$_obfuscated_0D5B3D3C0A15171B23215B5C2E3B01112839233E0C0D22_ = @explode("[TABLE]", $_obfuscated_0D3E27311C212D373C030C1133400F183E065B09351311_);
if (count($_obfuscated_0D5B3D3C0A15171B23215B5C2E3B01112839233E0C0D22_) < 1) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Connection Error: ts_tables");
}
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, false, "Table Creation");
echo "<table border="0" align="center" cellpadding="4" class="okbox" width=100%>";
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
$count = 0;
$_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_ = false;
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
foreach ($_obfuscated_0D5B3D3C0A15171B23215B5C2E3B01112839233E0C0D22_ as $val) {
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
@preg_match("#CREATE TABLE (\\S+) \\(#i", $val, $_obfuscated_0D1403143D0C5C2216371E2925042C1F2E363F22025B32_);
if ($_obfuscated_0D1403143D0C5C2216371E2925042C1F2E363F22025B32_[1] && !$_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_) {
$count++;
@mysqli_query($GLOBALS["DatabaseConnect"], "DROP TABLE IF EXISTS " . $_obfuscated_0D1403143D0C5C2216371E2925042C1F2E363F22025B32_[1]);
echo "<tr><td align=right>(" . $count . ") Creating table:</td>\r\n\t\t\t<td align=left><strong>" . $_obfuscated_0D1403143D0C5C2216371E2925042C1F2E363F22025B32_[1] . "</strong> ";
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
}
@mysqli_query($GLOBALS["DatabaseConnect"], $val) || ($_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_ = true);
if ($_obfuscated_0D1403143D0C5C2216371E2925042C1F2E363F22025B32_[1] && !$_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_) {
echo _obfuscated_0D3934023904270E0E3F2D3D27313B1E0E060802281211_() . "</td></tr>\n";
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
}
if ($_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_) {
echo _obfuscated_0D3C06190A07061B2D022D1211090A3105230A192F0E01_() . "</td></tr>\r\n\t\t\t<tr><td colspan=3><p><div class=warnbox><strong>" . mysqli_errno($GLOBALS["DatabaseConnect"]) . " : " . mysqli_error($GLOBALS["DatabaseConnect"]) . "</td></tr>";
echo _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(3, "The installer has detected some problems with your server environment, which will not allow " . SCRIPT_VERSION . " to operate correctly. Please correct these issues and then refresh the page to re-check your environment.", true);
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
if (!$_obfuscated_0D0D103E3C085B0E1313182D2E13142E3F34023D235C11_) {
echo "</td></tr></table>\r\n\t\t" . _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(4, "All tables (" . $count . ") have been created, click Next to populate them.");
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
}
echo "</td></tr></table>";
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
}
}
}
function _obfuscated_0D2911172B28083E3B10324034240D170E12333E152201_()
{
$db = _obfuscated_0D21102A0335113F0634231E010B222E32100E312A1B22_();
if (!empty($db)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(implode("<br />", $db) . "<br />There seems to be one or more errors with the database configuration information that you supplied. Click <a href="" . $_SERVER["SCRIPT_NAME"] . "?step=2">here</a> to to back step 2.");
}
$_obfuscated_0D2D0D192B0112402B0A0B3B0114161E2E2F1E043E2C22_ = "0=3&1=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(INSTALL_URL) . "&2=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(INSTALL_IP) . "&3=" . _obfuscated_0D11212121213E1B2B02301036125C3126151F39340701_(SHORT_SCRIPT_VERSION) . _obfuscated_0D400F233E342139212B262D1F2E153221311D3F332522_();
$_obfuscated_0D0D072D12340B2A3F5B01193D100102130D3817050501_ = _obfuscated_0D060901051D080201322C3B162A1A39232E0C2A051B22_($_obfuscated_0D2D0D192B0112402B0A0B3B0114161E2E2F1E043E2C22_);
if (preg_match("#INVALID USER ACCOUNT#", $_obfuscated_0D0D072D12340B2A3F5B01193D100102130D3817050501_)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("I am unable to confirm your Account in our database. This could be because of one of the following reasons. <ul><li>Are you sure that you have entered your Templateshares login details correctly into <b>config.php</b>?</li><li>Are you sure that you have a valid TS SE license to use this version?</li></ul>");
}
$_obfuscated_0D0D072D12340B2A3F5B01193D100102130D3817050501_ = @preg_match("#--BEGIN--(.*)--END--#is", $_obfuscated_0D0D072D12340B2A3F5B01193D100102130D3817050501_, $_obfuscated_0D5B261C1C1221161D2E141B182A0B1D1E021A36222A01_);
$_obfuscated_0D0D072D12340B2A3F5B01193D100102130D3817050501_ = @str_replace(["\n", "\r"], "", $_obfuscated_0D5B261C1C1221161D2E141B182A0B1D1E021A36222A01_[1]);
$_obfuscated_0D36110105324008182419311816211F0A0C01312A2501_ = @explode("[TABLE]", $_obfuscated_0D0D072D12340B2A3F5B01193D100102130D3817050501_);
if (count($_obfuscated_0D36110105324008182419311816211F0A0C01312A2501_) < 1) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Connection Error: ts_tables2");
}
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, false, "Populate Tables");
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
$_obfuscated_0D2C121F130B28331334333E36132C0733332F195C0A11_ = false;
$_obfuscated_0D400D1139025B1308335C29183125382C38061A175B32_ = [];
foreach ($_obfuscated_0D36110105324008182419311816211F0A0C01312A2501_ as $_obfuscated_0D3902293508370E370D3C371B5C2D1B0D172437220832_) {
if (!mysqli_query($GLOBALS["DatabaseConnect"], $_obfuscated_0D3902293508370E370D3C371B5C2D1B0D172437220832_)) {
$_obfuscated_0D400D1139025B1308335C29183125382C38061A175B32_[] = $_obfuscated_0D3902293508370E370D3C371B5C2D1B0D172437220832_;
$_obfuscated_0D2C121F130B28331334333E36132C0733332F195C0A11_ = true;
if (!$_obfuscated_0D2C121F130B28331334333E36132C0733332F195C0A11_) {
echo _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(5, "The default data has successfully been inserted into the database.");
echo "</td></tr></table>";
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
} else {
echo "<span style="color:red;"><b>Mysql Error: " . mysqli_errno($GLOBALS["DatabaseConnect"]) . " : " . mysqli_error($GLOBALS["DatabaseConnect"]) . "</b></span><br /><br />" . htmlspecialchars(implode("<br />", $_obfuscated_0D400D1139025B1308335C29183125382C38061A175B32_));
echo _obfuscated_0D0805330C160E2F0C32243E251A210105013616041832_(3, "The installer has detected some problems with your server environment, which will not allow " . SCRIPT_VERSION . " to operate correctly. Please correct these issues and then refresh the page to re-check your environment. Click <a href="" . $_SERVER["SCRIPT_NAME"] . "?step=3">here</a> to to back step 3.", true);
echo "</td></tr></table>";
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
_obfuscated_0D191527132F1E3B362F281B0F3D360335363E30072722_();
}
}
}
}
function _obfuscated_0D09062F1C160B01283B224012263D1E1F1D3011072332_()
{
$db = _obfuscated_0D21102A0335113F0634231E010B222E32100E312A1B22_();
if (!empty($db)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(implode("<br />", $db));
}
$_obfuscated_0D013B1F053F04040108022F01320625022D2D22331E32_ = "";
$_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_ = [1 => "<li>Don't leave any fields blank!</li>", 2 => "<li>Could not connect to the database server at '" . (isset($_POST["mysql_host"]) ? htmlspecialchars(trim($_POST["mysql_host"])) : (isset($_SESSION["mysql_host"]) ? $_SESSION["mysql_host"] : "empty")) . "' with the supplied username and password.<br>Are you sure the hostname and user details are correct?</li>", 3 => "<li>Could not select the database '" . (isset($_POST["mysql_db"]) ? htmlspecialchars(trim($_POST["mysql_db"])) : (isset($_SESSION["mysql_db"]) ? $_SESSION["mysql_db"] : "empty")) . "'.<br>Are you sure it exists and the specified username and password have access to it?</li>", 4 => "<li>The passwords you entered do not match.</li>"];
if (strtoupper($_SERVER["REQUEST_METHOD"]) == "POST") {
$_obfuscated_0D193E391421400E190411291F0A063B211501222A2111_ = htmlspecialchars(trim($_POST["tracker_name"]));
$_obfuscated_0D0E3E22042C24140A5C3C06060F2D291B1C09081F5C11_ = htmlspecialchars(trim($_POST["tracker_url"]));
$_obfuscated_0D02121D1B0F1B2F0A01021E1A1923232903320E353501_ = htmlspecialchars(trim($_POST["announce_url"]));
$_obfuscated_0D071C1D302F32225B24290E340B3E21250A24272C2B11_ = htmlspecialchars(trim($_POST["contact_email"]));
if (empty($_obfuscated_0D193E391421400E190411291F0A063B211501222A2111_) || empty($_obfuscated_0D0E3E22042C24140A5C3C06060F2D291B1C09081F5C11_) || empty($_obfuscated_0D02121D1B0F1B2F0A01021E1A1923232903320E353501_) || empty($_obfuscated_0D071C1D302F32225B24290E340B3E21250A24272C2B11_)) {
$error[] = $_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_[1];
}
if (0 < count($error)) {
foreach ($error as $_obfuscated_0D392927120F082F2F110E05130625143F06302C3C2822_) {
$_obfuscated_0D013B1F053F04040108022F01320625022D2D22331E32_ .= $_obfuscated_0D392927120F082F2F110E05130625143F06302C3C2822_;
}
} else {
$values = ["SITENAME" => $_obfuscated_0D193E391421400E190411291F0A063B211501222A2111_, "BASEURL" => $_obfuscated_0D0E3E22042C24140A5C3C06060F2D291B1C09081F5C11_, "announce_urls" => $_obfuscated_0D02121D1B0F1B2F0A01021E1A1923232903320E353501_, "SITEEMAIL" => $_obfuscated_0D071C1D302F32225B24290E340B3E21250A24272C2B11_];
_obfuscated_0D163C2C1D0D30100434093221353D121D240C340E3601_($values);
$_obfuscated_0D030232402B0E220F1926191539323231042F265B0701_ = mysqli_query($GLOBALS["DatabaseConnect"], "SELECT `content` FROM `ts_config` WHERE configname = "MAIN"");
$_obfuscated_0D283B0E113E2F02241422111F0A32360C1E173C182C01_ = mysqli_fetch_assoc($_obfuscated_0D030232402B0E220F1926191539323231042F265B0701_);
$_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_ = @unserialize($_obfuscated_0D283B0E113E2F02241422111F0A32360C1E173C182C01_["content"]);
$_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_["BASEURL"] = $_SESSION["BASEURL"];
$_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_["SITENAME"] = $_SESSION["SITENAME"];
$_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_["announce_urls"] = $_SESSION["announce_urls"];
$_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_["SITEEMAIL"] = $_SESSION["SITEEMAIL"];
$_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_["contactemail"] = $_SESSION["SITEEMAIL"];
$_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_["pic_base_url"] = $_SESSION["BASEURL"] . "/images/";
_obfuscated_0D2B5B303321181E3C090C5C2E063D072A2337033C0B22_("MAIN", $_obfuscated_0D0F4037090A060B0E2E1A1A3E0D051003122538362432_);
$_obfuscated_0D32161F151E273238075C3D15181B150A021A3D2D2432_ = file_get_contents(ROOT_PATH . "cache/menu_english.php");
$_obfuscated_0D0203153D150A0E3B1E40172E3D3213352F1535133722_ = str_replace("http://tstestsite.com", $_SESSION["BASEURL"], $_obfuscated_0D32161F151E273238075C3D15181B150A021A3D2D2432_);
file_put_contents(ROOT_PATH . "cache/menu_english.php", $_obfuscated_0D0203153D150A0E3B1E40172E3D3213352F1535133722_);
_obfuscated_0D241101392A1B113640132C5C2D230436170B23131111_("Basic Tracker Settings has been saved successfully.", $_SERVER["SCRIPT_NAME"] . "?step=6");
}
}
$_obfuscated_0D013B1F053F04040108022F01320625022D2D22331E32_ .= "\r\n\t\t<form method="post" action="" . $_SERVER["SCRIPT_NAME"] . "?step=5" name="save_settings" id="save_settings">\r\n\t\t<input type="hidden" name="step" value="5" />\r\n\t\t<table border="0" width="100%" align="left" cellpadding="4">\r\n\t\t<thead>\r\n\t\t <tr>\r\n\t\t <td align="right" class="subheader"><div align="right">Tracker Name: </div></td>\r\n\t\t <td><input name="tracker_name" id="input" type="text" value="" . (isset($_POST["tracker_name"]) ? htmlspecialchars($_POST["tracker_name"]) : INSTALL_URL) . "" onblur="if (this.value == '') this.value = '" . INSTALL_URL . "';" onfocus="if (this.value == '" . INSTALL_URL . "') this.value = '';" size="50"></td></tr>\r\n\t\t <tr>\r\n\t\t <td align="right" class="subheader"><div align="right">Tracker URL: </div></td>\r\n\t\t <td><input name="tracker_url" id="input" type="text" value="" . (isset($_POST["tracker_url"]) ? htmlspecialchars($_POST["tracker_url"]) : "http://" . INSTALL_URL) . "" onblur="if (this.value == '') this.value = 'http://" . INSTALL_URL . "';" onfocus="if (this.value == 'http://" . INSTALL_URL . "') this.value = '';" size="50"></td></tr>\r\n\t\t <tr>\r\n\t\t <td align="right" class="subheader"><div align="right">Announce URL: </div></td>\r\n\t\t <td><input name="announce_url" id="input" type="text" value="" . (isset($_POST["announce_url"]) ? htmlspecialchars($_POST["announce_url"]) : "http://" . INSTALL_URL . "/announce.php") . "" onblur="if (this.value == '') this.value = 'http://" . INSTALL_URL . "/announce.php';" onfocus="if (this.value == 'http://" . INSTALL_URL . "/announce.php') this.value = '';" size="50"></td></tr>\r\n\t\t <tr>\r\n\t\t <td align="right" class="subheader"><div align="right">Contact Email: </div></td>\r\n\t\t <td><input name="contact_email" id="input" type="text" value="" . (isset($_POST["contact_email"]) ? htmlspecialchars($_POST["contact_email"]) : "contact@" . INSTALL_URL . "") . "" onblur="if (this.value == '') this.value = 'contact@" . INSTALL_URL . "';" onfocus="if (this.value == 'contact@" . INSTALL_URL . "') this.value = '';" size="50"></td></tr>\r\n\t\t<tr>\r\n\t\t <td align="right" colspan="2">\r\n\t\t\t<table width="100%" border="0" cellpadding="4" cellspacing="0" align="center"><tr><td class="subheader"><span style="float: right"><input type="submit" value="NEXT" class="button" /></td></tr></table>\r\n\t\t </td>\r\n\t\t </tr>\r\n\t\t </form>\r\n\t\t </table>";
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, "\r\n\t" . $_obfuscated_0D013B1F053F04040108022F01320625022D2D22331E32_ . "\r\n\t", "Basic Tracker Configuration");
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
}
function _obfuscated_1A22_()
{
$db = _obfuscated_0D21102A0335113F0634231E010B222E32100E312A1B22_();
if (!empty($db)) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_(implode("<br>", $db));
}
$_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_ = [1 => "<li>Don't leave any fields blank!</li>", 2 => "<li>Could not connect to the database server at '" . (isset($_POST["mysql_host"]) ? htmlspecialchars(trim($_POST["mysql_host"])) : (isset($_SESSION["mysql_host"]) ? $_SESSION["mysql_host"] : "empty")) . "' with the supplied username and password.<br>Are you sure the hostname and user details are correct?</li>", 3 => "<li>Could not select the database '" . (isset($_POST["mysql_db"]) ? htmlspecialchars(trim($_POST["mysql_db"])) : (isset($_SESSION["mysql_db"]) ? $_SESSION["mysql_db"] : "empty")) . "'.<br>Are you sure it exists and the specified username and password have access to it?</li>", 4 => "<li>The passwords you entered do not match.</li>"];
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ = "";
if (strtoupper($_SERVER["REQUEST_METHOD"]) == "POST") {
$username = htmlspecialchars(trim($_POST["username"]));
$_obfuscated_0D063F051713342D19103C3108241C260D272116193D32_ = trim($_POST["password"]);
$_obfuscated_0D3727023C353F074034181C38162D2F051C2A21101C01_ = trim($_POST["password2"]);
$_obfuscated_0D3018213915123D2B37030F2B01033D0E1225025C0632_ = trim($_POST["pincode"]);
$_obfuscated_0D042213130602280B210F40072D041E033429370B5B01_ = htmlspecialchars(trim($_POST["email"]));
if (empty($username) || empty($_obfuscated_0D063F051713342D19103C3108241C260D272116193D32_) || empty($_obfuscated_0D3727023C353F074034181C38162D2F051C2A21101C01_) || empty($_obfuscated_0D3018213915123D2B37030F2B01033D0E1225025C0632_) || empty($_obfuscated_0D042213130602280B210F40072D041E033429370B5B01_)) {
$error[] = $_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_[1];
}
if ($_obfuscated_0D063F051713342D19103C3108241C260D272116193D32_ != $_obfuscated_0D3727023C353F074034181C38162D2F051C2A21101C01_) {
$error[] = $_obfuscated_0D0802190A3604250C1C033F400C0D3514262A3C1D1811_[4];
}
if (0 < count($error)) {
foreach ($error as $_obfuscated_0D392927120F082F2F110E05130625143F06302C3C2822_) {
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= $_obfuscated_0D392927120F082F2F110E05130625143F06302C3C2822_;
}
} else {
$values = ["username" => $username, "password" => $_obfuscated_0D063F051713342D19103C3108241C260D272116193D32_, "pincode" => $_obfuscated_0D3018213915123D2B37030F2B01033D0E1225025C0632_, "email" => $_obfuscated_0D042213130602280B210F40072D041E033429370B5B01_];
_obfuscated_0D163C2C1D0D30100434093221353D121D240C340E3601_($values);
_obfuscated_0D293030053E5B073804252E37302D231B081831351C01_();
_obfuscated_0D241101392A1B113640132C5C2D230436170B23131111_("Administrator Account has been saved successfully.", $_SERVER["SCRIPT_NAME"] . "?step=7");
}
}
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= "\r\n\t<form method="post" action="" . $_SERVER["SCRIPT_NAME"] . "?step=6" name="save_admin" id="save_admin">\r\n\t<input type="hidden" name="step" value="6" />\r\n\t<table border="0" width="100%" align="left" cellpadding="4">\r\n\t";
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= "\r\n\t <tr>\r\n\t <td align="right" class="subheader"><div align="right">Username: </div></td>\r\n\t <td><input name="username" id="input" type="text" value="" . (isset($_POST["username"]) ? htmlspecialchars($_POST["username"]) : "admin") . "" onblur="if (this.value == '') this.value = 'Admin';" onfocus="if (this.value == 'Admin') this.value = '';" size="50"></td></tr>";
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= "\r\n\t <tr>\r\n\t <td align="right" class="subheader"><div align="right">Password: </div></td>\r\n\t <td><input name="password" id="input" type="password" value="" size="50"></td></tr>";
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= "\r\n\t <tr>\r\n\t <td align="right" class="subheader"><div align="right">Re-Type Password: </div></td>\r\n\t <td><input name="password2" id="input" type="password" value="" size="50"></td></tr>";
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= "\r\n\t <tr>\r\n\t <td align="right" class="subheader"><div align="right">Pincode: </div></td>\r\n\t <td><input name="pincode" id="input" type="password" value="" size="50"></td></tr>";
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= "\r\n\t <tr>\r\n\t <td align="right" class="subheader"><div align="right">Email Address: </div></td>\r\n\t <td><input name="email" id="input" type="text" value="" . (isset($_POST["email"]) ? htmlspecialchars($_POST["email"]) : "") . "" size="50"></td></tr>";
$_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ .= "\r\n\t<tr>\r\n\t <td align="right" colspan="2">\r\n\t <table width="100%" border="0" cellpadding="4" cellspacing="0" align="center"><tr><td class="subheader"><span style="float: right"><input type="submit" value="NEXT" class="button" /></td></tr></table>\r\n\t </td></tr>\r\n\t </form></table>";
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, "\r\n\t" . $_obfuscated_0D24082B35331C06320719370A2607072A183711371232_ . "\r\n\t", "Administrator Setup");
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
}
function _obfuscated_0D263E2E235B24270B0A25391E0F27073B1E0F1F1A1101_()
{
if (!_obfuscated_0D5B162A2D280637111D13290D2D1A3B27322138161932_()) {
_obfuscated_0D222B170D3110372413011630170D2A0E2D0F1D2C2922_("Please chmod 0777 to the following file and refresh the page: " . CACHED_TRACKER_FILE);
}
$_obfuscated_0D1B040E38063C3111160B050D2C012D1D320E2B1E0211_ = SCRIPT_VERSION . " has successfully been installed and configured correctly. The Template Shares Group thanks you for your support and we hope to see you around the community forums if you need help or wish to become a part of the TS community. <br><br><div class=warnbox>After a successful login, please goto staff panel and configurate your tracker otherwise TS SE won't work correctly! <br><br>Click <a href="./../index.php">here</a> to login.<br><br>DO NOT FORGET TO DELETE INSTALL FOLDER !!!";
echo _obfuscated_0D23162216172F16332C253206115B14270F1B37101F11_("Welcome to the installation wizard for " . SCRIPT_VERSION, "\r\n\t" . $_obfuscated_0D1B040E38063C3111160B050D2C012D1D320E2B1E0211_ . "\r\n\t", "Finish Setup");
echo _obfuscated_0D5C103B0109133D081C0215110E221E1A0402350C2201_();
@_obfuscated_0D2A030F193F39011F29271538193B35080C0331322E22_();
}
function _obfuscated_3126151F39340701_($data)
{
global $Sifrele;
return $Sifrele->_obfuscated_FFAD8BA18BB199B684989BA99BB59CA593B6A5B99FB0A1_($data);
}
function _obfuscated_0D381D2C1D280F3C250E10071E0D3637072C3438210511_($string, $key = "1231231231231235555gfdgfd322332323")
{
$hash = "";
$key = sha1($key);
$_obfuscated_0D380F18170A2C3B023F2504403F0C30211D36223E3E01_ = strlen($string);
$_obfuscated_0D39125C23103E37300B01123007260C2B3C1C24080F11_ = strlen($key);
$j = 0;
for ($i = 0; $i < $_obfuscated_0D380F18170A2C3B023F2504403F0C30211D36223E3E01_; $i++) {
$_obfuscated_0D31011F1A1F0A1E40080D35332D213423113814213D01_ = ord(substr($string, $i, 1));
if ($j == $_obfuscated_0D39125C23103E37300B01123007260C2B3C1C24080F11_) {
$j = 0;
}
$_obfuscated_0D06300B35103C2B3C5C2E40361540312E5C1F3D145B32_ = ord(substr($key, $j, 1));
$j++;
$hash .= strrev(base_convert(dechex($_obfuscated_0D31011F1A1F0A1E40080D35332D213423113814213D01_ + $_obfuscated_0D06300B35103C2B3C5C2E40361540312E5C1F3D145B32_), 16, 36));
}
return base64_encode($hash);
}
function _obfuscated_2C24290237301911_($string, $key = "1231231231231235555gfdgfd322332323")
{
$string = base64_decode($string);
$hash = "";
$key = sha1($key);
$_obfuscated_0D380F18170A2C3B023F2504403F0C30211D36223E3E01_ = strlen($string);
$_obfuscated_0D39125C23103E37300B01123007260C2B3C1C24080F11_ = strlen($key);
$j = 0;
$i = 0;
while ($i < $_obfuscated_0D380F18170A2C3B023F2504403F0C30211D36223E3E01_) {
$_obfuscated_0D31011F1A1F0A1E40080D35332D213423113814213D01_ = hexdec(base_convert(strrev(substr($string, $i, 2)), 36, 16));
if ($j == $_obfuscated_0D39125C23103E37300B01123007260C2B3C1C24080F11_) {
$j = 0;
}
$_obfuscated_0D06300B35103C2B3C5C2E40361540312E5C1F3D145B32_ = ord(substr($key, $j, 1));
$j++;
$hash .= chr($_obfuscated_0D31011F1A1F0A1E40080D35332D213423113814213D01_ - $_obfuscated_0D06300B35103C2B3C5C2E40361540312E5C1F3D145B32_);
$i += 2;
}
return $hash;
}
function _obfuscated_0D1B191D081F261B3506222A3D2413161D341916380932_()
{
echo str_repeat(" ", 256);
if (ob_get_length()) {
@ob_flush();
@flush();
@ob_end_flush();
}
@ob_start();
}
?>