1: <?php
2: /**
3: * ManiaLive - TrackMania dedicated server manager in PHP
4: * Based on
5: * GbxRemote by Nadeo and
6: * IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002
7: *
8: * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
9: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
10: * @version $Revision: 425 $:
11: * @author $Author: melot.philippe $:
12: * @date $Date: 2012-07-18 12:36:36 +0200 (mer., 18 juil. 2012) $:
13: */
14:
15: namespace DedicatedApi\Xmlrpc;
16:
17: class Base64
18: {
19: public $data;
20:
21: function __construct($data)
22: {
23: $this->data = $data;
24: }
25:
26: function getXml()
27: {
28: return '<base64>'.base64_encode($this->data).'</base64>';
29: }
30: }
31:
32: ?>