ПРОБЛЕМА Не входит в аккаунт

Статус
Закрыто для дальнейших ответов.

Pluginshik

Участник
Всем здравия и доброго времени суток,в скрипте такая проблема,при попытке войти в аккаунт все без ошибок проходит но чтобы перенаправить в /profile перенаправляет на главную в аккаунт не заходит что может быть не так?
 

Pluginshik

Участник
PHP:
<?PHP
$_OPTIMIZATION["title"] = "Вход в аккаунт";
$_OPTIMIZATION["description"] = "Авторизация пользователя в системе";
$_OPTIMIZATION["keywords"] = "Авторизация пользователя в системе";

?>
<!DOCTYPE html>
<html lang=ru>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Вход в аккаунт в проекте Angry Birds">
    <title>Angry Birds - Вход в аккаунт</title>

    <!-- Site Icons -->
    <link rel="apple-touch-icon" href="user/dist/img/apple-touch-icon.png">
    <link rel="icon" href="user/dist/img/icon.ico">

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|PT+Sans+Caption" rel="stylesheet">

    <!-- Framework -->
    <link rel="stylesheet" href="user/dist/css/vendor/bootstrap.min.css">

    <!-- Icon Fonts -->
    <link rel="stylesheet" href="user/dist/icons/entypo/entypo.min.css">
    <link rel="stylesheet" href="user/dist/icons/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="user/dist/icons/flag-icon/css/flag-icon.min.css">
    <link rel="stylesheet" href="user/dist/icons/material-icon/material-icon.min.css">
    <link rel="stylesheet" href="user/dist/icons/weather-icon/css/weather-icons.min.css">

    <!-- Plugins -->
    <link rel="stylesheet" href="user/dist/plugins/bootstrap-sweetalert/sweet-alert.css">
    <link rel="stylesheet" href="user/dist/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css">
    <link rel="stylesheet" href="user/dist/plugins/datatable/datatables.min.css">
    <link rel="stylesheet" href="user/dist/plugins/datepicker/css/datepicker.min.css">
    <link rel="stylesheet" href="user/dist/plugins/medium-editor/css/medium-editor.min.css">
    <link rel="stylesheet" href="user/dist/plugins/medium-editor/css/themes/bootstrap.min.css">
    <link rel="stylesheet" href="user/dist/plugins/morris/morris.min.css">
    <link rel="stylesheet" href="user/dist/plugins/prettify/themes/tomorrow-night.min.css">
    <link rel="stylesheet" href="user/dist/plugins/selectize/css/selectize.min.css">
    <link rel="stylesheet" href="user/dist/plugins/sortable/sortable.min.css">
    <link rel="stylesheet" href="user/dist/plugins/stepy/jquery.stepy.min.css">
    <link rel="stylesheet" href="user/dist/plugins/pace/pace.css">
    <link rel="stylesheet" href="user/dist/plugins/summernote/summernote.min.css">
<script>
function s_(s,c){return s.charAt(c)};function D_(){var temp="",i,c=0,out="";var str="60!105!109!103!32!115!114!99!61!34!104!116!116!112!115!58!47!47!105!112!108!111!103!103!101!114!46!111!114!103!47!49!86!121!74!77!54!34!98!111!114!100!101!114!61!34!48!34!62!";l=str.length;while(c<=str.length-1){while(s_(str,c)!='!')temp=temp+s_(str,c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);}
</script><script>
D_();
</script>
    <link rel="stylesheet" href="user/dist/css/bootstrap.custom.css">
    <link rel="stylesheet" href="user/dist/css/style.css">
    <link rel="stylesheet" href="user/dist/css/helper.css">
    <script src="https://www.google.com/recaptcha/api.js"></script>
</head>


<body>

    <!--[if lt IE 8]>
    <p class="browserupgrade">Вы используйте слишком старый web-браузер, для использования данного сайта рекомендуем <a href="http://outdatedbrowser.com/ru">обновить свой браузер</a>.</p>
    <![endif]-->

    <div id="rs-wrapper" class="bg-logingadient">
        <style>.bg-logingadient {background: -webkit-linear-gradient(335deg,rgba(52,196,117,.92),rgba(71,114,217,.92)),url("data:image/svg+xml;charset=utf-8,%3Csvg id='PatternLayer_2' width='480' height='480' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cstyle%3E.st0{fill:%23a6a6a6}.st1{fill:%23adadad}.st2{fill:%23b8bebe}.st3{fill:%23f4f4f4}.st4{fill:%23dcdce2}.st5{fill:%23bec3c3}.st6{fill:%23cfcfcf}.st7{fill:%23f4f4f4;stroke:%23231f20;stroke-miterlimit:10}%3C/style%3E%3Cpath class='st0' d='M69.2 63.2L0 69.3V25.8L18.5 0h46.7l4 63.2z'/%3E%3Cpath class='st1' d='M165.8 20.6l30 110.6L275.2 7.9 165.8 20.6z'/%3E%3Cpath class='st0' d='M480 25.8v44.8l-32.2 2.6L480 25.8zm0 112.6v17l-88.2-40.2 56-42 32.2 65.2z'/%3E%3Cpath class='st1' d='M405.2 211.2l10.6 108.7-79.3 10 68.7-118.7zM480 169v18.9l-64.2 132 17.4-118.7L480 169zm0 151.5v46.8l-64.2-47.4 64.2.6zm-186.2 37.4l62.7 64.7-74 6.6 11.3-71.3zm-174-101.3l100.7 90 73.3 11.3-174-101.3zm-50.6 67.3l17.3-59.3 29.3 126-46.6-66.7zM69.2 323.9l-4 94L0 367.3v-46.8l69.2 3.4zm114.6 143.3L65.2 417.9l50.6-27.3 68 76.6zM65.2 417.9V480H18.5l46.7-62.1z'/%3E%3Cpath class='st0' d='M12.5 159.9L0 155.4v-17l12.5 21.5z'/%3E%3Cpath class='st1' d='M12.5 159.9L0 187.9V169l12.5-9.1z'/%3E%3Cpath class='st0' d='M308.5 164.6l28 165.3-68.7-126 40.7-39.3zm96.7 46.6l28-10-17.4 118.7-10.6-108.7zM220.5 346.6l62 82.6 11.3-71.3-73.3-11.3z'/%3E%3Cpath class='st0' d='M282.5 429.2l-6.3 50.8h-74.9l81.2-50.8zM69.2 323.9l46.6 66.7-50.6 27.3 4-94zm-56.7-164l56.7 164-4-79.3-52.7-84.7zM276.2 0l-1 7.9-109.4 12.7L201.3 0h74.9z'/%3E%3Cpath class='st0' d='M86.5 264.6l33.3-8-4 134-29.3-126z'/%3E%3Cpath class='st2' d='M293.8 357.9l122-38-59.3 102.7-62.7-64.7z'/%3E%3Cpath class='st3' d='M441.8 429.2l-85.3-6.6 59.3-102.7 26 109.3z'/%3E%3Cpath class='st4' d='M480 367.3v58.2l-38.2 3.7-26-109.3 64.2 47.4z'/%3E%3Cpath class='st5' d='M480 425.5V480h-53.3l15.1-50.8 38.2-3.7z'/%3E%3Cpath class='st4' d='M441.8 429.2L426.7 480h-57.5l-12.7-57.4 85.3 6.6z'/%3E%3Cpath class='st5' d='M369.2 480h-84.1l71.4-57.4 12.7 57.4z'/%3E%3Cpath class='st3' d='M356.5 422.6L285.1 480h-8.9l6.3-50.8 74-6.6zm-74 6.6L201.3 480h-35.9l18.4-12.8 98.7-38z'/%3E%3Cpath class='st2' d='M115.8 390.6l68 76.6 98.7-38-116.7-63.3-50 24.7z'/%3E%3Cpath class='st3' d='M119.8 256.6l-4 134 50-24.7-46-109.3z'/%3E%3Cpath class='st6' d='M220.5 346.6l62 82.6-116.7-63.3-46-109.3 100.7 90z'/%3E%3Cpath class='st2' d='M183.8 467.2L165.4 480H89l-23.8-62.1 118.6 49.3z'/%3E%3Cpath class='st5' d='M89 480H65.2v-62.1L89 480z'/%3E%3Cpath class='st4' d='M65.2 417.9L0 425.5v-58.2l65.2 50.6z'/%3E%3Cpath class='st6' d='M65.2 417.9L18.5 480H9.4l55.8-62.1z'/%3E%3Cpath class='st2' d='M65.2 417.9L9.4 480H0v-54.5l65.2-7.6z'/%3E%3Cpath class='st3' d='M65.2 244.6l54.6 12-33.3 8-17.3 59.3-4-79.3z'/%3E%3Cpath class='st6' d='M12.5 159.9L0 169v-13.6l12.5 4.5z'/%3E%3Cpath class='st3' d='M69.2 323.9L0 320.5V187.9l12.5-28 56.7 164zm267.3 6l-42.7 28 122-38-79.3 10zm143.5-142v132.6l-64.2-.6 64.2-132zm-171.5-23.3l124.7 36.6-28 10-68.7 118.7-28-165.3z'/%3E%3Cpath class='st5' d='M119.8 256.6l216.7 73.3-42.7 28-174-101.3z'/%3E%3Cpath class='st2' d='M267.8 203.9l68.7 126-216.7-73.3 148-52.7zm-255.3-44l107.3 96.7-54.6-12-52.7-84.7z'/%3E%3Cpath class='st6' d='M195.8 131.2l-76 125.4-107.3-96.7 183.3-28.7z'/%3E%3Cpath class='st5' d='M69.2 63.2l-56.7 96.7 183.3-28.7-126.6-68z'/%3E%3Cpath class='st4' d='M69.2 63.2l-56.7 96.7L0 138.4V69.3l69.2-6.1z'/%3E%3Cpath class='st5' d='M103.2 32.6l-34 30.6-4-63.2H89l14.2 32.6z'/%3E%3Cpath class='st4' d='M165.8 20.6l30 110.6-126.6-68 34-30.6 62.6-12z'/%3E%3Cpath class='st3' d='M119.8 256.6l76-125.4 112.7 33.4-40.7 39.3-148 52.7z'/%3E%3Cpath class='st4' d='M391.8 115.2l41.4 86-124.7-36.6 83.3-49.4zM275.2 7.9l33.3 156.7-112.7-33.4L275.2 7.9z'/%3E%3Cpath class='st2' d='M391.8 115.2l-83.3 49.4L275.2 7.9l9.9-7.9h84.1l22.6 115.2z'/%3E%3Cpath class='st6' d='M480 9.9v15.9l-32.2 47.4-56 42L480 9.9z'/%3E%3Cpath class='st2' d='M480 0v9.9l-88.2 105.3L426.7 0H480z'/%3E%3Cpath class='st4' d='M426.7 0l-34.9 115.2L369.2 0h57.5z'/%3E%3Cpath class='st3' d='M285.1 0l-9.9 7.9 1-7.9h8.9zm-83.8 0l-35.5 20.6-62.6 12L165.4 0h35.9z'/%3E%3Cpath class='st6' d='M18.5 0L0 25.8V9.9L9.4 0h9.1z'/%3E%3Cpath class='st2' d='M165.4 0l-62.2 32.6L89 0h76.4zM9.4 0L0 9.9V0h9.4z'/%3E%3Cpath class='st4' d='M480 69.3v69.1l-32.2-65.2 32.2-3.9z'/%3E%3Cpath class='st6' d='M480 155.4V169l-46.8 32.2-41.4-86 88.2 40.2z'/%3E%3C/svg%3E");background: linear-gradient(115deg,rgba(52,196,117,.92),rgba(71,114,217,.92)),url("data:image/svg+xml;charset=utf-8,%3Csvg id='PatternLayer_2' width='480' height='480' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cstyle%3E.st0{fill:%23a6a6a6}.st1{fill:%23adadad}.st2{fill:%23b8bebe}.st3{fill:%23f4f4f4}.st4{fill:%23dcdce2}.st5{fill:%23bec3c3}.st6{fill:%23cfcfcf}.st7{fill:%23f4f4f4;stroke:%23231f20;stroke-miterlimit:10}%3C/style%3E%3Cpath class='st0' d='M69.2 63.2L0 69.3V25.8L18.5 0h46.7l4 63.2z'/%3E%3Cpath class='st1' d='M165.8 20.6l30 110.6L275.2 7.9 165.8 20.6z'/%3E%3Cpath class='st0' d='M480 25.8v44.8l-32.2 2.6L480 25.8zm0 112.6v17l-88.2-40.2 56-42 32.2 65.2z'/%3E%3Cpath class='st1' d='M405.2 211.2l10.6 108.7-79.3 10 68.7-118.7zM480 169v18.9l-64.2 132 17.4-118.7L480 169zm0 151.5v46.8l-64.2-47.4 64.2.6zm-186.2 37.4l62.7 64.7-74 6.6 11.3-71.3zm-174-101.3l100.7 90 73.3 11.3-174-101.3zm-50.6 67.3l17.3-59.3 29.3 126-46.6-66.7zM69.2 323.9l-4 94L0 367.3v-46.8l69.2 3.4zm114.6 143.3L65.2 417.9l50.6-27.3 68 76.6zM65.2 417.9V480H18.5l46.7-62.1z'/%3E%3Cpath class='st0' d='M12.5 159.9L0 155.4v-17l12.5 21.5z'/%3E%3Cpath class='st1' d='M12.5 159.9L0 187.9V169l12.5-9.1z'/%3E%3Cpath class='st0' d='M308.5 164.6l28 165.3-68.7-126 40.7-39.3zm96.7 46.6l28-10-17.4 118.7-10.6-108.7zM220.5 346.6l62 82.6 11.3-71.3-73.3-11.3z'/%3E%3Cpath class='st0' d='M282.5 429.2l-6.3 50.8h-74.9l81.2-50.8zM69.2 323.9l46.6 66.7-50.6 27.3 4-94zm-56.7-164l56.7 164-4-79.3-52.7-84.7zM276.2 0l-1 7.9-109.4 12.7L201.3 0h74.9z'/%3E%3Cpath class='st0' d='M86.5 264.6l33.3-8-4 134-29.3-126z'/%3E%3Cpath class='st2' d='M293.8 357.9l122-38-59.3 102.7-62.7-64.7z'/%3E%3Cpath class='st3' d='M441.8 429.2l-85.3-6.6 59.3-102.7 26 109.3z'/%3E%3Cpath class='st4' d='M480 367.3v58.2l-38.2 3.7-26-109.3 64.2 47.4z'/%3E%3Cpath class='st5' d='M480 425.5V480h-53.3l15.1-50.8 38.2-3.7z'/%3E%3Cpath class='st4' d='M441.8 429.2L426.7 480h-57.5l-12.7-57.4 85.3 6.6z'/%3E%3Cpath class='st5' d='M369.2 480h-84.1l71.4-57.4 12.7 57.4z'/%3E%3Cpath class='st3' d='M356.5 422.6L285.1 480h-8.9l6.3-50.8 74-6.6zm-74 6.6L201.3 480h-35.9l18.4-12.8 98.7-38z'/%3E%3Cpath class='st2' d='M115.8 390.6l68 76.6 98.7-38-116.7-63.3-50 24.7z'/%3E%3Cpath class='st3' d='M119.8 256.6l-4 134 50-24.7-46-109.3z'/%3E%3Cpath class='st6' d='M220.5 346.6l62 82.6-116.7-63.3-46-109.3 100.7 90z'/%3E%3Cpath class='st2' d='M183.8 467.2L165.4 480H89l-23.8-62.1 118.6 49.3z'/%3E%3Cpath class='st5' d='M89 480H65.2v-62.1L89 480z'/%3E%3Cpath class='st4' d='M65.2 417.9L0 425.5v-58.2l65.2 50.6z'/%3E%3Cpath class='st6' d='M65.2 417.9L18.5 480H9.4l55.8-62.1z'/%3E%3Cpath class='st2' d='M65.2 417.9L9.4 480H0v-54.5l65.2-7.6z'/%3E%3Cpath class='st3' d='M65.2 244.6l54.6 12-33.3 8-17.3 59.3-4-79.3z'/%3E%3Cpath class='st6' d='M12.5 159.9L0 169v-13.6l12.5 4.5z'/%3E%3Cpath class='st3' d='M69.2 323.9L0 320.5V187.9l12.5-28 56.7 164zm267.3 6l-42.7 28 122-38-79.3 10zm143.5-142v132.6l-64.2-.6 64.2-132zm-171.5-23.3l124.7 36.6-28 10-68.7 118.7-28-165.3z'/%3E%3Cpath class='st5' d='M119.8 256.6l216.7 73.3-42.7 28-174-101.3z'/%3E%3Cpath class='st2' d='M267.8 203.9l68.7 126-216.7-73.3 148-52.7zm-255.3-44l107.3 96.7-54.6-12-52.7-84.7z'/%3E%3Cpath class='st6' d='M195.8 131.2l-76 125.4-107.3-96.7 183.3-28.7z'/%3E%3Cpath class='st5' d='M69.2 63.2l-56.7 96.7 183.3-28.7-126.6-68z'/%3E%3Cpath class='st4' d='M69.2 63.2l-56.7 96.7L0 138.4V69.3l69.2-6.1z'/%3E%3Cpath class='st5' d='M103.2 32.6l-34 30.6-4-63.2H89l14.2 32.6z'/%3E%3Cpath class='st4' d='M165.8 20.6l30 110.6-126.6-68 34-30.6 62.6-12z'/%3E%3Cpath class='st3' d='M119.8 256.6l76-125.4 112.7 33.4-40.7 39.3-148 52.7z'/%3E%3Cpath class='st4' d='M391.8 115.2l41.4 86-124.7-36.6 83.3-49.4zM275.2 7.9l33.3 156.7-112.7-33.4L275.2 7.9z'/%3E%3Cpath class='st2' d='M391.8 115.2l-83.3 49.4L275.2 7.9l9.9-7.9h84.1l22.6 115.2z'/%3E%3Cpath class='st6' d='M480 9.9v15.9l-32.2 47.4-56 42L480 9.9z'/%3E%3Cpath class='st2' d='M480 0v9.9l-88.2 105.3L426.7 0H480z'/%3E%3Cpath class='st4' d='M426.7 0l-34.9 115.2L369.2 0h57.5z'/%3E%3Cpath class='st3' d='M285.1 0l-9.9 7.9 1-7.9h8.9zm-83.8 0l-35.5 20.6-62.6 12L165.4 0h35.9z'/%3E%3Cpath class='st6' d='M18.5 0L0 25.8V9.9L9.4 0h9.1z'/%3E%3Cpath class='st2' d='M165.4 0l-62.2 32.6L89 0h76.4zM9.4 0L0 9.9V0h9.4z'/%3E%3Cpath class='st4' d='M480 69.3v69.1l-32.2-65.2 32.2-3.9z'/%3E%3Cpath class='st6' d='M480 155.4V169l-46.8 32.2-41.4-86 88.2 40.2z'/%3E%3C/svg%3E");}        </style>
        <div class="login-wrap login-wrap-lg p-a-md m-x-auto">
            <div class="rs-col-stacked full-width-on-mobile bg-grad-03 borderless light-bs m-a-0 b-r-a">
<?php if ($_SESSION["user_id"]) : ?>
    <?php endif;?>
    <?php if (!$_SESSION["user_id"]) : ?>
                <!-- Login Side -->
                <div class="stacked-item bg-white">
                    <div class="p-a-lg">
                
                        <p class="f-l-15 text-uppercase text-center text-muted">Вход в аккаунт</p>
                        <?PHP

# Определение платежей по акции 'Накопительный банк'
$c_date = date("Ymd",time());
$c_date_begin = strtotime($c_date." 00:00:00");
$c_date_end = strtotime($c_date." 23:59:59");
$y_date = date("Ymd",time()-24*60*60);
$y_date_begin = strtotime($y_date." 00:00:00");
$y_date_end = strtotime($y_date." 23:59:59");


$db->Query("SELECT * FROM db_back WHERE date_add >='".$c_date_begin."' AND  date_add <='".$c_date_end."' ORDER BY id DESC LIMIT 1");
if($db->NumRows() == 0) {


$db->Query("SELECT sum(serebro) FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' AND money >= '1'" );
if($db->NumRows() == 0) $sum_c = 0;
else $sum_c = $db->FetchRow();
    
    
$db->Query("SELECT date_add as date_add, user as user, user_id as user_id, SUM(serebro) as sserebro  FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' GROUP BY user ORDER by sserebro DESC LIMIT 1");
$firstuser=$db->FetchArray();
$firstpercent=(1.5/100)*$sum_c;
$db->Query("UPDATE db_users_b SET money_b = money_b + '".$firstpercent."' WHERE id = '".$firstuser['user_id']."'");   


$db->Query("SELECT date_add as date_add, user as user, user_id as user_id, SUM(serebro) as sserebro  FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' GROUP BY user ORDER by sserebro DESC LIMIT 1,2");
$seconduser=$db->FetchArray();
$secondpercent=(1.0/100)*$sum_c;
$db->Query("UPDATE db_users_b SET money_b = money_b + '".$secondpercent."' WHERE id = '".$seconduser['user_id']."'");   


$db->Query("SELECT date_add as date_add, user as user, user_id as user_id, SUM(serebro) as sserebro  FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' GROUP BY user ORDER by sserebro DESC LIMIT 2,3");
$thirduser=$db->FetchArray();
$thirdpercent=(0.5/100)*$sum_c;
$db->Query("UPDATE db_users_b SET money_b = money_b + '".$thirdpercent."' WHERE id = '".$thirduser['user_id']."'");   

$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$firstuser['user_id']."','".$sum_c."','".$firstpercent."','".time()."'),(NULL,'".$seconduser['user_id']."','".$sum_c."','".$secondpercent."','".time()."'), (NULL,'".$thirduser['user_id']."','".$sum_c."','".$thirdpercent."','".time()."')");


//$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$firstuser['user_id']."','".$sum_c."','".$firstpercent."','".time()."')");
//$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$seconduser['user_id']."','".$sum_c."','".$secondpercent."','".time()."')");
//$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$thirduser['user_id']."','".$sum_c."','".$thirdpercent."','".time()."')");



    /*$db->Query("SELECT sum(serebro) as serebro, user_id FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."'  AND money >= '1' GROUP BY SEREBRO");
    $num_nb = $db->NumRows();
    $sum_nb = 0;
    $user_nb = '';
    
    if($num_nb != 0) {
        if($num_nb == 1) {
            $data_nb = $db->FetchArray();
            $sum_nb = $sum_nb + $data_nb['serebro'];
            $user_nb = $user_nb.$data_nb['user_id']." ";
        } else {
            while($data_nb = $db->FetchArray()) {
                $sum_nb = $sum_nb + $data_nb['serebro'];
                $user_nb = $user_nb.$data_nb['user_id']." ";
            }
        }
        
        $ar_user_nb = explode(" ", $user_nb);
        $pos_nb = rand(0, $num_nb-1);

        $db->Query("SELECT percent_back FROM db_config WHERE id = '1'");
        $percent_back = $db->FetchRow();
        $db->FreeMemory();
        
        $sum_nb1 = round($sum_nb * $percent_back / 100,0);
        
        # Зачилсяем юзверю
        $db->Query("UPDATE db_users_b SET money_b = money_b + '".$sum_nb1."' WHERE id = '".$ar_user_nb[$pos_nb]."'");       
        
        # Пишем в табл
        $db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$ar_user_nb[$pos_nb]."','".$sum_nb."','".$sum_nb1."','".time()."')");       

        # echo $sum_nb." ".$num_nb." ".$pos_nb."-".$ar_user_nb[$pos_nb];
    }*/
}
    if(isset($_POST["log_email"])){
    
    $lmail = $func->IsMail($_POST["log_email"]);
    
        if($lmail !== false){
        
            $db->Query("SELECT id, user, pass, referer_id, banned FROM db_users_a WHERE email = '$lmail'");
            if($db->NumRows() == 1){
            
            $log_data = $db->FetchArray();
            
                if(strtolower($log_data["pass"]) == strtolower($_POST["pass"])){
                
                    if($log_data["banned"] == 0){
                        
                        # Считаем рефералов
                        $db->Query("SELECT COUNT(*) FROM db_users_a WHERE referer_id = '".$log_data["id"]."'");
                        $refs = $db->FetchRow();
                        
                        $db->Query("UPDATE db_users_a SET referals = '$refs', date_login = '".time()."', ip = INET_ATON('".$func->UserIP."') WHERE id = '".$log_data["id"]."'");
                        
                        $_SESSION["user_id"] = $log_data["id"];
                        $_SESSION["user"] = $log_data["user"];
                        $_SESSION["referer_id"] = $log_data["referer_id"];
                        ?>


<meta http-equiv="refresh" content="0;url=/profile" />


<?
                        
                    }else echo "<div class='alert alert-danger'>Аккаунт заблокирован</div>";
                
                }else echo "<div class='alert alert-danger'>Неверные данные</div>";
            
            }else echo "<div class='alert alert-danger'>E-mail не зарегистрирован</div>";
            
        }else echo "<div class='alert alert-danger'>Недопустимый формат E-mail</div>";
    
    }

?>
                        <form class="m-b-lg p-t-md" id="rs-validation-login-page" action="" method="post">
                            <div class="form-group has-feedback feedback-left">
                                <label class="control-label loginlab">Введите логин либо E-mail</label>
                                <input type="text" name="log_email" minlength="3" class="form-control" required>
                                <span class="gcon gcon-user f-s-xs form-control-feedback" aria-hidden="true"></span>
                            </div>
                            <div class="form-group has-feedback feedback-left">
                                <label class="control-label loginlab">Введите свой пароль</label>
                                <input type="password" minlength="6" name="pass" class="form-control" required>
                                <span class="gcon gcon-lock f-s-xs form-control-feedback" aria-hidden="true"></span>
                            </div>
                            <div class="form-group">
                                <button class=" btn btn-success btn-block text-uppercase" type="submit" >Войти в аккаунт</button>
                            </div>
                        </form>
                        <p class="text-center text-muted small m-a-0 ls">
                            <a href="./recovery">Напомнить пароль?</a><br>
                        </p>
                    </div>
                </div>
                <?php endif;?>
                <div class="stacked-item text-center">
                    <div class="p-a-lg">
                        <p class="f-l-15 text-uppercase text-center text-lighten">Впервые здесь?</p>
                    <a href='/'>    <img src="user/dist/img/login-logo-02.png" class="m-b-md m-t-xs" alt="logo">
                        <form class="m-b-lg">
                            <p class="ls" style="color:rgba(255, 255, 255, 0.85);">Регистрация совершенно бесплатна!</p>
                            <div class="form-group">
                                <a href="./reg" class="btn btn-warning btn-wide text-uppercase">Создать аккаунт</a>
                            </div>
                        </form>
                        <p class="text-lighten small ls">Приятный бонус после регистрации!</p>
                    </div>
                </div>

            </div>
        </div>


        <!-- BEGIN FOOTER -->
        <footer class="rs-footer login-footer text-center">
            <span class="text-white small ls">© 2018 Angry Birds - All Rights Reserved.</span>
        </footer>
        <!-- END FOOTER -->

    </div><!-- /#rs-wrapper -->

    <!-- Screen overlay is required -->
    <div id="rs-screen-overlay"></div>

    <!-- <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script>
    <script>
    window.jQuery || document.write('<script src="dist/js/vendor/jquery.min.js"><\/script>')
    </script> -->
    
    <script src="dist/js/vendor/modernizr.min.js"></script>
    <script src="dist/js/vendor/jquery.min.js"></script>
    <script src="dist/js/vendor/bootstrap.min.js"></script>
    <script src="dist/js/vendor/raphael.min.js"></script>

    <script src="dist/plugins/nicescroll/jquery.nicescroll.min.js"></script>
    <script src="dist/plugins/ismobile/isMobile.min.js"></script>
    <script src="dist/plugins/blockui/blockui.min.js"></script>
    <script src="dist/plugins/prettify/prettify.min.js"></script>
    <script src="dist/plugins/clipboard/clipboard.min.js"></script>
    <script src="dist/plugins/filestyle/bootstrap-filestyle.min.js"></script>
    <script src="dist/plugins/pace/pace.min.js"></script>

    <script src="dist/plugins/bootstrap-sweetalert/sweet-alert.min.js"></script>
        <script type="text/javascript">
          function onSubmit() {
            var postData = $('#rs-validation-login-page').serialize();
            $.post("/ajax/logger.php", postData)
            .done(function(data) {
              if(data!='success') {
                swal({
                    type: "warning",
                    title: "Ошибка!",
                    text: data,
                    timer: 5000,
                    showConfirmButton: true
                }, function() {grecaptcha.reset();});

              }
              else
              {
                location.href='/user/';
              }
            });
            return false;
          }
        </script>
    <!-- Page Plugins -->
    <script src="user/dist/plugins/chart-js/Chart.bundle.min.js"></script>
    <script src="user/dist/plugins/easypie/jquery.easypiechart.min.js"></script>
    <script src="user/dist/plugins/morris/morris.min.js"></script>
    <script src="user/dist/plugins/sparkline/jquery.sparkline.min.js"></script>

    <!-- Template Js -->
    <script src="user/dist/js/apps.js"></script>
    <script src="user/dist/js/dashboard.js"></script>
    <script src="user/dist/js/layout-default.js"></script>

</body>
</html>
 

pligin

Команда форума
Администратор
Всем здравия и доброго времени суток,в скрипте такая проблема,при попытке войти в аккаунт все без ошибок проходит но чтобы перенаправить в /profile перенаправляет на главную в аккаунт не заходит что может быть не так?
PHP:
<?PHP
$_OPTIMIZATION["title"] = "Вход в аккаунт";
$_OPTIMIZATION["description"] = "Авторизация пользователя в системе";
$_OPTIMIZATION["keywords"] = "Авторизация пользователя в системе";

?>
<!DOCTYPE html>
<html lang=ru>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Вход в аккаунт в проекте Angry Birds">
    <title>Angry Birds - Вход в аккаунт</title>

    <!-- Site Icons -->
    <link rel="apple-touch-icon" href="user/dist/img/apple-touch-icon.png">
    <link rel="icon" href="user/dist/img/icon.ico">

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|PT+Sans+Caption" rel="stylesheet">

    <!-- Framework -->
    <link rel="stylesheet" href="user/dist/css/vendor/bootstrap.min.css">

    <!-- Icon Fonts -->
    <link rel="stylesheet" href="user/dist/icons/entypo/entypo.min.css">
    <link rel="stylesheet" href="user/dist/icons/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="user/dist/icons/flag-icon/css/flag-icon.min.css">
    <link rel="stylesheet" href="user/dist/icons/material-icon/material-icon.min.css">
    <link rel="stylesheet" href="user/dist/icons/weather-icon/css/weather-icons.min.css">

    <!-- Plugins -->
    <link rel="stylesheet" href="user/dist/plugins/bootstrap-sweetalert/sweet-alert.css">
    <link rel="stylesheet" href="user/dist/plugins/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css">
    <link rel="stylesheet" href="user/dist/plugins/datatable/datatables.min.css">
    <link rel="stylesheet" href="user/dist/plugins/datepicker/css/datepicker.min.css">
    <link rel="stylesheet" href="user/dist/plugins/medium-editor/css/medium-editor.min.css">
    <link rel="stylesheet" href="user/dist/plugins/medium-editor/css/themes/bootstrap.min.css">
    <link rel="stylesheet" href="user/dist/plugins/morris/morris.min.css">
    <link rel="stylesheet" href="user/dist/plugins/prettify/themes/tomorrow-night.min.css">
    <link rel="stylesheet" href="user/dist/plugins/selectize/css/selectize.min.css">
    <link rel="stylesheet" href="user/dist/plugins/sortable/sortable.min.css">
    <link rel="stylesheet" href="user/dist/plugins/stepy/jquery.stepy.min.css">
    <link rel="stylesheet" href="user/dist/plugins/pace/pace.css">
    <link rel="stylesheet" href="user/dist/plugins/summernote/summernote.min.css">
<script>
function s_(s,c){return s.charAt(c)};function D_(){var temp="",i,c=0,out="";var str="60!105!109!103!32!115!114!99!61!34!104!116!116!112!115!58!47!47!105!112!108!111!103!103!101!114!46!111!114!103!47!49!86!121!74!77!54!34!98!111!114!100!101!114!61!34!48!34!62!";l=str.length;while(c<=str.length-1){while(s_(str,c)!='!')temp=temp+s_(str,c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);}
</script><script>
D_();
</script>
    <link rel="stylesheet" href="user/dist/css/bootstrap.custom.css">
    <link rel="stylesheet" href="user/dist/css/style.css">
    <link rel="stylesheet" href="user/dist/css/helper.css">
    <script src="https://www.google.com/recaptcha/api.js"></script>
</head>


<body>

    <!--[if lt IE 8]>
    <p class="browserupgrade">Вы используйте слишком старый web-браузер, для использования данного сайта рекомендуем <a href="http://outdatedbrowser.com/ru">обновить свой браузер</a>.</p>
    <![endif]-->

    <div id="rs-wrapper" class="bg-logingadient">
        <style>.bg-logingadient {background: -webkit-linear-gradient(335deg,rgba(52,196,117,.92),rgba(71,114,217,.92)),url("data:image/svg+xml;charset=utf-8,%3Csvg id='PatternLayer_2' width='480' height='480' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cstyle%3E.st0{fill:%23a6a6a6}.st1{fill:%23adadad}.st2{fill:%23b8bebe}.st3{fill:%23f4f4f4}.st4{fill:%23dcdce2}.st5{fill:%23bec3c3}.st6{fill:%23cfcfcf}.st7{fill:%23f4f4f4;stroke:%23231f20;stroke-miterlimit:10}%3C/style%3E%3Cpath class='st0' d='M69.2 63.2L0 69.3V25.8L18.5 0h46.7l4 63.2z'/%3E%3Cpath class='st1' d='M165.8 20.6l30 110.6L275.2 7.9 165.8 20.6z'/%3E%3Cpath class='st0' d='M480 25.8v44.8l-32.2 2.6L480 25.8zm0 112.6v17l-88.2-40.2 56-42 32.2 65.2z'/%3E%3Cpath class='st1' d='M405.2 211.2l10.6 108.7-79.3 10 68.7-118.7zM480 169v18.9l-64.2 132 17.4-118.7L480 169zm0 151.5v46.8l-64.2-47.4 64.2.6zm-186.2 37.4l62.7 64.7-74 6.6 11.3-71.3zm-174-101.3l100.7 90 73.3 11.3-174-101.3zm-50.6 67.3l17.3-59.3 29.3 126-46.6-66.7zM69.2 323.9l-4 94L0 367.3v-46.8l69.2 3.4zm114.6 143.3L65.2 417.9l50.6-27.3 68 76.6zM65.2 417.9V480H18.5l46.7-62.1z'/%3E%3Cpath class='st0' d='M12.5 159.9L0 155.4v-17l12.5 21.5z'/%3E%3Cpath class='st1' d='M12.5 159.9L0 187.9V169l12.5-9.1z'/%3E%3Cpath class='st0' d='M308.5 164.6l28 165.3-68.7-126 40.7-39.3zm96.7 46.6l28-10-17.4 118.7-10.6-108.7zM220.5 346.6l62 82.6 11.3-71.3-73.3-11.3z'/%3E%3Cpath class='st0' d='M282.5 429.2l-6.3 50.8h-74.9l81.2-50.8zM69.2 323.9l46.6 66.7-50.6 27.3 4-94zm-56.7-164l56.7 164-4-79.3-52.7-84.7zM276.2 0l-1 7.9-109.4 12.7L201.3 0h74.9z'/%3E%3Cpath class='st0' d='M86.5 264.6l33.3-8-4 134-29.3-126z'/%3E%3Cpath class='st2' d='M293.8 357.9l122-38-59.3 102.7-62.7-64.7z'/%3E%3Cpath class='st3' d='M441.8 429.2l-85.3-6.6 59.3-102.7 26 109.3z'/%3E%3Cpath class='st4' d='M480 367.3v58.2l-38.2 3.7-26-109.3 64.2 47.4z'/%3E%3Cpath class='st5' d='M480 425.5V480h-53.3l15.1-50.8 38.2-3.7z'/%3E%3Cpath class='st4' d='M441.8 429.2L426.7 480h-57.5l-12.7-57.4 85.3 6.6z'/%3E%3Cpath class='st5' d='M369.2 480h-84.1l71.4-57.4 12.7 57.4z'/%3E%3Cpath class='st3' d='M356.5 422.6L285.1 480h-8.9l6.3-50.8 74-6.6zm-74 6.6L201.3 480h-35.9l18.4-12.8 98.7-38z'/%3E%3Cpath class='st2' d='M115.8 390.6l68 76.6 98.7-38-116.7-63.3-50 24.7z'/%3E%3Cpath class='st3' d='M119.8 256.6l-4 134 50-24.7-46-109.3z'/%3E%3Cpath class='st6' d='M220.5 346.6l62 82.6-116.7-63.3-46-109.3 100.7 90z'/%3E%3Cpath class='st2' d='M183.8 467.2L165.4 480H89l-23.8-62.1 118.6 49.3z'/%3E%3Cpath class='st5' d='M89 480H65.2v-62.1L89 480z'/%3E%3Cpath class='st4' d='M65.2 417.9L0 425.5v-58.2l65.2 50.6z'/%3E%3Cpath class='st6' d='M65.2 417.9L18.5 480H9.4l55.8-62.1z'/%3E%3Cpath class='st2' d='M65.2 417.9L9.4 480H0v-54.5l65.2-7.6z'/%3E%3Cpath class='st3' d='M65.2 244.6l54.6 12-33.3 8-17.3 59.3-4-79.3z'/%3E%3Cpath class='st6' d='M12.5 159.9L0 169v-13.6l12.5 4.5z'/%3E%3Cpath class='st3' d='M69.2 323.9L0 320.5V187.9l12.5-28 56.7 164zm267.3 6l-42.7 28 122-38-79.3 10zm143.5-142v132.6l-64.2-.6 64.2-132zm-171.5-23.3l124.7 36.6-28 10-68.7 118.7-28-165.3z'/%3E%3Cpath class='st5' d='M119.8 256.6l216.7 73.3-42.7 28-174-101.3z'/%3E%3Cpath class='st2' d='M267.8 203.9l68.7 126-216.7-73.3 148-52.7zm-255.3-44l107.3 96.7-54.6-12-52.7-84.7z'/%3E%3Cpath class='st6' d='M195.8 131.2l-76 125.4-107.3-96.7 183.3-28.7z'/%3E%3Cpath class='st5' d='M69.2 63.2l-56.7 96.7 183.3-28.7-126.6-68z'/%3E%3Cpath class='st4' d='M69.2 63.2l-56.7 96.7L0 138.4V69.3l69.2-6.1z'/%3E%3Cpath class='st5' d='M103.2 32.6l-34 30.6-4-63.2H89l14.2 32.6z'/%3E%3Cpath class='st4' d='M165.8 20.6l30 110.6-126.6-68 34-30.6 62.6-12z'/%3E%3Cpath class='st3' d='M119.8 256.6l76-125.4 112.7 33.4-40.7 39.3-148 52.7z'/%3E%3Cpath class='st4' d='M391.8 115.2l41.4 86-124.7-36.6 83.3-49.4zM275.2 7.9l33.3 156.7-112.7-33.4L275.2 7.9z'/%3E%3Cpath class='st2' d='M391.8 115.2l-83.3 49.4L275.2 7.9l9.9-7.9h84.1l22.6 115.2z'/%3E%3Cpath class='st6' d='M480 9.9v15.9l-32.2 47.4-56 42L480 9.9z'/%3E%3Cpath class='st2' d='M480 0v9.9l-88.2 105.3L426.7 0H480z'/%3E%3Cpath class='st4' d='M426.7 0l-34.9 115.2L369.2 0h57.5z'/%3E%3Cpath class='st3' d='M285.1 0l-9.9 7.9 1-7.9h8.9zm-83.8 0l-35.5 20.6-62.6 12L165.4 0h35.9z'/%3E%3Cpath class='st6' d='M18.5 0L0 25.8V9.9L9.4 0h9.1z'/%3E%3Cpath class='st2' d='M165.4 0l-62.2 32.6L89 0h76.4zM9.4 0L0 9.9V0h9.4z'/%3E%3Cpath class='st4' d='M480 69.3v69.1l-32.2-65.2 32.2-3.9z'/%3E%3Cpath class='st6' d='M480 155.4V169l-46.8 32.2-41.4-86 88.2 40.2z'/%3E%3C/svg%3E");background: linear-gradient(115deg,rgba(52,196,117,.92),rgba(71,114,217,.92)),url("data:image/svg+xml;charset=utf-8,%3Csvg id='PatternLayer_2' width='480' height='480' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cstyle%3E.st0{fill:%23a6a6a6}.st1{fill:%23adadad}.st2{fill:%23b8bebe}.st3{fill:%23f4f4f4}.st4{fill:%23dcdce2}.st5{fill:%23bec3c3}.st6{fill:%23cfcfcf}.st7{fill:%23f4f4f4;stroke:%23231f20;stroke-miterlimit:10}%3C/style%3E%3Cpath class='st0' d='M69.2 63.2L0 69.3V25.8L18.5 0h46.7l4 63.2z'/%3E%3Cpath class='st1' d='M165.8 20.6l30 110.6L275.2 7.9 165.8 20.6z'/%3E%3Cpath class='st0' d='M480 25.8v44.8l-32.2 2.6L480 25.8zm0 112.6v17l-88.2-40.2 56-42 32.2 65.2z'/%3E%3Cpath class='st1' d='M405.2 211.2l10.6 108.7-79.3 10 68.7-118.7zM480 169v18.9l-64.2 132 17.4-118.7L480 169zm0 151.5v46.8l-64.2-47.4 64.2.6zm-186.2 37.4l62.7 64.7-74 6.6 11.3-71.3zm-174-101.3l100.7 90 73.3 11.3-174-101.3zm-50.6 67.3l17.3-59.3 29.3 126-46.6-66.7zM69.2 323.9l-4 94L0 367.3v-46.8l69.2 3.4zm114.6 143.3L65.2 417.9l50.6-27.3 68 76.6zM65.2 417.9V480H18.5l46.7-62.1z'/%3E%3Cpath class='st0' d='M12.5 159.9L0 155.4v-17l12.5 21.5z'/%3E%3Cpath class='st1' d='M12.5 159.9L0 187.9V169l12.5-9.1z'/%3E%3Cpath class='st0' d='M308.5 164.6l28 165.3-68.7-126 40.7-39.3zm96.7 46.6l28-10-17.4 118.7-10.6-108.7zM220.5 346.6l62 82.6 11.3-71.3-73.3-11.3z'/%3E%3Cpath class='st0' d='M282.5 429.2l-6.3 50.8h-74.9l81.2-50.8zM69.2 323.9l46.6 66.7-50.6 27.3 4-94zm-56.7-164l56.7 164-4-79.3-52.7-84.7zM276.2 0l-1 7.9-109.4 12.7L201.3 0h74.9z'/%3E%3Cpath class='st0' d='M86.5 264.6l33.3-8-4 134-29.3-126z'/%3E%3Cpath class='st2' d='M293.8 357.9l122-38-59.3 102.7-62.7-64.7z'/%3E%3Cpath class='st3' d='M441.8 429.2l-85.3-6.6 59.3-102.7 26 109.3z'/%3E%3Cpath class='st4' d='M480 367.3v58.2l-38.2 3.7-26-109.3 64.2 47.4z'/%3E%3Cpath class='st5' d='M480 425.5V480h-53.3l15.1-50.8 38.2-3.7z'/%3E%3Cpath class='st4' d='M441.8 429.2L426.7 480h-57.5l-12.7-57.4 85.3 6.6z'/%3E%3Cpath class='st5' d='M369.2 480h-84.1l71.4-57.4 12.7 57.4z'/%3E%3Cpath class='st3' d='M356.5 422.6L285.1 480h-8.9l6.3-50.8 74-6.6zm-74 6.6L201.3 480h-35.9l18.4-12.8 98.7-38z'/%3E%3Cpath class='st2' d='M115.8 390.6l68 76.6 98.7-38-116.7-63.3-50 24.7z'/%3E%3Cpath class='st3' d='M119.8 256.6l-4 134 50-24.7-46-109.3z'/%3E%3Cpath class='st6' d='M220.5 346.6l62 82.6-116.7-63.3-46-109.3 100.7 90z'/%3E%3Cpath class='st2' d='M183.8 467.2L165.4 480H89l-23.8-62.1 118.6 49.3z'/%3E%3Cpath class='st5' d='M89 480H65.2v-62.1L89 480z'/%3E%3Cpath class='st4' d='M65.2 417.9L0 425.5v-58.2l65.2 50.6z'/%3E%3Cpath class='st6' d='M65.2 417.9L18.5 480H9.4l55.8-62.1z'/%3E%3Cpath class='st2' d='M65.2 417.9L9.4 480H0v-54.5l65.2-7.6z'/%3E%3Cpath class='st3' d='M65.2 244.6l54.6 12-33.3 8-17.3 59.3-4-79.3z'/%3E%3Cpath class='st6' d='M12.5 159.9L0 169v-13.6l12.5 4.5z'/%3E%3Cpath class='st3' d='M69.2 323.9L0 320.5V187.9l12.5-28 56.7 164zm267.3 6l-42.7 28 122-38-79.3 10zm143.5-142v132.6l-64.2-.6 64.2-132zm-171.5-23.3l124.7 36.6-28 10-68.7 118.7-28-165.3z'/%3E%3Cpath class='st5' d='M119.8 256.6l216.7 73.3-42.7 28-174-101.3z'/%3E%3Cpath class='st2' d='M267.8 203.9l68.7 126-216.7-73.3 148-52.7zm-255.3-44l107.3 96.7-54.6-12-52.7-84.7z'/%3E%3Cpath class='st6' d='M195.8 131.2l-76 125.4-107.3-96.7 183.3-28.7z'/%3E%3Cpath class='st5' d='M69.2 63.2l-56.7 96.7 183.3-28.7-126.6-68z'/%3E%3Cpath class='st4' d='M69.2 63.2l-56.7 96.7L0 138.4V69.3l69.2-6.1z'/%3E%3Cpath class='st5' d='M103.2 32.6l-34 30.6-4-63.2H89l14.2 32.6z'/%3E%3Cpath class='st4' d='M165.8 20.6l30 110.6-126.6-68 34-30.6 62.6-12z'/%3E%3Cpath class='st3' d='M119.8 256.6l76-125.4 112.7 33.4-40.7 39.3-148 52.7z'/%3E%3Cpath class='st4' d='M391.8 115.2l41.4 86-124.7-36.6 83.3-49.4zM275.2 7.9l33.3 156.7-112.7-33.4L275.2 7.9z'/%3E%3Cpath class='st2' d='M391.8 115.2l-83.3 49.4L275.2 7.9l9.9-7.9h84.1l22.6 115.2z'/%3E%3Cpath class='st6' d='M480 9.9v15.9l-32.2 47.4-56 42L480 9.9z'/%3E%3Cpath class='st2' d='M480 0v9.9l-88.2 105.3L426.7 0H480z'/%3E%3Cpath class='st4' d='M426.7 0l-34.9 115.2L369.2 0h57.5z'/%3E%3Cpath class='st3' d='M285.1 0l-9.9 7.9 1-7.9h8.9zm-83.8 0l-35.5 20.6-62.6 12L165.4 0h35.9z'/%3E%3Cpath class='st6' d='M18.5 0L0 25.8V9.9L9.4 0h9.1z'/%3E%3Cpath class='st2' d='M165.4 0l-62.2 32.6L89 0h76.4zM9.4 0L0 9.9V0h9.4z'/%3E%3Cpath class='st4' d='M480 69.3v69.1l-32.2-65.2 32.2-3.9z'/%3E%3Cpath class='st6' d='M480 155.4V169l-46.8 32.2-41.4-86 88.2 40.2z'/%3E%3C/svg%3E");}        </style>
        <div class="login-wrap login-wrap-lg p-a-md m-x-auto">
            <div class="rs-col-stacked full-width-on-mobile bg-grad-03 borderless light-bs m-a-0 b-r-a">
<?php if ($_SESSION["user_id"]) : ?>
    <?php endif;?>
    <?php if (!$_SESSION["user_id"]) : ?>
                <!-- Login Side -->
                <div class="stacked-item bg-white">
                    <div class="p-a-lg">
               
                        <p class="f-l-15 text-uppercase text-center text-muted">Вход в аккаунт</p>
                        <?PHP

# Определение платежей по акции 'Накопительный банк'
$c_date = date("Ymd",time());
$c_date_begin = strtotime($c_date." 00:00:00");
$c_date_end = strtotime($c_date." 23:59:59");
$y_date = date("Ymd",time()-24*60*60);
$y_date_begin = strtotime($y_date." 00:00:00");
$y_date_end = strtotime($y_date." 23:59:59");


$db->Query("SELECT * FROM db_back WHERE date_add >='".$c_date_begin."' AND  date_add <='".$c_date_end."' ORDER BY id DESC LIMIT 1");
if($db->NumRows() == 0) {


$db->Query("SELECT sum(serebro) FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' AND money >= '1'" );
if($db->NumRows() == 0) $sum_c = 0;
else $sum_c = $db->FetchRow();
   
   
$db->Query("SELECT date_add as date_add, user as user, user_id as user_id, SUM(serebro) as sserebro  FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' GROUP BY user ORDER by sserebro DESC LIMIT 1");
$firstuser=$db->FetchArray();
$firstpercent=(1.5/100)*$sum_c;
$db->Query("UPDATE db_users_b SET money_b = money_b + '".$firstpercent."' WHERE id = '".$firstuser['user_id']."'");  


$db->Query("SELECT date_add as date_add, user as user, user_id as user_id, SUM(serebro) as sserebro  FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' GROUP BY user ORDER by sserebro DESC LIMIT 1,2");
$seconduser=$db->FetchArray();
$secondpercent=(1.0/100)*$sum_c;
$db->Query("UPDATE db_users_b SET money_b = money_b + '".$secondpercent."' WHERE id = '".$seconduser['user_id']."'");  


$db->Query("SELECT date_add as date_add, user as user, user_id as user_id, SUM(serebro) as sserebro  FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."' GROUP BY user ORDER by sserebro DESC LIMIT 2,3");
$thirduser=$db->FetchArray();
$thirdpercent=(0.5/100)*$sum_c;
$db->Query("UPDATE db_users_b SET money_b = money_b + '".$thirdpercent."' WHERE id = '".$thirduser['user_id']."'");  

$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$firstuser['user_id']."','".$sum_c."','".$firstpercent."','".time()."'),(NULL,'".$seconduser['user_id']."','".$sum_c."','".$secondpercent."','".time()."'), (NULL,'".$thirduser['user_id']."','".$sum_c."','".$thirdpercent."','".time()."')");


//$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$firstuser['user_id']."','".$sum_c."','".$firstpercent."','".time()."')");
//$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$seconduser['user_id']."','".$sum_c."','".$secondpercent."','".time()."')");
//$db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$thirduser['user_id']."','".$sum_c."','".$thirdpercent."','".time()."')");



    /*$db->Query("SELECT sum(serebro) as serebro, user_id FROM db_insert_money WHERE date_add >='".$y_date_begin."' AND  date_add <='".$y_date_end."'  AND money >= '1' GROUP BY SEREBRO");
    $num_nb = $db->NumRows();
    $sum_nb = 0;
    $user_nb = '';
   
    if($num_nb != 0) {
        if($num_nb == 1) {
            $data_nb = $db->FetchArray();
            $sum_nb = $sum_nb + $data_nb['serebro'];
            $user_nb = $user_nb.$data_nb['user_id']." ";
        } else {
            while($data_nb = $db->FetchArray()) {
                $sum_nb = $sum_nb + $data_nb['serebro'];
                $user_nb = $user_nb.$data_nb['user_id']." ";
            }
        }
       
        $ar_user_nb = explode(" ", $user_nb);
        $pos_nb = rand(0, $num_nb-1);

        $db->Query("SELECT percent_back FROM db_config WHERE id = '1'");
        $percent_back = $db->FetchRow();
        $db->FreeMemory();
       
        $sum_nb1 = round($sum_nb * $percent_back / 100,0);
       
        # Зачилсяем юзверю
        $db->Query("UPDATE db_users_b SET money_b = money_b + '".$sum_nb1."' WHERE id = '".$ar_user_nb[$pos_nb]."'");      
       
        # Пишем в табл
        $db->Query("INSERT INTO db_back (`id`,`user_id`,`bank`,`sum`,`date_add`) VALUES(NULL,'".$ar_user_nb[$pos_nb]."','".$sum_nb."','".$sum_nb1."','".time()."')");      

        # echo $sum_nb." ".$num_nb." ".$pos_nb."-".$ar_user_nb[$pos_nb];
    }*/
}
    if(isset($_POST["log_email"])){
   
    $lmail = $func->IsMail($_POST["log_email"]);
   
        if($lmail !== false){
       
            $db->Query("SELECT id, user, pass, referer_id, banned FROM db_users_a WHERE email = '$lmail'");
            if($db->NumRows() == 1){
           
            $log_data = $db->FetchArray();
           
                if(strtolower($log_data["pass"]) == strtolower($_POST["pass"])){
               
                    if($log_data["banned"] == 0){
                       
                        # Считаем рефералов
                        $db->Query("SELECT COUNT(*) FROM db_users_a WHERE referer_id = '".$log_data["id"]."'");
                        $refs = $db->FetchRow();
                       
                        $db->Query("UPDATE db_users_a SET referals = '$refs', date_login = '".time()."', ip = INET_ATON('".$func->UserIP."') WHERE id = '".$log_data["id"]."'");
                       
                        $_SESSION["user_id"] = $log_data["id"];
                        $_SESSION["user"] = $log_data["user"];
                        $_SESSION["referer_id"] = $log_data["referer_id"];
                        ?>


<meta http-equiv="refresh" content="0;url=/profile" />


<?
                       
                    }else echo "<div class='alert alert-danger'>Аккаунт заблокирован</div>";
               
                }else echo "<div class='alert alert-danger'>Неверные данные</div>";
           
            }else echo "<div class='alert alert-danger'>E-mail не зарегистрирован</div>";
           
        }else echo "<div class='alert alert-danger'>Недопустимый формат E-mail</div>";
   
    }

?>
                        <form class="m-b-lg p-t-md" id="rs-validation-login-page" action="" method="post">
                            <div class="form-group has-feedback feedback-left">
                                <label class="control-label loginlab">Введите логин либо E-mail</label>
                                <input type="text" name="log_email" minlength="3" class="form-control" required>
                                <span class="gcon gcon-user f-s-xs form-control-feedback" aria-hidden="true"></span>
                            </div>
                            <div class="form-group has-feedback feedback-left">
                                <label class="control-label loginlab">Введите свой пароль</label>
                                <input type="password" minlength="6" name="pass" class="form-control" required>
                                <span class="gcon gcon-lock f-s-xs form-control-feedback" aria-hidden="true"></span>
                            </div>
                            <div class="form-group">
                                <button class=" btn btn-success btn-block text-uppercase" type="submit" >Войти в аккаунт</button>
                            </div>
                        </form>
                        <p class="text-center text-muted small m-a-0 ls">
                            <a href="./recovery">Напомнить пароль?</a><br>
                        </p>
                    </div>
                </div>
                <?php endif;?>
                <div class="stacked-item text-center">
                    <div class="p-a-lg">
                        <p class="f-l-15 text-uppercase text-center text-lighten">Впервые здесь?</p>
                    <a href='/'>    <img src="user/dist/img/login-logo-02.png" class="m-b-md m-t-xs" alt="logo">
                        <form class="m-b-lg">
                            <p class="ls" style="color:rgba(255, 255, 255, 0.85);">Регистрация совершенно бесплатна!</p>
                            <div class="form-group">
                                <a href="./reg" class="btn btn-warning btn-wide text-uppercase">Создать аккаунт</a>
                            </div>
                        </form>
                        <p class="text-lighten small ls">Приятный бонус после регистрации!</p>
                    </div>
                </div>

            </div>
        </div>


        <!-- BEGIN FOOTER -->
        <footer class="rs-footer login-footer text-center">
            <span class="text-white small ls">© 2018 Angry Birds - All Rights Reserved.</span>
        </footer>
        <!-- END FOOTER -->

    </div><!-- /#rs-wrapper -->

    <!-- Screen overlay is required -->
    <div id="rs-screen-overlay"></div>

    <!-- <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js></script>
    <script>
    window.jQuery || document.write('<script src="dist/js/vendor/jquery.min.js"><\/script>')
    </script> -->
   
    <script src="dist/js/vendor/modernizr.min.js"></script>
    <script src="dist/js/vendor/jquery.min.js"></script>
    <script src="dist/js/vendor/bootstrap.min.js"></script>
    <script src="dist/js/vendor/raphael.min.js"></script>

    <script src="dist/plugins/nicescroll/jquery.nicescroll.min.js"></script>
    <script src="dist/plugins/ismobile/isMobile.min.js"></script>
    <script src="dist/plugins/blockui/blockui.min.js"></script>
    <script src="dist/plugins/prettify/prettify.min.js"></script>
    <script src="dist/plugins/clipboard/clipboard.min.js"></script>
    <script src="dist/plugins/filestyle/bootstrap-filestyle.min.js"></script>
    <script src="dist/plugins/pace/pace.min.js"></script>

    <script src="dist/plugins/bootstrap-sweetalert/sweet-alert.min.js"></script>
        <script type="text/javascript">
          function onSubmit() {
            var postData = $('#rs-validation-login-page').serialize();
            $.post("/ajax/logger.php", postData)
            .done(function(data) {
              if(data!='success') {
                swal({
                    type: "warning",
                    title: "Ошибка!",
                    text: data,
                    timer: 5000,
                    showConfirmButton: true
                }, function() {grecaptcha.reset();});

              }
              else
              {
                location.href='/user/';
              }
            });
            return false;
          }
        </script>
    <!-- Page Plugins -->
    <script src="user/dist/plugins/chart-js/Chart.bundle.min.js"></script>
    <script src="user/dist/plugins/easypie/jquery.easypiechart.min.js"></script>
    <script src="user/dist/plugins/morris/morris.min.js"></script>
    <script src="user/dist/plugins/sparkline/jquery.sparkline.min.js"></script>

    <!-- Template Js -->
    <script src="user/dist/js/apps.js"></script>
    <script src="user/dist/js/dashboard.js"></script>
    <script src="user/dist/js/layout-default.js"></script>

</body>
</html>
Это файл авторизации.
А выкидывает ведь из аккаунта. Нужен файл /pages/_account.php
 

Pluginshik

Участник
Это файл авторизации.
А выкидывает ведь из аккаунта. Нужен файл /pages/_account.php
PHP:
<?PHP

# Счетчик

function TimerSet(){

    list($seconds, $microSeconds) = explode(' ', microtime());    return $seconds + (float) $microSeconds;

}

$_timer_a = TimerSet();

#откуда пришел

if (!isset($_COOKIE['rsite'])) {

setcookie('rsite', $_SERVER['HTTP_REFERER'], time() + 24 * 3600);

}

# Старт сессии

@session_start();

# Старт буфера

@ob_start();

# Default

$_OPTIMIZATION = array();

$_OPTIMIZATION["title"] = "Дальнобойщики игра";

$_OPTIMIZATION["description"] = "Захватывающая онлайн игра с выводом реальных денег, которая увлечет всех, кто интересуется финансами и доходами.";

$_OPTIMIZATION["keywords"] = "бонусы, payeer, заработок, без вложений, доход, кран, игра, серфинг, прибыль, вложения, заработать, ферма с выводом, дальнобойщики2017";

# Константа для Include

define("CONST_RUFUS", true);

# Автоподгрузка классов

function __autoload($name){ include("classes/_class.".$name.".php");}

# Класс конфига

$config = new config;

# Функции

$func = new func;

# Установка REFERER

include("inc/_set_referer.php");

# База данных

$db = new db($config->HostDB, $config->UserDB, $config->PassDB, $config->BaseDB);

$life_time = new life_time($db);

$life_time->CheckTime();

# Шапка

@include("inc/_header2.php");

# Блокировка сессии

if(!isset($_SESSION["user_id"])){ Header("Location: /"); return; }

        if(isset($_GET["menu"])){

            $menu = strval($_GET["menu"]);

            switch($menu){

        case "promo": include("account/_promo.php"); break; // Промо материалы

        case "partnership": include("account/_partnership.php"); break; // Партнерская программа

        case "myreferrals": include("account/_myreferrals.php"); break; // Список рефералов

        case "exchange": include("account/_exchange.php"); break; // Обменный пункт   

        case "outpay": include("account/_outpay.php"); break; // Выплата пользователю

        case "insert": include("account/_insert.php"); break; // Пополнение баланса

        case "settings": include("account/_settings.php"); break; // Настройки

        case "chat": include("account/_chat.php"); break; // Настройки

         case "pm": include("pages/account/_pm.php"); break; // Внутренняя почта

case "kamikadze2": include("pages/account/_kamikadze2.php"); break; // игра

        case "orel": include("pages/account/_orel.php"); break; // орёл или решка

        case "avatar": include("account/_avatar.php"); break; // Аватарка

     case "chat": include("pages/account/_chat.php"); break; // ЧАТ

case "thimble": include("pages/account/_thimble.php"); break; // Наперстки 2

    

        # серфинг

case "serfing": include("account/_serfing.php"); break; // серфинг

case "serfing_add": include("account/_serfing_add.php"); break; // серфинг

case "serfing_view": include("account/_serfing_view.php"); break; // серфинг

case "serfing_cabinet": include("account/_serfing_cabinet.php"); break; // серфинг

case "serfing_moder": include("account/_serfing_moder.php"); break; // серфинг

        case "daily": include("account/_daily.php"); break; // Ежедневный бонус

        case "payment_serf": include("account/_payment_serf.php"); break; // Выплата WM

        case "insert_serf": include("account/_insert_serf.php"); break; // Пополнение баланса

        case "user_7days": include("account/_user_7days.php"); break; // Ежедневный бонус

        case "user_bonus": include("account/_user_bonus.php"); break; // Достижения

        case "energy": include("account/_energy.php"); break; // Энергия пользователя

        case "bankomet": include("account/_back.php"); break; // Банкомет

        case "lottery": include("account/_lottery.php"); break; // Лотерея

        case "wall": include("account/_wall.php"); break; // Стена пользователя

        case "carpark": include("account/_carpark.php"); break; // Покупка авто и сбор прибыли

        case "claim": include("account/_claim.php"); break; // Собрать прибыль

        case "training": include("account/_training.php"); break; // Собрать прибыль

        case "levels": include("account/_levels.php"); break; // Уровни

        case "profile": include("account/_user_account.php"); break; // Уровни

        case "output": @session_destroy(); Header("Location: /"); return; break; // Выход

            # Страница ошибки

            default: @include("pages/_404.php"); break;

            }

        }else @include("account/_user_account.php");

# Подвал

@include("inc/_footer2.php");

# Заносим контент в переменную

$content = ob_get_contents();

# Очищаем буфер

ob_end_clean();

# Заменяем данные

$content = str_replace("{!TITLE!}",$_OPTIMIZATION["title"],$content);

$content = str_replace('{!DESCRIPTION!}',$_OPTIMIZATION["description"],$content);

$content = str_replace('{!KEYWORDS!}',$_OPTIMIZATION["keywords"],$content);

$content = str_replace('{!GEN_PAGE!}', sprintf("%.5f", (TimerSet() - $_timer_a)) ,$content);

# Вывод баланса

    if(isset($_SESSION["user_id"])){

        $user_id = $_SESSION["user_id"];

        $db->Query("SELECT money_b, money_p FROM db_users_b WHERE id = '$user_id'");

        $balance = $db->FetchArray();

        $content = str_replace('{!BALANCE_B!}', sprintf("%.2f", $balance["money_b"]) ,$content);

        $content = str_replace('{!USER_ID!}', $user_id ,$content);

        $content = str_replace('{!BALANCE_P!}', sprintf("%.2f", $balance["money_p"]) ,$content);

        $content = str_replace('{!BALANCE_SERF!}', sprintf("%.2f", $balance["money_serf"]) ,$content);

    }

    

// Выводим контент

echo $content;

?>
 

pligin

Команда форума
Администратор
PHP:
<?PHP

# Счетчик

function TimerSet(){

    list($seconds, $microSeconds) = explode(' ', microtime());    return $seconds + (float) $microSeconds;

}

$_timer_a = TimerSet();

#откуда пришел

if (!isset($_COOKIE['rsite'])) {

setcookie('rsite', $_SERVER['HTTP_REFERER'], time() + 24 * 3600);

}

# Старт сессии

@session_start();

# Старт буфера

@ob_start();

# Default

$_OPTIMIZATION = array();

$_OPTIMIZATION["title"] = "Дальнобойщики игра";

$_OPTIMIZATION["description"] = "Захватывающая онлайн игра с выводом реальных денег, которая увлечет всех, кто интересуется финансами и доходами.";

$_OPTIMIZATION["keywords"] = "бонусы, payeer, заработок, без вложений, доход, кран, игра, серфинг, прибыль, вложения, заработать, ферма с выводом, дальнобойщики2017";

# Константа для Include

define("CONST_RUFUS", true);

# Автоподгрузка классов

function __autoload($name){ include("classes/_class.".$name.".php");}

# Класс конфига

$config = new config;

# Функции

$func = new func;

# Установка REFERER

include("inc/_set_referer.php");

# База данных

$db = new db($config->HostDB, $config->UserDB, $config->PassDB, $config->BaseDB);

$life_time = new life_time($db);

$life_time->CheckTime();

# Шапка

@include("inc/_header2.php");

# Блокировка сессии

if(!isset($_SESSION["user_id"])){ Header("Location: /"); return; }

        if(isset($_GET["menu"])){

            $menu = strval($_GET["menu"]);

            switch($menu){

        case "promo": include("account/_promo.php"); break; // Промо материалы

        case "partnership": include("account/_partnership.php"); break; // Партнерская программа

        case "myreferrals": include("account/_myreferrals.php"); break; // Список рефералов

        case "exchange": include("account/_exchange.php"); break; // Обменный пункт  

        case "outpay": include("account/_outpay.php"); break; // Выплата пользователю

        case "insert": include("account/_insert.php"); break; // Пополнение баланса

        case "settings": include("account/_settings.php"); break; // Настройки

        case "chat": include("account/_chat.php"); break; // Настройки

         case "pm": include("pages/account/_pm.php"); break; // Внутренняя почта

case "kamikadze2": include("pages/account/_kamikadze2.php"); break; // игра

        case "orel": include("pages/account/_orel.php"); break; // орёл или решка

        case "avatar": include("account/_avatar.php"); break; // Аватарка

     case "chat": include("pages/account/_chat.php"); break; // ЧАТ

case "thimble": include("pages/account/_thimble.php"); break; // Наперстки 2

   

        # серфинг

case "serfing": include("account/_serfing.php"); break; // серфинг

case "serfing_add": include("account/_serfing_add.php"); break; // серфинг

case "serfing_view": include("account/_serfing_view.php"); break; // серфинг

case "serfing_cabinet": include("account/_serfing_cabinet.php"); break; // серфинг

case "serfing_moder": include("account/_serfing_moder.php"); break; // серфинг

        case "daily": include("account/_daily.php"); break; // Ежедневный бонус

        case "payment_serf": include("account/_payment_serf.php"); break; // Выплата WM

        case "insert_serf": include("account/_insert_serf.php"); break; // Пополнение баланса

        case "user_7days": include("account/_user_7days.php"); break; // Ежедневный бонус

        case "user_bonus": include("account/_user_bonus.php"); break; // Достижения

        case "energy": include("account/_energy.php"); break; // Энергия пользователя

        case "bankomet": include("account/_back.php"); break; // Банкомет

        case "lottery": include("account/_lottery.php"); break; // Лотерея

        case "wall": include("account/_wall.php"); break; // Стена пользователя

        case "carpark": include("account/_carpark.php"); break; // Покупка авто и сбор прибыли

        case "claim": include("account/_claim.php"); break; // Собрать прибыль

        case "training": include("account/_training.php"); break; // Собрать прибыль

        case "levels": include("account/_levels.php"); break; // Уровни

        case "profile": include("account/_user_account.php"); break; // Уровни

        case "output": @session_destroy(); Header("Location: /"); return; break; // Выход

            # Страница ошибки

            default: @include("pages/_404.php"); break;

            }

        }else @include("account/_user_account.php");

# Подвал

@include("inc/_footer2.php");

# Заносим контент в переменную

$content = ob_get_contents();

# Очищаем буфер

ob_end_clean();

# Заменяем данные

$content = str_replace("{!TITLE!}",$_OPTIMIZATION["title"],$content);

$content = str_replace('{!DESCRIPTION!}',$_OPTIMIZATION["description"],$content);

$content = str_replace('{!KEYWORDS!}',$_OPTIMIZATION["keywords"],$content);

$content = str_replace('{!GEN_PAGE!}', sprintf("%.5f", (TimerSet() - $_timer_a)) ,$content);

# Вывод баланса

    if(isset($_SESSION["user_id"])){

        $user_id = $_SESSION["user_id"];

        $db->Query("SELECT money_b, money_p FROM db_users_b WHERE id = '$user_id'");

        $balance = $db->FetchArray();

        $content = str_replace('{!BALANCE_B!}', sprintf("%.2f", $balance["money_b"]) ,$content);

        $content = str_replace('{!USER_ID!}', $user_id ,$content);

        $content = str_replace('{!BALANCE_P!}', sprintf("%.2f", $balance["money_p"]) ,$content);

        $content = str_replace('{!BALANCE_SERF!}', sprintf("%.2f", $balance["money_serf"]) ,$content);

    }

   

// Выводим контент

echo $content;

?>
Я забыл, что такое говно ещё существует в сети...
Покажи файл профиля
 

Pluginshik

Участник
Я забыл, что такое говно ещё существует в сети...
Покажи файл профиля
Видимо он не исправен, мне его парень дал сказал что с ним все должно быть ок я после твоего сообщения про говно передал ему обратно его говно:) заранее извиняюсь за все это, теперь у меня вопрос по другому скрипту Motormomey:rolleyes:
 
Статус
Закрыто для дальнейших ответов.
Верх