From: Roland Häder Date: Sat, 13 Sep 2008 00:28:58 +0000 (+0000) Subject: Primera class is now backward-compatible to PHP4 (should be!) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf272c703f483113b2df4765c69d7f1d714b8638;p=mailer.git Primera class is now backward-compatible to PHP4 (should be!) --- diff --git a/inc/databases.php b/inc/databases.php index 335322cff0..a1c0544361 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); 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); diff --git a/inc/libs/primera_functions.php b/inc/libs/primera_functions.php index e1c6fc57e2..1d19c960a7 100644 --- a/inc/libs/primera_functions.php +++ b/inc/libs/primera_functions.php @@ -105,25 +105,25 @@ class PrimeraApi { /** * 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; @@ -132,7 +132,7 @@ class PrimeraApi { /** * 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); @@ -173,7 +173,7 @@ class PrimeraApi { * @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), @@ -195,7 +195,7 @@ class PrimeraApi { * - 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); @@ -213,7 +213,7 @@ class PrimeraApi { /** * Die Funktion liefer den aktuellen Primerastand */ - public function getPrimera() { + function getPrimera() { $primera = false; $postData = array( "PrimusInterface_Action" => "GetPrimera" ); $postReturn = $this->parseContent( $this->queryApi($postData) ); @@ -227,7 +227,7 @@ class PrimeraApi { /** * Getter fuer data */ - public function getData () { + function getData () { return $this->data; } }