Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function include_vods()
- {
- global $nen, $prj;
- $ret = '';
- if( !is_dir( $nen['root'] . 'showcase/vault/' . $prj . '/vods' ) )
- {
- return '';
- }
- $d = array_diff( scandir( $nen['root'] . 'showcase/vault/' . $prj . '/vods/' ), array('..', '.' ) );
- foreach( $d as $entry );
- {
- if( strtolower( substr( $entry, -4, 4 ) ) === '.mp4' )
- {
- $ret .= '<span>{{vod|' . $prj . '|' . strtolower( substr( $entry, 0, -4 ) ) . '|' . strtolower( substr( $entry, 0, -4 ) ) . '}}</span>' . "\r\n";
- }
- }
- if ( strlen( $ret ) !== 0)
- {
- $ret = '<table><th><h2>Vods</h2></th><tr><td>' . $ret . '</td></tr></table>';
- }
- return $ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement