2023-03-04 23:45:46 +00:00
|
|
|
<?php
|
2023-11-12 18:12:42 +00:00
|
|
|
if (!DEFINED('EGP'))
|
|
|
|
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-12 18:12:42 +00:00
|
|
|
// Проверка на авторизацию
|
|
|
|
sys::noauth();
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-12 18:12:42 +00:00
|
|
|
if (isset($url['key']) && isset($url['sum']))
|
|
|
|
sys::out(md5($cfg['freekassa_id'] . ':' . intval($url['sum']) . ':' . $cfg['freekassa_key_1'] . ':1'));
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-12 18:12:42 +00:00
|
|
|
// Генерация списка операций
|
|
|
|
$qLog = $sql->query('SELECT `text`, `date` FROM `logs` WHERE `user`="' . $user['id'] . '" AND `type`="replenish" ORDER BY `id` DESC LIMIT 10');
|
|
|
|
while ($aLog = $sql->get($qLog)) {
|
|
|
|
$html->get('replenish', 'sections/user/lk/logs');
|
|
|
|
$html->set('text', $aLog['text']);
|
|
|
|
$html->set('date', sys::today($aLog['date'], true));
|
|
|
|
$html->pack('logs');
|
|
|
|
}
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-12 18:12:42 +00:00
|
|
|
$html->get('replenish', 'sections/user');
|
|
|
|
$html->set('id', $user['id']);
|
|
|
|
$html->set('wmr', $cfg['webmoney_wmr']);
|
|
|
|
$html->set('freekassa', $cfg['freekassa_id']);
|
|
|
|
$html->set('balance', round($user['balance'], 2));
|
|
|
|
$html->set('cur', $cfg['currency']);
|
|
|
|
$html->set('logs', isset($html->arr['logs']) ? $html->arr['logs'] : 'Нет логов операций', true);
|
|
|
|
$html->pack('main');
|
2023-03-04 23:45:46 +00:00
|
|
|
?>
|