Размер файла: 1.03Kb
<?php
/*
Подключение других скриптов к магазину
*/
include_once("config.php");
include_once("function.php");
include_once("session.php");
$_dir=dirname(__FILE__)."/";
$path_download=$_dir.$path_download;
$path_session=$_dir.$path_session;
$path_log=$_dir.$path_log;
$path_text=$_dir.$path_text;
function ShopAccess($id_product,$price){
global $shopsite;
$balance=0;
if(isset($_REQUEST["ses"])){
$download["id"]=$id_product;
$download["title"]=$id_product;
$download["price"]=$price;
$session=strtr($_REQUEST["ses"],array("."=>"","/"=>"","\\"=>"","'"=>"","\""=>""));
$ses=GetSession($session,-$price,$download);
if(is_array($ses)){
$balance=$ses[1];
return true;
};
};
Relocation($shopsite."/balance.php?price=".$price."&return=".urlencode($_SERVER["REQUEST_URI"]),"Оплата",-1);
return true;
};
?>