case "logout":
     logout();
     break;
 case "resetpassword":
     resetpassword($_GET["number"]);
     break;
 case "list":
     $stand = trim($_GET["stand"]);
     listbikes($stand);
     break;
 case "rent":
     logrequest($userid, $action);
     checksession();
     $bikenum = trim($_GET["bikeno"]);
     checkbikeno($bikenum);
     rentbike($userid, $bikenum);
     break;
 case "return":
     logrequest($userid, $action);
     checksession();
     $bikenum = trim($_GET["bikeno"]);
     $stand = trim($_GET["stand"]);
     $note = "";
     if (isset($_GET["note"])) {
         $note = trim($_GET["note"]);
     }
     checkbikeno($bikenum);
     checkstandname($stand);
     returnbike($userid, $bikenum, $stand, $note);
     break;
 case "validatecoupon":
 case "RETURN":
     validateReceivedSMS($sms->Number(), count($args), 3, _('with bike number and stand name:') . " RETURN 47 RACKO");
     /*
     if (!preg_match("/return[\s,\.]+[0-9]+[\s,\.]+[a-zA-Z0-9]+[\s,\.]+(.*)/i",$message ,$matches))
        {
        $userNote="";
        }
     else $userNote=$db->conn->real_escape_string(trim($matches[1]));
     pass note only or empty string if no note sent
     */
     returnbike($sms->Number(), $args[1], $args[2], trim(urldecode($sms->Text())));
     break;
 case "FORCERENT":
     checkUserPrivileges($sms->Number());
     validateReceivedSMS($sms->Number(), count($args), 2, _('with bike number:') . " FORCERENT 47");
     rentbike($sms->Number(), $args[1], TRUE);
     break;
 case "FORCERETURN":
     checkUserPrivileges($sms->Number());
     validateReceivedSMS($sms->Number(), count($args), 3, _('with bike number and stand name:') . " FORCERETURN 47 RACKO");
     /*
     if (!preg_match("/return[\s,\.]+[0-9]+[\s,\.]+[a-zA-Z0-9]+[\s,\.]+(.*)/i",$message ,$matches))
        {
        $userNote="";
        }
     else $userNote=$db->conn->real_escape_string(trim($matches[1]));
     pass note only or empty string if no note sent
     */
     returnbike($sms->Number(), $args[1], $args[2], trim(urldecode($sms->Text())), TRUE);
     break;
 case "WHERE":