예제 #1
0
     }
     jecho($success);
     break;
     /**
      * Update user password
      */
 /**
  * Update user password
  */
 case "update-user-password":
     $success = true;
     if (isset($_REQUEST['userid']) && isset($_REQUEST['password'])) {
         $id = $_REQUEST['userid'];
         $password = mysql_escape_string($_REQUEST['password']);
         if ($checkDatabaseConnection) {
             $sql = $QUERIES->updateUserPassword($id, $password);
             $result = mysql_query($sql) or $success = false;
         } else {
             $success = false;
         }
     } else {
         $success = false;
     }
     jecho($success);
     break;
     /**
      * Retrieving cameras from db
      */
 /**
  * Retrieving cameras from db
  */