Пример #1
0
 /**
  * Returns the track's name (from ID3)
  * 
  * @author Ben Dodson
  * @version 6/7/04
  * @since 6/7/04
  */
 function getName()
 {
     $cache = $this->readCache();
     return $cache[7] == "-" ? parent::getName() : $cache[7];
 }
Пример #2
0
 function displayDiscussIcon($node)
 {
     global $img_discuss, $img_discuss_dis;
     $item = new jzMediaElement($node->getPath('String'));
     $arr = array();
     $arr['action'] = "popup";
     $arr['ptype'] = "discussitem";
     $arr['jz_path'] = $item->getPath("String");
     echo '<a onClick="openPopup(' . "'" . urlize($arr) . "'" . ',450,300); return false;" href="javascript:;">';
     if ($item->getDiscussion() == "") {
         echo $img_discuss_dis;
     } else {
         echo $img_discuss;
     }
     echo "</a>";
 }
Пример #3
0
 function _constructor($par = array(), $mode)
 {
     $this->natural_depth = 1;
     parent::_constructor($par, $mode);
 }
Пример #4
0
if (!defined(JZ_SECURE_ACCESS)) {
    die('Security breach detected.');
}
/**
* Displays the discussion page
*
* @author Ross Carlson
* @since 03/07/05
* @version 03/07/05
* @param $node The node we are looking at
*
**/
global $jzUSER, $row_colors, $node;
// Let's setup the object
$item = new jzMediaElement($node->getPath('String'));
$track = new jzMediaTrack($node->getPath('String'));
// Let's grab the meta data from the file and display it's name
$meta = $track->getMeta();
$this->displayPageTop("", "Discuss Item: " . $meta['title']);
$this->openBlock();
// Did they submit the form?
if (isset($_POST['edit_addcomment'])) {
    // Let's add it
    $item->addDiscussion($_POST['edit_newcomment'], $jzUSER->getName());
}
// Let's setup our form
$arr = array();
$arr['action'] = "popup";
$arr['ptype'] = "discussitem";
$arr['jz_path'] = $node->getPath('String');