summaryrefslogtreecommitdiff
path: root/src/views/pages/users/index.csv.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/pages/users/index.csv.php')
-rw-r--r--src/views/pages/users/index.csv.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/views/pages/users/index.csv.php b/src/views/pages/users/index.csv.php
deleted file mode 100644
index 0a69cee..0000000
--- a/src/views/pages/users/index.csv.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php global $VARS;
-$attribs = $VARS['attribs'];
-$users = $VARS['users'];
-
-function escape($value) {
- if (is_bool($value)) {
- return ($value?'true':'false');
- } else {
- $chars = "'" . '"' . '\\' . ',';
- return addcslashes($value, $chars);
- }
-}
-
-$arr = array();
-foreach ($attribs as $attrib) {
- $arr[] = escape($attrib['name']);
-}
-echo implode(',', $arr)."\n";
-
-foreach ($users as $user) {
- $arr = array();
- foreach ($attribs as $attrib) {
- $props = $user[$attrib['key']];
- $arr[] = escape($props['value']);
- }
- echo implode(',', $arr)."\n";
-}