HomeHelpTrac

source: tags/6.1/browseVideo.php @ 10242

Revision 10242, 2.2 KB checked in by Alexander Trofimov, 3 years ago (diff)

dolphin 6.1.5, initial commit

Line 
1<?php
2
3/***************************************************************************
4*                            Dolphin Smart Community Builder
5*                              -----------------
6*     begin                : Mon Mar 23 2006
7*     copyright            : (C) 2006 BoonEx Group
8*     website              : http://www.boonex.com/
9* This file is part of Dolphin - Smart Community Builder
10*
11* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
12* http://creativecommons.org/licenses/by/3.0/
13*
14* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16* See the Creative Commons Attribution 3.0 License for more details.
17* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
18* see license.txt file; if not, write to marketing@boonex.com
19***************************************************************************/
20
21require_once('inc/header.inc.php');
22require_once(BX_DIRECTORY_PATH_INC . 'sharing.inc.php');
23require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMedia.php');
24
25check_logged();
26
27$member['ID'] = (int)$_COOKIE['memberID'];
28
29$oNew = new BxDolSharedMedia('video', $site, $dir, $member);
30
31$_page['name_index'] = 82;
32$_page['css_name'] = $oNew->sCssName;
33
34$_page['header'] = _t( "_browseVideo" );
35$_page['header_text'] = _t("_browseVideo");
36
37$_ni = $_page['name_index'];
38
39$aCondition  = $oNew->getConditionArray($logged);
40if ($aCondition !== false) {
41    $aSqlQuery   = $aCondition['query'];
42    $iTotalPages = $aCondition['total'];
43    $iCurPage    = $aCondition['cur_page'];
44    $iPerPage    = $aCondition['per_page'];
45}
46else {
47    $_page_cont[$_ni]['page_main_code'] = _t( '_Sorry, nothing found' );
48    PageCode();
49    exit;
50}
51
52$rData = $oNew->getFilesList($aSqlQuery);
53
54while ($aData = mysql_fetch_assoc($rData))
55    $sCode .= $oNew->showBrowseUnit($aData);
56
57$sCode .= '<div class="clear_both"></div>';
58
59$sCode .= $oNew->showPagination($iTotalPages, $iCurPage, $iPerPage);
60
61$_page_cont[$_ni]['page_main_code'] = $sCode;
62
63PageCode();
64
65?>
Note: See TracBrowser for help on using the repository browser.