Misja Hoebe <misja@curverider.co.uk> Added comment to allow transfer by some FTP...
[elgg.git] / units / users / function_session_actions.php
blob4d23811e8e4f521a85bccddb0b118b9ee94108f2
1 <?php
3 // Do we have messages?
5 if (isset($_SESSION['messages']) && sizeof($_SESSION['messages']) > 0) {
6 if (isset($messages) && sizeof($messages) > 0) {
7 array_merge($messages, $_SESSION['messages']);
8 } else {
9 $messages = $_SESSION['messages'];
11 unset($_SESSION['messages']);
14 // Has 'action' been set?
15 $action = optional_param('action');
16 switch ($action) {
17 case "log_on":
18 run("users:log_on"); //TODO remove this - deprecated
19 break;
20 case "log_off":
21 run("users:log_off"); //TODO remove this - deprecated
22 break;
23 case "register":
24 run("users:register");
25 break;