game/mailconf.php

43 lines
1.9 KiB
PHP
Raw Normal View History

2022-12-19 18:26:14 +00:00
<?php
2022-12-30 19:03:37 +00:00
use Core\Db;
2022-06-06 21:30:34 +00:00
2022-12-19 18:26:14 +00:00
const GAME = true;
require_once('_incl_data/__config.php');
require_once('_incl_data/class/__db_connect.php');
define('IP', UserIp::get());
2022-06-06 21:30:34 +00:00
2022-12-19 18:26:14 +00:00
if (isset($_GET['mail'])) {
$key = md5('mailconf*15+' . $_GET['mail']);
if ($_GET['key'] != $key) {
echo '<27><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> E-mail: admin@new-combats.com';
} elseif (isset($_GET['cancel'])) {
//<2F><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
echo '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>.<2E><><EFBFBD><EFBFBD><EFBFBD>: <b>' . $_GET['mail'] . '</b>.';
} else {
//
$mcf = Db::getRow('select * from mini_actions where var = ?', [$_GET['mail']]);
$user = Db::getRow('select * from users where id = ?', [$mcf['uid']]);
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
if (!isset($user['id'])) {
echo '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <b>' . $_GET['mail'] . '</b> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
} else {
$bank = Db::getRow('select * from bank where uid = (select uid from mini_actions where var = ?) order by id desc limit 1', [$_GET['mail']]);
if ($mcf['ok'] > 0) {
echo '<27><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> E-mail <20><><EFBFBD><EFBFBD><EFBFBD>! <b>' . date('d.m.Y H:i:s', $mcf['ok']) . '</b>';
} elseif (!isset($bank['id'])) {
echo '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> 1 <20><><EFBFBD>.';
} else {
Db::sql('update mini_actions set ok = unix_timestamp() where id = ?', [$mcf['id']]);
Db::sql('update bank set money2 = money2 + 1 where id = ?', [$bank['id']]);
echo '<27><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>.<2E><><EFBFBD><EFBFBD><EFBFBD> <b>' . $_GET['mail'] . '</b>, <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <b>' . $user['login'] . '</b> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 <20><><EFBFBD>.';
}
}
}
} else {
echo 'E-mail <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.';
2022-06-06 21:30:34 +00:00
}
echo '<br><br>- - - - - - -<br><br><3E> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<br><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> &copy; <a href="https://new-combats.com/">new-combats.com</a>';