Файл: vkolhoze.com/xsolla/class.config.php
Строк: 40
<?php
require_once("class.response.php");
require_once("class.billing.php");
require_once("class.project.php");
require_once("class.protocol.php");
require_once("class.standart.php");
/*
* Xsolla Config
*/
class XsollaConfig
{
public static $mysqlHost = "localhost";
public static $mysqlUser = "bestkolhozbase";
public static $mysqlPass = "zx78op00998877";
public static $mysqlDb = "bestkolhoz";
//public static $allowedIPs = array("94.103.26.178","94.103.26.181");
public static $secretKey = "9GQrY4rH4sLUWpPG";
}
class XsollaStandartSampleProject extends XsollaStandartProject
{
public function check($nick)
{
$myrow = mysql_query ("SELECT id FROM kolhoz_user WHERE nick='$id_user'");
$num_rows = mysql_num_rows($myrow);
if ($num_rows > 0 ){
return array("code" => XsollaStandartProtocolResponse::$codeSuccess, "description" => "Success");
}
}
public function sell()
{
// put your code here
return array("code" => XsollaStandartProtocolResponse::$codeSuccess, "description" => "Success");
}
public function cancel()
{
// put your code here
return array("code" => XsollaStandartProtocolResponse::$codeCancelSuccess, "description" => "Success");
}
}
class XsollaBilling
{
}