Ticket #8000: mythweb-video-path.patch
File mythweb-video-path.patch, 1.3 KB (added by , 14 years ago) |
---|
-
mythweb/modules/video/handler.php
167 167 if (!isset($PATH['subs'][$path])) { 168 168 $p = ''; 169 169 for ($i=0; $i<=$key;$i++) { 170 $p .= $paths[$i];170 $p .='/'.$paths[$i]; 171 171 } 172 172 $PATH['subs'][$path] = array('display' => $path, 173 173 'path' => "/$dir/$p", … … 264 264 if (isset($_SESSION['video']['path'])) { 265 265 $where .= ' AND CONCAT("/", IF(INSTR(filename,"/"), LEFT(filename, LENGTH(filename) - LOCATE("/", REVERSE(filename))), "")) = '.$db->escape($_SESSION['video']['path']); 266 266 } 267 267 268 // Deal with the parental locks 268 269 if (isset($_REQUEST['VideoAdminPassword'])) 269 270 $_SESSION['video']['VideoAdminPassword'] = $_REQUEST['VideoAdminPassword']; … … 272 273 $where .= ' AND videometadata.showlevel <= '.$db->escape(setting('VideoDefaultParentalLevel', hostname)); 273 274 274 275 if ($where) 275 $where = 'WHERE '.substr($where, 4); 276 //$where = 'WHERE '.substr($where, 4); 277 $where = 'WHERE filename LIKE '.$db->escape('%'.$_SESSION['video']['path'].'%'); 276 278 277 279 $sh = $db->query(' 278 280 SELECT videometadata.intid