Esempio n. 1
0
    function flashhtml()
    {
        global $setctl, $phpenv, $u_cookieid, $u_id, $cfg;
        kprintheader('');
        $result = db_execquery('SELECT sid FROM ' . TBL_TEMPLIST . ' WHERE uid = ' . $u_id . ' ORDER BY rid ASC');
        while ($row = db_fetch_row($result)) {
            $this->xml_link($row[0], false);
        }
        $width = $cfg['jw_window_x'] - 20;
        $height = $cfg['jw_window_y'] - 10;
        $imgheight = round($cfg['jw_window_y'] / 2);
        $jsdata = '';
        for ($i = 0, $c = count($this->items); $i < $c; $i++) {
            $jsdata .= '{ ';
            if (strlen($this->items[$i][0]) > 0) {
                $jsdata .= 'image: "' . $this->items[$i][0] . '", ';
            }
            $jsdata .= 'file: \'' . $this->items[$i][1] . '\', title: \'' . str_replace('"', '\\"', $this->items[$i][2]) . '\', provider:\'sound\'}';
            if ($i + 1 < $c) {
                $jsdata .= ',';
            }
        }
        ?>

		<script type="text/javascript" src="<?php 
        echo $cfg['jw6_url'];
        ?>
"></script>
		<div id="mediaplayer"><?php 
        echo get_lang(253);
        ?>
</div>

		<script type="text/javascript">
		jwplayer("mediaplayer").setup({
			flashplayer: "/jwplayer-5/jwPlayer5/player.swf",
			'plugins': {
				'/jwplayer-5/jwPlayer5/spectrumvisualizer-1.swf': {
					effect: "reflection",
					xlen: 500,
					ylen: 150
				}
			},
			'skin': '/jwplayer-5/jwPlayer5/stormtrooper.zip',
			"viral.allowmenu": false,
			"viral.onpause": false,
			"viral.oncomplete": false,
			autostart: true,
			"controlbar.position": "bottom",
			"controlbar.forcenextprev": true,
			height: <?php 
        echo $height;
        ?>
,
			width: <?php 
        echo $width;
        ?>
,
			"playlist.position": "bottom",
		        "playlist.size": 360,
			"player.fullscreen": false,
			'playlist': [
				<?php 
        echo $jsdata;
        ?>
			],
			repeat: 'list'
		});
		</script>	
	
		<?php 
        kprintend();
    }
Esempio n. 2
0
    function flashhtml()
    {
        global $setctl, $phpenv, $u_cookieid, $u_id, $cfg;
        kprintheader('');
        $result = db_execquery('SELECT sid FROM ' . TBL_TEMPLIST . ' WHERE uid = ' . $u_id . ' ORDER BY rid ASC');
        while ($row = db_fetch_row($result)) {
            $this->xml_link($row[0], false);
        }
        $width = $cfg['jw_window_x'] - 20;
        $height = $cfg['jw_window_y'] - 10;
        $imgheight = round($cfg['jw_window_y'] / 2);
        $jsdata = '';
        for ($i = 0, $c = count($this->items); $i < $c; $i++) {
            $jsdata .= '{ ';
            if (strlen($this->items[$i][0]) > 0) {
                $jsdata .= 'image: "' . $this->items[$i][0] . '", ';
            }
            $jsdata .= 'sources: [ { file: "' . $this->items[$i][1] . '", type: "' . $this->items[$i][3] . '" } ], title: "' . str_replace('"', '\\"', $this->items[$i][2]) . '", description: "' . $this->items[$i][4] . '" }';
            if ($i + 1 < $c) {
                $jsdata .= ',';
            }
        }
        ?>

		<script type="text/javascript" src="<?php 
        echo $cfg['jw6_url'];
        ?>
"></script>
		<div id="jw6id"><?php 
        echo get_lang(253);
        ?>
</div>

		<script type="text/javascript">
		jwplayer("jw6id").setup({
			autostart: true,
			height: <?php 
        echo $height;
        ?>
,
			width: <?php 
        echo $width;
        ?>
,
			listbar: {
				position: 'bottom',
				size: 200
			},
			playlist: [
				<?php 
        echo $jsdata;
        ?>
			]
		});
		</script>	
	
		<?php 
        kprintend();
    }
Esempio n. 3
0
 function dosync()
 {
     $cnt = 0;
     $totcnt = 0;
     $this->xids = array();
     $res = db_execquery('SELECT xid, id FROM ' . TBL_SEARCH . ' WHERE drive = ' . $this->drive, true);
     while ($row = mysql_fetch_row($res)) {
         $this->xids[$row[0]] = $row[1];
     }
     foreach ($this->chlist as $id => $val) {
         $list[$id] = true;
         $cnt++;
         $totcnt++;
         if ($cnt > 512) {
             updateup_status(get_lang(349, $totcnt, $this->chlistcnt), 'up_status');
             $this->sync($list);
             $cnt = 0;
             $list = array();
         }
     }
     if ($cnt > 0) {
         $this->sync($list);
     }
 }