Refactored code and added additional features
[speedfreak] / Server / application / views / api / user_info.php
diff --git a/Server/application/views/api/user_info.php b/Server/application/views/api/user_info.php
new file mode 100644 (file)
index 0000000..598eed3
--- /dev/null
@@ -0,0 +1,3 @@
+<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
+
+<user login="<?php echo $user->username ; ?>" description="<![CDATA <?php echo $user->description; ?> ]]>" last_activity="<?php echo $user->last_activity ; ?>" <?php if (isset($avatar)) echo 'avatar="'.$avatar.'" '; ?> />
\ No newline at end of file