mcmahon Done
This commit is contained in:
@@ -22,7 +22,7 @@ fwrite($output, $mcmahonfirst);
|
|||||||
foreach ($entries as $i => $e) {
|
foreach ($entries as $i => $e) {
|
||||||
$rank = $ranks[$e->rank];
|
$rank = $ranks[$e->rank];
|
||||||
$id = $e->i + 1;
|
$id = $e->i + 1;
|
||||||
$egd = $e->egd_number ? $e->egd_number : '0';
|
$egd = (strlen($e->egd_number) == 0) ? '0' : $e->egd_number;
|
||||||
$out = " <IndividualParticipant typeversion=\"1\">
|
$out = " <IndividualParticipant typeversion=\"1\">
|
||||||
<Id>$id</Id>
|
<Id>$id</Id>
|
||||||
<Joker>false</Joker>
|
<Joker>false</Joker>
|
||||||
@@ -36,7 +36,7 @@ foreach ($entries as $i => $e) {
|
|||||||
<Surname><![CDATA[$e->last_name]]></Surname>
|
<Surname><![CDATA[$e->last_name]]></Surname>
|
||||||
<GoLevel>$rank</GoLevel>
|
<GoLevel>$rank</GoLevel>
|
||||||
<Rating>$e->rating</Rating>
|
<Rating>$e->rating</Rating>
|
||||||
<EgdPin>$e->egd_number</EgdPin>
|
<EgdPin>$egd</EgdPin>
|
||||||
<Country>$e->country</Country>
|
<Country>$e->country</Country>
|
||||||
<Club>$e->club</Club>
|
<Club>$e->club</Club>
|
||||||
</GoPlayer>
|
</GoPlayer>
|
||||||
|
|||||||
@@ -253,6 +253,7 @@ add_action('admin_post_go_form_export_opengotha', 'go_form_export_opengotha');
|
|||||||
|
|
||||||
function go_form_export_mcmahon()
|
function go_form_export_mcmahon()
|
||||||
{
|
{
|
||||||
|
global $ranks;
|
||||||
include_once 'export/mcmahon.php';
|
include_once 'export/mcmahon.php';
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user