summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/controllers/Users.class.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php
index ed6f739..fbce874 100644
--- a/src/controllers/Users.class.php
+++ b/src/controllers/Users.class.php
@@ -9,9 +9,9 @@ Router::register('users/*' , 'Users', 'individual');
class Users extends Controller {
public static $illegal_names = array('', 'new', 'index');
-
+
// Index Views ///////////////////////////////////////////////
-
+
public function index($routed, $remainder) {
return $this->index_dir($routed, $remainder);
}
@@ -48,9 +48,9 @@ class Users extends Controller {
}
$this->show_index($routed, $remainder);
}
-
+
// Other Views ///////////////////////////////////////////////
-
+
/**
* Handle GETing the new user form.
*
@@ -172,7 +172,7 @@ class Users extends Controller {
}
}
}
-
+
/**
* This will parse POST (really, PUT) data to update a single user
*/
@@ -230,23 +230,23 @@ class Users extends Controller {
// Change groups ///////////////////////////////////////////////
$this->confArray($user, 'groups');
-
+
return $vars;
}
-
+
private function confArray($user, $key) {
if (isset($_POST[$key]) && is_array($_POST[$key])) {
$user->setConfArray($key, $_POST[$key]);
}
}
-
+
private function confText($user, $name) {
if (isset($_POST["user_$name"])) {
$user->setConf($name, $_POST["user_$name"]);
}
}
-
-
+
+
/**
* This will parse POST (really, PUT) data to update multiple users.
*/
@@ -345,7 +345,7 @@ class Users extends Controller {
break;
}
}
-
+
function attrib($key, $name) {
return array('key'=>$key, 'name'=>$name);
}