var $errno = '0';
var $err = '';
- var $seperator = ':';
+ var $separator = ':';
var $username = '';
var $password = '';
function parseContent ( $content ) {
$x = explode("\n", $content);
$return = array();
- foreach($x as $currentLine) {
+ foreach ($x as $currentLine) {
$line_exploded = explode(':', $currentLine,2);
if (count($line_exploded) > 1) {
$return[$line_exploded[0]] = $line_exploded[1];
// is not false the API data is valid, else invalid
function testPrimeraApi () {
// Get new instance
- $api = new PrimeraApi(postRequestParameter('primera_api_name'), postRequestParameter('primera_api_md5'));
+ $api = new PrimeraApi(postRequestElement('primera_api_name'), postRequestElement('primera_api_md5'));
// Was that fine?
return ($api->getPrimera() !== false);