noxon/ampache/Noxon_register.php
2010-08-17 01:22:49 +02:00

25 lines
No EOL
488 B
PHP

<?php
require_once 'Noxon/NoxonConfig.php';
/**
* Noxon Config File : Read config into NoxonConfig.php and use the RegisterMyNoxon.php class
*/
require_once 'Noxon/RegisterMyNoxon.php';
$noxon = new RegisterMyNoxon( NoxonConfig::$myNoxonUser,
NoxonConfig::$myNoxonPass,
NoxonConfig::$XMLUrl,
NoxonConfig::$XMLLANUrl,
NoxonConfig::$serverCaption
);
if ($noxon->register()) {
echo "Registration Successful";
}
else {
echo "Registration Failed :<br>";
echo $noxon->getError();
}
?>