when i selct edit TV or Video i gert th efollowing code outputted at the top of th epage befor eth elist of TV edpisodes or Movies.
- Code: Select all
FALSE, XML_OPTION_SKIP_WHITE => TRUE); $xml = new XPath(FALSE, $options); $xml->importFromString(''); $movie_path = '/movie[1]'; $xml->appendChild($movie_path,''); if ( !empty( $details[0]["SYNOPSIS"] ) ) $xml->appendChild($movie_path,''.utf8_encode(htmlspecialchars($details[0]["SYNOPSIS"])).''); // Actors $actor_list = db_toarray("select actor_name name from actors a, actors_in_movie aim where aim.actor_id = a.actor_id and movie_id=".$file_id); if ( !empty( $actor_list ) ) { $actors_path = $xml->appendChild($movie_path,''); foreach ($actor_list as $actor) { $xpath = $xml->appendChild($actors_path,''); $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($actor["NAME"])).''); } } // Certificates if ( !empty( $details[0]["CERTIFICATE"] ) ) { $certificate = db_toarray("select name, scheme from certificates where cert_id = ".$details[0]["CERTIFICATE"]); $xpath = $xml->appendChild($movie_path,''); $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($certificate[0]["NAME"])).''); } // Genres $genre_list = db_toarray("select genre_name name from genres g, genres_of_movie gom where gom.genre_id = g.genre_id and movie_id=".$file_id); if ( !empty( $genre_list ) ) { $xpath = $xml->appendChild($movie_path,''); foreach ($genre_list as $genre) $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($genre["NAME"])).''); } // Directors $director_list = db_toarray("select director_name name from directors d, directors_of_movie dom where dom.director_id = d.director_id and movie_id=".$file_id); if ( !empty( $director_list ) ) { $xpath = $xml->appendChild($movie_path,''); foreach ($director_list as $director) $xml->appendChild($xpath,''.utf8_encode(htmlspecialchars($director["NAME"])).''); } // Running Time if ( !empty( $details[0]["LENGTH"] ) ) $xml->appendChild($movie_path,''.floor($details[0]["LENGTH"]/60).'');... //
any ideas cheers
rob








) to the NAS and on config_monive i get 