예제 #1
0
파일: playlist.php 프로젝트: steamboy/ds
 public function check_folder()
 {
     if (request::is_ajax()) {
         $this->auto_render = false;
         $component_type = $_POST['component_type'];
         $value = $_POST['value'];
         if (functions::isFolder(settings::content_path() . $component_type . '/' . $value)) {
             $files = functions::list_folder_files(settings::content_path() . $component_type . '/' . $value);
             //List files inside component type folders
             rsort($files);
             echo json_encode($files);
         } else {
             echo 'not_folder';
         }
     }
 }
예제 #2
0
" pl_count="<?php 
echo $pl_count;
?>
">
    <?php 
foreach ($playlist_content as $playlist_contents) {
    ?>
        <item count_id="<?php 
    echo $playlist_contents->sort_id;
    ?>
" id="<?php 
    echo $playlist_contents->id;
    ?>
" name="<?php 
    echo $playlist_contents->name;
    ?>
" type="flv" file="<?php 
    echo settings::content_path();
    ?>
video/<?php 
    echo $playlist_contents->filename;
    ?>
" display="<?php 
    echo $playlist_contents->display;
    ?>
"/>
    <?php 
}
?>
    </items>
</data>