Your IP : 13.59.68.161


Current Path : /home/lentoinv/finationglobal.com/account/
Upload File :
Current File : /home/lentoinv/finationglobal.com/account/header.php

<?php
require_once('lib/connection.php');
if(!isset($_SESSION['user_id'])){ header('location: login.php'); exit; }
if($uri!='receipt'){$pro->redirctInactive();}
//$report = $uri;
if(isset($report)){ $pro->Alert();} 



                function userCats($type){
                    $arr = [];
    if($type==50){$arr[] = 1; $arr[] = 2; $arr[] = 6; }
elseif($type==25){$arr[] = 1; $arr[] = 2; $arr[] = 5; }
elseif($type==5){$arr[] = 1; $arr[] = 2; $arr[] = 4; }
else{$arr[] = 2; $arr[] = 3; }

return $arr;
                }

function updateSeen($sn,$id){
    global $db;
    $rec = [];
$rec = json_decode(sqLx('bulkmsg','sn',$sn,'rec'))??[];
if(in_array($id,$rec)){
    return;
}

else{$rec[] = (int)$id;
$json = json_encode($rec);
$db->query("UPDATE bulkmsg SET rec = '$json' WHERE sn='$sn' ");
}
}

function unreadMsg($uidx){
    global $db;
$sql = $db->query("SELECT * FROM bulkmsg WHERE JSON_CONTAINS(rec, $uidx) ");
$read = mysqli_num_rows($sql);
$type = sqLx('user','sn',$uidx,'pack');
$all = 0;
$sql = $db->query("SELECT * FROM bulkmsg ORDER BY sn DESC");
    while($row = mysqli_fetch_assoc($sql)){
        if(in_array($row['catid'],userCats($type))){$all += 1;}}
return ($all-$read);
}

?>
<!--<link rel="stylesheet" href="demo/css/reset.css">  
<link rel="stylesheet" href="demo/css/style.css">CSS reset --> 
<style type="text/css">
.fa{margin-right:8px;}
</style>
<script src="https://kit.fontawesome.com/7f1181c36c.js" crossorigin="anonymous"></script>
<div class="app-header header sticky">
                    <div class="container-fluid main-container">
                        <div class="d-flex align-items-center">
                            <a aria-label="Hide Sidebar" class="" data-bs-toggle="sidebar" href="javascript:void(0);"><big><i class="fa fa-bars"></i></big></a>
                            <div class="responsive-logo">
                             
                           <img src="finationbr.png" width="150">
                            </div>
                         
                            <div class="main-header-center ms-3 d-none d-lg-block">
                                <input class="form-control" placeholder="Search for anything..." type="search"> <button class="btn"><i class="fa fa-search" aria-hidden="true"></i></button>
                            </div>
                            <div class="d-flex order-lg-2 ms-auto header-right-icons">
                                <!-- SEARCH -->
                                <button class="navbar-toggler navresponsive-toggler d-lg-none ms-auto" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent-4" aria-controls="navbarSupportedContent-4" aria-expanded="false" aria-label="Toggle navigation">
                                        <span class="navbar-toggler-icon fe fe-more-vertical text-dark"></span>
                                    </button>
                                <div class="navbar navbar-collapse responsive-navbar p-0">
                                    <div class="collapse navbar-collapse" id="navbarSupportedContent-4">
                                        <div class="d-flex order-lg-2">
                                            <div class="dropdown d-block d-lg-none">
                                                <a href="javascript:void(0);" class="nav-link icon" data-bs-toggle="dropdown">
                                                    <i class="fe fe-search"></i>
                                                </a>
                                                <div class="dropdown-menu header-search dropdown-menu-start">
                                                    <div class="input-group w-100 p-2">
                                                        <input type="text" class="form-control" placeholder="Search....">
                                                        <div class="input-group-text btn btn-primary">
                                                            <i class="fa fa-search" aria-hidden="true"></i>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="dropdown d-md-flex">
                                                <a class="nav-link icon theme-layout nav-link-bg layout-setting">
                                                    <span class="dark-layout"><i class="fa-regular fa-moon"></i></span>
                                                    <span class="light-layout"><i class="fa-regular fa-moon" style="color: #f3f4f7;"></i></span>
                                                </a>
                                            </div>
                                            <!-- Theme-Layout -->
                                            <div class="dropdown d-md-flex">
                                                <a class="nav-link icon full-screen-link nav-link-bg">
                                                    <i class="fa-solid fa-expand fullscreen-button" id="myvideo"></i>
                                                    
                                                </a>
                                            </div>
                                     
                                            
                                            <!-- MESSAGE-BOX -->
                                            <div class="dropdown d-md-flex profile-1">
                                                <a href="javascript:void(0);" data-bs-toggle="dropdown" class="nav-link leading-none d-flex px-1">
                                                    <span>
                                                        <?php if(!is_null(userName($uid,'photo'))){ ?>
                                                                     <img class="avatar  profile-user brround cover-image" src="uploads/<?= userName($uid,'photo') ?>" alt="img">
                                                                    <?php } else{ ?>
                                                            <img src="uploads/user.png" alt="profile-user" class="avatar  profile-user brround cover-image">
                                                        <?php } ?>
                                                        </span>
                                                </a>
                                                <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
                                                    <div class="drop-heading">
                                                        <div class="text-center">
                                                            <h5 class="text-dark mb-0"><?= userName($uid,'user') ?><br><?= userName($uid) ?></h5>
                                                           
                                                        </div>
                                                    </div>
                                                    <div class="dropdown-divider m-0"></div>
                                                    <a class="dropdown-item">
                                                        <i class="dropdown-icon fe fe-user"></i> Subscription: <?= $pro->typeTitle($type) ?>
                                                    </a>
                                                    <a class="dropdown-item">
                                                        <i class="dropdown-icon fe fe-user"></i> Leadership: <?= $pro->stageTitle($stage) ?>
                                                    </a>
                                                    <a class="dropdown-item" href="myprofile">
                                                        <i class="dropdown-icon fe fe-user"></i> Profile
                                                    </a>
                                                    
                                                      <!-- <a class="dropdown-item" href="">
                                                        <i class="dropdown-icon fe fe-settings"></i> Settings
                                                    </a>
                                                  <a class="dropdown-item" href="faq.html">
                                                        <i class="dropdown-icon fe fe-alert-triangle"></i> Need help?
                                                    </a> -->
                                                    <a class="dropdown-item" href="?logout=true">
                                                        <i class="dropdown-icon fe fe-alert-circle"></i> Sign out
                                                    </a>
                                                </div>
                                            </div>
                                         
                                            <!-- SIDE-MENU -->
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /app-Header -->

                <!--APP-SIDEBAR-->
                <div class="sticky">
                    <div class="app-sidebar__overlay" data-bs-toggle="sidebar"></div>
                    <aside class="app-sidebar">
                        <div class="side-header">
                       
                            <img src="finationbr.png" width="150">
                            <!-- LOGO -->
                        </div>
                        <div class="main-sidemenu">
                            <div class="slide-left disabled" id="slide-left"><svg xmlns="http://www.w3.org/2000/svg"
                                    fill="#7b8191" width="24" height="24" viewBox="0 0 24 24">
                                    <path d="M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z" />
                                </svg></div>
                            <ul class="side-menu">
                                <li class="sub-category">
                                    <h3></h3>
                                </li>
                               
                              


<?php if($pro->adminLevel()==TRUE){ ?>
                                <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="javascript:void(0);"><big><i class="fa fa-bars"></i></big> <span class="side-menu__label">Admin Operations</span><i class="angle fa fa-angle-right"></i></a>
                                    <ul class="slide-menu">
                                        
                                        <li><a href="searchuser" class="slide-item"> Search User</a></li>
                                        <li><a href="usersummary" class="slide-item"> User Summary</a></li>
                                        <li><a href="fundingapproval" class="slide-item"> Manage Wallet Funding</a></li>
                                        <li><a href="manualfund" class="slide-item"> Manual Wallet Funding (NGN)</a></li>
                                        <li><a href="funddeduction" class="slide-item"> Deduct Funds</a></li>
                                        <li><a href="managewithdrawal" class="slide-item">Manage Withdrawals</a></li>
                                        <li><a href="managewealthclub" class="slide-item">Manage Wealth Club</a></li>
                                        <li><a href="managewealthclubx" class="slide-item">Manage Wealth Club (Naira)</a></li>
                                        <li><a href="allhistory" class="slide-item"> Transaction History</a></li>
                                        <li><a href="allhistory2" class="slide-item"> Transaction History (Naira)</a></li>
                                        <li><a href="payattempt" class="slide-item"> Crypto Payment Attempts</a></li>
                                        <li><a href="manageproperties" class="slide-item"> Manage Properties</a></li>
                                        <li><a href="manageproperties2" class="slide-item"> Manage Properties (Naira)</a></li>
                                        <li><a href="purchasedproperties" class="slide-item"> Purchased Properties</a></li>
                                       <li><a href="manageinvestfunds" class="slide-item"> Manage Fixed ROI Investment</a></li> 
                                        <li><a href="manageautomatedsavings" class="slide-item"> Manage Automated 
                                        Savings</a></li>
                                        <li><a href="managegroupinvest" class="slide-item"> Manage Group Investment</a></li> 
                                    
                                        <li><a href="managegroupinvest2" class="slide-item"> Manage Group Investment (Naira)</a></li> 
                                    
                                                    
                                        <li><a href="managerevolveinvest2" class="slide-item"> Manage Revolving Investments (Naira)</a></li>
                                       
                                <li><a href="managerevolveinvest" class="slide-item"> Manage Revolving Investments</a></li>
                                        <li><a href="adminsetup" class="slide-item"> General System Setup</a></li>
                                        <li><a href="managenews" class="slide-item"> Manage Announcement</a></li>
                                        <li><a href="bulkemails" class="slide-item"> Send Bulk Messages</a></li>
                                        <li><a href="videocourse" class="slide-item">Video Platform</a></li>
                                        <li><a href="manageleaders" class="slide-item">Manage Leaders</a></li>
                                        <li><a href="topup" class="slide-item">Topup Users</a></li>
                                        <li><a href="highcom" class="slide-item">Monthly Commission Earners</a></li>
                                        <li><a href="manageincentives.php" class="slide-item">Manage Incentives</a></li>
                                        
                                    </ul>
                                </li>
                <?php } ?>
                                 <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="./"><big><big><i class="fa fa-home"></i></big></big><span class="side-menu__label">Dashboard</span></a>
                                </li>
                                 <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="messages"><big><big><i class="fa fa-bell"></i></big></big><span class="side-menu__label">Notification </span> <span class="badge badge-danger" style="color:red; border: solid thin red; border-radius: 12px; padding: 8px;"><?=unreadMsg($uidx)?></span></a> 
                                </li>
                                 <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="subscriptionplans"><big><big><i class="fa fa-list"></i></big></big><span class="side-menu__label">Subscription Plans</span></a>
                                </li>
                               
                                <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="javascript:void(0);"><big><i class="fa fa-list"></i></big><span class="side-menu__label">Transactions</span><i class="angle fa fa-angle-right"></i></a>
                                    <ul class="slide-menu">
                                        
                                        <li><a href="fundwallet" class="slide-item"> Fund Wallet</a></li>
                                        <li><a href="fundtransfer" class="slide-item"> Transfer Funds</a></li>
                                        <li><a href="fundconvert" class="slide-item"> Funds Conversion</a></li>
                                        <li><a href="fundwithdrawal" class="slide-item"> Withdraw Funds</a></li>
                                        <li><a href="myhistory" class="slide-item"> Transaction History</a></li>

                                        <?php if(userName($uid,'naira')==1){ ?>
                                        <li><a href="myhistory2" class="slide-item"> Transaction History (Naira)</a></li>
                                       <?php }  ?> 
                                        
                                    </ul>
                                </li>
                                  <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="javascript:void(0);"><big><i class="fa fa-users"></i></big><span class="side-menu__label">My Team</span><i class="angle fa fa-angle-right"></i></a>
                                    <ul class="slide-menu">
                                        
                                        <li><a href="geneology" class="slide-item"> Geneology</a></li>
                                        <li><a href="referrals" class="slide-item"> Active Referrals</a></li>
                                        <li><a href="inactivereferrals" class="slide-item"> Inactive Referrals</a></li>
                                        
                                    </ul>
                                </li>
                         
                     
                                         
                            <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="automatedsavings"><big><i class="fa fa-list"></i></big><span class="side-menu__label">Automated Savings</span></a>
                                </li>   <?php if(userName($uid,'naira')==1){ ?>         
                            <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="automatedsavings2"><big><i class="fa fa-list"></i></big><span class="side-menu__label">Automated Savings (Naira)</span></a>
                                </li>
                            <?php } ?>

                                
                                <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="javascript:void(0);"><big><i class="fa fa-list"></i></big><span class="side-menu__label">Real Estate Opportunities</span><i class="angle fa fa-angle-right"></i></a>
                                    <ul class="slide-menu">
                                        
                                        <li><a href="requestincentive" class="slide-item">My Incentives</a></li>
                                         <li><a href="listedproperties" class="slide-item"> Available Properties (USD)</a></li> 
                                            <?php if(userName($uid,'naira')==1){ ?>
                                            <li><a href="listedproperties2" class="slide-item"> Available Properties (Naira)</a></li>
                                            <?php }  ?>
                                        <li><a href="groupinvestment" class="slide-item"> Group Property Investment</a></li>
                                        <li><a href="propertymarket" class="slide-item"> Trading Marketplace</a></li>
                                        <?php if(userName($uid,'naira')==1){ ?>
                                            <li><a href="groupinvestment2" class="slide-item"> Group Property Investment (Naira)</a></li>
                                            <li><a href="propertymarket2" class="slide-item"> Trading Marketplace (Naira)</a></li>
                                            <?php }  ?>
                                       
                                    
                                            <li><a href="cycleinvestment" class="slide-item"> Contribute to Own</a></li>
                                            
                                            <?php if(userName($uid,'naira')==1){ ?>
                                            <li><a href="cycleinvestment2" class="slide-item"> Contribute to Own (Naira)</a></li>
                                            <?php }  ?> 

                                <li>
                                    <a class="slide-item" data-bs-toggle="slide" href="investfunds">REIT</a>
                                </li>
                                <?php if(userName($uid,'naira')==1){ ?>
                                <li>
                                    <a class="slide-item" data-bs-toggle="slide" href="investfunds2">REIT (Naira)</a>
                                </li>
                            <?php } ?>
                                    </ul>
                                </li><li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="wealthclubx"><big><i class="fa fa-list"></i></big><span class="side-menu__label">Fination Wealth Club</span></a>
                                </li>
                                <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="courses"><big><i class="fa fa-list"></i></big><span class="side-menu__label">Training Courses</span></a>
                                </li>
                                
                              
                                
                              
                                </li> 

                                <li class="slide">
                                    <a class="side-menu__item" data-bs-toggle="slide" href="?logout=true"><i class="fa fa-power-off"></i><span class="side-menu__label">SIGN OUT</span></a>
                                </li>
                              
                            </ul>
                           
                        </div>
                    </aside>
                </div>

?>