Refactored code and added additional features
[speedfreak] / Server / application / views / api / user_list.php
diff --git a/Server/application/views/api/user_list.php b/Server/application/views/api/user_list.php
new file mode 100644 (file)
index 0000000..261fb04
--- /dev/null
@@ -0,0 +1,8 @@
+<?php echo '<?xml version="1.0" encoding="utf-8"?>'; ?>
+
+<users><?php if (count($list)>0) foreach($list as $user){ ?>
+       
+       <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.'" '; ?> />
+       <?php } ?>
+
+</users>
\ No newline at end of file