- if (!$this->arg('post')) {
- return;
- }
- if (empty($_POST['video_uri'])) {
- return;
- }
- $uri = $_POST['video_uri'];
- $uri = filter_var($uri, FILTER_SANITIZE_URL);
- $uri = filter_var($uri, FILTER_VALIDATE_URL);
- if($uri) {
- $rend = sprintf('<video src="%s", controls="controls">Sorry, your browser doesn\'t support the video tag.</video>', $uri);
- Notice::saveNew($this->user->id, 'video : ' . $uri, 'web', array('rendered' => $rend));