I have a weird error on internet but works on ManiaPlanet but not when I click on Authentificate :
http://www.bczteam.com/~jonthekiller/Ma ... alotto.php
Code: Select all
XML Parsing Error: not well-formed
Location: http://www.bczteam.com/~jonthekiller/Manialinks/loto/manialotto.php
Line Number 1, Column 63:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>object(stdClass)#2 (5) {
--------------------------------------------------------------^
Here is the code of my file
Code: Select all
<?php header('Content-Type: text/xml; charset=utf-8');
echo '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>';
require_once 'libraries/autoload.php';
define('API_USERNAME', 'jonthekiller|lottomania');
define('API_PASSWORD', '*****');
define('SCOPE', 'basic');
$maniaconnect = new \Maniaplanet\WebServices\ManiaConnect\Player(API_USERNAME, API_PASSWORD);
$player = $maniaconnect->getPlayer();
$date = date('d M Y H:i:s');
if($player){
$infos = $maniaconnect->getPlayer();
var_dump($player, $infos);
if (isset($_REQUEST['maniacode'])){
include "manialotto_".$_GET['page'].".php";
}
else
{
?>
<manialink>
<include url="./langue.xml" />
<timeout>0</timeout>
<type>default</type>
<frame>
<quad posn="-64 48 -10" sizen="128 96" image="http://www.bczteam.com/~jonthekiller/Manialinks/loto/fond/Lottomania.jpg"/>
<?
if (isset($_REQUEST['page'])){
include "manialotto_".$_GET['page'].".php";
}else{
include "manialotto_home.php";
}
include 'manialotto_config.php';
include 'manialotto_menu.php';
}
}
else
{
$loginURL = $maniaconnect->getLoginURL(SCOPE);
?>
<manialink>
<include url="./langue.xml" />
<timeout>0</timeout>
<type>default</type>
<frame>
<quad posn="-64 48 -10" sizen="128 96" image="http://www.bczteam.com/~jonthekiller/Manialinks/loto/fond/Connexion.jpg"/>
<label posn="-8 -27 2" style="CardButtonMedium" text="Authentificate" manialink="<?php echo htmlentities($loginURL); ?>"/>
<label posn="44 -46 1" sizen="20 2" style="TextRaceValueSmall" text="$000<?php echo $date; ?> CEST" manialink="lottomania"/>
<frame posn="-10 -43 -1">
<include url="http://maniahome.maniaplanet.com/add/?url=lottery&name=%24FFFlotto%24000mania&version=0"/>
</frame>
</frame>
</manialink>
<?
}
?>
I have put on RedirectionURI :
http://www.bczteam.com/~jonthekiller/Ma ... alotto.php
The manialink is "Lottery".