initial import

This commit is contained in:
fwhite 2009-08-25 12:16:42 +00:00
commit f3c9e83b0f
765 changed files with 71732 additions and 0 deletions

96
CBLA.txt Normal file
View file

@ -0,0 +1,96 @@
ClipBucket License Agreement (CBLA)
Version 1, November 13, 2008
Copyright © 2008 PHPBucket PVT, LTD <http://phpbucket.com/>
Preamble
The CBLA (ClipBucket License Agreement) is, as its name shows it, a contract between the software developer / owner (PHPBucket / ClipBucket ) and a potential user, either an Entity or a Single User, (hereinafter each licensee is addressed as "you"). By means of this contract it is established that the developer of the software is it's de facto owner, and that a copy of the respective software downloaded from a vendor (or downloaded from the Internet) only licenses it to a user, and does not transmit any intellectual rights whatsoever on the Software.
The end user is only allowed to use it as long the terms in this license agreement are accepted.
This ClipBucket License Agreement (CBLA) covers your use of the ClipBucket software product that accompanies this CBLA and related software components, which may include associated media, printed materials, and "online" or electronic documentation. All such software and materials are referred to herein as the "Software Product." A software license, issued to a designated user only by ClipBucket / PHPBucket or its authorized agents, is required for each user of the Software Product. If you do not agree to the terms of this CBLA, you are not authorized to install or use the associated Software Product or the Software Product License. By explicitly accepting this CBLA, or by installing, copying, downloading, accessing, or otherwise using the Software Product and/or Software Product License, you are acknowledging and agreeing to be bound by the terms listed under TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION.
CLIPBUCKET LICENSE AGREEMENT
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
(subject to change without notice)
1. LICENSE
(a) Software Product License.
The Software Product License, which is issued to a designated user, enables such designated user to install and use the Software Product on a His/Her websites/domains Without paying any fee.
You are not allowed to:
(a.1) sell the software product
(a.2) sell derivate works based on the software product or any of it's associated components
(a.3) use any portion of the software product in other products or derivate works
You are allowed to:
(a.4) create modifications for the software product
(a.5) alter the software product for your own use
(a.6) sell products that integrate with or enhance the software product
(b) Grant of License.
Subject to a validly issued Software Product License, ClipBucket/PHPBucket grants to you the non-exclusive, non-transferable right for you to use the Software Product on an unlimited number of websites/domains. All rights not expressly granted to you are retained by ClipBucket/ PHPBucket.
(c) Adult Content Prohibition
You cannot use ClipBucket on any website which contain any kind of pornographic content. If you want to Use ClipBucket on such kind of websites you need to purchase the Adult Permit which is available on the official ClipBucket website for a nominal fee
2. WARRANTY:
ClipBucket / PHP Bucket Softwares are Provided on ”AS IS” and ” AS AVAILABLE" BASIS. ClipBucket /PHPBucket DISCLAIMS ANY IMPLIED WARRANTIES. ClipBucket/PHPBucet , ANY OF ITS EMPLOYEES, MANAGEMENT OR AFFILIATES MAY NOT BE HELD RESPONSIBLE OR THUS LIABLE FOR ANY POSSIBLE DAMAGES RESULTING IN USE OR MISUSE OF ANY INFORMATION, CONTENT OR SOFTWARE PROVIDED BY ClipBucket/PHPBucket , INCLUDING DIRECT OR INDIRECT, PUNITIVE, AND INCIDENTAL RESULTING FROM ANY FAILURE TO PROVIDE SERVICES, SUSPENSION OF SERVICES, OR TERMINATION OF SERVICES. THE SOFTWARE IS PROVIDED "AS IS" AND YOU ASSUME ALL RISK WITH ITS INSTALLATION, CONFIGURATION AND USE. THERE ARE NO WARRANTIES, CLAIMS OR REPRESENTATIONS MADE BY ClipBucket/PHPBucket, EITHER EXPRESS, IMPLIED, OR STATUTORY, WITH RESPECT TO THE SOFTWARE, INCLUDING WARRANTIES OF QUALITY, PERFORMANCE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE, NOR ARE THERE ANY WARRANTIES CREATED BY COURSE OF DEALING, COURSE OF PERFORMANCE, OR TRADE USAGE. FURTHER, ClipBucket / PHPBucket DOES NOT REPRESENT OR WARRANT THAT THE SOFTWARE WILL ALWAYS BE AVAILABLE, ACCESSIBLE, ACCURATE, COMPLETE, OR ERROR-FREE. THE FOREGOING EXCLUSIONS AND DISCLAIMERS ARE AN ESSENTIAL PART OF THIS AGREEMENT AND FORMED THE BASIS FOR DETERMINING THE PRICE CHARGED FOR THE SOFTWARE AND ANY ASSOCIATED SERVICES.
3. LIMITED LIABILITY:
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. IN NO EVENT SHALL ClipBucket/PHPBucket BE LIABLE WHETHER IN CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE (WHETHER ACTIVE, PASSIVE OR IMPUTED), PRODUCT LIABILITY OR STRICT LIABILITY OR OTHER THEORY), FOR COVER OR FOR ANY INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION ANY LOSS OF PROFITS OR DATA, BUSINESS INTERRUPTION, COMPUTER FAILURE OR OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR PERFORMANCE OF ANY RELATED SERVICES, EVEN IF ClipBucket/PHPBucket HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
ClipBucket/PHPBuckets CUMULATIVE LIABILITY TO YOU OR ANY OTHER PARTY FOR ANY LOSS OR DAMAGES RESULTING FROM ANY CLAIMS, DEMANDS, OR ACTIONS ARISING OUT OF OR RELATING TO THIS LICENSE SHALL NOT EXCEED THE AMOUNTS PAID BY YOU TO ClipBucket/PHPBucket FOR THE USE OF THE SOFTWARE. YOU HEREBY RELEASE ClipBucket/PHPBucket FROM ANY AND ALL OBLIGATIONS, LIABILITIES AND CLAIMS IN EXCESS OF THIS LIMITATION.
4. INTELLECTUAL PROPERTY RIGHTS RESERVED BY ClipBucket/PHPBucket:
The Software Product is protected by U.S, CANADA, and international copyright laws and treaties, as well as other intellectual property laws and treaties. You must not remove or alter any copyright notices on any copies of the Software Product. This Software Product copy is licensed, not sold. Furthermore, this CBLA does not grant you any rights in connection with any trademarks or service marks of ClipBucket / PHPBucket . ClipBucket reserves all intellectual property rights, including copyrights, and trademark rights.
5. NO RIGHT TO TRANSFER
You may not rent, lease, lend, or in any way distribute or transfer any rights in this CBLA or the Software Product to third parties without ClipBucket/PHPBucket's written approval and subject to written agreement by the recipient of the terms of this CBLA.
6. PROHIBITION ON REVERSE ENGINEERING, DECOMPILATION, AND DISASSEMBLY
You may not reverse engineer, decompile, defeat license encryption mechanisms, or disassemble the Software Product or Software Product License except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
9. MISCELLANEOUS.
We reserve the right to reference any website or company using the Software in our sales and marketing literature.
We reserve the right to monitor compliance with this CBLA and to restrict the use of the Software for non-compliance.
We reserve the right to include the "Flash Video Player by PHPBucket.com & Clip-bucket.com" text/link on every copy of the Flash Video Player included in the ClipBucket software. The "Flash Video Player by PHPBucket.Com" text/link can be removed by paying a small fee mentioned on the website/documentation.
ClipBucket / PHPBucket STRICTLY PROHIBITS SALE/RESALE OF OUR PRODUCTS. DO NOT SELL, BUT YOU CAN GIVE AWAY OR REUSE OUR PRODUCTS WITHOUT FOR FREE AND FOR NON COMMERCIAL USE, BUT IT SHOULD RETAIN ITS ORIGINAL FORM WITH OUR NAME WHILE DISTRIBUTING FREE. ClipBucket / PHPBucket will take legal action against any users that are found to be Selling Clipbucket(Lite) / ClipBucket / PHPBucket products. In addition A ClipBucket / PHPBucket will report any users found pirating other products to the products developer or care-keeper.
The terms set forth in this License and any related service agreements constitute the final, complete and exclusive agreement with respect to the Software and may not be contradicted, explained or supplemented by evidence of any prior agreement, any contemporaneous oral agreement or any consistent additional terms. Should any term or provision hereof be deemed invalid, void or unenforceable either in its entirety or in a particular application, the remainder of this License shall nonetheless remain in full force and effect. Any term of this License may be amended and the observance of any term may be waived only with the written consent of ClipBucket / PHPBucket . The failure of ClipBucket / PHPBucket at any time or times to require performance of any provision hereof shall in no manner affect its right at a later time to enforce the same unless the same is waived in writing.
10. CONTACT INFORMATION
If you have any questions about this CBLA, or if you want to contact ClipBucket / PHPBucket for any reason, please direct all correspondence to:
http://www.clip-bucket.com
http://www.phpbucket.com
or email: info@phpbucket.com
ClipBucket Product is registered trademark of PHPBucket.

5
VERSION Normal file
View file

@ -0,0 +1,5 @@
Product: ClipBucket - http://clip-bucket.com
Version: 1.7.1 SVN - Revision 758
Last Updated: March 26, 2009
Copyright: ClipBucket
License: CBLA v1

96
docs/CBLA.txt Normal file
View file

@ -0,0 +1,96 @@
ClipBucket License Agreement (CBLA)
Version 1, November 13, 2008
Copyright © 2008 PHPBucket PVT, LTD <http://phpbucket.com/>
Preamble
The CBLA (ClipBucket License Agreement) is, as its name shows it, a contract between the software developer / owner (PHPBucket / ClipBucket ) and a potential user, either an Entity or a Single User, (hereinafter each licensee is addressed as "you"). By means of this contract it is established that the developer of the software is it's de facto owner, and that a copy of the respective software downloaded from a vendor (or downloaded from the Internet) only licenses it to a user, and does not transmit any intellectual rights whatsoever on the Software.
The end user is only allowed to use it as long the terms in this license agreement are accepted.
This ClipBucket License Agreement (CBLA) covers your use of the ClipBucket software product that accompanies this CBLA and related software components, which may include associated media, printed materials, and "online" or electronic documentation. All such software and materials are referred to herein as the "Software Product." A software license, issued to a designated user only by ClipBucket / PHPBucket or its authorized agents, is required for each user of the Software Product. If you do not agree to the terms of this CBLA, you are not authorized to install or use the associated Software Product or the Software Product License. By explicitly accepting this CBLA, or by installing, copying, downloading, accessing, or otherwise using the Software Product and/or Software Product License, you are acknowledging and agreeing to be bound by the terms listed under TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION.
CLIPBUCKET LICENSE AGREEMENT
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
(subject to change without notice)
1. LICENSE
(a) Software Product License.
The Software Product License, which is issued to a designated user, enables such designated user to install and use the Software Product on a His/Her websites/domains Without paying any fee.
You are not allowed to:
(a.1) sell the software product
(a.2) sell derivate works based on the software product or any of it's associated components
(a.3) use any portion of the software product in other products or derivate works
You are allowed to:
(a.4) create modifications for the software product
(a.5) alter the software product for your own use
(a.6) sell products that integrate with or enhance the software product
(b) Grant of License.
Subject to a validly issued Software Product License, ClipBucket/PHPBucket grants to you the non-exclusive, non-transferable right for you to use the Software Product on an unlimited number of websites/domains. All rights not expressly granted to you are retained by ClipBucket/ PHPBucket.
(c) Adult Content Prohibition
You cannot use ClipBucket on any website which contain any kind of pornographic content. If you want to Use ClipBucket on such kind of websites you need to purchase the Adult Permit which is available on the official ClipBucket website for a nominal fee
2. WARRANTY:
ClipBucket / PHP Bucket Softwares are Provided on ”AS IS” and ” AS AVAILABLE" BASIS. ClipBucket /PHPBucket DISCLAIMS ANY IMPLIED WARRANTIES. ClipBucket/PHPBucet , ANY OF ITS EMPLOYEES, MANAGEMENT OR AFFILIATES MAY NOT BE HELD RESPONSIBLE OR THUS LIABLE FOR ANY POSSIBLE DAMAGES RESULTING IN USE OR MISUSE OF ANY INFORMATION, CONTENT OR SOFTWARE PROVIDED BY ClipBucket/PHPBucket , INCLUDING DIRECT OR INDIRECT, PUNITIVE, AND INCIDENTAL RESULTING FROM ANY FAILURE TO PROVIDE SERVICES, SUSPENSION OF SERVICES, OR TERMINATION OF SERVICES. THE SOFTWARE IS PROVIDED "AS IS" AND YOU ASSUME ALL RISK WITH ITS INSTALLATION, CONFIGURATION AND USE. THERE ARE NO WARRANTIES, CLAIMS OR REPRESENTATIONS MADE BY ClipBucket/PHPBucket, EITHER EXPRESS, IMPLIED, OR STATUTORY, WITH RESPECT TO THE SOFTWARE, INCLUDING WARRANTIES OF QUALITY, PERFORMANCE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE, NOR ARE THERE ANY WARRANTIES CREATED BY COURSE OF DEALING, COURSE OF PERFORMANCE, OR TRADE USAGE. FURTHER, ClipBucket / PHPBucket DOES NOT REPRESENT OR WARRANT THAT THE SOFTWARE WILL ALWAYS BE AVAILABLE, ACCESSIBLE, ACCURATE, COMPLETE, OR ERROR-FREE. THE FOREGOING EXCLUSIONS AND DISCLAIMERS ARE AN ESSENTIAL PART OF THIS AGREEMENT AND FORMED THE BASIS FOR DETERMINING THE PRICE CHARGED FOR THE SOFTWARE AND ANY ASSOCIATED SERVICES.
3. LIMITED LIABILITY:
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. IN NO EVENT SHALL ClipBucket/PHPBucket BE LIABLE WHETHER IN CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE (WHETHER ACTIVE, PASSIVE OR IMPUTED), PRODUCT LIABILITY OR STRICT LIABILITY OR OTHER THEORY), FOR COVER OR FOR ANY INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION ANY LOSS OF PROFITS OR DATA, BUSINESS INTERRUPTION, COMPUTER FAILURE OR OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR PERFORMANCE OF ANY RELATED SERVICES, EVEN IF ClipBucket/PHPBucket HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
ClipBucket/PHPBuckets CUMULATIVE LIABILITY TO YOU OR ANY OTHER PARTY FOR ANY LOSS OR DAMAGES RESULTING FROM ANY CLAIMS, DEMANDS, OR ACTIONS ARISING OUT OF OR RELATING TO THIS LICENSE SHALL NOT EXCEED THE AMOUNTS PAID BY YOU TO ClipBucket/PHPBucket FOR THE USE OF THE SOFTWARE. YOU HEREBY RELEASE ClipBucket/PHPBucket FROM ANY AND ALL OBLIGATIONS, LIABILITIES AND CLAIMS IN EXCESS OF THIS LIMITATION.
4. INTELLECTUAL PROPERTY RIGHTS RESERVED BY ClipBucket/PHPBucket:
The Software Product is protected by U.S, CANADA, and international copyright laws and treaties, as well as other intellectual property laws and treaties. You must not remove or alter any copyright notices on any copies of the Software Product. This Software Product copy is licensed, not sold. Furthermore, this CBLA does not grant you any rights in connection with any trademarks or service marks of ClipBucket / PHPBucket . ClipBucket reserves all intellectual property rights, including copyrights, and trademark rights.
5. NO RIGHT TO TRANSFER
You may not rent, lease, lend, or in any way distribute or transfer any rights in this CBLA or the Software Product to third parties without ClipBucket/PHPBucket's written approval and subject to written agreement by the recipient of the terms of this CBLA.
6. PROHIBITION ON REVERSE ENGINEERING, DECOMPILATION, AND DISASSEMBLY
You may not reverse engineer, decompile, defeat license encryption mechanisms, or disassemble the Software Product or Software Product License except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
9. MISCELLANEOUS.
We reserve the right to reference any website or company using the Software in our sales and marketing literature.
We reserve the right to monitor compliance with this CBLA and to restrict the use of the Software for non-compliance.
We reserve the right to include the "Flash Video Player by PHPBucket.com & Clip-bucket.com" text/link on every copy of the Flash Video Player included in the ClipBucket software. The "Flash Video Player by PHPBucket.Com" text/link can be removed by paying a small fee mentioned on the website/documentation.
ClipBucket / PHPBucket STRICTLY PROHIBITS SALE/RESALE OF OUR PRODUCTS. DO NOT SELL, BUT YOU CAN GIVE AWAY OR REUSE OUR PRODUCTS WITHOUT FOR FREE AND FOR NON COMMERCIAL USE, BUT IT SHOULD RETAIN ITS ORIGINAL FORM WITH OUR NAME WHILE DISTRIBUTING FREE. ClipBucket / PHPBucket will take legal action against any users that are found to be Selling Clipbucket(Lite) / ClipBucket / PHPBucket products. In addition A ClipBucket / PHPBucket will report any users found pirating other products to the products developer or care-keeper.
The terms set forth in this License and any related service agreements constitute the final, complete and exclusive agreement with respect to the Software and may not be contradicted, explained or supplemented by evidence of any prior agreement, any contemporaneous oral agreement or any consistent additional terms. Should any term or provision hereof be deemed invalid, void or unenforceable either in its entirety or in a particular application, the remainder of this License shall nonetheless remain in full force and effect. Any term of this License may be amended and the observance of any term may be waived only with the written consent of ClipBucket / PHPBucket . The failure of ClipBucket / PHPBucket at any time or times to require performance of any provision hereof shall in no manner affect its right at a later time to enforce the same unless the same is waived in writing.
10. CONTACT INFORMATION
If you have any questions about this CBLA, or if you want to contact ClipBucket / PHPBucket for any reason, please direct all correspondence to:
http://www.clip-bucket.com
http://www.phpbucket.com
or email: info@phpbucket.com
ClipBucket Product is registered trademark of PHPBucket.

92
docs/CHANGELOG Normal file
View file

@ -0,0 +1,92 @@
March 2009
-- added: proper comment counting (fwhite)
-- added: debug mode (fwhite)
-- added: debug mode option to admin_area (fwhite)
-- added: highest rated, most discussed filter (fwhite)
-- fixed: category filter bug (fwhite)
-- fixed: win32 conversion (limejoe)
-- fixed: "Recently Viewed..." when in subdir (thx momo)
-- fixed: admin check on IE (fw)
-- fixed: video display on manage videos - IE (fw)
February 2009 [fwhite]
-- added: flash_recent_videos_black.swf (momo)
-- added: FR & zh_CN lang (need images for both)
-- added: SK lang
-- changed: admin_area login page
-- fixed: template sort
-- fixed: flash_recent_videos.swf (momo)
-- fixed: bug #132 - http://bugs.cbdev.org/index.php?do=details&task_id=132&project=1
-- fixed: destroy session on logout
-- fixed: footer - NOBR
-- fixed: unregister userid on logout
-- fixed: delete cookies on logout
-- fixed: bug# 159 - http://bugs.cbdev.org/index.php?do=details&task_id=159&project=1
-- fixed: admin_area url in footer
-- removed: first name, last name requirement (edit_member)
Added Feb 11 2009 [Arslan]
-- Fixed : manage_videos.php videos order problem
Added Feb 01 2009 [Arslan]
-- text_exec() function once added in functions.php
-- text_exec() will also check windows paths
-- footer css changed of youtube style
January 2009 [fwhite]
-- fixed: scandir (define function !function_exists)
-- fixed: isValidEmail
-- fixed: /inactive.php redirect & inactive.html image display
-- fixed: jw_player plugin (wmode should not be opaque)
Bug List
-- Channel Background and Avatar Change Error [Fixed]
-- Re-Login Updates Users Videos Count [Fixed]
-- Admin Panel Template Editor Fault [Fixed]
-- User Videos Pagination Error [Check livedemo .httaccess for Rewrite Rules] [Fixed]
-- FileSize() Error , [Fixed]
-- Admin Area Show 0 videos [Fixed]
-- Rating_images bug [Fixed]
-- Username Session CaSe iS sEnsiTive [Fixed]
-- DeepLinks of player do not work [Fixed]
-- Big Thumb Doesnt Not Delete [Fixed]
-- Thumb Generation Error (Overwrite Permission Problem) [Fixed]
-- Website Link in view_channel [Fixed]
-- Embed Code shows up in videuploaducess even turning of from admin panel [Fixed]
-- Advertisment Problem [Fixed]
-- YT themes Meta Descript {f} [Fixed]
-- XMLHTTPRequest Error [Fixed] {fwhite}
-- Utf-8 Fix by FrankWhite {fwhite} [Fixed]
-- Valid Emabedded Code by Murat [Fixed] {lavinya}
-- Video Flags Do Not Delete After Deleteing Video [Fixed]
-- Redirect Error on Login [Fixed]
-- Captcha Verification Problem [Fixed]
-- Warning Lists In ClipBucket [Fixed]
-- Groups Problem, Owner Autojoin etc [Fixed]
-- Manage Videos Page Problems [Fixed]
-- manage_Favoutites , Links Do not work properly [Fixed]
-- User Session Lost During Uploading [Fixed]
-- Edit Video (watch video link doesnt work) [Fixed]
-- Private Video Emailed to subscribers [Fixed]
-- Favourite Videos Do Not Remove After Deleteing Video [Fixed]
-- Registeration Closed Message [Fixed]
Updates Added
-- Tempate Editor Updated
-- Upload File Type,File Size in Admin
-- Advertismetn Section Update (Placements Added)
-- New Comments Options Added
-- New Captcha Mods Added
-- Sort Editor's Pick
-- File Types Option Added in Admin
-- Language Changer in Footer (on/off via admin panel) by Frank
-- Template Changer in Footer (on/off via admin panel) by Frank
-- Rss Feeds by Murat
-- OpenSearch By Frank
-- Videos Sitemap For Google by Murat
-- FFMPEG Conversion Class

18
docs/README Normal file
View file

@ -0,0 +1,18 @@
ClipBucket is an open source video sharing script designed to build sites similar to Youtube, Metacafe, et al
ClipBucket has many features and a powerful administration panel.
Installation Guide:
http://forums.clip-bucket.com/showthread.php?t=676
ClipBucket is licensed under the CBLA (ClipBucket License Agreement)
Please read the license carefully
http://cbla.cbdev.org
Discussion & Support:
http://forums.clip-bucket.com
Language Packs:
http://clipbucket.org/frs/?group_id=6
Contribute:
http://clipbucket.org

17
docs/README_WIN32.txt Normal file
View file

@ -0,0 +1,17 @@
Run ClipBucket 1.7.x on Win32 (limejoe)
Step 1:
Download the Win32 binaries from http://clipbucket.org/scm/viewvc.php/etc/1.x/1.7/win32/?root=clipbucket
Step 2:
Add IUSR_machine privileges to execute CLI from webserver.
Step 3: Copy win32 php folder contents to your php installation root dir. And copy dll's from ext dir to the ext dir in your php path.
step 4: Setup admin_area with encoding tools path. Make sure to point to .exe's. As pointing to the directory alone will nto work. eg. c:/ffmpeg/ffmpeg.exe or c:/php/php-win.exe. !important
Step 5: Modify conversion.conf.php to user ffmpeg.win32.php isntead of ffmpeg.class.php.
Your CB version should now work on windows!
Have fun.

132
docs/installation.html Normal file
View file

@ -0,0 +1,132 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Installation</title>
</head>
<body style="font:Tahoma; font-size:13px" >
<div align="center">
<h1><font face="Arial, Helvetica, sans-serif">Installation</font></h1>
</div>
<div align="left" >After Confirming the server is ready for ClipBucket , our next step is to Upload All Files to the Server </div>
<h4>Uploading And Chmod</h4>
<ul>
<li>Upload All Files From Public_html Folder to your Root dir ie( www , public_html)</li>
<li>Chmod Following to 777</li>
<ul>
<li>&lsquo;<strong>Files</strong>&rsquo; directory and all files and folders under it (Important) </li>
<li>&lsquo;<strong>Images</strong>&rsquo; directory and all files and folders under it (Important)</li>
<li>&lsquo;<strong>Styles</strong>&rsquo; directory and all files and folders under it</li>
<li>&lsquo;<strong>Includes/email_templates</strong>&rsquo; and files under it</li>
<li>&lsquo;<strong>player&rsquo;</strong> and files under it (Important)</li>
<li>&lsquo;<strong>Cache</strong>&rsquo; directory (Important) </li>
<li>&lsquo;<strong>logs</strong>&rsquo; directory and logs.txt (Important) </li>
</ul>
</ul>
<h4>Sql Dumping &amp; Database Settings</h4>
<ul>
<li>Create a database and Import the '<strong>clipbucket_lite.sql</strong>' from <strong>Sql</strong> folder </li>
<li>Now edit values in 'config' table as
<ul>
<li>'base_dir' to relative path to directory where clipbucket is installed ie /home/username/public_html <strong>(without trailing slash &quot;/&quot; at the end )</strong></li>
<li>'base_url' to direct url to website where clipbucket is installed ie http://www.clip-bucket.com <strong>(without trailing slash &quot;/&quot; at the end )</strong></li>
</ul>
</li>
<li>Now Edit '<strong>includes/dbconnect.php</strong>' as
<ul>
<li> $BDTYPE = 'mysql';</li>
<li> $DBHOST = '<strong>localhost</strong>' ; Change the Host (Default Host is localhost so you may not need to change this) </li>
<li> $DBNAME = '<strong>dbname</strong>'; Change this to the name of the database you created for clipbucket </li>
<li> $DBUSER = '<strong>dbuser</strong>'; Change this to the username of the databse you assigned to the clipbucket </li>
<li> $DBPASS = '<strong>password</strong>'; Change it to the password of the database</li>
</ul>
</li>
</ul>
<p>now your website is almost ready to go, but you have to change some settings from the Administrator Panel</p>
<h4>Settings In Admin Panel </h4>
<p>First You have to access to the admin panel and by using this url http://yourwebsites.com/admin_area</p>
<ul>
<li>Enter username and password to login as Super Admin
<ul>
<li>username : admin</li>
<li>password : admin</li>
</ul>
</li>
<li>After Logging in go to Super Admin Settings
<ul>
<li>Change the username and pass to whatever you want, but make is so complicate so that no one able to guess it</li>
</ul>
</li>
<li>Now Create an Admin by clicking 'Add Member' found under User Management Menu</li>
<li>Fill The Form and Set its User Access Level to Admin and Submit it, and use this user as Admin<br />
NOTE : <strong>DO NOT</strong> PERFORM ANY ACTION OTHER THAN USERMANAGMENT USING <strong>SUPERADMIN</strong></li>
<li>Now logout and Login as Your newly created admin</li>
</ul>
<h4>Setting Website Configurations </h4>
<ul>
<li><strong>Website Settings
</strong>
<ul>
<li>Website Title &quot;Your Website Title&quot; ie &quot;Best Website&quot;</li>
<li>Website Slogan ie &quot;We Are The Best&quot;; </li>
<li>Website Closed (If You Are Editing or Doing Maintenance) Yes/No</li>
<li>Website Closed Message is Displayed When You Have Closed Your Website</li>
<li>Set Meta Description according to your website content</li>
<li>Set Meta Keywords According to your website Content</li>
<li>Turn on/of SEO Url </li>
</ul>
</li>
<li><strong>Paths
</strong>
<ul>
<li>FFMPEG Binary Path (Set FFMPEG path, where FFMPEG is installed)</li>
<li>FLVTool2 Path (Set Flv Tool 2 Path)</li>
<li>Mencoder Path (Set Mencoder Path)</li>
<li>Mplayer Path (Set Mplayer Path)</li>
<li>PHP Path ( Set PHP Path)</li>
</ul>
</li>
<li><strong>Video, Uploading and Conversion Settings
</strong>
<ul>
<li>Max Upload Size (Set the Maximum Size of the File you want to be uploaded )</li>
<li>Video Comments (Turn on or off Video Comments) Yes/No</li>
<li>Video Embedding (Turn on or off Video Embedding) Yes/No</li>
<li>Video Rating (Turn on or off Video Rating) Yes/No</li>
<li>Video Comments Rating (Turn on or off Video Comments Rating ) Yes/No</li>
<li>Resize The Uploaded Video or Not
<ul>
<li>if yes the Set Resize Height and Resized Width </li>
</ul>
</li>
<li>Set Other Video Settings Accordingly </li>
<li>Keep Original File for Download (Turn on or off ) Yes/No</li>
<li>Video Activation Required (Turn on or off ) Yes/No </li>
</ul>
</li>
<li><strong>Display Settings
</strong>
<ul>
<li>Template Name ( Select Available Template From The list)</li>
<li>Flash Player ( Select Available Flash Player From The list)</li>
<li>Video List Per Page ( Number Of Videos List Per Page )</li>
<li>Video List Per Box ( Number Of VIdeo List in a Box, Tab or other than Main or Videos Page)</li>
<li>Channel List Per Page ( Number Of Channels List Per Page)</li>
<li>Channels List Per Box ( Number OF Channels List Per Box , Tab or Other than main or Channels Page)</li>
<li>Set Number Of Search Results Display </li>
<li> Set Number of Recently Viewed Videos in a Flash Widget</li>
</ul>
</li>
<li><strong>User Registration
</strong>
<ul>
<li>Turn On/Off User Registrations</li>
<li>Set on/Off Email Verification</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
<p>Your Basic Installation is Done and Your website is ready to Launch </p>
</body>
</html>

38
docs/requirements.html Normal file
View file

@ -0,0 +1,38 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Requirements</title>
</head>
<body style="font:tahoma; font-size:12px">
<div align="center">
<h1><font face="Arial, Helvetica, sans-serif">Requirements</font></h1>
</div>
<div align="left">ClipBucket has a few requirements which must be met before you are able to install and use it. In this section, these requirements are explained.</div>
<ul>
<li>Linux Server (some old distributions are not supported)</li>
<li>Apache Web Server</li>
<li>MySQL (version 4 +)</li>
<li>PHP ( PHP 5)</li>
<li>PHP Configuration</li>
<ul>
<li>safe_mode = off</li>
<li>max_execution_time = 1000 (recommended to prevent timeouts during video upload/conversion)</li>
<li>session.gc_maxlifetime = 14000 (recommended to prevent session expires during video upload)</li>
<li>open_basedir = (no value)</li>
<li>output_buffering = on</li>
<li>upload_max_filesize = 100M (recommended maximum video upload size in MB)</li>
<li>post_max_size = 100M (recommended maximum video upload size in MB)</li>
<li>GD library Enabled (v2 or higher) </li>
</ul>
<li><strong>Mplayer + Mencoder</strong> (<a rel="nofollow" href="http://www.mplayerhq.hu/design7/dload.html">http://www.mplayerhq.hu/design7/dload.html</a>)</li>
<li><strong>Flv2tool</strong> (<a rel="nofollow" href="http://inlet-media.de/flvtool2">http://inlet-media.de/flvtool2</a>)</li>
<li><strong>Libogg + Libvorbis</strong> (<a rel="nofollow" href="http://www.xiph.org/downloads">http://www.xiph.org/downloads</a>)</li>
<li><strong>LAME MP3 Encoder</strong> (<a rel="nofollow" href="http://lame.sourceforge.net">http://lame.sourceforge.net</a>)</li>
<li>Apache mod_rewrite Enabled</li>
<li>Must be able to run PHP from the command line (CLI) with exec()</li>
<li>Allowed execution of background processes with exec(&quot;binary &gt; /dev/null &amp;&quot;)</li>
</ul>
</body>
</html>

2064
sql/cb_new_install.sql Normal file

File diff suppressed because it is too large Load diff

26
sql/upgrade.sql.txt Normal file
View file

@ -0,0 +1,26 @@
- Please Put all the DB changes here
- Also add those changes that have been made and not been added
ALTER TABLE `video` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `video_comments` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `channel_comments` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `groups` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `group_members` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `group_posts` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `group_topics` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `group_videos` ADD `userid` INT NOT NULL AFTER `username`
ALTER TABLE `messages` ADD `inbox_user_id` INT NOT NULL AFTER `sender` ,
ADD `outbox_user_id` INT NOT NULL AFTER `inbox_user_id` ,
ADD `sender_id` INT NOT NULL AFTER `outbox_user_id` ,
ADD `reciever_id` INT NOT NULL AFTER `sender_id`
ALTER TABLE `subscriptions` ADD `subscriber_id` INT NOT NULL AFTER `subscribed_user` ,
ADD `userid` INT NOT NULL AFTER `subscriber_id`

153
upload/.htaccess Normal file
View file

@ -0,0 +1,153 @@
#<IfModule mod_security.c>
# secfilterengine off
# secfilterscanPOST off
#</IfModule>
#Options +Indexes
php_flag safe_mode off
php_value max_execution_time 1000
php_value session.gc_maxlifetime 14000
php_value output_buffering on
php_value upload_max_filesize 2147483648
php_value post_max_size 2147483648
#php_flag display_errors off
Options All -Indexes
FileETag MTime Size
Options +FollowSymlinks
RewriteEngine on
<FilesMatch "\.(db|inc|html|tmpl|h|ihtml|sql|ini|configuration|config|class|bin|spd|theme|module|cfg|cpl|tmp|log|err|inc.php|class.php)$">
order allow,deny
satisfy all
</FilesMatch>
########## Begin - Rewrite rules to block out some common exploits
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
#RewriteRule ^(.*)$ index.php [L]
RewriteRule ^([^.]*)/?$ index.php [L]
#
########## End - Rewrite rules to block out some common exploits
########## Begin - Rewrite rules For SEO urls ######################
#
#Options +FollowSymlinks
#RewriteEngine on
#
#
#
#URL Rewriting for Videos
RewriteRule ^videos videos.php [nc]
RewriteRule ^video/(.*)/(.*)$ watch_video.php?v=$1&%{QUERY_STRING} [nc]
RewriteRule ^user/videos/(.*)$ user_videos.php?user=$1&%{QUERY_STRING}
#
#
#
#Signup Login & Logout URL Rewriting
RewriteRule ^login$ signup.php [nc]
RewriteRule ^login/success login_success.php [nc]
RewriteRule ^logout/success logout_success.php [nc]
RewriteRule ^signup/success signup_success.php [nc]
RewriteRule ^signup$ signup.php [nc]
RewriteRule ^logout$ logout.php [nc]
#
#
#
#Messages
RewriteRule ^message/sent sent.php [nc]
RewriteRule ^message/inbox inbox.php [nc]
RewriteRule ^message/compose compose.php [nc]
RewriteRule ^message$ inbox.php [nc]
#
#
#
#Users, Channel & Management
#
RewriteRule ^members/ channels.php [nc]
RewriteRule ^users/ channels.php [nc]
RewriteRule ^channels/ channels.php [nc]
#
RewriteRule ^user/ channels.php [nc]
RewriteRule ^user/channel/(.*) view_channel.php?user=$1 [nc]
RewriteRule ^channel/(.*) view_channel.php?user=$1 [nc]
RewriteRule ^user/contacts/(.*) user_contacts.php?user=$1 [nc]
RewriteRule ^user/videos/(.*) user_videos.php?user=$1 [nc]
RewriteRule ^user/favourites/(.*) user_fav_videos.php?user=$1 [nc]
#
RewriteRule ^myaccount myaccount.php [nc]
RewriteRule ^manage/videos/ manage_videos.php [nc]
RewriteRule ^manage/favourites/ manage_favourites.php [nc]
RewriteRule ^manage/contacts/ manage_contacts.php [nc]
RewriteRule ^manage/subscriptions/ manage_subscriptions.php [nc]
RewriteRule ^manage/account user_account.php [nc]
RewriteRule ^manage/video/edit edit_video.php [nc]
#
#
#
#Pages
RewriteRule ^pages/help help.php [nc]
RewriteRule ^pages/privacy privacy.php [nc]
RewriteRule ^pages/termsofuse termsofuse.php [nc]
RewriteRule ^pages/contactus contactus.php [nc]
RewriteRule ^pages/aboutus aboutus.php [nc]
#
#
#
#Miscellenous
RewriteRule ^subscriptions manage_subscriptions.php [nc]
RewriteRule ^search/result search_result.php [nc]
RewriteRule ^upload upload.php [nc]
RewriteRule ^External/Upload external_upload.php [nc]
#
#
#Group Section
RewriteRule ^group/leave/([a-zA-Z0-9].+)$ leave_group.php?url=$1 [nc]
RewriteRule ^manage/group/videos/([a-zA-Z0-9].+)$ manage_group_videos.php?url=$1 [nc]
RewriteRule ^manage/group/videos/([a-zA-Z0-9].+)$ manage_group_videos.php?url=$1 [nc]
RewriteRule ^manage/group/addvideos/([a-zA-Z0-9].+)$ add_group_videos.php?url=$1 [nc]
RewriteRule ^manage/group/members/([a-zA-Z0-9].+)$ manage_group_members.php?url=$1 [nc]
RewriteRule ^manage/group manage_groups.php
RewriteRule ^group/view/([a-zA-Z0-9].+) view_group.php?url=$1&%{QUERY_STRING} [nc]
RewriteRule ^group/videos/([a-zA-Z0-9].+) view_group_videos.php?url=$1 [nc]
RewriteRule ^group/members/([a-zA-Z0-9].+) view_group_members.php?url=$1 [nc]
RewriteRule ^group/invite/([a-zA-Z0-9].+) invite_group.php?url=$1 [nc]
RewriteRule ^manage/group/edit/([a-zA-Z0-9])$ edit_group.php?url=$1 [nc]
RewriteRule ^group/create/ create_group.php [nc]
RewriteRule ^group/join/([a-zA-Z0-9].+) join_group.php?url=$1 [nc]
RewriteRule ^community groups.php [nc]
RewriteRule ^groups$ groups.php [nc]
RewriteRule ^group/delete delete_group.php [nc]
RewriteRule ^group/topic/(.*)$ view_topic.php?tid=$1 [nc]
RewriteRule ^sitemap.xml$ sitemap.php
#Error Pages
ErrorDocument 404 /error_pages/404.php
ErrorDocument 403 /error_pages/403.php
########## End - Rewrite rules For SEO urls ######################
RewriteRule ^rss$ rss.php [nc]
RewriteRule ^rss/([a-zA-Z0-9].+)$ rss.php?show=$1 [nc]
########## End - Rewrite rules For SEO urls ######################
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif "access plus 1 months"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType image/png "access plus 1 months"
</IfModule>

32
upload/ActualUpload.php Normal file
View file

@ -0,0 +1,32 @@
<?php
error_reporting(0);
require_once('includes/conversion.conf.php');
//Rename File
$filename = $_GET['flv'];
$new_name = substr($filename, 0, strrpos($filename, '.'));
$ext = substr($_FILES['Filedata']['name'], strrpos($_FILES['Filedata']['name'],'.') + 1);
$newfilename = $new_name.".".$ext;
//Upload Path
$filepath = getcwd()."/files/temp/";
if(!file_exists($filepath)) {
mkdir($filepath,0777);
}
//CHMOD File
chmod(BASEDIR."/files/temp", 0777);
chmod(BASEDIR."/files/original", 0777);
chmod(BASEDIR."/files/videos", 0777);
//Copying File..
if(move_uploaded_file($_FILES['Filedata']['tmp_name'], $filepath.$newfilename)){
$php_path = PHP_PATH;
$ffmpeg = new ffmpeg();
$ffmpeg->ConvertFile($newfilename,$filename);
}
?>

96
upload/LICENSE Normal file
View file

@ -0,0 +1,96 @@
ClipBucket License Agreement (CBLA)
Version 1, November 13, 2008
Copyright © 2008 PHPBucket PVT, LTD <http://phpbucket.com/>
Preamble
The CBLA (ClipBucket License Agreement) is, as its name shows it, a contract between the software developer / owner (PHPBucket / ClipBucket ) and a potential user, either an Entity or a Single User, (hereinafter each licensee is addressed as "you"). By means of this contract it is established that the developer of the software is it's de facto owner, and that a copy of the respective software downloaded from a vendor (or downloaded from the Internet) only licenses it to a user, and does not transmit any intellectual rights whatsoever on the Software.
The end user is only allowed to use it as long the terms in this license agreement are accepted.
This ClipBucket License Agreement (CBLA) covers your use of the ClipBucket software product that accompanies this CBLA and related software components, which may include associated media, printed materials, and "online" or electronic documentation. All such software and materials are referred to herein as the "Software Product." A software license, issued to a designated user only by ClipBucket / PHPBucket or its authorized agents, is required for each user of the Software Product. If you do not agree to the terms of this CBLA, you are not authorized to install or use the associated Software Product or the Software Product License. By explicitly accepting this CBLA, or by installing, copying, downloading, accessing, or otherwise using the Software Product and/or Software Product License, you are acknowledging and agreeing to be bound by the terms listed under TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION.
CLIPBUCKET LICENSE AGREEMENT
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
(subject to change without notice)
1. LICENSE
(a) Software Product License.
The Software Product License, which is issued to a designated user, enables such designated user to install and use the Software Product on a His/Her websites/domains Without paying any fee.
You are not allowed to:
(a.1) sell the software product
(a.2) sell derivate works based on the software product or any of it's associated components
(a.3) use any portion of the software product in other products or derivate works
You are allowed to:
(a.4) create modifications for the software product
(a.5) alter the software product for your own use
(a.6) sell products that integrate with or enhance the software product
(b) Grant of License.
Subject to a validly issued Software Product License, ClipBucket/PHPBucket grants to you the non-exclusive, non-transferable right for you to use the Software Product on an unlimited number of websites/domains. All rights not expressly granted to you are retained by ClipBucket/ PHPBucket.
(c) Adult Content Prohibition
You cannot use ClipBucket on any website which contain any kind of pornographic content. If you want to Use ClipBucket on such kind of websites you need to purchase the Adult Permit which is available on the official ClipBucket website for a nominal fee
2. WARRANTY:
ClipBucket / PHP Bucket Softwares are Provided on ”AS IS” and ” AS AVAILABLE" BASIS. ClipBucket /PHPBucket DISCLAIMS ANY IMPLIED WARRANTIES. ClipBucket/PHPBucet , ANY OF ITS EMPLOYEES, MANAGEMENT OR AFFILIATES MAY NOT BE HELD RESPONSIBLE OR THUS LIABLE FOR ANY POSSIBLE DAMAGES RESULTING IN USE OR MISUSE OF ANY INFORMATION, CONTENT OR SOFTWARE PROVIDED BY ClipBucket/PHPBucket , INCLUDING DIRECT OR INDIRECT, PUNITIVE, AND INCIDENTAL RESULTING FROM ANY FAILURE TO PROVIDE SERVICES, SUSPENSION OF SERVICES, OR TERMINATION OF SERVICES. THE SOFTWARE IS PROVIDED "AS IS" AND YOU ASSUME ALL RISK WITH ITS INSTALLATION, CONFIGURATION AND USE. THERE ARE NO WARRANTIES, CLAIMS OR REPRESENTATIONS MADE BY ClipBucket/PHPBucket, EITHER EXPRESS, IMPLIED, OR STATUTORY, WITH RESPECT TO THE SOFTWARE, INCLUDING WARRANTIES OF QUALITY, PERFORMANCE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE, NOR ARE THERE ANY WARRANTIES CREATED BY COURSE OF DEALING, COURSE OF PERFORMANCE, OR TRADE USAGE. FURTHER, ClipBucket / PHPBucket DOES NOT REPRESENT OR WARRANT THAT THE SOFTWARE WILL ALWAYS BE AVAILABLE, ACCESSIBLE, ACCURATE, COMPLETE, OR ERROR-FREE. THE FOREGOING EXCLUSIONS AND DISCLAIMERS ARE AN ESSENTIAL PART OF THIS AGREEMENT AND FORMED THE BASIS FOR DETERMINING THE PRICE CHARGED FOR THE SOFTWARE AND ANY ASSOCIATED SERVICES.
3. LIMITED LIABILITY:
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. IN NO EVENT SHALL ClipBucket/PHPBucket BE LIABLE WHETHER IN CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE (WHETHER ACTIVE, PASSIVE OR IMPUTED), PRODUCT LIABILITY OR STRICT LIABILITY OR OTHER THEORY), FOR COVER OR FOR ANY INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION ANY LOSS OF PROFITS OR DATA, BUSINESS INTERRUPTION, COMPUTER FAILURE OR OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR PERFORMANCE OF ANY RELATED SERVICES, EVEN IF ClipBucket/PHPBucket HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
ClipBucket/PHPBuckets CUMULATIVE LIABILITY TO YOU OR ANY OTHER PARTY FOR ANY LOSS OR DAMAGES RESULTING FROM ANY CLAIMS, DEMANDS, OR ACTIONS ARISING OUT OF OR RELATING TO THIS LICENSE SHALL NOT EXCEED THE AMOUNTS PAID BY YOU TO ClipBucket/PHPBucket FOR THE USE OF THE SOFTWARE. YOU HEREBY RELEASE ClipBucket/PHPBucket FROM ANY AND ALL OBLIGATIONS, LIABILITIES AND CLAIMS IN EXCESS OF THIS LIMITATION.
4. INTELLECTUAL PROPERTY RIGHTS RESERVED BY ClipBucket/PHPBucket:
The Software Product is protected by U.S, CANADA, and international copyright laws and treaties, as well as other intellectual property laws and treaties. You must not remove or alter any copyright notices on any copies of the Software Product. This Software Product copy is licensed, not sold. Furthermore, this CBLA does not grant you any rights in connection with any trademarks or service marks of ClipBucket / PHPBucket . ClipBucket reserves all intellectual property rights, including copyrights, and trademark rights.
5. NO RIGHT TO TRANSFER
You may not rent, lease, lend, or in any way distribute or transfer any rights in this CBLA or the Software Product to third parties without ClipBucket/PHPBucket's written approval and subject to written agreement by the recipient of the terms of this CBLA.
6. PROHIBITION ON REVERSE ENGINEERING, DECOMPILATION, AND DISASSEMBLY
You may not reverse engineer, decompile, defeat license encryption mechanisms, or disassemble the Software Product or Software Product License except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
9. MISCELLANEOUS.
We reserve the right to reference any website or company using the Software in our sales and marketing literature.
We reserve the right to monitor compliance with this CBLA and to restrict the use of the Software for non-compliance.
We reserve the right to include the "Flash Video Player by PHPBucket.com & Clip-bucket.com" text/link on every copy of the Flash Video Player included in the ClipBucket software. The "Flash Video Player by PHPBucket.Com" text/link can be removed by paying a small fee mentioned on the website/documentation.
ClipBucket / PHPBucket STRICTLY PROHIBITS SALE/RESALE OF OUR PRODUCTS. DO NOT SELL, BUT YOU CAN GIVE AWAY OR REUSE OUR PRODUCTS WITHOUT FOR FREE AND FOR NON COMMERCIAL USE, BUT IT SHOULD RETAIN ITS ORIGINAL FORM WITH OUR NAME WHILE DISTRIBUTING FREE. ClipBucket / PHPBucket will take legal action against any users that are found to be Selling Clipbucket(Lite) / ClipBucket / PHPBucket products. In addition A ClipBucket / PHPBucket will report any users found pirating other products to the products developer or care-keeper.
The terms set forth in this License and any related service agreements constitute the final, complete and exclusive agreement with respect to the Software and may not be contradicted, explained or supplemented by evidence of any prior agreement, any contemporaneous oral agreement or any consistent additional terms. Should any term or provision hereof be deemed invalid, void or unenforceable either in its entirety or in a particular application, the remainder of this License shall nonetheless remain in full force and effect. Any term of this License may be amended and the observance of any term may be waived only with the written consent of ClipBucket / PHPBucket . The failure of ClipBucket / PHPBucket at any time or times to require performance of any provision hereof shall in no manner affect its right at a later time to enforce the same unless the same is waived in writing.
10. CONTACT INFORMATION
If you have any questions about this CBLA, or if you want to contact ClipBucket / PHPBucket for any reason, please direct all correspondence to:
http://www.clip-bucket.com
http://www.phpbucket.com
or email: info@phpbucket.com
ClipBucket Product is registered trademark of PHPBucket.

16
upload/aboutus.php Normal file
View file

@ -0,0 +1,16 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require 'includes/config.inc.php';
$pages->page_redir();
subtitle('aboutus');
Template('header.html');
Template('message.html');
Template('aboutus.html');
Template('footer.html');
?>

View file

@ -0,0 +1,25 @@
<?php
/**
* This file is used to verify embed form
* @author : Arslan Hassan
*/
include("../includes/config.inc.php");
$embed_code = $_POST['embed_code'];
$duration = $_POST['duration'];
$thumb_file = $_POST['thumb_file'];
$ext = strtolower(getExt($thumb_file));
validate_embed_code($embed_code);
validate_duration($duration);
if(empty($thumb_file) || ( $ext != 'jpg' && $ext != 'png' && $ext !='gif'))
e("Please select image file for video thumb");
if(count($eh->error_list>0))
$array['err'] = $eh->error_list[0];
echo json_encode($array);
?>

View file

@ -0,0 +1,77 @@
<?php
/**
* This file is used to download files
* from one server to our server
* in prior version, this file was not so reliable
* this time it has complete set of instruction
* and proper downloader
* @Author : Arslan Hassan
* @Licnese : CBLA
* @Since : 01 July 2009
*/
include("../includes/config.inc.php");
include("../includes/classes/curl/class.curl.php");
//Get File
//$url = 'http://farm3.static.flickr.com/2327/1791102470_1479de524c.jpg';
$url = $_POST['file_url'];
//Checking Extension
$ext = getExt($url);
//Load Class
$curl = new curl($url);
//$curl->setopt(CURLOPT_FOLLOWLOCATION, true) ;
if(empty($url))
{
$array['err'] = "No url specified";
echo json_encode($array);
exit();
}
//Checking File size
if(!is_numeric($curl->file_size) || $curl->file_size == '')
{
$array['err'] = "Unknown file size";
echo json_encode($array);
exit();
}
if(isset($_POST['check_url']))
{
$array['size'] = $curl->file_size;
$array['ext'] = $ext;
echo json_encode($array);
exit();
}
//Get File Extension
//Get File Name
//$file_name = time();
$file_name = $_POST['file_name'];
$file_path = TEMP_DIR.'/'.$file_name.'.'.$ext;
//Opening File
$file = fopen($file_path,"w");
//Reading Content
$content = $curl->exec();
//writing File
fwrite($file,$content);
if ($theError = $curl->hasError())
{
$array['err'] = $theError ;
echo json_encode($array);
}
//Closing Curl Session
$curl->close() ;
?>

View file

@ -0,0 +1,140 @@
<?php
/**
* @Author : Arslan Hassan
* License : SWFUpload <http://swfupload.org/>
* This file is used to upload file using SWFUpload
* you dont need to edit this file, edit it at yout own risk :)
*/
include('../includes/config.inc.php');
// Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762)
$POST_MAX_SIZE = ini_get('post_max_size');
$unit = strtoupper(substr($POST_MAX_SIZE, -1));
$multiplier = ($unit == 'M' ? 1048576 : ($unit == 'K' ? 1024 : ($unit == 'G' ? 1073741824 : 1)));
if ((int)$_SERVER['CONTENT_LENGTH'] > $multiplier*(int)$POST_MAX_SIZE && $POST_MAX_SIZE) {
header("HTTP/1.1 500 Internal Server Error"); // This will trigger an uploadError event in SWFUpload
echo "POST exceeded maximum allowed size.";
exit(0);
}
// Settings
$save_path = TEMP_DIR.'/'; // The path were we will save the file (getcwd() may not be reliable and should be tested in your environment)
$upload_name = "Filedata";
$max_file_size_in_bytes = 2147483647; // 2GB in bytes
$types = strtolower($row['allowed_types']);
$types_array = preg_replace('/,/',' ',$types);
$types_array = explode(' ',$types_array);
$extension_whitelist = $types_array; // Allowed file extensions
$valid_chars_regex = '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format)
// Other variables
$MAX_FILENAME_LENGTH = 260;
$file_name = "";
$file_extension = "";
$uploadErrors = array(
0=>"There is no error, the file uploaded with success",
1=>"The uploaded file exceeds the upload_max_filesize directive in php.ini",
2=>"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form",
3=>"The uploaded file was only partially uploaded",
4=>"No file was uploaded",
6=>"Missing a temporary folder"
);
// Validate the upload
if (!isset($_FILES[$upload_name])) {
HandleError("No upload found in \$_FILES for " . $upload_name);
exit(0);
} else if (isset($_FILES[$upload_name]["error"]) && $_FILES[$upload_name]["error"] != 0) {
HandleError($uploadErrors[$_FILES[$upload_name]["error"]]);
exit(0);
} else if (!isset($_FILES[$upload_name]["tmp_name"]) || !@is_uploaded_file($_FILES[$upload_name]["tmp_name"])) {
HandleError("Upload failed is_uploaded_file test.");
exit(0);
} else if (!isset($_FILES[$upload_name]['name'])) {
HandleError("File has no name.");
exit(0);
}
// Validate the file size (Warning: the largest files supported by this code is 2GB)
$file_size = @filesize($_FILES[$upload_name]["tmp_name"]);
if (!$file_size || $file_size > $max_file_size_in_bytes) {
HandleError("File exceeds the maximum allowed size");
exit(0);
}
if ($file_size <= 0) {
HandleError("File size outside allowed lower bound");
exit(0);
}
// Validate file name (for our purposes we'll just remove invalid characters)
$file_name = $_POST['file_name'].'.'.strtolower(getExt($_FILES[$upload_name]['name']));
if (strlen($file_name) == 0 || strlen($file_name) > $MAX_FILENAME_LENGTH) {
HandleError("Invalid file name");
exit(0);
}
// Validate that we won't over-write an existing file
if (file_exists($save_path . $file_name)) {
exit();
}
// Validate file extension
$path_info = pathinfo($_FILES[$upload_name]['name']);
$file_extension = $path_info["extension"];
$is_valid_extension = false;
foreach ($extension_whitelist as $extension) {
if (strcasecmp($file_extension, $extension) == 0) {
$is_valid_extension = true;
break;
}
}
if (!$is_valid_extension) {
HandleError("Invalid file extension");
exit(0);
}
// Validate file contents (extension and mime-type can't be trusted)
/*
Validating the file contents is OS and web server configuration dependant. Also, it may not be reliable.
See the comments on this page: http://us2.php.net/fileinfo
Also see http://72.14.253.104/search?q=cache:3YGZfcnKDrYJ:www.scanit.be/uploads/php-file-upload.pdf+php+file+command&hl=en&ct=clnk&cd=8&gl=us&client=firefox-a
which describes how a PHP script can be embedded within a GIF image file.
Therefore, no sample code will be provided here. Research the issue, decide how much security is
needed, and implement a solution that meets the needs.
*/
// Process the file
/*
At this point we are ready to process the valid file. This sample code shows how to save the file. Other tasks
could be done such as creating an entry in a database or generating a thumbnail.
Depending on your server OS and needs you may need to set the Security Permissions on the file after it has
been saved.
*/
if (!@move_uploaded_file($_FILES[$upload_name]["tmp_name"], $save_path.$file_name)) {
HandleError("File could not be saved.");
exit(0);
}else{
$Upload->add_conversion_queue($file_name);
exec(php_path()." -q ".BASEDIR."/actions/video_convert.php > /dev/null &");
}
exit(0);
/* Handles the error output. This error message will be sent to the uploadSuccess event handler. The event handler
will have to check for any error messages and react as needed. */
function HandleError($message) {
echo $message;
}
?>

View file

@ -0,0 +1,11 @@
<?php
/**
* this file is used to fetch file size
*/
include("../includes/config.inc.php");
$file_name = $_POST['file'];
$file = TEMP_DIR.'/'.$file_name;
if(!empty($file_name) && file_exists($file))
echo filesize($file);
?>

View file

@ -0,0 +1,28 @@
<?php
/**
* File use to process video files
*
* @Author : Arslan Hassan
* @Software : ClipBucket
* @License : CBLA
* @Since : July 3 2009
*/
include(dirname(__FILE__)."/../includes/config.inc.php");
//Get vid
$vid = $_SERVER['argv'][1];
//Check video exists or not
if($myquery->video_exists($vid))
{
//Get Video Details
//$vdetails = $myquery->get_video_details($vid);
$Upload->do_after_video_upload($vid);
}else{
e("Video doesn't exist");
}
?>

View file

@ -0,0 +1,20 @@
<?php
/**
* This file is used to update
* language phrases
* Author : Arslan Hassan
* Since : 10 Aug, 2009
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$phrase_id = $_POST['id'];
$value = $_POST['value'];
$lang_obj->update_phrase($phrase_id,$value);
echo mysql_clean($value);
?>

View file

@ -0,0 +1,63 @@
<?php
/***
* Written by : Arslan Hassan
* Software : ClipBucket v2
* License : CBLA
*///
include(dirname(__FILE__)."/../includes/config.inc.php");
$SYSTEM_OS = $row['sys_os'] ? $row['sys_os'] : 'linux';
//Including FFMPEG CLASS
require_once(BASEDIR.'/includes/classes/conversion/ffmpeg.win32.php');
//Get Vido
$queue_details = get_queued_video();
//Setting up details, moving files
$tmp_file = $queue_details['cqueue_name'];
$tmp_ext = $queue_details['cqueue_tmp_ext'];
$ext = $queue_details['cqueue_ext'];
if(!empty($tmp_file)){
$temp_file = TEMP_DIR.'/'.$tmp_file.'.'.$tmp_ext;
$orig_file = CON_DIR.'/'.$tmp_file.'.'.$ext;
//rcopy($temp_file,$orig_file);
rename($temp_file,$orig_file);
$configs = array
(
'use_video_rate' => true,
'use_video_bit_rate' => true,
'use_audio_rate' => true,
'use_audio_bit_rate' => true,
'format' => 'flv',
'video_codec'=>'flv',
'audio_rate'=>22050,
'audio_bitrate'=>64000,
'video_bitrate'=>500000,
'video_width'=>400,
'video_height'=>300,
'resize'=>'max'
);
$ffmpeg = new ffmpeg($orig_file);
$ffmpeg->configs = $configs;
$ffmpeg->gen_thumbs = TRUE;
$ffmpeg->gen_big_thumb = TRUE;
$ffmpeg->output_file = VIDEOS_DIR.'/'.$tmp_file.'.flv';
$ffmpeg->ClipBucket();
$db->update("conversion_queue",
array("cqueue_conversion"),
array("yes")," cqueue_id = '".$queue_details['cqueue_id']."'");
update_processed_video($queue_details);
}
?>

56
upload/activation.php Normal file
View file

@ -0,0 +1,56 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require 'includes/config.inc.php';
$show_active = 1;
//Get Username and AVCode By GET Method
if(isset($_GET['username'])){
$username = mysql_clean($_GET['username']);
$avcode = mysql_clean($_GET['avcode']);
if($userquery->ActivateUser($username,$avcode)){
$msg = $LANG['dear']."<strong>$username</strong>, ".$LANG['usr_activation_msg'];
$show_active = 0;
}else{
$msg = $LANG['usr_activation_err'];
$show_active = 1;
}
}
//Getting Username And AVCode By POST Method
if(isset($_POST['activate'])){
$username = mysql_clean($_POST['username']);
$avcode = mysql_clean($_POST['avcode']);
if($userquery->ActivateUser($username,$avcode)){
$msg = $LANG['dear']."<strong>$username</strong>, ".$LANG['usr_activation_msg'];
$show_active = 0;
}else{
$msg = $LANG['usr_activation_err'];
$show_active = 1;
}
}
//Sendin Activation Code
if(isset($_POST['request'])){
$email = mysql_clean($_POST['email']);
if($userquery->SendActivation($email)){
$msg = $LANG['usr_activation_em_msg'];
}else{
$msg = $LANG['usr_activation_em_err'];
}
}
subtitle('activation');
Assign('show_form', $show_active);
Assign('msg',$msg);
Template('header.html');
Template('activation.html');
Template('footer.html');
?>

42
upload/actual_upload.php Normal file
View file

@ -0,0 +1,42 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , (c) PHPBucket.com |
****************************************************************************************************
*/
$snatch_system = 'curl';
require_once('includes/conversion.conf.php');
$ffmpeg = new ffmpeg();
//Uploading File
if(isset($_POST['upload_file'])) {
$_SESSION['is_upload'] = "Success";
$Upload->UploadProcess();
$filename = $_POST['flvname'];
$new_name = substr($filename, 0, strrpos($filename, '.'));
$ext = substr($_FILES['filename']['name'], strrpos($_FILES['filename']['name'],'.') + 1);
$newfilename = $new_name.".".$ext;
$path = BASEDIR."/files/temp/".$newfilename;
copy($_FILES['filename']['tmp_name'], $path);
setcookie('flv_upload',$filename);
$php_path = PHP_PATH;
$ffmpeg->ConvertFile($newfilename,$filename);
redirect_to(BASEURL.'/videouploadsuccess.php?show=success');
} elseif(isset($_POST['snatch_file'])) {
$Upload->UploadProcess();
$file = $_POST['file'];
$flvname = $_POST['flvname'];
$php_path = PHP_PATH;
exec("$php_path cUrldownload.php $file $flvname >> ".BASEDIR."/logs/logs.txt &");
redirect_to(BASEURL.'/videouploadsuccess.php?show=success');
}
?>

View file

@ -0,0 +1,62 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
$manage_vids = TRUE;
require 'includes/config.inc.php';
$userquery->logincheck();
$pages->page_redir();
$url = clean($_GET['url']);
include('group_inc.php');
$group = @$topic_details['group_id'];
$details = $groups->GetDetails($url);
$group = $details['group_id'];
$user = $_SESSION['username'];
include('group_check.php');
//Adding Video To Group
if(isset($_POST['add_videos'])){
if($details['video_type'] == 1){
$approved = 'no';
}else{
$approved = 'yes';
}
$msg = $groups->AddVideos($group,$approved);
}
//Getting User Videos
$sql = "SELECT * from video WHERE username = '".$user."'";
$rs = $db->Execute($sql);
$videos = $rs->getrows();
$total_vdo = $rs->recordcount()+0;
for($id=0;$id<$total_vdo;$id++){
$query=mysql_query("SELECT * FROM video_detail WHERE flv='".$videos[$id]['flv']."'");
$data = mysql_fetch_array($query);
$query2=mysql_query("SELECT * FROM group_videos WHERE videokey='".$videos[$id]['videokey']."' AND group_id='".$details['group_id']."'");
if(mysql_num_rows($query2) > 0){
$videos[$id]['checked'] = 'checked="checked"';
}
$videos[$id]['thumb'] = GetThumb($videos[$id]['flv']);
}
Assign('videos',$videos);
Assign('total_vids',$total_vdo);
Assign('groups',$details);
Assign('subtitle',$details['group_name'].' '.$LANG['grp_add_title']);
@Assign('msg',$msg);
@Assign('show_group',$show_group);
Template('header.html');
Template('message.html');
Template('group_header.html');
Template('add_group_videos.html');
Template('footer.html');
?>

View file

@ -0,0 +1,30 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
if(isset($_POST['add_field']))
{
$array = $_POST;
$array['add_field'] = '';
add_custom_field($array);
}
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('add_custom_fields.html');
Template('footer.html');
?>

View file

@ -0,0 +1,30 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
if(isset($_POST['add_phrase']))
{
$name = mysql_clean($_POST['name']);
$text = mysql_clean($_POST['text']);
$lang_code = mysql_clean($_POST['lang_code']);
$lang_obj->add_phrase($name,$text);
}
/*Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('language_settings.html');
Template('footer.html');*/
template_files('add_phrase.html');
display_it();
?>

View file

@ -0,0 +1,48 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$pages->page_redir();
$userquery->login_check('admin_access');
//Removing Placement
if(isset($_GET['remove'])){
$placement = mysql_clean($_GET['remove']);
$msg =$ads_query->RemovePlacement($placement);
}
//Adding Placement
if(isset($_POST['AddPlacement'])){
$placement_name = mysql_clean($_POST['placement_name']);
$placement_code = mysql_clean($_POST['placement_code']);
$array = array($placement_name,$placement_code);
$msg = $ads_query->AddPlacement($array);
}
//Getting List Of Placement
$sql = "SELECT * FROM ads_placements";
$ads_exec = $db->Execute($sql);
$ads_placements = $ads_exec->getrows();
$total_placements = $ads_exec->recordcount() + 0;
//Getting total Ads in each placement
for($id=0;$id<=$total_placements;$id++){
$query = mysql_query("SELECT * FROM ads_data WHERE ad_placement='".@$ads_placements[$id]['placement']."'");
$ads_placements[$id]['total_ads'] = mysql_num_rows($query);
}
Assign('ads_placements',$ads_placements);
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('ads_add_placements.html');
Template('footer.html');
?>

View file

@ -0,0 +1,91 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Adding Advertisment
if(isset($_POST['add_ad'])){
$msg = $ads_query->AddAd();
}
//Changing Status
if(isset($_GET['change_status'])){
$id = mysql_clean($_GET['change_status']);
$status = mysql_clean($_GET['status']);
$msg = $ads_query->ChangeAdStatus($status,$id);
}
//Delet Advertisment
if(isset($_GET['delete_ad'])){
$id = mysql_clean($_GET['delete_ad']);
$msg = $ads_query->DeleteAd($id);
}
//Editing An Add/
if(isset($_GET['ad'])){
$ad = clean($_GET['ad']);
$query = mysql_query("SELECT * FROM ads_data WHERE ad_id='".$ad."'");
if(mysql_num_rows($query)>0){
if(isset($_POST['update_ad'])){
$id = mysql_clean($_GET['ad']);
$msg = $ads_query->EditAd($id);
}
$sql = "SELECT * FROM ads_data WHERE ad_id='".$ad."'";
$rs = $db->Execute($sql);
$ad_data = $rs->getrows();;
Assign('ad_data',$ad_data);
Assign('edit_ad','show');
}else{
$msg[] = $LANG['ad_exists_error1'];
}
}
//Advertisment Array
$placements = array(
"ad_160x600" => "Wide Skyscrapper 160 x 600",
"ad_468x60" => "Banner 468 x 60",
"ad_300x250" => "Medium Rectangle 300 x 250",
"ad_728x90" => "Leader Board 728 x 90",
"ad_200x200" => "Small Square 200 x 200",
"ad_250x250" => "Square 250 x 250",
"ad_120x600" => "Skyscrapper 120 x 600",
"ad_336x280" => "Large Rectangle 336x280"
);
Assign('placement',$placements);
$sql = "SELECT * from ads_data";
$rs = $db->Execute($sql);
$total = $rs->recordcount();
$ads = $rs->getrows();
for($id=0;$id<$total;$id++){
$category = $myquery->GetCategory($ads[$id]['ad_category']);
$ads[$id]['ad_category'] = $category['category_name'];
$ads[$id]['placement'] = $placements [$ads[$id]['ad_placement']];
}
Assign('total', $total);
Assign('ads', $ads);
//Getting List Of Placement
$sql = "SELECT * FROM ads_placements";
$ads_exec = $db->Execute($sql);
$ads_placements = $ads_exec->getrows();
Assign('ads_placements',$ads_placements);
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('ads_manager.html');
Template('footer.html');
?>

View file

@ -0,0 +1,75 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Form Processing
if(isset($_POST['add_cateogry'])){
if($myquery->AddCategory()){
$msg[] = $LANG['cat_add_msg'];
}else{
$msg[] = $LANG['cat_img_error'];
}
}
//Edit Categoty
if(isset($_GET['category'])){
$category = clean($_GET['category']);
if($myquery->CategoryExists($category)){
if(isset($_POST['update_category'])){
if($myquery->UpdateCategory($_GET['category'])){
$msg[] = "Category Has Been Updated";
}
}
$sql = "SELECT * from category WHERE categoryid = '".$category."'";
$rs = $db->Execute($sql);
$category_data = $rs->getrows();;
Assign('category_data',$category_data);
Assign('edit_category','show');
}else{
$msg[] = $LANG['cat_exist_error'];
}
}
//Delete Category
if(isset($_GET['delete_category'])){
$category = mysql_clean($_GET['delete_category']);
if($myquery->CategoryExists($category)){
$msg[] = $myquery->DeleteCategory($category);
}else{
$msg[] = $LANG['cat_exist_error'];
}
}
//Assing Category Values
$sql = "SELECT * from category";
$rs = $db->Execute($sql);
$total = $rs->recordcount() + 0;
$category = $rs->getrows();
Assign('total', $total + 0);
Assign('category', $category);
Assign('msg',@$msg);
/*Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('category.html');
Template('footer.html');*/
template_files('category.html');
display_it();
?>

View file

@ -0,0 +1,23 @@
<?php
/*
* @since : 2009
* @author : Arslan Hassahn
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
if(isset($_POST['update']))
{
$text = mysql_clean($_POST['text']);
update_announcement($text);
$msg = e("Annoucment has been updated",m);
}
Assign('msg', @$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('edit_announcemnent.html');
Template('footer.html');
?>

View file

@ -0,0 +1,52 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
$group = mysql_clean($_GET['group']);
//Updating Group
if(isset($_POST['update'])){
$msg = $groups->UpdateGroup(2);
}
if(!$groups->GroupExists($group) || $group == 'Array'){
$msg = $LANG['grp_exist_error'];
$show_group = 'No';
}else{
$details = $groups->GetDetailsid($group);
$group = $details['group_id'];
$user = $_SESSION['username'];
Assign('groups',$details);
}
//Assigning Category List
$sql = "SELECT * from category";
$rs = $db->Execute($sql);
$total_categories = $rs->recordcount() + 0;
$category = $rs->getrows();
Assign('category', $category);
//If Update is true
$update = mysql_clean($_GET['update']);
if($update==true){
$msg = $LANG['grp_update_msg'];
}
//Assing Template
Assign('country',$signup->country());
Assign('msg',$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('edit_group.html');
Template('footer.html');
?>

View file

@ -0,0 +1,47 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
$page = $pages->show_admin_page(clean(@$_GET['settings']));
if(!empty($page)){
$pages->redirect($page);
}
if(@$_GET['msg']){
$msg = clean(@$_GET['msg']);
}
$user = mysql_clean(@$_GET['userid']);
//Check User Exists or Not
if($userquery->Check_User_Exists($user)){
//Update User
if(isset($_POST['button'])){
$msg = $signup->Admin_Edit_User();
}
//Get User Details
$data = $userquery->GetUserData($user);
DoTemplate::assign('data',$data);
}else{
$msg[] = "User Doesn't Exist";
}
//Assing Template
DoTemplate::assign('country',$signup->country());
DoTemplate::assign('msg',@$msg);
DoTemplate::display(LAYOUT.'/header.html');
DoTemplate::display(LAYOUT.'/leftmenu.html');
DoTemplate::display(LAYOUT.'/message.html');
DoTemplate::display(LAYOUT.'/edit_member.html');
DoTemplate::display(LAYOUT.'/footer.html');
?>

View file

@ -0,0 +1,52 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
if(@$_GET['msg']){
$msg[] = clean($_GET['msg']);
}
$video = mysql_clean($_GET['video']);
//Updating Video Details
if(isset($_POST['update'])){
$Upload->validate_video_upload_form();
if(empty($eh->error_list))
{
$myquery->update_video();
$myquery->set_default_thumb($video,$_POST['default_thumb']);
}
}
//Check Video Exists or Not
if($myquery->VideoExists($video)){
$data = get_video_details($video);
Assign('udata',$userquery->get_user_details($data['userid']));
Assign('data',$data);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
Assign('msg',@$msg);
/*Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('edit_video.html');
Template('footer.html');
*/
template_files('edit_video.html');
display_it();
?>

View file

@ -0,0 +1,52 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Move Video Up
if(isset($_GET['up'])){
$id = mysql_clean($_GET['up']);
$msg = $myquery->MovePickUp($id);
}
//Move Down Up
if(isset($_GET['down'])){
$id = mysql_clean($_GET['down']);
$msg = $myquery->MovePickDown($id);
}
//Removing From Editor's List
if(isset($_GET['remove'])){
$id = mysql_clean($_GET['remove']);
$msg = $myquery->DeleteEditorPick($id);
}
//Geting List Of Videos From Editor PIcks table
$query = "SELECT * FROM editors_picks ORDER BY sort ASC";
$data = $db->Execute($query);
$videos = $data->getrows();
$total_videos = $data->recordcount()+0;
for($id=0;$id<=$total_videos;$id++){
$details = @$myquery->GetVideDetails($videos[$id]['videokey']);
$videos[$id]['title'] = $details['title'];
$videos[$id]['views'] = $details['views'];
$videos[$id]['rating'] = pullRating($details['views'],true,false,true,'novote');
}
Assign('total_videos',$total_videos);
Assign('videos',$videos);
Assign('msg', @$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('editor_pick.html');
Template('footer.html');
?>

View file

@ -0,0 +1,57 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Adding Email Settings And Templates
if(isset($_POST['button'])){
$rows = array( 'website_email' => mysql_clean($_POST['website_email']),
'support_email' => mysql_clean($_POST['support_email']),
'welcome_email' => mysql_clean($_POST['welcome_email']),
'email_verification_template' => stripslashes($_POST['email_verification_template']),
'welcome_message_template' => stripslashes($_POST['welcome_message_template']),
'activate_request_template' => stripslashes($_POST['activate_request_template']),
'share_video_template' => stripslashes($_POST['share_video_template'])
);
while(list($name,$value) = each($rows)){
$myquery->Set_Email_Settings($name,$value);
}
//Adding Email Settings Headers
$headers = array(
'email_verification_template' => mysql_clean($_POST['email_verification_header']),
'welcome_message_template' => mysql_clean($_POST['welcome_message_header']),
'activate_request_template' => mysql_clean($_POST['activate_request_header']),
'share_video_template' => mysql_clean($_POST['share_video_header'])
);
while(list($name,$value) = each($headers)){
$myquery->Set_Email_Settings_Headers($name,$value);
}
//Write Templates
WriteEmailVerify();
WriteWelcomeMessage();
WriteActvationRequest();
WriteShareVideo();
}
$row = $myquery->Get_Email_Settings();
$header = $myquery->Get_Email_Settings_Headers();
Assign('row',$row);
Assign('header',$header);
Template('header.html');
Template('leftmenu.html');
Template('email_settings.html');
Template('footer.html');
?>

View file

@ -0,0 +1,22 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
Template('header.html');
Template('leftmenu.html');
Template('message.html');
test_exec( 'bash -version' );
test_exec( 'ldd '.FFMPEG_BINARY );
test_exec( FFMPEG_BINARY.' -version' );
test_exec( FFMPEG_BINARY.' -formats' );
Template('footer.html');
?>

View file

@ -0,0 +1,113 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Function Used To Remove Flag
if(isset($_GET['remove_flags'])){
$video = mysql_clean($_GET['remove_flags']);
if($myquery->VideoExists($video)){
$msg[] = $myquery->DeleteFlag($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
}
//Activate / Deactivate
if(isset($_GET['activate'])){
$video = mysql_clean($_GET['activate']);
if($myquery->VideoExists($video)){
$msg[] = $myquery->ActivateVideo($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
}
if(isset($_GET['deactivate'])){
$video = mysql_clean($_GET['deactivate']);
if($myquery->DeActivateVideo($video)){
$msg[] = $myquery->DeActivateVideo($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
}
//Delete Video
if(isset($_GET['delete_video'])){
$video = mysql_clean($_GET['delete_video']);
if($myquery->VideoExists($video)){
$msg[] = $myquery->DeleteVideo($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
}
//Getting List From Flaggeed Videos
$limit = 15;
Assign('limit',$limit);
$page = mysql_clean(@$_GET['page']);
Assign('limit',$limit);
if(empty($page) || $page == 0){
$page = 1;
}
$from = $page-1;
$from = $from*$limit;
$query_limit = "limit $from,$limit";
$query = "SELECT videoid, count(*) AS flags FROM flagged_videos GROUP BY videoid ORDER BY flags DESC $query_limit";
$sql_p = "SELECT videoid, count(*) AS flags FROM flagged_videos GROUP BY videoid ORDER BY flags DESC ";
$data = $db->Execute($query);
$videos = $data->getrows();
$total_videos = $data->recordcount()+0;
for($id=0;$id<$total_videos;$id++){
$vdo_data = $myquery->GetVideoDetails($videos[$id]['videoid']);
$title = $vdo_data['title'];
$videokey = $vdo_data['videokey'];
$active = $vdo_data['active'];
$username = $vdo_data['username'];
$type = $vdo_data['broadcast'];
$videos[$id]['title'] = $title;
$videos[$id]['videokey'] = $videokey;
$videos[$id]['active'] = $active;
$videos[$id]['username'] = $username;
$videos[$id]['broadcast'] = $type;
$$vdo_data[$id] = $vdo_data;
}
Assign('videos',$videos);
//Pagination
$query = mysql_query($sql_p);
Assign('grand_total',mysql_num_rows($query));
$total_rows = mysql_num_rows($query);
$page_id=1;
$id = 1;
//$all_pages[0]['page'] = $page_id;
$records = $total_rows/$limit;
$pages = round($records+0.49,0);
Assign('pages',$pages+1);
Assign('cur_page',$page);
Assign('nextpage',$page+1);
Assign('prepage',$page-1);
Assign('total_pages',$page_id);
Assign('msg', @$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('flagged_videos.html');
Template('footer.html');
?>

View file

@ -0,0 +1,281 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Feature / UnFeature Video
if(isset($_GET['make_feature'])){
$group = mysql_clean($_GET['make_feature']);
if($groups->GroupExists($group)){
$msg[] = $groups->MakeFeatured($group);
}else{
$msg[] = $LANG['grp_err'];
}
}
if(isset($_GET['make_unfeature'])){
$group = mysql_clean($_GET['make_unfeature']);
if($groups->GroupExists($group)){
$msg[] = $groups->MakeUnFeatured($group);
}else{
$msg[] = $LANG['grp_err'];
}
}
//Using Multple Action
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$groups->MakeFeatured($_POST['check_group'][$id]);
}
$msg = $LANG['grp_fr_msg'];
}
if(isset($_POST['make_unfeatured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$groups->MakeUnFeatured($_POST['check_group'][$id]);
}
$msg = $LANG['grp_fr_msg1'];
}
//Activate / Deactivate
if(isset($_GET['activate'])){
$group = mysql_clean($_GET['activate']);
if($groups->GroupExists($group)){
$msg[] = $groups->Activate($group);
}else{
$msg[] = $LANG['grp_err'];
}
}
if(isset($_GET['deactivate'])){
$group = mysql_clean($_GET['deactivate']);
if($groups->GroupExists($group)){
$msg[] = $groups->DeActivate($group);
}else{
$msg[] = $LANG['grp_err'];
}
}
//Using Multple Action
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$groups->Activate($_POST['check_group'][$id]);
}
$msg = $LANG['grp_ac_msg'];
}
if(isset($_POST['deactivate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$groups->DeActivate($_POST['check_group'][$id]);
}
$msg = $LANG['grp_dac_msg'];
}
//Delete Group
if(isset($_GET['delete_group'])){
$group = mysql_clean($_GET['delete_group']);
if($groups->GroupExists($group)){
$msg[] = $groups->DeleteGroup($group);
}else{
$msg[] = $LANG['grp_err'];
}
}
//Deleting Multiple Videos
if(isset($_POST['delete_selected'])){
for($id=0;$id<=RESULTS;$id++){
if($groups->GroupExists($_POST['check_group'][$id])){
$groups->DeleteGroup($_POST['check_group'][$id]);
}
}
$msg = $LANG['grp_del_msg'];
}
//Assigning Default Values
@$values_search= array(
'search_uname' => mysql_clean($_GET['username']),
'search_tags' => mysql_clean($_GET['tags']),
'search_category' => mysql_clean($_GET['category']),
'search_title' => mysql_clean($_GET['name']),
'search_active' => mysql_clean($_GET['active']),
'search_featured' => mysql_clean($_GET['featured']),
'search_sort' => mysql_clean($_GET['sort']),
'search_order' => mysql_clean($_GET['order'])
);
while(list($name,$value) = each($values_search)){
DoTemplate::assign($name,$value);
}
//Pagination
$limit = RESULTS;
Assign('limit',$limit);
$page = clean(@$_GET['page']);
Assign('limit',$limit);
if(empty($page) || $page == 0){
$page = 1;
}
$from = $page-1;
$from = $from*$limit;
$query_limit = "limit $from,$limit";
$order = "ORDER BY group_id ASC";
$sql = "SELECT * from groups $order $query_limit";
$sql_p = "SELECT * from groups";
//Search
if(isset($_GET['search'])){
$username = mysql_clean($_GET['username']);
$title = mysql_clean($_GET['name']);
$featured = mysql_clean($_GET['featured']);
$active = mysql_clean($_GET['active']);
$tags = mysql_clean($_GET['tags']);
$category = mysql_clean($_GET['category']);
$sort = mysql_clean($_GET['sort']);
$order = mysql_clean($_GET['order']);
if($order == 'ASC'){
if($sort == 'username'){ $orderby = 'ORDER BY username ASC';}
if($sort == 'name'){ $orderby = 'ORDER BY group_name ASC';}
if($sort == 'date_added'){ $orderby = 'ORDER BY date_added ASC';}
if($sort == 'members'){ $orderby = 'ORDER BY total_members ASC';}
if($sort == 'videos'){ $orderby = 'ORDER BY total_videos ASC';}
}else{
if($sort == 'username'){ $orderby = 'ORDER BY username DESC';}
if($sort == 'name'){ $orderby = 'ORDER BY group_name DESC';}
if($sort == 'date_added'){ $orderby = 'ORDER BY date_added DESC';}
if($sort == 'members'){ $orderby = 'ORDER BY total_members DESC';}
if($sort == 'videos'){ $orderby = 'ORDER BY total_videos DESC';}
}
if(!empty($category)){
$category = "AND group_category = '".$category."'";
}
if(!empty($featured)){
$query_featured = "AND featured = '".$featured."'";
}
if(!empty($active)){
$query_active = "AND active = '".$active."'";
}
$sql = "SELECT * from groups ";
$sql .= "WHERE
username like '%$username%' AND
group_name like '%$title%'
$query_featured
$query_active AND
group_tags like '%$tags%'
$category $orderby $query_limit
";
$sql_p = "SELECT * from groups WHERE
username like '%$username%' AND
group_name like '%$title%'
$query_featured
$query_active
AND group_tags like '%$tags%'
$category ";
}
//Assing User Data Values
$rs = $db->Execute($sql);
$total = $rs->recordcount() + 0;
$groups = $rs->getrows();
for($id=0;$id<$total;$id++){
//Setting Group Type
switch($groups[$id]['group_type']){
case 0;
$groups[$id]['type'] = 'Public';
break;
case 1;
$groups[$id]['type'] = 'Moderated';
break;
case 2;
$groups[$id]['type'] = 'Private';
break;
default:
$groups[$id]['type'] = 'Private';
}
//Setting Video Type
switch($groups[$id]['video_type']){
case 0;
$groups[$id]['video_type'] = 'Public';
break;
case 1;
$groups[$id]['video_type'] = 'Moderated';
break;
case 2;
$groups[$id]['video_type'] = 'Private';
break;
default:
$groups[$id]['video_type'] = 'Private';
}
//Setting Post Type
switch($groups[$id]['post_type']){
case 0;
$groups[$id]['post_type'] = 'Public';
break;
case 1;
$groups[$id]['post_type'] = 'Moderated';
break;
case 2;
$groups[$id]['post_type'] = 'Private';
break;
default:
$groups[$id]['post_type'] = 'Private';
}
$groups[$id]['members'] = $data['duration'];
$groups[$id]['category'] = $myquery->GetCategory($groups[$id]['group_category'],'category_name');
}
Assign('total', $total + 0);
Assign('groups', $groups);
//Pagination #A Tough Job#
$view = clean(@$_GET['view']);
if($view == 'search'){
$link = '&amp;username=' .mysql_clean($_GET['username']). '&amp;title=' .mysql_clean($_GET['title']).'&amp;flagged=' .mysql_clean($_GET['flagged']).'&amp;featured=' .mysql_clean($_GET['featured']).'&amp;active='.mysql_clean($_GET['active']).'&amp;tags='.mysql_clean($_GET['tags']).'&amp;category01='.mysql_clean($_GET['category01']).'&amp;category02='.mysql_clean($_GET['category02']).'&amp;category03='.mysql_clean($_GET['category03']).'&amp;sort='.mysql_clean($_GET['sort']).'&amp;order='.mysql_clean($_GET['order']).'&amp;search='.mysql_clean($_GET['search']);
Assign('link',$link);
}
$query = mysql_query($sql_p);
Assign('grand_total',mysql_num_rows($query));
$total_rows = mysql_num_rows($query);
$page_id=1;
$id = 1;
//$all_pages[0]['page'] = $page_id;
$records = $total_rows/$limit;
$pages = round($records+0.49,0);
Assign('pages',$pages+1);
Assign('cur_page',$page);
Assign('nextpage',$page+1);
Assign('prepage',$page-1);
Assign('total_pages',$page_id);
//Assigning Category List
$sql = "SELECT * from category";
$rs = $db->Execute($sql);
$total_categories = $rs->recordcount() + 0;
$category = $rs->getrows();
Assign('category', $category);
Assign('msg', @$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('groups_manager.html');
Template('footer.html');
?>

View file

@ -0,0 +1,44 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
@$page = $pages->show_admin_page(clean($_GET['settings']));
if(!empty($page)){
$pages->redirect($page);
}
if(@$_GET['mode'] == 'force_update'){
$stats->__FORCEUPDATE__();
$msg = "Everything Has Been Updated";
}
$stats->Refresh();
//$stats->UpdateDate();
//Getting Website Statistics
Assign('stats',$stats->stats);
Assign('server',$stats->ServerDetails());
$logs = "No Logfile Found";
if(file_exists(BASEDIR.'/logs/logs.txt'))
{
$logs = nl2br(htmlentities(file_get_contents(BASEDIR.'/logs/logs.txt')));
}
Assign('con_log',$logs );
/*Template('header.html');
Template('leftmenu.html');
Template('index.html');
Template('footer.html');
*/
template_files('index.html');
display_it();
?>

View file

@ -0,0 +1,75 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Making Language Default
if(isset($_POST['make_default']))
{
$id = mysql_clean($_POST['make_default']);
$lang_obj->make_default($id);
}
//Get List Of Languages
assign('language_list',$lang_obj->get_langs());
Assign('msg',$msg);
if($lang_obj->lang_exists(mysql_clean($_GET['edit_language'])))
{
assign('edit_lang','yes');
assign('lang_details',$lang_obj->lang_exists(mysql_clean($_GET['edit_language'])));
$edit_id = mysql_clean($_GET['edit_language']);
$limit = RESULTS;
$current_page = $_GET['page'] ;
$current_page = is_numeric($current_page) && $current_page>0 ? $current_page : 1 ;
$curr_limit = ($current_page-1)*RESULTS .','.RESULTS;
if(isset($_POST['search_phrase']))
{
$varname = mysql_clean($_POST['varname']);
$text = mysql_clean($_POST['text']);
if(!empty($varname))
$varname_query = "varname LIKE '%$varname%'";
if(!empty($text))
$text_query = "varname text '%$text%'";
if(!empty($text_query) || !empty($varname_query))
{
if(!empty($text_query))
$or = ' OR ';
$extra_param = " AND ( $varname_query $or $text_query )";
}
}
$lang_phrases = $lang_obj->get_phrases($edit_id,'*',$curr_limit,$extra_param);
$total_phrases = $lang_obj->count_phrases($edit_id,$extra_param);
assign('lang_phrases',$lang_phrases);
$total_pages = $total_phrases/RESULTS;
$total_pages = round($total_pages+0.49,0);
$pages->paginate($total_pages,$current_page,'language_settings.php?edit_language='.$edit_id);
}
/*Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('language_settings.html');
Template('footer.html');*/
template_files('language_settings.html');
display_it();
?>

View file

@ -0,0 +1,43 @@
<?php
/**
* ClipBucket Login
*/
define('THIS_PAGE', 'ADMIN_LOGIN');
require '../includes/admin_config.php';
Assign('THIS_PAGE', THIS_PAGE);
if($userquery->admin_login_check(TRUE)){
redirect_to(BASEURL."/".ADMINDIR."/index.php");
}
$thisurl = $_SERVER['PHP_SELF'];
Assign('THIS_URL', $thisurl);
if(!empty($_REQUEST['returnto']))
{
$return_to = $_REQUEST['returnto'];
Assign('return_to',$return_to);
}
if(isset($_POST['login'])){
$username = $_POST['username'];
$username = mysql_clean(clean($username));
$password = mysql_clean(clean($_POST['password']));
//Loggin User
$userquery->login_user($username,$password);
//Checking if logged in user has access or not
if(userid())
{
if($userquery->login_check('admin_access'))
redirect_to($_COOKIE['pageredir']);
}
}
subtitle('admin_login');
Template('global_header.html');
Template('msg.html');
Template('login.html');
?>

View file

@ -0,0 +1,57 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
//$pages->page_redir();
//Setting Website Logo
$tem_img_url = BASEURL.'/'.TEMPLATEFOLDER.'/'.$row['template_dir'].'/images';
$tem_img_dir = BASEDIR.'/'.TEMPLATEFOLDER.'/'.$row['template_dir'].'/images';
//On Submit CHange Logo
if(isset($_POST['change_logo'])){
$msg = $myquery->ChangeLogo('logo.gif',$tem_img_dir,1);
}
$cur_logo = $tem_img_url.'/logo.gif?'.RandomString(3);
Assign('cur_logo',$cur_logo);
//Setting Player Logo
$logo_path_url = BASEURL.'/player';
$logo_path_dir = BASEDIR.'/player';
//On Submit CHange Logo
if(isset($_POST['change_player_logo'])){
$msg = $myquery->ChangeLogo('logo.png',$logo_path_dir,2);
}
$cur_player_logo = $logo_path_url.'/logo.png?'.RandomString(3);
Assign('cur_player_logo',$cur_player_logo);
//On Submit CHange Logo
if(isset($_POST['change_eplayer_logo'])){
$msg = $myquery->ChangeLogo('mini_logo.png',$logo_path_dir,2);
}
$cur_eplayer_logo = $logo_path_url.'/mini_logo.png?'.RandomString(3);
Assign('cur_eplayer_logo',$cur_eplayer_logo);
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('logo_change.html');
Template('footer.html');
?>

View file

@ -0,0 +1,4 @@
<?php
require_once '../includes/admin_config.php';
$userquery->logout();
?>

138
upload/admin_area/main.php Normal file
View file

@ -0,0 +1,138 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
if(@$_GET['msg']){
$msg = mysql_clean($_GET['msg']);
}
if(isset($_POST['update'])){
$configs = $Cbucket->configs;
$rows = array( 'site_title' ,
'site_slogan',
'description',
'keywords' ,
'player_file',
'ffmpegpath' ,
'mencoderpath',
'flvpath',
'closed' ,
'closed_msg',
'resize',
'r_height',
'r_width',
'vbrate',
'srate',
'keep_original',
'activation',
'mplayerpath',
'email_verification',
'allow_registeration',
'php_path',
'videos_list_per_page',
'videos_list_per_tab',
'channels_list_per_page',
'channels_list_per_tab',
'video_rating',
'comment_rating' ,
'video_download' ,
'video_embed',
'video_comments',
'seo',
'search_list_per_page',
'recently_viewed_limit',
'max_upload_size',
'sbrate' ,
'thumb_width',
'thumb_height',
'ffmpeg_type',
'user_comment_own',
'user_rate_opt1' ,
'captcha_type',
'allow_upload',
'allowed_types',
'default_site_lang',
'allow_language_change',
'allow_template_change',
'video_require_login',
'con_modules_type',
'audio_codec',
'remoteUpload',
'embedUpload',
'sys_os' ,
'debug_level',
'num_thumbs',
'big_thumb_width',
'big_thumb_height',
'user_max_chr',
'disallowed_usernames',
'min_age_reg',
'max_comment_chr',
);
//Numeric Array
$num_array = array('videos_list_per_page',
'videos_list_per_tab',
'channels_list_per_page',
'channels_list_per_tab',
'search_list_per_page',
'recently_viewed_limit',
'max_upload_size',
);
foreach($rows as $field)
{
$value = mysql_clean($_POST[$field]);
if(in_array($field,$num_array))
{
if($value <= 0 || !is_numeric($value))
$value = 1;
}
$myquery->Set_Website_Details($field,$value);
}
//Setting Lanuage Cookie
setcookie('sitelang', $rows['default_site_lang'], time()+315360000, '/');
setcookie('sitestyle', $row['template'], time()+315360000, '/');
e("Website Settings Have Been Updated",m);
}
$row = $myquery->Get_Website_Details();
//Getting Template List
$sql = "SELECT * from template";
$rs = $db->Execute($sql);
$templates = $rs->getrows();
Assign('templates', $templates);
//Getting Players List
$sql = "SELECT * from players";
$rs = $db->Execute($sql);
$player = $rs->getrows();
Assign('players', $player);
//Lanugae Arrays
Assign('row',$row);
@Assign('msg',$msg);
/*Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('main.html');
Template('footer.html');*/
template_files('main.html');
display_it();
?>

View file

@ -0,0 +1,57 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
if(!empty($_GET['email'])){
Assign('email',$_GET['email']);
}
//Sending Message To Multiple Users
if(isset($_POST['send_mail'])){
$from = mysql_clean($_POST['from']);
$subject = mysql_clean($_POST['subj']);
$message = $_POST['msg'];
//Sending Message To User
$query = mysql_query("SELECT * FROM users");
while($data = mysql_fetch_array($query)){
$keys = array("[username]","[firstname]","[lastname]","[email]","[datejoined]");
$rplc = array($data['username'],$data['first_name'],$data['last_name'],$data['email'],$data['doj']);
$msg = nl2br(str_replace($keys, $rplc, $message));
send_email($from,$data['email'],$subject,$msg);
}
$msg = 'Your Email has Been Sent To All Users';
}
//Send Message To Individual
if(isset($_POST['email'])){
$from = mysql_clean($_POST['from']);
$subject = mysql_clean($_POST['subj']);
$message = $_POST['msg'];
$users = $_POST['to'];
$new_users = explode(',',$users);
foreach($new_users as $user){
send_email($from,$user,$subject,$message);
}
$msg = 'Email Has Been Sent';
}
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('mass_email.html');
Template('footer.html');
?>

View file

@ -0,0 +1,136 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Assing Counntry List
Assign('country',$signup->country());
//Assigning Category List
$sql = "SELECT * from category";
$rs = $db->Execute($sql);
$total_categories = $rs->recordcount() + 0;
$category = $rs->getrows();
Assign('category', $category);
if(isset($_POST['upload_01'])){
//Validatin Categories
$sql = mysql_query("SELECT * from category");
$total_categories = mysql_num_rows($sql);
$selected = 0;
for($id=0;$id<=$total_categories;$id++){
$category = @$_POST['category'][$id];
if(!empty($category)){
$selected = $selected +1 ;
}
}
if($selected == 0){
$msg[] = "Please Choose At least 1 Category";
}elseif($selected >3){
$msg[] = "You Can Only Choose Up to 3 Categoriess";
}
if(empty($_POST['num']) || !is_numeric($_POST['num'])){
$msg [] = "Please Enter a Valid Number In Number Field";
}
if(empty($msg)){
Assign('step','2');
Assign('loop',$_POST['num']);
}
//$youtube->UploadProcess();
//}
}
//Assign Form Chizzein
@$values= array(
'default_num' => mysql_clean($_POST['num']),
'default_location' => mysql_clean($_POST['location']),
'default_country' => mysql_clean($_POST['country']),
'default_broadcast' => $_POST['broadcast'],
'default_m' => $_POST['month'],
'default_d' => $_POST['day'],
'default_y' => $_POST['year'],
'default_comment' => $_POST['comments'],
'default_embedding' => $_POST['embedding'],
'default_rating' => $_POST['rating'],
'default_comments_voting' => $_POST['comment_voting'],
'default_date' => $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day']
);
while(list($name,$value) = each($values)){
DoTemplate::assign($name,$value);
}
for($id=0;$id<=3;$id++){
$category = @$_POST['category'][$id];
Assign('category'.$id,$category );
}
function AssignDefaultThumb($flv){
global $row;
//Minus Extension
$site_template = BASEDIR.'/styles/'.$row['template_dir'];
$filename_minus_ext = substr($flv, 0, strrpos($flv, '.'));
$proccesing_thumb = $site_template.'/images/en/processing.png';
$proccesing_thumb_big = $site_template.'/images/en/processing-big.png';
copy($proccesing_thumb,'../files/thumbs/'.$filename_minus_ext.'-1.jpg');
copy($proccesing_thumb,'../files/thumbs/'.$filename_minus_ext.'-2.jpg');
copy($proccesing_thumb,'../files/thumbs/'.$filename_minus_ext.'-3.jpg');
copy($proccesing_thumb_big,'../files/thumbs/'.$filename_minus_ext.'-big.jpg');
}
//Form Checking And Processing
if(isset($_POST['upload_02'])){
//Including FFMPEG CLASS
if($row['con_modules_type'] == 0){
require_once('../includes/classes/conversion/ffmpeg.class.php');
}else{
require_once('../includes/classes/conversion/multi.class.php');
}
for ($id = 0; $id <= $_POST['loop']; $id ++){
$title = @$_POST['title'][$id];
$des = @$_POST['des'][$id];
$tags = @$_POST['tags'][$id];
$file = @$_FILES['file']['name'][$id];
if(!empty($title) && !empty($des) && !empty($file) ){
$newflv[$id] = rand(1000000,999999999999999).'.flv';
if($Upload->CheckFLV(@$flv)){
$newflv[$id] = rand(1000000,999999999999999).'.flv';
}
$filename[$id] = $newflv[$id];
$new_name = substr($filename[$id], 0, strrpos($filename[$id], '.'));
$ext = substr($file, strrpos($file,'.') + 1);
$newfilename[$id] = $new_name.".".$ext;
$path = BASEDIR."/files/temp/".$newfilename[$id];
copy($_FILES['file']['tmp_name'][$id], $path);
$MassUpload->DataEntry($title,$des,$newflv[$id],$tags);
AssignDefaultThumb($newflv[$id]);
}
}
for ($id = 0; $id <= $_POST['loop']; $id ++){
if(!empty($newfilename[$id])){
$ffmpeg = new ffmpeg();
$ffmpeg->ConvertFile($newfilename[$id],$newflv[$id]);
}
}
$msg = "All Files Has Been Uploaded";
}
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('mass_uploader.html');
Template('footer.html');
?>

View file

@ -0,0 +1,304 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
$page = $pages->show_admin_page(clean(@$_GET['settings']));
if(!empty($page)){
$pages->redirect($page);
}
if(@$_GET['msg']){
$msg = clean(@$_GET['msg']);
}
//Show Requested Options
$property_values = array( 'showall' => 'Show All',
'inactive' => 'Inactive Only',
'active' => 'Active Only',
'addmember' => 'Add Member',
'search' => 'Search Members'
);
$view = clean(@$_GET['view']);
if(empty($view)){ $view = 'showall'; }
while(list($property['value'],$property['name']) = each($property_values)){
if($property['value'] == $view){
DoTemplate::assign("property",$property);
}
}
//-------TIME TO DO SOME ACTION-------//
//Delete User
if(isset($_GET['deleteuser'])){
$deleteuser = mysql_clean($_GET['deleteuser']);
if($userquery->Check_User_Exists($deleteuser)){
if($userquery->DeleteUser($deleteuser)){
$msg[] = 'User Has Been Deleted Successfully';
}else{
$msg[] = 'Error Deleting User';
}
}
}
//Deleting Multiple Videos
if(isset($_POST['delete_selected'])){
for($id=0;$id<=RESULTS;$id++){
if(@$userquery->Check_User_Exists($_POST['check_user'][$id])){
$userquery->DeleteUser($_POST['check_user'][$id]);
}
}
$msg = "Selected Users Have Been Deleted";
}
//Activate User
if(isset($_GET['activate'])){
$user = mysql_clean($_GET['activate']);
if($userquery->Check_User_Exists($user)){
$userquery->Activate($user);
$msg[] = 'User Has Been Activated';
}
}
//Deactivate User
if(isset($_GET['deactivate'])){
$user = mysql_clean($_GET['deactivate']);
if($userquery->Check_User_Exists($user)){
$userquery->DeActivate($user);
$msg[] = 'User Has Been Deactivated';
}
}
//Using Multple Action
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->Activate($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Activated";
}
if(isset($_POST['deactivate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->DeActivate($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Dectivated";
}
//Make User Featured
if(isset($_GET['featured'])){
$user = mysql_clean($_GET['featured']);
if($userquery->Check_User_Exists($user)){
$userquery->MakeFeatured($user);
$msg[] = 'User Has Been Made Featured Member';
}
}
//Make User UnFeatured
if(isset($_GET['unfeatured'])){
$user = mysql_clean($_GET['unfeatured']);
if($userquery->Check_User_Exists($user)){
$userquery->MakeUnFeatured($user);
$msg[] = 'User Has Been Unfeatured';
}
}
//Using Multple Action
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->MakeFeatured($_POST['check_user'][$id]);
}
$msg = "Selected Users Have Been Set As Featured";
}
if(isset($_POST['make_unfeatured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->MakeUnFeatured($_POST['check_user'][$id]);
}
$msg = "Selected Users Have Been Removed From The Featured List";
}
//Ban User
if(isset($_GET['ban'])){
$user = mysql_clean($_GET['ban']);
if($userquery->Check_User_Exists($user)){
$userquery->ban($user);
$msg[] = 'User Has Been Banned';
}
}
//UnBan User
if(isset($_GET['unban'])){
$user = mysql_clean($_GET['unban']);
if($userquery->Check_User_Exists($user)){
$userquery->unban($user);
$msg[] = 'User Has Been Unbanned';
}
}
//Using Multple Action
if(isset($_POST['ban_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->ban($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Banned";
}
if(isset($_POST['unban_selected'])){
for($id=0;$id<=RESULTS;$id++){
$userquery->unban($_POST['check_user'][$id]);
}
$msg = "Selected Members Have Been Unbanned";
}
//-------TIME END TO DO SOME ACTION-------//
//Form Processing And Validation
//User Registration Form Processing and Validation
if(isset($_POST['button'])){
$msg = $signup->Admin_Add_User();
}
//Assigning Default Values in Form
@$values= array(
'default_uname' => mysql_clean($_POST['username']),
'default_email' => mysql_clean($_POST['email']),
'default_pass' => pass_code(mysql_clean($_POST['password'])),
'default_fname' => mysql_clean($_POST['fname']),
'default_lname' => mysql_clean($_POST['lname']),
'default_gender' => mysql_clean($_POST['gender']),
'default_level' => mysql_clean($_POST['level']),
'default_m' => $_POST['month'],
'default_d' => $_POST['day'],
'default_y' => $_POST['year'],
'default_ht' => mysql_clean($_POST['hometown']),
'default_city' => mysql_clean($_POST['city']),
'default_country' => $_POST['country'],
'default_zip' => mysql_clean($_POST['zip'])
);
while(list($name,$value) = each($values)){
DoTemplate::assign($name,$value);
}
@$values_search= array(
'search_uname' => mysql_clean($_GET['username']),
'search_email' => mysql_clean($_GET['email']),
'search_fname' => mysql_clean($_GET['fname']),
'search_lname' => mysql_clean($_GET['lname']),
'search_country' => mysql_clean($_GET['country']),
'search_status' => mysql_clean($_GET['status']),
'search_sort' => mysql_clean($_GET['sort']),
'search_order' => mysql_clean($_GET['order'])
);
while(list($name,$value) = each($values_search)){
DoTemplate::assign($name,$value);
}
//Jump To The page
if(isset($_POST['display_page'])){
redirect_to($_POST['page_number']);
}
//Users Array
$limit = RESULTS;
Assign('limit',$limit);
$page = clean(@$_GET['page']);
if(empty($page) || $page == 0){
$page = 1;
}
$from = $page-1;
$from = $from*$limit;
$query_limit = "limit $from,$limit";
$order = "ORDER BY doj DESC";
$sql = "SELECT * from users $order $query_limit";
$sql_p = "SELECT * from users";
if(empty($view) || $view == 'showall'){
$sql = "SELECT * from users $order $query_limit";
}
if($view == 'inactive'){
$sql = "SELECT * from users WHERE usr_status='ToActivate' $order $query_limit";
$sql_p = "SELECT * from users WHERE usr_status='ToActivate'";
}
if($view == 'active'){
$sql = "SELECT * from users WHERE usr_status='OK' $order $query_limit";
$sql_p = "SELECT * from users WHERE usr_status='OK'";
}
//Search
if(isset($_GET['search'])){
$username = mysql_clean($_GET['username']);
$email = mysql_clean($_GET['email']);
$fname = mysql_clean($_GET['fname']);
$lname = mysql_clean($_GET['lname']);
$country = mysql_clean($_GET['country']);
$status = mysql_clean($_GET['status']);
$sort = mysql_clean($_GET['sort']);
$order = mysql_clean($_GET['order']);
if($order == 'ASC'){
if($sort == 'username'){$orderby = 'ORDER BY username ASC';}
if($sort == 'doj'){ $orderby = 'ORDER BY doj ASC';}
if($sort == 'country'){ $orderby = 'ORDER BY country ASC';}
if($sort == 'lname'){ $orderby = 'ORDER BY last_name ASC';}
if($sort == 'fname'){ $orderby = 'ORDER BY first_name ASC';}
}else{
if($sort == 'username'){$orderby = 'ORDER BY username DESC';}
if($sort == 'doj'){ $orderby = 'ORDER BY doj DESC';}
if($sort == 'country'){ $orderby = 'ORDER BY country DESC';}
if($sort == 'lname'){ $orderby = 'ORDER BY last_name DESC';}
if($sort == 'fname'){ $orderby = 'ORDER BY first_name DESC';
}
}
$sql = "SELECT * from users ";
$sql .= "WHERE username like '%$username%' AND
email like '%$email%' AND
first_name like '%$fname%' AND
last_name like '%$lname%' AND
country like '%$country%' AND
usr_status like '%$status%'
$orderby $query_limit
";
$sql_p = "SELECT * from users WHERE username like '%$username%' AND
email like '%$email%' AND
first_name like '%$fname%' AND
last_name like '%$lname%' AND
country like '%$country%' AND
usr_status like '%$status%'
$orderby ";
}
//Assing User Data Values
$rs = $db->Execute($sql);
$total = $rs->recordcount() + 0;
$users = $rs->getrows();
for($id=0;$id<$total;$id++){
$users[$id]['age'] = $calcdate->age($users[$id]['dob']);
$users[$id]['total_videos'] = $userquery->TotalVideos($users[$id]['username']);
$users[$id]['total_friends'] = $userquery->TotalFriends($users[$id]['username']);
$users[$id]['total_groups'] = $userquery->TotalGroups($users[$id]['username']);
}
Assign('total', $total + 0);
Assign('user', $users);
//Pagination #A Tough Job#
if($view == 'search'){
@$link = '&amp;username=' .mysql_clean($_GET['username']). '&amp;email=' .mysql_clean($_GET['email']).'&amp;fname=' .mysql_clean($_GET['fname']).'&amp;lname=' .mysql_clean($_GET['lname']).'&amp;country='.mysql_clean($_GET['country']).'&amp;status='.mysql_clean($_GET['status']).'&amp;sort='.mysql_clean($_GET['sort']).'&amp;order='.mysql_clean($_GET['order']).'&amp;search='.mysql_clean($_GET['search']);
Assign('link',$link);
}
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('members.html');
Template('footer.html');
?>

View file

@ -0,0 +1,67 @@
<?php
/*
****************************************************************************************************
| Copyright (c) 2007-2008 Clip-Bucket.com. All rights reserved. |
| @ Author : ArslanHassan |
| @ Software : ClipBucket , © PHPBucket.com |
****************************************************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//Deleting Module
$delete_module = mysql_clean(@$_GET['delete_module']);
if(!empty($delete_module)){
$msg = $Modules->DeleteModule($delete_module);
}
//Activating And Deactivation module
$active = mysql_clean(@$_GET['activate']);
if(!empty($active)){
$msg = $Modules->ActivateModule($active);
}
$deactive = mysql_clean(@$_GET['deactivate']);
if(!empty($deactive)){
$msg = $Modules->DeActivateModule($deactive);
}
//Checking Files And Module Name
if(isset($_POST['add_module'])){
$msg = $Modules->AddModule();
}
//Getting And Listing Files
$dir = MODULEDIR;
if(!($dp = opendir($dir))) die("Cannot open $default_dir.");
while($file = readdir($dp)){
$ext = substr($file, strrpos($file,'.') -12);
if($ext == 'instructions.php' || $ext == 'instructions.php'){
$files[] = $file;
}
}
closedir($dp
);
//Listing Modules
$sql = "SELECT * from modules";
$rs = $db->Execute($sql);
$total = $rs->recordcount() + 0;
$modules = $rs->getrows();
Assign('total', $total + 0);
Assign('modules', $modules);
Assign('files',$files);
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('module_manager.html');
Template('footer.html');
?>

View file

@ -0,0 +1,12 @@
<?php
require'../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
@$page = $pages->show_admin_page(clean($_GET['settings']));
if(!empty($page)){
$pages->redirect($page);
}
phpinfo();
Template('footer.html');
?>

View file

@ -0,0 +1,78 @@
<?php
/*
*******************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , © PHPBucket.com
********************************************************************
*/
require_once '../includes/admin_config.php';
$userquery->admin_login_check();
$pages->page_redir();
//unnstalling Plugin
if(isset($_GET['uninstall']))
{
$msg = $cbplugin->uninstallPlugin(mysql_clean($_GET['uninstall']));
}
//Activation or deactivating plugin
if(isset($_GET['activate']))
{
$id = mysql_clean($_GET['activate']);
$msg = $cbplugin->pluginActive($id,'yes');
}
if(isset($_GET['deactivate']))
{
$id = mysql_clean($_GET['deactivate']);
$msg = $cbplugin->pluginActive($id,'no');
}
//Installing Plugin
if(isset($_GET['install_plugin']))
{
$msg = $cbplugin->installPlugin(mysql_clean($_GET['install_plugin']));
}
//Get New Plugin List
$availabe_plugin_list = $cbplugin->getNewPlugins();
Assign('new_plugin_list',$availabe_plugin_list);
//Get Installed Plugin List
$installed_plugin_list = $cbplugin->getInstalledPlugins();
Assign('installed_plugin_list',$installed_plugin_list);
//Doing some old stuff again :/
$plugin_list = '';
$pluginQueryA = mysql_query("SELECT * FROM plugins ");
$total_plugins = mysql_num_rows($pluginQueryA);
if($total_plugins > 0)
{
while($pluginDataA = mysql_fetch_array($pluginQueryA)){
if(file_exists(BASEDIR.'/plugins/'.$pluginDataA['plugin_file'])
&& !empty($pluginDataA['plugin_file']))
include(BASEDIR.'/plugins/'.$pluginDataA['plugin_file']);
//$plugin_list[] = $pluginDataA;
$plugin_list[] = $pluginDataA;
}
Assign('plugin_list',$plugin_list);
}
Assign('msg', @$msg);
/*Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('plugin_manager.html');
Template('footer.html');*/
template_files('plugin_manager.html');
display_it();
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<dwsync>
<file name="admin_menu_bg.png" server="clipbucket.net//public_html/v2/" local="128923245694140624" remote="128927287200000000" />
<file name="gr_bg.png" server="clipbucket.net//public_html/v2/" local="128923236711554435" remote="128927287200000000" />
<file name="left_menu_foot.png" server="clipbucket.net//public_html/v2/" local="128926470262929696" remote="128927287200000000" />
<file name="left_menu_head.png" server="clipbucket.net//public_html/v2/" local="128926420153320320" remote="128927287200000000" />
<file name="left_menu_head_selected.png" server="clipbucket.net//public_html/v2/" local="128924804497606452" remote="128927287200000000" />
<file name="menu_bg.png" server="clipbucket.net//public_html/v2/" local="128923342138554688" remote="128927287200000000" />
<file name="pagination_bg.png" server="clipbucket.net//public_html/v2/" local="128926495911840000" remote="128927287200000000" />
<file name="round_bg.png" server="clipbucket.net//public_html/v2/" local="128926525160781248" remote="128927287200000000" />
</dwsync>

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View file

@ -0,0 +1,48 @@
<h2>Add New Phrase</h2>
<form name="form1" method="post" action="">
<fieldset class="fieldset">
<legend>Adding new phrase</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Phrase Code</strong></td>
<td><label>
<input type="text" name="name" id="name">
</label></td>
</tr>
<tr>
<td>Phrase Text</td>
<td><label>
<textarea name="text" id="text" cols="45" rows="5"></textarea>
</label></td>
</tr>
<tr>
<td>Language</td>
<td><label>
<select name="lang_code" id="lang_code">
{assign var=language value=$lang_obj->get_langs()}
{section name=l_list loop=$language}
<option value="{$language[l_list].language_code}">{$language[l_list].language_name}</option>
{/section}
</select>
</label></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>
</td>
<td>&nbsp;</td>
</tr>
</table>
</fieldset>
<div style="margin:auto; width:99%; margin:10px"><input type="submit" name="add_phrase" id="add_phrase" value="Add Phrase" class="button"><br><br>
To display this text in your template , simple add this where you want to display your text {$LANG.phrase_code}</div>
</form>

View file

@ -0,0 +1,57 @@
{assign var=bgcolor value =F2F2F2}
{if $myquery->get_comments($id,$type)}
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="35" align="center" class="left_head">CID</td>
<td width="35" class="head_sep_left">UID</td>
<td class="head"><div class="head_sep_left" style="width:200px">Comment</div></td>
<td width="200" class="head_sep_left">Date</td>
<td width="70" class="head_sep_left">Votes</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
</table>
<div>
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="block" style="text-indent:15px">
{foreach from=$myquery->get_comments($id,$type) item=comment}
{if $comment.parent_id == 0}
<tr style="background-color:#{$bgcolor}">
<td width="35" align="left">{$comment.comment_id}</td>
<td width="35" align="left">{$comment.userid}</td>
<td >{$comment.comment}</td>
<td width="200" align="left" >{$comment.date_added|date_format}</td>
<td width="70" align="left" >{$comment.vote}</td>
<td width="100" ><a href="?{$link}&amp;delete_comment={$comment.comment_id}">Delete</a></td>
</tr>
{foreach from=$myquery->get_comments($id,$type,false,$comment.comment_id,TRUE) item=reply}
{if $reply.comment !=''}
<tr style="background-color:#{$bgcolor}">
<td width="35" align="left">{$reply.comment_id}</td>
<td width="35" align="left">{$reply.userid}</td>
<td >{$comment.comment_id} &hArr; {$reply.comment}</td>
<td width="200" align="left" >{$reply.date_added|date_format}</td>
<td width="70" align="left" >{$reply.vote}</td>
<td width="100" ><a href="?{$link}&amp;delete_comment={$reply.comment_id}">Delete</a></td>
</tr>
{/if}
{/foreach}
{if $bgcolor == 'F2F2F2'}
{assign var=bgcolor value =FFF}
{elseif $bgcolor == 'FFF'}
{assign var=bgcolor value =F2F2F2}
{/if}
{/if}
{/foreach}
{else}
<tr style="background-color:#FFF">
<td colspan="6" align="center"><em>No User Comments For This Video</em></td>
</tr>
{/if}
</table>
</div>

View file

@ -0,0 +1,190 @@
{assign var='requiredFields' value=$Upload->loadRequiredFields($data)}
{assign var='optionFields' value=$Upload->loadOptionFields($data)}
{assign var='locationFields' value=$Upload->loadLocationFields($data)}
{assign var='custom_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
{assign var='custom_form_fields' value=$Upload->load_custom_form_fields($data,TRUE)}
{if $data.title neq ""}
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" class="left_head" style="text-indent:10px">Editing {$data.title}</td>
<td class="head">&nbsp;</td>
<td width="200" align="right" class="right_head">&nbsp;</td>
</tr>
</table>
<div style="width:98%; margin:auto; padding:10px">
<button onClick="location.href='view_video.php?video={$data.videoid}'" class="button">View This video</button>
<input type="button" onClick="window.open('{videoLink vdetails=$data}')" class="button" value="Watch this video" />
<input type="button" onClick="javascript:Confirm_Delete('video_manager.php?delete_video={$data.videoid}')" class="button" value="Delete this video" />
</div>
<form action="" method="post" name="Edit Member" id="Edit Member">
<input name="admin" type="hidden" id="admin" value="true" />
<input name="videoid" type="hidden" value="{$data.videoid}" />
<fieldset class="fieldset">
<legend>User Information</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Useid</strong></td>
<td><a href="view_user.php?uid={$data.userid}">{$data.userid}</a></td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Important Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Video Id</strong></td>
<td>
<input disabled="disabled" name="videokey" type="text" id="videokey" value="{$data.videoid}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>Video Key</strong></td>
<td>
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.videokey}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>File Name</strong></td>
<td>
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.file_name}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>Total Video Files</strong></td>
<td>{get_all_video_files vdetails=$data count_only=true} - <a href="view_conversion_log.php?file_name={$data.file_name}"><strong>View File Details and Converion Log</strong></a></td>
</tr>
<tr>
<td width="200"><strong>Total Thumbnails</strong></td>
<td>{get_thumb vdetails=$data count_only=true}</td>
</tr>
<tr>
<td width="200"><strong>Thumbnails<BR>
{if $data.embeded !=yes}<a href="upload_thumbs.php?video={$data.videoid}&amp;gen_more=true">Regenerate Thumbs</a>{/if}<br />
<a href="upload_thumbs.php?video={$data.videoid}">Manage Thumbs</a></strong></td>
<td>{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
{foreach from=$vidthumbs item=vid_thumb}
<div style="width:140px; float:left" align="center">
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px" /><br />
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
{if $vid_thumb|getname!='processing'}
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
{/if}
</div>
{/foreach}
</td>
</tr>
{foreach from=$requiredFields item=field}
<tr>
<td width="200" ><strong>{$field.title} :</strong></td>
<td >{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{$field.hint_2}</td>
</tr>
{/foreach}
<tr>
<td width="200"><strong>Status</strong></td>
<td>
<select name="status">
<option value="Successful" {if $data.status=='Successful'} selected {/if}>Successfull</option>
<option value="processing" {if $data.status=='processing'} selected {/if}>Processing</option>
<option value="Failed" {if $data.status=='Failed'} selected {/if}>Failed</option>
</select>
</td>
</tr>
<tr>
<td width="200"><strong>Duration (seconds) </strong></td>
<td>
<label>
<input name="duration" type="text" id="duration" value="{$data.duration}" size="5" />
</label>
seconds</td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Recording Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$locationFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td >{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Sharing</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$optionFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Custom Form Fields</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$custom_form_fields item=field}
<tr>
<td width="200"><strong>{$field.title}</strong></td>
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Custom Upload Fields</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$custom_fields item=field}
<tr>
<td width="200"><strong>{$field.title}</strong></td>
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<div style="width:98%; margin:auto">
<input type="submit" class="button" value="Update video details" style="margin:5px 0px 15px 0px" name="update">
</div>
</form>
{/if}

View file

@ -0,0 +1,3 @@
<div class="pagination" align="center">
Pages : {if $first_link !=''}<a {$first_link}>&laquo;</a>{/if} {if $pre_link !=''}<a {$pre_link} >&#8249;</a>{/if} {$pagination} {if $next_link !=''}<a {$next_link}>&#8250;</a>{/if} {if $last_link !=''}<a {$last_link}>&raquo;</a>{/if}
</div>

View file

@ -0,0 +1,28 @@
<!-- Including Global Header -->
{include file="$style_dir/global_header.html" }
<html>
<body>
<div id="body">
<!-- Including Commong header -->
{include file="$style_dir/header.html" }
{include file="$style_dir/msg.html" }
<div style="padding-top:25px">
<!-- Including Left Column -->
<!-- Inlcluding Other Files -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" valign="top">{include file="$style_dir/left_menu.html" }
</td>
<td valign="top">
{foreach from=$template_files item=file}
{include file="$style_dir/$file" }
{/foreach}</td>
</tr>
</table>
</div>
</body>
</html>

View file

@ -0,0 +1,124 @@
<link href="../theme/stylesheet.css" rel="stylesheet" type="text/css" />
<span class="page_title">Video Categories</span>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" valign="middle" class="left_head" style="text-indent:10px">Manage Video Categories</td>
<td class="head">&nbsp;</td>
<td width="100" class="right_head">&nbsp;</td>
</tr>
</table>
{if $edit_category != "show"}
<form action="" method="post" enctype="multipart/form-data" name="add_category" id="Add Category">
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">Category Name*</td>
<td class="td_body"><label>
<input name="title" type="text" id="title" value="{$default_name}" size="45" />
</label></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Description*</td>
<td class="td_body"><textarea name="description" id="description" cols="33" rows="5">{$default_name}</textarea></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Thumb</td>
<td class="td_body"><label>
<input name="category_thumb" type="file" id="category_thumb" size="45">
</label></td>
</tr>
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body"><input type="submit" name="add_cateogry" id="button" value="Add Category" onclick="return validate_category_form(add_category)" class="button"/></td>
</tr>
</table>
</form>
{/if}
{if $edit_category == "show"}
{section name=list loop=$category_data}
<form action="" method="post" enctype="multipart/form-data" name="edit_category" id="Edit Category">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="2" class="block">
<tr>
<td class="td_body">&nbsp;</td>
<td align="right" class="td_body">* are required fields</td>
</tr>
<tr>
<td valign="top" class="td_body">Category Name*</td>
<td class="td_body"><label>
<input name="title" type="text" id="title" value="{$category_data[list].category_name}" size="45" />
</label></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Description*</td>
<td class="td_body"><textarea name="description" id="description" cols="33" rows="5">{$category_data[list].category_description}</textarea></td>
</tr>
<tr>
<td valign="top" class="td_body">Category Thumb</td>
<td class="td_body"><label>
<img src="{$category_thumbs}/{$category_data[list].category_thumb}" /> <br /><input name="category_thumb" type="file" id="category_thumb" size="45" />
<input type="hidden" name="thumb" id="thumb" value="{$category_data[list].category_thumb}" />
</label></td>
</tr>
<tr>
<td class="td_body">&nbsp;</td>
<td class="td_body"><label></label></td>
</tr>
<tr>
<td colspan="2" align="right" class="tr_head"><label>
<input type="submit" name="update_category" id="button" value="Update Category" onclick="return validate_category_form(edit_category)" class="button"/>
</label></td>
</tr>
</table>
</form>
{/section}
{/if}
<div style="margin:10px 0px 10px 0px">
<span class="page_title">Category List</span>
</div>
{if $total != 0}
<table width="67%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="22%" class="left_head">Category Name</td>
<td width="9%" class="head_sep_left">Thumb</td>
<td width="34%" class="head_sep_left">Description</td>
<td width="28%" class="head_sep_left">Date Added</td>
<td width="7%" align="center" class="right_head">Action</td>
</tr>
{assign var = bgcolor value = ""}
{section name=list loop=$category}
<tr bgcolor="{$bgcolor}">
<td style="text-indent:10px">{$category[list].category_name}</td>
<td style="text-indent:10px"><a href="#" onMouseover="fixedtooltip('<img src={$category_thumbs}/{$category[list].category_thumb} border=1/>', this, event, '0px')" onMouseout="delayhidetip()">View Thumb</a></td>
<td style="text-indent:10px">{$category[list].category_description}</td>
<td style="text-indent:10px">{$category[list].date_added|date_format}</td>
<td style="text-indent:10px">
<li><a href="?category={$category[list].categoryid}">Edit</a></li>
<li><a href="javascript:Confirm_Delete('?delete_category={$category[list].categoryid}')">Delete</a></li>
</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
{else}
No Category Has Been Created Yet
{/if}
<br />
<br />

View file

@ -0,0 +1,190 @@
{assign var='requiredFields' value=$Upload->loadRequiredFields($data)}
{assign var='optionFields' value=$Upload->loadOptionFields($data)}
{assign var='locationFields' value=$Upload->loadLocationFields($data)}
{assign var='custom_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
{assign var='custom_form_fields' value=$Upload->load_custom_form_fields($data,TRUE)}
{if $data.title neq ""}
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" class="left_head" style="text-indent:10px">Editing {$data.title}</td>
<td class="head">&nbsp;</td>
<td width="200" align="right" class="right_head">&nbsp;</td>
</tr>
</table>
<div style="width:98%; margin:auto; padding:10px">
<button onClick="location.href='view_video.php?video={$data.videoid}'" class="button">View This video</button>
<input type="button" onClick="window.open('{videoLink vdetails=$data}')" class="button" value="Watch this video" />
<input type="button" onClick="javascript:Confirm_Delete('video_manager.php?delete_video={$data.videoid}')" class="button" value="Delete this video" />
</div>
<form action="" method="post" name="Edit Member" id="Edit Member">
<input name="admin" type="hidden" id="admin" value="true" />
<input name="videoid" type="hidden" value="{$data.videoid}" />
<fieldset class="fieldset">
<legend>User Information</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Useid</strong></td>
<td><a href="view_user.php?uid={$data.userid}">{$data.userid}</a></td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Important Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
<tr>
<td width="200"><strong>Video Id</strong></td>
<td>
<input disabled="disabled" name="videokey" type="text" id="videokey" value="{$data.videoid}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>Video Key</strong></td>
<td>
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.videokey}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>File Name</strong></td>
<td>
<input disabled="disabled" name="flvname" type="text" id="flvname" value="{$data.file_name}" size="45" />
</td>
</tr>
<tr>
<td width="200"><strong>Total Video Files</strong></td>
<td>{get_all_video_files vdetails=$data count_only=true} - <a href="view_conversion_log.php?file_name={$data.file_name}"><strong>View File Details and Converion Log</strong></a></td>
</tr>
<tr>
<td width="200"><strong>Total Thumbnails</strong></td>
<td>{get_thumb vdetails=$data count_only=true}</td>
</tr>
<tr>
<td width="200"><strong>Thumbnails<BR>
{if $data.embeded !=yes}<a href="upload_thumbs.php?video={$data.videoid}&amp;gen_more=true">Regenerate Thumbs</a>{/if}<br />
<a href="upload_thumbs.php?video={$data.videoid}">Manage Thumbs</a></strong></td>
<td>{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
{foreach from=$vidthumbs item=vid_thumb}
<div style="width:140px; float:left" align="center">
<label for="{$vid_thumb|getname}"><img src="{$vid_thumb}" border="1" style="margin:4px" /><br />
<input type="radio" value="{$vid_thumb|getname}.{$vid_thumb|getext}" id="{$vid_thumb|getname}" name="default_thumb" {if $data.default_thumb==$vid_thumb|get_thumb_num} checked="checked"{/if} />Default</label><br />
{if $vid_thumb|getname!='processing'}
<a href="?video={$data.videoid}&delete={$vid_thumb|getname}.{$vid_thumb|getext}">Delete</a>
{/if}
</div>
{/foreach}
</td>
</tr>
{foreach from=$requiredFields item=field}
<tr>
<td width="200" ><strong>{$field.title} :</strong></td>
<td >{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{$field.hint_2}</td>
</tr>
{/foreach}
<tr>
<td width="200"><strong>Status</strong></td>
<td>
<select name="status">
<option value="Successful" {if $data.status=='Successful'} selected {/if}>Successfull</option>
<option value="processing" {if $data.status=='processing'} selected {/if}>Processing</option>
<option value="Failed" {if $data.status=='Failed'} selected {/if}>Failed</option>
</select>
</td>
</tr>
<tr>
<td width="200"><strong>Duration (seconds) </strong></td>
<td>
<label>
<input name="duration" type="text" id="duration" value="{$data.duration}" size="5" />
</label>
seconds</td>
</tr>
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Recording Details</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$locationFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td >{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Sharing</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$optionFields item=field}
<tr>
<td width="200"><strong>{$field.title} </strong></td>
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Custom Form Fields</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$custom_form_fields item=field}
<tr>
<td width="200"><strong>{$field.title}</strong></td>
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset class="fieldset">
<legend>Custom Upload Fields</legend>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="block">
{foreach from=$custom_fields item=field}
<tr>
<td width="200"><strong>{$field.title}</strong></td>
<td>{$field.hint_1}{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
<br>
{$field.hint_2}</td>
</tr>
{/foreach}
</table>
</fieldset>
<div style="width:98%; margin:auto">
<input type="submit" class="button" value="Update video details" style="margin:5px 0px 15px 0px" name="update">
</div>
</form>
{/if}

View file

@ -0,0 +1,151 @@
<script type="text/javascript" src="{$js}/popup_image.js"></script>
<div class="setting_title"> Email Settings </div>
<form action="" method="post" enctype="multipart/form-data" name="Email Settings" id="Email Settings">
<table width="100%" border="0" cellpadding="3" cellspacing="3">
<tr>
<td colspan="2" bgcolor="#F2F2F2" class="tr_head">Email Settings</td>
</tr>
<tr>
<td width="152" valign="top" bgcolor="#F9F9F9" class="td_body">Website Email</td>
<td width="841" bgcolor="#F9F9F9" class="td_body"><label>
<input name="website_email" type="text" id="website_email" value="{$row.website_email}" size="45">
</label></td>
</tr>
<tr>
<td width="152" valign="top" bgcolor="#F9F9F9" class="td_body">Support Email</td>
<td bgcolor="#F9F9F9" class="td_body"><input name="support_email" type="text" id="support_email" value="{$row.support_email}" size="45"></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" class="td_body">Welcome Email</td>
<td bgcolor="#F9F9F9" class="td_body"><input name="welcome_email" type="text" id="welcome_email" value="{$row.welcome_email}" size="45"></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
</tr>
<tr>
<td colspan="2" bgcolor="#F9F9F9" class="tr_head">Email Templates</td>
</tr>
<tr>
<td colspan="2" bgcolor="#F9F9F9" class="td_body"><table width=100% align="center" bgcolor=#f1f1f1 class=des_table>
<tr>
<td colspan="4" class="title">Email Templates Instruction</td>
</tr>
<tr>
<td width="85">Username</td>
<td width="135">$username</td>
<td width="99">From</td>
<td width="787">$from</td>
</tr>
<tr>
<td>Email</td>
<td>$email</td>
<td>Sender Email</td>
<td>$from_email</td>
</tr>
<tr>
<td>Password</td>
<td>$password</td>
<td>VideoKey</td>
<td>$videokey</td>
</tr>
<tr>
<td>Activation Code</td>
<td>$avcode</td>
<td>VideoThumb</td>
<td>$videothumb</td>
</tr>
<tr>
<td>Current Date</td>
<td>$cur_date</td>
<td>VideoTtle</td>
<td>$videotitle</td>
</tr>
<tr>
<td>Website Title</td>
<td>$title</td>
<td>VideoDescription</td>
<td>$videodes</td>
</tr>
<tr>
<td>Website URL</td>
<td>$baseurl</td>
<td>PersonalMessage</td>
<td>$message</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="4"><ul>
<li>Above Given Tags can be used in Email</li>
<li>Do Not Use Double or Single Quotation in Hyperlinks ie &lt;a href=&quot;linkgoeshere&quot;&gt;clickhere&lt;/a&gt; is wrong, just type &lt;a href=linkgoeshere.....</li>
<li>Dont Use Tags That are not allowed for the specific Template</li>
<li>You can add HTML in it</li>
<li>If you want more Templates Please ClipBucket</li>
</ul></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Signup Template<br />
(Email Verification)</td>
<td valign="top" bgcolor="#F9F9F9" class="td_body"><label> Subject:<br />
<input name="email_verification_header" type="text" id="email_verification_header" value="{$header.email_verification_template}" size="60" />
<br />
Message:<br />
<textarea name="email_verification_template" id="email_verification_template" cols="50" rows="8">{$row.email_verification_template}</textarea>
<br />
(Allowed Tags:Username,Email,Password,ActivationCode,CurrentDate,Websitetitle,WebsiteURL)</label></td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Welcome Message Template</td>
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
<input name="welcome_message_header" type="text" id="welcome_message_template_header" value="{$header.welcome_message_template}" size="60" />
<br />
Message:<br />
<textarea name="welcome_message_template" id="welcome_message_template" cols="50" rows="8">{$row.welcome_message_template}</textarea>
<br />
(Allowed Tags:Username,Email,CurrentDate,Websitetitle,WebsiteURL)</td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Activation Code Request Template</td>
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
<input name="activate_request_header" type="text" id="welcome_message_template_header2" value="{$header.activate_request_template}" size="60" />
<br />
Message: <br />
<textarea name="activate_request_template" id="activate_request_template" cols="50" rows="8">{$row.activate_request_template}</textarea>
<br />
(Allowed Tags:Username,Email,ActivationCode,CurrentDate,Websitetitle,WebsiteURL)</td>
</tr>
<tr>
<td valign="top" bgcolor="#F9F9F9" class="td_body">Share This Video Template</td>
<td bgcolor="#F9F9F9" class="td_body">Subject:<br />
<input name="share_video_header" type="text" id="email_verification_header3" value="{$header.share_video_template}" size="60" />
<br />
Message:<br />
<textarea name="share_video_template" id="share_video_template" cols="50" rows="8">{$row.share_video_template}</textarea>
<br />
(Allowed Tags:From,SenderEmail,,Websitetitle,WebsiteURL,Videokey,VideoThumb,VideoTtle,VideoDescription,CurrentDate)</td>
</tr>
<tr>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
<td bgcolor="#F9F9F9" class="td_body">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center"><label>
<input type="submit" name="button" id="button" value="Submit" style="width:150px"/>
<input type="reset" name="button2" id="button" value="Reset" style="width:150px"/>
</label></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</form>

View file

@ -0,0 +1,71 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$title} admin panel - {$subtitle}</title>
<link href="{$theme}/stylesheet.css" rel="stylesheet" type="text/css" />
<link href="{$theme}/slidemenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8">
var baseurl = "{$baseurl}";
</script>
<script type="text/javascript" src="{$js}/flashobject.js"></script>
<script type="text/javascript" src="{$js}/functions.js"></script>
<script type="text/javascript" src="{$js}/admin_functions.js"></script>
<script type="text/javascript" src="{$js}/checkall.js"></script>
<script type="text/javascript" src="{$js}/jquery.js"></script>
<script type="text/javascript" src="{$js}/jquery_plugs/hover_intent.js"></script>
<script type="text/javascript" src="{$js}/jquery_plugs/cb.tabs.js"></script>
<link rel="stylesheet" href="{$js}/jquery_plugs/css/jquery.tooltip.css" />
<link rel="stylesheet" href="{$js}/jquery_plugs/css/screen.css" />
<script src="{$js}/jquery_plugs/jquery.bgiframe.js" type="text/javascript"></script>
<script src="{$js}/jquery_plugs/jquery.dimensions.js" type="text/javascript"></script>
<script src="{$js}/jquery_plugs/jquery.tooltip.pack.js" type="text/javascript"></script>
<script src="{$js}/jquery_plugs/chili-1.7.pack.js" type="text/javascript"></script>
<script src="{$js}/jquery_plugs/compressed/jeditable.js" type="text/javascript"></script>
{literal}
<script type="text/javascript" charset="utf-8">
$(function() {
$("#abcds").tooltip();
});
function makeTall(divid){ $('#'+divid).animate({"height":209},200);}
function makeShort(divid){ $('#'+divid).animate({"height":0},200);}
var on = false;
function switch_func(divid)
{
if(on)
{
makeShort(divid);
on = false;
}else{
makeTall(divid);
on = true;
}
}
$(document).ready(function() {
$('.edit').editable(baseurl+'/actions/update_phrase.php', {
// cancel : 'Cancel',
// submit : 'OK',
indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
tooltip : 'Click to edit...',
});
});
</script>
{/literal}
</head>

View file

@ -0,0 +1,14 @@
<div>
<div style="width:100px; float:left"><img src="{$imageurl}/dot.gif" class="admin_logo" /></div>
<div id="admin_menu_bar" style="position:relative; float:right">
<div id="admin_menu" onclick='switch_func("menu")'>hello <strong>{$userquery->username}</strong></div>
<div id="menu" style="height:0px; overflow:hidden">
<ul>
<li><a href="{$baseurl}/admin_area">Admin Home</a></li>
<li><a href="{$baseurl}" target="_blank">Site Home</a></li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>

View file

@ -0,0 +1 @@
<a href="javascript:void(0)" id="abcds" title="bullshit">Test is best</a>

View file

@ -0,0 +1,80 @@
{if $edit_lang != 'yes'}
<span class="page_title">Language Settings</span>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20" class="left_head" style="padding-left:5px">ID</td>
<td width="100" align="left" class="head"><div class="head_sep_left">Default</div></td>
<td class="head"><div class="head_sep_left" style="width:100px">Language</div></td>
<td width="100" align="left" class="head"><div class="head_sep_left">Language Code</div></td>
<td width="150" align="left" class="head"><div class="head_sep_left">Regular Expression</div></td>
<td width="200" class="right_head"><div class="head_sep_left">Actions</div></td>
</tr>
</table>
<form name="default_lang" method="post">
{section name=l_list loop=$language_list}
<div class="row_white">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20" valign="top" style="padding-left:5px">{$language_list[l_list].language_id}</td>
<td width="100" align="left" valign="top"><label>
<input type="radio" name="make_default" id="radio" value="{$language_list[l_list].language_id}" {if $language_list[l_list].language_default =='yes'}checked="checked"{/if} onclick="document.default_lang.submit()"/>
</label></td>
<td valign="top" style="padding-left:10px">{$language_list[l_list].language_name}</td>
<td width="100" align="left" valign="top"><span style="margin-left:10px;">{$language_list[l_list].language_code}</span></td>
<td width="150" align="left" valign="top"><span style="margin-left:10px;">{$language_list[l_list].language_regex}</span></td>
<td width="200" align="left" valign="top">
<a href="?edit_language={$language_list[l_list].language_id}" style="margin-left:10px">Edit Phrases</a></td>
</tr>
</table>
</div>
{/section}
</form>
{else}
<span class="page_title">Editing {$lang_details.language_name} Phrases</span>
<div style="height:10px">
</div>
<div class="search_box"> <form id="form1" name="form1" method="post" action="">
<label>Phrase Code - Name<br />
<input name="varname" type="text" id="varname" value="{$smarty.post.varname|form_val}" />
</label>
<br />
<label>Phrase Text<br />
<input name="text" type="text" id="text" value="{$smarty.post.text|form_val}" />
</label>
<br />
<label>
<input type="submit" name="search_phrase" class="button" value="Submit" style="margin-top:10px" id="search_phrase"/>
</label>
</form></div>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="40" class="left_head" style="padding-left:5px">ID</td>
<td width="200" class="head"><div class="head_sep_left" >Phrase Code</div></td>
<td align="left" class="head"><div class="head_sep_left" style="width:100px">Phrase</div></td>
<td width="200" class="right_head"></td>
</tr>
</table>
{section name=p_list loop=$lang_phrases}
<div class="row_white">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="40" style="padding-left:5px">{$lang_phrases[p_list].id}</td>
<td width="200" >{$lang_phrases[p_list].varname}</td>
<td align="left"><div class="edit" id="{$lang_phrases[p_list].id}">{$lang_phrases[p_list].text}</div></td>
<td width="200" ></td>
</tr>
</table>
</div>
{/section}
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }
{/if}

View file

@ -0,0 +1,19 @@
<div class="left_menu">
{assign var='menu' value = $Cbucket->AdminMenu}
{foreach from=$menu key=name item=menu}
<!-- *********************************Start {$name} Menu****************************** -->
<div class="mainDiv" >
<div class="topItem" >{$name}</div>
<div class="dropMenu" >
<div class="subMenu">
{foreach from=$menu key=sub_menu item=sub_link}
<div class="subItem"><a href="{$sub_link}">{$sub_menu}</a></div>
{/foreach}
</div>
</div>
</div>
<!-- *********************************End {$name} Menu****************************** -->
{/foreach}
<!-- *********************************End Menu****************************** -->
</div>
<script type="text/javascript" src="{$js}/slidemenu.js"></script>

View file

@ -0,0 +1,32 @@
<body>
<div style="height:400px; background-image:url({$imageurl}/bgs/login.png); background-repeat:repeat-x" align="center">
<div id="login_box">
<form name="form1" method="post" action="">
<table width="78%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><label for="username">Username</label></td>
</tr>
<tr>
<td align="left">
<input type="text" name="username" id="username" class="textfield">
</td>
</tr>
<tr>
<td align="left"><label for="password">Password</label></td>
</tr>
<tr>
<td>
<input type="password" name="password" id="password" class="textfield">
</td>
</tr>
<tr>
<td align="center"><label>
<input type="submit" name="login" class="button" value=" Login ">
</label></td>
</tr>
</table>
</form>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,391 @@
<ul class="cbtab">
<li onClick='display_tab(this,"div_1",true)' id="first_tab">Website Settings</li>
<li onClick='display_tab(this,"div_2",true)' >Uploading and Conversion Settings</li>
<li onClick='display_tab(this,"div_3",true)' >Display and Listing Settings</li>
<li onClick='display_tab(this,"div_4",true)' >User &amp; Registeration</li>
</ul>
<div class="clear"></div>
<form name="form1" method="post" action="">
<input name="baseurl" value="{$row.baseurl}" type="hidden" />
<input name="basedir" value="{$row.baseurl}" type="hidden" />
<div id="tabbed_div">
<div id="div_1" class="main_page_div">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">Website title</td>
<td valign="top"><input name="site_title" type="text" id="site_title" value="{$row.site_title}" size="45"></td>
</tr>
<tr>
<td valign="top">Website slogan</td>
<td valign="top"><input name="site_slogan" type="text" id="site_slogan" value="{$row.site_slogan}" size="45"></td>
</tr>
<tr>
<td valign="top">Website closed</td>
<td valign="top"><select name="closed" id="select">
<option value="1"
{if $row.closed == 1}
selected="selected"
{/if}
>Yes</option>
<option value="0"
{if $row.closed == 0}
selected="selected"
{/if}
>No</option>
</select></td>
</tr>
<tr>
<td valign="top">Closed message</td>
<td valign="top"><textarea name="closed_msg" id="closed_msg" cols="45" rows="5">{$row.closed_msg}</textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td valign="top">Meta Description</td>
<td valign="top"><textarea name="description" id="description" cols="45" rows="5">{$row.description}</textarea></td>
</tr>
<tr>
<td valign="top">Meta Keywords</td>
<td valign="top"><input name="keywords" type="text" id="keywords" value="{$row.keywords}" size="45" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Default Language</td>
<td><select name="default_site_lang">
{foreach from=$languages key=k item=v}
<option value="{$k}" {if $row.default_site_lang == $k} selected="selected" {/if}>{$v}</option>
{/foreach}
</select></td>
</tr>
<tr>
<td>SEO Urls</td>
<td><select name="seo" id="select2">
<option value="yes"
{if $row.seo == yes}
selected="selected"
{/if}
>Yes</option>
<option value="no"
{if $row.seo == no}
selected="selected"
{/if}
>No</option>
</select></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Allow template change</td>
<td><select name="allow_language_change" id="allow_language_change">
<option value="1"
{if $row.allow_language_change == 1}
selected="selected"
{/if}
>Yes</option>
<option value="0"
{if $row.allow_language_change == 0}
selected="selected"
{/if}
>No</option>
</select></td>
</tr>
<tr>
<td>Allow language change</td>
<td><select name="seo2" id="seo">
<option value="yes"
{if $row.seo == yes}
selected="selected"
{/if}
>Yes</option>
<option value="no"
{if $row.seo == no}
selected="selected"
{/if}
>No</option>
</select></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Require login to watch videos ?</td>
<td><input name="video_require_login" type="checkbox" id="video_require_login" value="yes" {if $row.video_require_login=='yes'}checked="checked"{/if} /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td valign="top">Allow comments</td>
<td valign="top"><input name="video_comments" type="checkbox" id="video_comments" value="1" {if $row.video_comments=='1'}checked="checked"{/if} />
<br />
<input name="user_comment_own" type="checkbox" id="user_comment_own" value="1" {if $row.user_comment_own=='1'}checked=&quot;checked&quot;{/if} />
User can comment on his/her own video/channel</td>
</tr>
<tr>
<td valign="top">Maximum character count</td>
<td valign="top"><input name="max_comment_chr" type="text" id="max_comment_chr" value="{$row.max_comment_chr}" size="15" maxlength="5" /></td>
</tr>
<tr>
<td valign="top">Allow ratings</td>
<td valign="top"><input name="video_rating" type="checkbox" id="video_rating" value="1" {if $row.video_rating=='1'}checked="checked"{/if} />
<br />
<input name="video_comments3" type="checkbox" id="video_comments3" value="1" {if $row.video_comments=='1'}checked=&quot;checked&quot;{/if} />
User can rate his/her video/channel</td>
</tr>
<tr>
<td>Allow comments rating</td>
<td><input name="comment_rating" type="checkbox" id="comment_rating" value="1" {if $row.comment_rating=='1'}checked="checked"{/if} /></td>
</tr>
<tr>
<td>Allow video embedding</td>
<td><input name="video_embed" type="checkbox" id="video_embed" value="1" {if $row.video_embed=='1'}checked=&quot;checked&quot;{/if} /></td>
</tr>
<tr>
<td>Allow video download</td>
<td><input name="video_download" type="checkbox" id="video_download" value="1" {if $row.video_download=='1'}checked="checked"{/if} /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div>
<div id="div_2" class="main_page_div">
<table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">FFMPEG Binary Path</td>
<td valign="top"><input name="ffmpegpath" type="text" id="ffmpegpath" value="{$row.ffmpegpath}" size="45" /></td>
</tr>
<tr>
<td valign="top">PHP Binary Path</td>
<td valign="top"><input name="php_path" type="text" id="php_path" value="{$row.php_path}" size="45" /></td>
</tr>
<tr>
<td valign="top">Allow video uploading</td>
<td valign="top"><label>
<input name="allow_upload" type="checkbox" id="allow_upload" value="yes" {if $row.allow_upload}checked="checked"{/if} />
</label></td>
</tr>
<tr>
<td valign="top">Allowed extensions</td>
<td valign="top"><label>
<textarea name="allowed_types" id="allowed_types" cols="45" rows="5">{$row.allowed_types}</textarea>
<br />
Sperate by comma [case insensitive]</label></td>
</tr>
<tr>
<td valign="top">Max upload file size</td>
<td><input name="max_upload_size" type="text" id="max_upload_size" value="{$row.max_upload_size}" size="15" maxlength="5" />
in MegaBytes </td>
</tr>
<tr>
<td>Save original file </td>
<td><input name="keep_original" type="checkbox" id="keep_original" value="1" {if $row.keep_original} checked="checked"{/if} /></td>
</tr>
<tr>
<td>Activation required</td>
<td><input name="activation" type="checkbox" id="activation" value="1" {if $row.activation==1} checked="checked"{/if} /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">Converting video height and thumbs settings</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Video Width</td>
<td><input name="r_width" type="text" id="r_width" value="{$row.r_width}" size="45" /></td>
</tr>
<tr>
<td>Video Height</td>
<td><input name="r_height" type="text" id="r_height" value="{$row.r_height}" size="45" /></td>
</tr>
<tr>
<td>Resize Type</td>
<td><select name="resize" id="select">
<option value="no" {if $row.resize ==no} selected="selected"{/if}>No</option>
<option value="max" {if $row.resize ==max} selected="selected"{/if}>Max</option>
<option value="WxH" {if $row.resize ==WxH} selected="selected"{/if}>Stretch</option>
<option value="fit" {if $row.resize ==fit} selected="selected"{/if}>Aspect Ratio</option>
</select>&nbsp;</td>
</tr>
<tr>
<td>Thumb Width</td>
<td><input name="thumb_width" type="text" id="thumb_width" value="{$row.thumb_width}" size="45" /></td>
</tr>
<tr>
<td>Thumb Height</td>
<td><input name="thumb_height" type="text" id="thumb_height" value="{$row.thumb_height}" size="45" /></td>
</tr>
<tr>
<td>Number of thumbs</td>
<td><input name="num_thumbs" type="text" id="num_thumbs" value="{$row.num_thumbs}" size="45" /></td>
</tr>
<tr>
<td>Big Thumb Width</td>
<td><input name="big_thumb_width" type="text" id="big_thumb_width" value="{$row.big_thumb_width}" size="45" /></td>
</tr>
<tr>
<td>Big Thumb Height</td>
<td><input name="big_thumb_height" type="text" id="big_thumb_height" value="{$row.big_thumb_height}" size="45" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2">Change only if you have good knowledge of video conversion</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Video Rate</td>
<td><input name="vrate" type="text" id="vrate" value="{$row.vrate}" size="45" /></td>
</tr>
<tr>
<td>Video Bitrate</td>
<td><input name="vbrate" type="text" id="vbrate" value="{$row.vbrate}" size="45" /></td>
</tr>
<tr>
<td>Audio Rate</td>
<td><input name="srate" type="text" id="srate" value="{$row.srate}" size="45" /></td>
</tr>
<tr>
<td>Audio Bitrate</td>
<td><input name="sbrate" type="text" id="sbrate" value="{$row.sbrate}" size="45" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div>
<div id="div_3" class="main_page_div" ><table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">Current Template</td>
<td valign="top"><a href="templates.php">manage templates</a></td>
</tr>
<tr>
<td valign="top">Current FLV Player</td>
<td valign="top"><a href="flv_players.php">manage flv players</a></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
<tr>
<td>Videos per page</td>
<td><input name="videos_list_per_page" type="text" id="videos_list_per_page" value="{$row.videos_list_per_page}" size="6" maxlength="3" /></td>
</tr>
<tr>
<td>Videos per tab or section</td>
<td><input name="videos_list_per_tab" type="text" id="videos_list_per_tab" value="{$row.videos_list_per_tab}" size="6" maxlength="3" /></td>
</tr>
<tr>
<td>Channels per page</td>
<td><input name="channels_list_per_page" type="text" id="channels_list_per_page" value="{$row.channels_list_per_page}" size="6" maxlength="3" /></td>
</tr>
<tr>
<td>Channels per tab or section</td>
<td><input name="channels_list_per_tab" type="text" id="channels_list_per_tab" value="{$row.channels_list_per_tab}" size="6" maxlength="3" /></td>
</tr>
<tr>
<td>Search results per page</td>
<td><input name="search_list_per_page" type="text" id="search_list_per_page" value="{$row.search_list_per_page}" size="6" maxlength="3" /></td>
</tr>
<tr>
<td>Recently viewed videos</td>
<td><input name="recently_viewed_limit" type="text" id="recently_viewed_limit" value="{$row.recently_viewed_limit}" size="6" maxlength="3" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</div>
<div id="div_4" class="main_page_div" ><table width="100%" border="0" cellpadding="2" cellspacing="0" class="block">
<tr>
<td width="200" valign="top">Turn on registerations</td>
<td valign="top"><input name="allow_registeration" type="checkbox" id="allow_registeration" value="1" {if $row.allow_registeration=='1'}checked="checked"{/if} /></td>
</tr>
<tr>
<td valign="top">Email verification</td>
<td valign="top"><input name="email_verification" type="checkbox" id="email_verification" value="1" {if $row.email_verification=='1'}checked=&quot;checked&quot;{/if} /></td>
</tr>
<tr>
<td valign="top">Image verification (captcha)</td>
<td valign="top"><select name="captcha_type">
<option value="0" {if $row.captcha_type == 0}
selected="selected"
{/if}>No</option>
<option value="1" {if $row.captcha_type == 1}
selected="selected"
{/if}>Simple</option>
<option value="2" {if $row.captcha_type == 2}
selected="selected"
{/if}>Secured</option>
</select></td>
</tr>
<tr>
<!--<td valign="top">Username regular expression</td>
<td valign="top"><label>
<input type="text" name="textfield" id="textfield" />
please refer to <a href="http://www.php.net/pcre">php.net</a></label></td>-->
</tr>
<tr>
<td valign="top">Username maximum characters</td>
<td valign="top"><input name="user_max_chr" type="text" id="user_max_chr" value="{$row.user_max_chr}" size="6" maxlength="3" /></td>
</tr>
<tr>
<td valign="top">Disallowed usernames</td>
<td valign="top"><label>
<textarea name="disallowed_usernames" id="disallowed_usernames" cols="45" rows="5">{$row.disallowed_usernames}</textarea>
<br />
sperate by commas
</label></td>
</tr>
<tr>
<td valign="top">Minimum age for registeration</td>
<td valign="top"><input name="min_age_reg" type="text" id="min_age_reg" value="{$row.min_age_reg}" size="6" maxlength="3" />
leave blank to disable this option</td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
</div>
</div>
<div align="right"class="main_page_div" style="padding:5px; min-height:0px; margin-top:10px"><label>
<input type="submit" name="update" class="button" value="Update Settings" id="udpate" />
</label>
</div>
</form>

View file

@ -0,0 +1,32 @@
{assign var=msg value=$eh->message_list}
{assign var=err value=$eh->error_list}
{if $err.0 neq ''}
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFF0FA">
<ul>
{foreach from=$err item=show_msg}
<li> {$show_msg} </li>
{/foreach}
</ul></td>
</tr>
</table><br>
{/if}
{if $msg.0 neq ''}
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#F1F1F1">
<ul>
{foreach from=$msg item=show_msg}
<li> {$show_msg} </li>
{/foreach}
</ul></td>
</tr>
</table><br>
{/if}

View file

@ -0,0 +1,69 @@
<script type="text/javascript" src="{$js}/popup_image.js"></script>
<div class="setting_title">Installed Plugins</div>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin-bottom:25px">
<tr >
<td width="30" height="20" valign="middle" class="tr_head"> #</td>
<td valign="middle" class="tr_head">Pluin Details</td>
<td width="100" valign="middle" class="tr_head">Actions</td>
</tr>
{assign var = bgcolor value = ""}
{foreach from=$installed_plugin_list item=plug name=item}
<tr bgcolor="{$bgcolor}">
<td valign="top" class="td_body">{$smarty.foreach.item.iteration}</td>
<td valign="top" class="td_body"><strong>{$plug.name} by <em><a href="{$plug.website}">{$plug.author}</a></em></strong><br>
{$plug.description} - <em>
<a href="{$plug.website}">{$plug.website}</a></em><br>
Version : {$plug.version}
</td>
<td height="100" valign="top" class="td_body">{if $plug.plugin_active == 'yes'}<a href="?deactivate={$plug.plugin_file}">Deactivate</a>{else}<a href="?activate={$plug.plugin_file}">Activate</a>{/if}<br>
<a href="javascript:Confirm_Uninstall('?uninstall={$plug.plugin_file}')">Uninstall</a></td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{foreachelse}
<tr bgcolor="{$bgcolor}">
<td valign="top" class="td_body">&nbsp;</td>
<td align="center" valign="middle" class="td_body">No Installed Plugin Found</td>
<td height="100" valign="top" class="td_body">&nbsp;</td>
</tr>
{/foreach}
</table>
{* Listing New Plugins *}
<div class="setting_title">Available Plugins </div>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr >
<td width="30" height="20" valign="middle" class="tr_head"> #</td>
<td valign="middle" class="tr_head">Pluin Details</td>
<td width="100" valign="middle" class="tr_head">Actions</td>
</tr>
{assign var = bgcolor value = ""}
{foreach from=$new_plugin_list item=plug name=item}
<tr bgcolor="{$bgcolor}">
<td valign="top" class="td_body">{$smarty.foreach.item.iteration}</td>
<td valign="top" class="td_body"><strong>{$plug.name} by <em><a href="{$plug.website}">{$plug.author}</a></em></strong><br>
{$plug.description} - <em>
<a href="{$plug.website}">{$plug.website}</a></em><br>
Version : {$plug.version}
</td>
<td height="100" valign="top" class="td_body"><a href="?install_plugin={$plug.file}">Install Plugin</a></td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{foreachelse}
<tr bgcolor="{$bgcolor}">
<td valign="top" class="td_body">&nbsp;</td>
<td align="center" valign="middle" class="td_body">No New Plugin Found</td>
<td height="100" valign="top" class="td_body">&nbsp;</td>
</tr>
{/foreach}
</table>

View file

@ -0,0 +1,163 @@
<span class="page_title">Video Manager</span>
<div class="search_box"> <form id="form1" name="form1" method="post" action="" class="video_search">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <label>Video Title
<br />
<input type="text" name="title" id="title" class="input" />
<br />
</label>
From Date<br />
<label>
<input type="text" name="textfield" id="textfield" class="input" />
</label>
<br />
Date To<br />
<label>
<input type="text" name="textfield2" id="textfield2" class="input" />
</label>
<br />
<br /> <br /></td>
<td valign="top"><label>Video Tags<br />
<input type="text" name="tags" id="tags" class="input" />
</label> <br /></td>
</tr>
<tr>
<td>Featured Only
<label>
<input type="checkbox" name="checkbox" id="checkbox" />
</label>
<br />
Boradcast Type <label>
<input name="broadcast" type="radio" id="radio" value="radio" checked="checked" />
Public
</label>
<input type="radio" name="broadcast" id="radio2" value="radio" />
Private<br />
Comment Option
<input name="comments" type="radio" id="radio3" value="radio" checked="checked" />
Allowed
<input type="radio" name="comments" id="radio4" value="radio" />
Not Allowed<br />
Embedding Option
<input name="embedding" type="radio" id="radio5" value="radio" checked="checked" />
Allowed
<input type="radio" name="embedding" id="radio6" value="radio" />
Not Allowed</td>
<td valign="top">Rating From Rating To<br />
Views From Views To<br />
Comments From Comments To<br />
Favorites From Favorites To</td>
</tr>
<tr>
<td>Creation Date<br />
Location<br />
Country<br /></td>
<td valign="top">Category</td>
</tr>
</table>
</form></div>
<!-- DIsplaying Videos -->
<form name="video_manage" method="post">
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle"><img src="{$imageurl}/arrow_return.png" width="25" height="25"></td>
<td height="50" style="padding-left:15px">
<input type="submit" name="activate_selected" value="Activate" class="button"/>
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="Confirm_Delete('')"/>
</td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td width="50" class="head_sep_left">VID</td>
<td class="head"><div class="head_sep_left" style="width:250px">Details</div></td>
<td width="50" class="right_head">&nbsp;</td>
</tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
{assign var = bgcolor value = ""}
{section name=list loop=$videos}
<tr class="video_opt_td" bgcolor="{$bgcolor}">
<td width="30" align="center" valign="top" class="video_opt_td"> <input name="check_video[]" type="checkbox" id="check_video" value="{$videos[list].videoid}" /></td>
<td width="50" align="center" valign="top" class="video_opt_td">{$videos[list].videoid}</td>
<td valign="top" class="video_opt_td"
onmouseover="$('#vid_opt-{$videos[list].videoid}').show()"
onmouseout="$('#vid_opt-{$videos[list].videoid}').hide()" >
<a href="{$baseurl}/watch_video.php?v={$videos[list].videokey}" target="_blank" style="text-indent:10px">
{$videos[list].title}
</a> &#8212;
<span class="vdo_sets">
Featured:<strong>{$videos[list].featured} </strong> &#8226;
Active:<strong>{$videos[list].active}</strong> &#8226;
Status:<strong>{$videos[list].status}</strong>
</span>
<br />
<div id="vid_opt-{$videos[list].videoid}" style="display:none" class="vid_opts">
<a href="view_video.php?video={$videos[list].videoid}">View</a> |
<a href="edit_video.php?video={$videos[list].videoid}">Edit</a> {if $videos[list].featured == yes} |
<a href="javascript:Confirm_Delete('?delete_video={$videos[list].videoid}')">Delete</a> |
<a href="?make_unfeature={$videos[list].videoid}">Make Unfeatured</a> {/if}
{if $videos[list].featured == no} |
<a href="?make_feature={$videos[list].videoid}">Make Featured</a> {/if}
{if $videos[list].active == yes} |
<a href="?deactivate={$videos[list].videoid}">Deactivate</a> {else} |
<a href="?activate={$videos[list].videoid}">Activate</a> {/if} |
<a href="?editor_pick={$videos[list].videoid}">Add To Editor's Pick</a> |
<a href="view_conversion_log.php?file_name={$videos[list].file_name}">File conversion details</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>
</tr>
{if $bgcolor == ""}
{assign var = bgcolor value = "#EEEEEE"}
{else}
{assign var = bgcolor value = ""}
{/if}
{/section}
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30" align="center" valign="middle"><img src="{$imageurl}/arrow_return_invert.png" width="25" height="25"></td>
<td height="50" style="padding-left:15px">
<input type="submit" name="activate_selected" value="Activate" class="button"/>
<input type="submit" name="deactivate_selected" value="Deactivate" class="button" />
<input type="submit" name="make_featured_selected" value="Make Featured" class="button"/>
<input type="submit" name="make_unfeatured_selected" value="Make Unfeatured" class="button"/>
<input type="submit" name="delete_selected" value="Delete" class="button" onclick="Confirm_Delete('')"/>
</td>
</tr>
</table>
</form>
<!-- DIsplaying Videos Ends-->
{include file="$style_dir/blocks/pagination.html" }

View file

@ -0,0 +1,57 @@
{if $data.id}
<div style="width:99%; margin:auto; margin-bottom:15px">
<span class="page_title">Conversion Log For File &quot;{$data.src_name}&quot;</span>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" class="left_head"></td>
<td class="head">Source File Information </td>
<td width="50" class="right_head"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="block">
{foreach from=$data item=value key=field}
{if $field|truncate:4:'' == src_}
<tr>
<td>Source {$field|substr:4:100|replace:'_':' '}</td>
<td>{$value}</td>
</tr>
{/if}
{/foreach}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="tr_head">Output File Information</td>
</tr>
{foreach from=$data item=value key=field}
{if $field|truncate:7:'' == output_}
<tr>
<td>Output File {$field|substr:7:100|replace:'_':' '}</td>
<td>{$value}</td>
</tr>
{/if}
{/foreach}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" class="left_head"></td>
<td class="head">Conversion log for <span class="tr_head">&quot;{$data.src_name}</span>&quot;</td>
<td width="50" class="right_head"></td>
</tr>
</table>
<div id='Container'>
<div style="overflow:auto; border:1px solid #EAEAEA; padding:2px">
<div style="background-color:#F3F3F3; border:none; width:100%; min-height:300px;">{$data.file_conversion_log|nl2br}</div>
</div></div>
</div>
{else} <em style="margin-left:10px">File does not exist</em>
{/if}

View file

@ -0,0 +1,197 @@
{assign var='requiredFields' value=$Upload->loadRequiredFields($data)}
{assign var='optionFields' value=$Upload->loadOptionFields($data)}
{assign var='locationFields' value=$Upload->loadLocationFields($data)}
{assign var='custom_fields' value=$Upload->load_custom_upload_fields($data,TRUE)}
{assign var='custom_form_fields' value=$Upload->load_custom_form_fields($data,TRUE)}
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="200" align="left" class="left_head" style="text-indent:10px">Viewing {$data.title}</td>
<td class="head">&nbsp;</td>
<td width="200" align="right" class="right_head">&nbsp;</td>
</tr>
</table>
<div style="width:98%; margin:auto; padding:10px">
<input type="button" onClick="window.open('{videoLink vdetails=$data}')" class="button" value="Watch this video" />
<input type="button" onClick="location.href='edit_video.php?video={$data.videoid}'" class="button" value="Edit this video" />
</div>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="40%"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="block">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="head_title">Information</td>
</tr>
{foreach from=$requiredFields item=field}
<tr>
<td>{$field.title}</td>
<td>{ANCHOR place=$field.anchor_before}{input_value input=$field}</td>
</tr>
{/foreach}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="head_title">Important Details and Files information</td>
</tr>
<tr>
<td>Video Id</td>
<td>{$data.videoid}</td>
</tr>
<tr>
<td>Video Key</td>
<td>{$data.videokey}</td>
</tr>
<tr>
<td>File Name</td>
<td>{$data.file_name}</td>
</tr>
<tr>
<td> Video Files</td>
<td>{get_all_video_files vdetails=$data count_only=true}</td>
</tr>
<tr>
<td>Thumb Files </td>
<td>{get_thumb vdetails=$data count_only=true}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>{assign var=vidthumbs value=func->get_thumb($data,1,TRUE)}
{foreach from=$vidthumbs item=vid_thumb}
<div style="width:60px; float:left" align="center">
<img src="{$vid_thumb}" width="50" height="50" border="1" style="margin:4px" /><br />
{if $data.default_thumb==$vid_thumb|get_thumb_num}Default{/if}
</div>
{/foreach}
</td>
</tr>
<tr>
<td height="25" colspan="2" align="center"><a href="view_conversion_log.php?file_name={$data.file_name}"><strong>View File Details and Converion Log</strong></a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="head_title">Sharing Options</td>
</tr>
{foreach from=$optionFields item=field}
<tr>
<td>{$field.title}</td>
<td>{ANCHOR place=$field.anchor_before}{input_value input=$field}</td>
</tr>
{/foreach}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="21" colspan="2" class="head_title">Stats</td>
</tr>
<tr>
<td>Views</td>
<td>{$data.views}</td>
</tr>
<tr>
<td>Rating</td>
<td>{$data.rating}
of 10 </td>
</tr>
<tr>
<td>RatedBy</td>
<td>{$data.rated_by}</td>
</tr>
<tr>
<td>Duration</td>
<td>{$data.duration|SetTime}</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="head_title">Custom Upload Options</td>
</tr>
{foreach from=$custom_fields item=field}
<tr>
<td>{$field.title}</td>
<td>{$field.value|form_val}</td>
</tr>
{foreachelse}
<tr>
<td colspan="2" align="center">No Custom Fields</td>
</tr>
{/foreach}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="head_title">Custom Form Fields</td>
</tr>
{foreach from=$custom_form_fields item=field}
<tr>
<td>{$field.title}</td>
<td>{$field.value|form_val}</td>
</tr>
{foreachelse}
<tr>
<td colspan="2" align="center">No Custom Fields</td>
</tr>
{/foreach}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="head_title">User Information</td>
</tr>
<tr>
<td>User id</td>
<td>{$udata.userid}</td>
</tr>
<tr>
<td>User name</td>
<td>{$udata.username}</td>
</tr>
<tr>
<td>Videos Uploaded</td>
<td>{$userquery->get_user_vids($data.userid,'',true)}</td>
</tr>
</table></td>
<td width="60%" align="center" valign="top"><div id="{$player_div_id}">
This content requires JavaScript and Macromedia Flash Player 7 or higher. <a href=http://www.macromedia.com/go/getflash/>Get Flash</a><br/><br/>
</div>
<script language="javascript">
{FlashPlayer vdetails = $videos}
</script></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="head_title">Video Comments</td>
</tr>
<tr>
<td colspan="2" align="center">{assign var=id value=$data.videoid}{include file="$style_dir/blocks/comments.html" type=v id=$data.videoid link="video=$id"}</td>
</tr>
</table>

View file

@ -0,0 +1,36 @@
@charset "utf-8";
/* CSS Document */
.cbtab{margin:0px; padding:0px}
.cbtab li
{
list-style-type:none;
padding:0px 10px;
background-color:#009;
margin:2px; background-image:url(../images/bgs/round_bg.png);
background-position:0px -52px; height:26px; line-height:26px;
font-size:12px; color:#FFF;
font-weight:bold;
-moz-border-radius-topleft:5px;
-webkit-border-top-left-radius:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-right-radius:5px;
border:2px #d2d2d2 solid;
border-bottom:none;
cursor:pointer;
float:left;
margin-bottom:0px;
}
.cbtab .selected{background:#333}
.main_page_div{min-height:200px; border:1px solid #d2d2d2; width:95%; margin-left:2px; padding:5px;
-moz-border-radius-bottomleft:5px;
-webkit-border-bottom-left-radius:5px;
-moz-border-radius-bottomright:5px;
-webkit-border-bottom-right-radius:5px;
-moz-border-radius-topright:5px;
-webkit-border-top-right-radius:5px;
}

View file

@ -0,0 +1,17 @@
/* Css Document */
.pagination
{
background-image:url(../images/bgs/pagination_bg.png);
background-repeat:repeat-x;
height:23px;
width:99%;
margin:auto;
line-height:23px;
color:#FFF;font-weight:bold; font-size:12px; font-family:Arial, Helvetica, sans-serif;
}
.pagination a, .pagination .selected{color:#FFF; font-weight:bold; font-size:13px; font-family:Arial, Helvetica, sans-serif; text-decoration:none; margin:0px 3px 0px 3px; }
.pagination .selected{color:#FFFF97; text-decoration:underline;}

View file

@ -0,0 +1,81 @@
.left_menu
{
width: 230px;
padding-left: 5px;
float:left;
}
.mainDiv
{
margin-top:5px;
width:211px;
}
.topItem,.topItemOver,.topItemClose,.topItemCloseOver
{
letter-spacing: 0;
background-position:center center;
background-repeat:no-repeat;
border: none;
width: 211px;
height: 26px;
color: #FFFFFF;
cursor:pointer;
text-indent:10px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
line-height:26px;
}
.topItem{background: url("../images/bgs/left_menu_head.png") no-repeat 0 -26px;}
.topItemOver{background: url("../images/bgs/left_menu_head.png") no-repeat 0 -52px;}
.topItemClose{background: url("../images/bgs/left_menu_head.png") no-repeat 0 0;}
.topItemCloseOver{background: url("../images/bgs/left_menu_head.png") no-repeat 0 -26px;}
.dropMenu
{
font: bold 11px tahoma,verdana,sans-serif;
color: #000;
filter:alpha(opacity=100);
background-image:url(../images/bgs/left_menu_foot.png);
background-position:bottom;
background-repeat:no-repeat;
padding-bottom:15px
}
.subMenu
{
display:block;
}
.subItem,.subItemOver
{
font: 11px tahoma,verdana,sans-serif;
text-decoration:none;
color: #215dc6;
}
.subItem a,.subItemOver a
{
font-size:12px;
font-weight:bold;
color:#333;
display:block;
padding-left:10px;
text-decoration:none;
font-family:Arial, Helvetica, sans-serif;
margin:2px 0px 2px 0px;
}
.subItem a:hover,.subItemOver a:hover{
background-color:#e9f6ff;
color:#2b495d;
}
.drop
{
border-left:1px solid black;
border-right:1px solid black;
}

View file

@ -0,0 +1,116 @@
@import url("slidemenu.css");
@import url("pagination.css");
@import url("cbtab.css");
@charset "utf-8";
/* CSS Document */
BODY
{
margin:0px;
padding:0px;
font-size:12px;
color:#333;
font-family:Arial, Helvetica, sans-serif;
background:#FFF;
min-width:800px
}
a{font-size:12px; font-weight:bold; text-decoration:none; color:#147dc3; font-family:Arial, Helvetica, sans-serif}
.clear{clear:both}
#body{background-image:url(../images/bgs/gr_bg.png); background-repeat:repeat-x; min-height:500px; }
.container{margin-left:230px}
#admin_menu{width:212px; height:25px; background-image:url(../images/bgs/admin_menu_bg.png); background-repeat:no-repeat;color:#FFF; padding-left:5px; padding-top:4px; cursor:pointer}
#admin_menu_bar{ width:212px;background-repeat:no-repeat; float:right; margin-right:10px; }
#menu{margin-top:2px; background-image:url(../images/bgs/menu_bg.png); width:209px; height:209px; position:absolute}
.admin_logo{background-image:url(../images/logo.png); width:221px; height:29px; margin:5px}
.page_title{font-size:20px; font-weight:bold; color:#333}
/**
* Page Table Tops
*/
.head_title,.left_head,.head,.right_head,.head_sep_left,.head_sep_right,.left_head a,.head a,.right_head a,.head_sep_left a,.head_sep_right a{line-height:26px; color:#FFF; font-size:12px; font-family:Arial, Helvetica, sans-serif; font-weight:bold}
.left_head{background-image:url(../images/bgs/round_bg.png); background-position:0px 0px; height:26px}
.head_title,.head{background-image:url(../images/bgs/round_bg.png); background-position:right -52px; height:26px}
.right_head{background-image:url(../images/bgs/round_bg.png); background-position:right -26px; height:26px}
.head_sep_left{background-image:url(../images/bgs/round_bg.png); background-position:left -130px; height:26px; text-indent:10px;}
.head_sep_right{background-image:url(../images/bgs/round_bg.png); background-position:right -156px; height:26px}
.admin_td,.video_opt_td{color:#333; font-size:12px;}
.video_opt_td{height:45px; border-bottom:1px solid #ccc; padding-top:5px}
.video_opt_td a{font-size:13px; font-weight:bold; color:#0c4469; text-decoration:none}
.vid_opts{border:1px solid #ccc; padding:2px; display:inline;-moz-border-radius: 5px;
-webkit-border-radius: 5px; border:0px solid #EAEEFF;} .vdo_sets{font-size:11px; text-transform:uppercase; font-family: Consolas, Monaco, Courier, monospace;}
/**
* Forms
*/
.button{background-image:url(../images/button_bg.png); height:22px; color:#FFF; font-weight:bold; border:1px; line-height:22px; -moz-border-radius: 8px;
-webkit-border-radius: 8px; border:1px solid #146194; cursor:pointer}
.button:focus{background-position:-0 -22px}
.fieldset{-moz-border-radius: 5px;
-webkit-border-radius: 5px; border:2px solid #EAEEFF; width:98%; margin:0px; padding:0px; margin:auto; margin-top:15px}
.fieldset select,.fieldset input,.fieldset textarea{border:1px solid #CCC; font-size:11px; margin:2px; padding:2px}
.fieldset .block{margin:5px}
.fieldset legend{margin:2px; font-size:13px; font-weight:bold; color:#147dc3}
/**
* Forms End
*/
.block tr td{padding:2px; border-bottom:1px dotted #eee; }
.block tr:hover{background-color:#f8f8f8}
.head_title{text-indent:5px; padding:0px}
#menu, #menu a{color:#FFF; font-size:11px; font-family:Arial, Helvetica, sans-serif; text-decoration:none}
#menu a{font-weight:bold}
#menu ul, #menu ul li{padding:0px; margin:0px; list-style-type:none}
#menu ul{margin:8px}
.hint{font-size:11px;}
#login_box{
height:250px;
width:400px;
background-image:url(../images/login.png);
background-repeat:no-repeat;
margin:auto;
background-position:center;
padding-top: 150px;
}
#login_box .textfield{
height:30px;
width: 280px;
margin-bottom: 10px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px; border:1px solid #ccc;
line-height:30px;
padding-left:5px; font-size:16px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; padding-top:5px; color:#6E6E6E
}
#login_box label{
font-size:18px;
color: #494949;
}
.row_white{border-bottom:1px dotted #646464; width:98%; margin:auto}
.row_white:hover{background-color:#F3F3F3}
.search_box{margin:5px; padding:5px; border:1px solid #146194; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; background:#eff9ff}
.video_search .input{border:1px solid #666}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Some files were not shown because too many files have changed in this diff Show more