HomeHelpTrac

source: tags/6.1/uploadShareVideo.php @ 10242

Revision 10242, 3.3 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 . 'design.inc.php' );
23require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
24require_once( BX_DIRECTORY_PATH_INC . 'images.inc.php' );
25require_once( BX_DIRECTORY_PATH_INC . 'sharing.inc.php' );
26require_once( BX_DIRECTORY_PATH_ROOT . 'ray/modules/movie/inc/functions.inc.php' );
27
28$_page['name_index']    = 82;
29$_page['css_name']      = 'viewVideo.css';
30
31$_page['extra_js'] = '';
32
33if ( !( $logged['admin'] = member_auth( 1, false ) ) )
34{
35    if ( !( $logged['member'] = member_auth( 0, false ) ) )
36    {
37        if ( !( $logged['aff'] = member_auth( 2, false ) ) )
38        {
39            $logged['moderator'] = member_auth( 3, false );
40        }
41    }
42}
43
44
45$_page['header'] = _t( "_upload Video" );
46$_page['header_text'] = _t("_upload Video");
47
48$_ni = $_page['name_index'];
49
50$member['ID'] = (int)$_COOKIE['memberID'];
51$member['Password'] = $_COOKIE['memberPassword'];
52
53$check_res = checkAction( $member['ID'], ACTION_ID_UPLOAD_GALLERY_VIDEO );
54if ( $check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED && !$logged['admin'] && !$logged['moderator'] )
55{
56    $ret  = "
57        <table width=100% height=100% cellpadding=0 cellspacing=0 class=text2>
58            <td align=center bgcolor=$boxbg2>
59                ". $check_res[CHECK_ACTION_MESSAGE] ."<br />
60            </td>
61        </table>\n";
62
63    $_page['name_index'] = 0;
64    $_page_cont[0]['page_main_code'] = $ret;
65    PageCode();
66    exit();
67}
68
69$_page_cont[$_ni]['page_main_code'] = PageMainCode();
70
71PageCode();
72
73function PageMainCode()
74{
75    global $site;
76    global $member;
77   
78    $sCode = '<div id="agreement" style="text-align: center;"><div style="font-weight: bold;">'._t("_Media upload Agreement",_t("_Video")).'</div><div><textarea rows="20" cols="80" readonly="true">'._t("_License Agreement",$site['url']).'</textarea></div><div><input type="submit" id="agree" value="'._t("_I agree").'" onclick="document.getElementById(\'uploadForm\').style.display = \'block\';
79    document.getElementById(\'agreement\').style.display = \'none\';""></div></div>';
80    $sCode .= '<div id="uploadForm" style="text-align: center;display:none;">'.getApplicationContent('movie','editor',array('id' => $member['ID'],'password'=>$member['Password']),true).'</div>';
81   
82    return $sCode;
83}
84
85?>
Note: See TracBrowser for help on using the repository browser.