define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "313");
+define('CURR_SVN_REVISION', "314");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
/**
* URL für das Interface auf dem Primusserver:
*/
- private $host = "http://www.primusportal.de";
- private $path = "/transfer.interface.2.0.php";
+ var $host = "http://www.primusportal.de";
+ var $path = "/transfer.interface.2.0.php";
- private $errno = 0;
- private $err = "";
+ var $errno = 0;
+ var $err = "";
- private $seperator = ":";
+ var $seperator = ":";
- private $username = "";
- private $password = "";
+ var $username = "";
+ var $password = "";
- private $data = array();
+ var $data = array();
- private $headers = "";
+ var $headers = "";
/**
* Konstruktor
*/
- public function PrimeraApi ($PPUsername, $PPPassword) {
+ function PrimeraApi ($PPUsername, $PPPassword) {
// Set data
$this->username = $PPUsername;
$this->password = $PPPassword;
/**
* Anfrage senden und Rückgabecode in Variable speichern
*/
- private function queryApi ( $data = array() ) {
+ function queryApi ( $data = array() ) {
// Base64-encode username and password hash
$data["PrimusInterface_Username"] = base64_encode($this->username);
$data["PrimusInterface_Password"] = base64_encode($this->password);
* @param int $Amount Betrag in ganzzahligen Primera
* @param string $Description Beschreibung (Sichtbar in Einzelauflistung)
*/
- public function payPrimera ($Receiver, $Amount, $Description = "") {
+ function payPrimera ($Receiver, $Amount, $Description = "") {
$valid = false;
$postData = array("PrimusInterface_Action" => "Pay",
"PrimusInterface_Receiver" => base64_encode($Receiver),
* - ist er aktiv
* @param string/int $User Userid / Username
*/
- public function CheckPrimusUser($User) {
+ function CheckPrimusUser($User) {
$valid = false;
$postData = array("PrimusInterface_Action"=> "CheckPrimusUser",
"PrimusInterface_CheckPrimusUser" => $User);
/**
* Die Funktion liefer den aktuellen Primerastand
*/
- public function getPrimera() {
+ function getPrimera() {
$primera = false;
$postData = array( "PrimusInterface_Action" => "GetPrimera" );
$postReturn = $this->parseContent( $this->queryApi($postData) );
/**
* Getter fuer data
*/
- public function getData () {
+ function getData () {
return $this->data;
}
}