<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
?>
<?php

//**********************************Multicart3.0 Modification***************************
include_once "../classes/cls_store.php";

// Check the Buyer Account exists for this seller
$user_seller_previlge_added         =    'N';
if($_SESSION["sess_artistid"]!='') {
         $userObj   =     Store::get_buyer_account_info($_SESSION["sess_artistid"]);
            
         if($userObj->status==SUCCESS)  {
                    $userid     = $userObj->data;
         }

         if($userid==$_SESSION["sess_artistid"])
             {
                    $user_seller_previlge_added     =    'Y';
             }

}
//**********************************Multicart3.0 Modification***************************
if(basename($_SERVER['PHP_SELF']) == "payment.php" || basename($_SERVER['PHP_SELF']) == "yourpay_payment.php" || basename($_SERVER['PHP_SELF']) == "success.php") {
    $seller_site_url	= SECURE_SITE_URL;
    $logofolder = str_replace("https://", "//", $seller_site_url). "/banners";
}
else {
    $seller_site_url	= SITE_URL;
    $logofolder = str_replace("http://", "//", $seller_site_url). "/banners";
}

?>
<!--Admin top menu-->

<div align="left" class="header">
    <!--header area start -->

    <div align="left" class="logo"><a style="cursor:pointer" href="../index.php">
            <img src="<?php echo $logofolder?>/<?php echo $logoimage?>" alt=""  border="0" /></a>
    </div>

    <div align="right" class="logouts_2"><a href="../index.php"><?php echo TEXT_SITE_HOME;?></a>

        <?php
        // Redirect user to dashboard if buyer account activated.
        if($userid>0)
            {
               echo ' &nbsp;| &nbsp;<a href="activate_seller_session.php?userid='.$userid.'">'.BUYER_DASHBOARD_TEXT.' </a>';
        }

        if(isset($_SESSION["sess_artistid"]) and $_SESSION["sess_artistid"]!= "") {

            ?>
        &nbsp;|&nbsp;<?php echo TEXT_LOGGED_AS;?> <b><?php echo ucfirst($_SESSION["sess_artistname"])?></b>&nbsp;<a href="../sellers/logout.php"><span class="required">[<?php echo TEXT_LOGOUT;?>]</span></a>

    <?php

        }


        ?>
    </div>


    <!--header area end -->
</div>
