FIXED : Plugin SystemA

IGNORE : Depreciated Functions
Cleaned : Plugins
This commit is contained in:
Arslan Hassan 2009-09-14 02:57:19 +00:00
parent 33cfaca1de
commit 107deca82f
21 changed files with 252 additions and 237 deletions

View file

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

View file

@ -121,7 +121,7 @@
cat_div = "#thumbs_{$category[list].category_id}";
{literal}
$(function() { {/literal}
$("#thumbs_{$category[list].category_id}").tooltip({literal}{showURL: false});
$("#thumbs_{$category[list].category_id}").tooltip({literal}{showURL: false,delay: 0});
});
{/literal}
</script>

View file

@ -106,7 +106,7 @@
<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="processing" {if $data.status=='Processing'} selected {/if}>Processing</option>
<option value="Failed" {if $data.status=='Failed'} selected {/if}>Failed</option>
</select>
</td>

View file

@ -90,8 +90,8 @@
<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>
<a href="view_conversion_log.php?file_name={$videos[list].file_name}">File conversion details</a> |
<a href="?delete_video={$videos[list].videoid}">Delete</a>
</div>
</td>
<td width="50" valign="top" class="video_opt_td">&nbsp;</td>

View file

@ -58,12 +58,6 @@ if($myquery->VideoExists($video)){
//Assing Template
Assign('msg',@$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('upload_thumbs.html');
Template('footer.html');
template_files('upload_thumbs.html');
display_it();
?>

View file

@ -64,12 +64,6 @@ switch($mode)
}
Assign('msg', @$msg);
Template('header.html');
Template('leftmenu.html');
Template('message.html');
Template('user_levels.html');
Template('footer.html');
template_files('user_levels.html');
display_it();
?>

View file

@ -14,34 +14,26 @@ $pages->page_redir();
//Feature / UnFeature Video
if(isset($_GET['make_feature'])){
$video = mysql_clean($_GET['make_feature']);
if($myquery->VideoExists($video)){
$msg[] = $myquery->MakeFeaturedVideo($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
$cbvid->action('feature',$video);
}
if(isset($_GET['make_unfeature'])){
$video = mysql_clean($_GET['make_unfeature']);
if($myquery->VideoExists($video)){
$msg[] = $myquery->MakeUnFeaturedVideo($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
$cbvid->action('unfeature',$video);
}
//Using Multple Action
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$myquery->MakeFeaturedVideo($_POST['check_video'][$id]);
}
$msg = "Selected Videos Have Been Set As Featured";
}
if(isset($_POST['make_unfeatured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$myquery->MakeUnFeaturedVideo($_POST['check_video'][$id]);
}
$msg = "Selected Videos Have Been Removed From The Featured Video List";
}
if(isset($_POST['make_featured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$cbvid->action('feature',$_POST['check_video'][$id]);
}
e("Selected videos have been set as featured",m);
}
if(isset($_POST['make_unfeatured_selected'])){
for($id=0;$id<=RESULTS;$id++){
$cbvid->action('unfeature',$_POST['check_video'][$id]);
}
e("Selected videos have been removed from featured list",m);
}
@ -59,55 +51,44 @@ if(isset($_GET['editor_pick'])){
if(isset($_GET['activate'])){
$video = mysql_clean($_GET['activate']);
if($myquery->VideoExists($video)){
$msg[] = $myquery->ActivateVideo($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
$cbvid->action('activate',$video);
}
if(isset($_GET['deactivate'])){
$video = mysql_clean($_GET['deactivate']);
if($myquery->DeActivateVideo($video)){
$msg[] = $myquery->DeActivateVideo($video);
}else{
$msg[] = $LANG['class_vdo_del_err'];
}
$cbvid->action('deactivate',$video);
}
//Using Multple Action
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$myquery->ActivateVideo($_POST['check_video'][$id]);
}
$msg = "Selected Videos Have Been Activated";
}
if(isset($_POST['deactivate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$myquery->DeActivateVideo($_POST['check_video'][$id]);
}
$msg = "Selected Videos Have Been Dectivated";
}
//Using Multple Action
if(isset($_POST['activate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$cbvid->action('activate',$_POST['check_video'][$id]);
}
e("Selected Videos Have Been Activated");
}
if(isset($_POST['deactivate_selected'])){
for($id=0;$id<=RESULTS;$id++){
$cbvid->action('deactivate',$_POST['check_video'][$id]);
}
e("Selected Videos Have Been Dectivated");
}
//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'];
}
}
//Deleting Multiple Videos
if(isset($_POST['delete_selected'])){
for($id=0;$id<=RESULTS;$id++){
if($myquery->VideoExists($_POST['check_video'][$id])){
$msg[] = $myquery->DeleteVideo($_POST['check_video'][$id]);
}
}
$msg = $LANG['vdo_del_selected'];
//Delete Video
if(isset($_GET['delete_video'])){
$video = mysql_clean($_GET['delete_video']);
$cbvideo->delete_video($video);
}
//Deleting Multiple Videos
if(isset($_POST['delete_selected']))
{
for($id=0;$id<=RESULTS;$id++)
{
$cbvideo->delete_video($_POST['check_video'][$id]);
}
$eh->flush();
e(lang("vdo_multi_del_erro"),m);
}
//Jump To The page
if(isset($_POST['display_page'])){

View file

@ -46,7 +46,6 @@ class ClipBucket
'checkall.js' => 'global',
'redir.js' => 'global',
'functions.js' => 'global',
'jquery_plugs/date_picker.js' => 'global',
));
//This is used to create Admin Menu

View file

@ -67,8 +67,7 @@ class AdsManager
global $LANG;
$placement = mysql_clean($_POST['type']);
$name = mysql_clean($_POST['name']);
//Replacing Single Quotes With Double Codes
$code = addslashes($_POST['code']);
$code = htmlspecialchars($_POST['code']);
$category = mysql_clean(@$_POST['category']);
if(empty($name)){
$msg = e($LANG['ad_name_error']);

View file

@ -6,8 +6,8 @@
* @LINK : http://arslan.labguru.com/ - http://clip-bucket.com/
* @LICENSE : CBLA
* @DATE : Feb 21 2009
* @Version : 1.0
* @CB Version : 1.7.2
* @Version : 1.2
* @CB Version : v2
* @Class : formObj
*/

View file

@ -75,23 +75,6 @@ class myquery {
return $data;
}
function Get_Advertisments(){
$query = mysql_query("SELECT * FROM ads_data
WHERE ad_id >= FLOOR( RAND( ) * ( SELECT MAX( ad_id ) FROM ads_data ) ) AND ad_status='1'
ORDER BY ad_id ASC
");
while($row = mysql_fetch_array($query)){
$id = $row['ad_id'];
$imp = $row['ad_impressions']+1;
$name = $row['ad_placement'];
$data[$name] = stripslashes($row['ad_code']);
//Update IMpressions
mysql_query("UPDATE ads_data SET ad_impressions ='".$imp."' WHERE ad_id='".$id."' ");
}
return $data;
}
function check_user($username){
$query = mysql_query("SELECT * FROM users WHERE username ='".$username."'");
if(mysql_num_rows($query) > 0){
@ -111,95 +94,6 @@ class myquery {
}
function fetch($query){
$fetch = mysql_fetch_array($query);
return $fetch;
}
//This Function is used to Add Categories
function AddCategory(){
global $LANG;
$title = mysql_clean($_POST['title']);
$description = mysql_clean($_POST['description']);
$file = $_FILES['category_thumb']['name'];
$ext = substr($file, strrpos($file, '.') + 1);
$thumb = 'no_thumb.jpg';
if(!empty($file)){
$image = new ResizeImage();
if($image->ValidateImage($_FILES['category_thumb']['tmp_name'],$ext)){
$newfilename = RandomString(10).'.'.$ext;
$category_thumb = '../images/category_thumbs/'.$newfilename;
copy($_FILES['category_thumb']['tmp_name'],$category_thumb);
$image->CreateThumb($category_thumb,$category_thumb,120,$ext);
$thumb = $newfilename;
}else{
$msg[] = e($LANG['class_error_occured']);
$add = false;
}
}
if(empty($msg)){
mysql_query("INSERT INTO category(category_name,category_description,category_thumb,date_added)
VALUES('".$title."','".$description."','".$thumb."',now())");
$add = true;
}
return $add;
}
//This Function Is Used to Check Category Exits or Not
/*function CategoryExists($category){
$query = mysql_query("SELECT categoryid FROM category WHERE categoryid ='".$category."'");
if(mysql_num_rows($query)>0){
return true;
}else{
return false;
}
}
*/
//This Function Is Used to Update Category
function UpdateCategory($category){
global $LANG;
$title = mysql_clean($_POST['title']);
$description = mysql_clean($_POST['description']);
$file = $_FILES['category_thumb']['name'];
$ext = substr($file, strrpos($file, '.') + 1);
$thumb = $_POST['thumb'];
if(!empty($file)){
$image = new ResizeImage();
if($image->ValidateImage($_FILES['category_thumb']['tmp_name'],$ext)){
if($thumb != 'no_thumb.jpg'){
unlink('../images/category_thumbs/'.$thumb);
}
$newfilename = RandomString(10).'.'.$ext;
$category_thumb = '../images/category_thumbs/'.$newfilename;
copy($_FILES['category_thumb']['tmp_name'],$category_thumb);
$image->CreateThumb($category_thumb,$category_thumb,120,$ext);
$thumb = $newfilename;
}
}
if(empty($msg)){
mysql_query("UPDATE category SET
category_name ='".$title."',
category_description ='".$description."',
category_thumb ='".$thumb."'
WHERE categoryid = '".$category."'");
$update = true;
}
return $update;
}
//Function Delete Category
function DeleteCategory($category){
global $LANG;
mysql_query("DELETE FROM category WHERE categoryid='".$category."'");
$msg=e($LANG['class_cat_del_msg'],m);
return $msg;
}
//Function Used to Delete Flv File
function DeleteFlv($flv){

View file

@ -122,7 +122,7 @@ class signup {
'id' => 'gender',
'value' => array('Male'=>$LANG['male'],'Female'=>$LANG['female']),
'sep'=> '&nbsp;',
'checked'=>'female',
'checked'=>'Male',
'db_field'=>'sex',
'required'=>'yes',
),

View file

@ -329,11 +329,11 @@ class userquery {
* Function used to check user is admin or not
* @param BOOLEAN if true, after checcking user will be redirected to login page if needed
*/
function admin_login_check($is_login_page=false)
function admin_login_check($check_only=false)
{
if(!$this->login_check('admin_access'))
{
if($is_login_page==FALSE)
if($check_only==FALSE)
redirect_to('login.php');
return false;
}else{

View file

@ -1,5 +1,4 @@
<?php
/**
* Author : Arslan Hassan
* Script : ClipBucket v2
@ -192,6 +191,13 @@ class CBvideo extends CBCategory
$query .= ',';
}*/
if(has_access('admin_access'))
{
$query_field[] = 'status';
$query_field[] = 'duration';
$query_val[] = $array['status'];
$query_val[] = $array['duration'];
}
if(!userid())
{
@ -206,7 +212,99 @@ class CBvideo extends CBCategory
}
}
/**
* Function used to delete a video
*/
function delete_video($vid)
{
global $db;
if($this->video_exists($vid))
{
$vdetails = $this->get_video($vid);
//list of functions to perform while deleting a video
$del_vid_funcs = $this->video_delete_functions;
if(is_array($del_vid_funcs))
{
foreach($del_vid_funcs as $func)
{
if(function_exists($func))
{
$func($vdetails);
}
}
}
//Finally Removing Database entry of video
$db->execute("DELETE FROM video WHERE videoid='$vid'");
e(lang("class_vdo_del_msg"),m);
}else{
e(lang("class_vdo_del_err"));
}
}
/**
* Function used to remove video thumbs
*/
function remove_thumbs($vdetails)
{
//First lets get list of all thumbs
$thumbs = get_thumb($vdetails,1,true,false,false);
if(!is_default_thumb($thumbs))
{
if(is_array($thumbs))
{
foreach($thumbs as $thumb)
{
$file = THUMBS_DIR.'/'.$thumb;
if(file_exists($file) && is_file($file))
unlink($file);
}
}else{
$file = THUMBS_DIR.'/'.$thumbs;
if(file_exists($file) && is_file($file))
unlink($file);
}
e(lang("vid_thumb_removed_msg"),m);
}
}
/**
* Function used to remove video log
*/
function remove_log($vdetails)
{
global $db;
$src = $vdetails['videoid'];
$db->execute("DELETE FROM video_file WHERE src_name = '$src'");
e(lang("vid_log_delete_msg"),m);
}
/**
* Function used to remove video files
*/
function remove_files($vdetails)
{
//Getting list of files
$files = get_video_file($vdetails,false,false,true);
if(is_array($files))
{
foreach($files as $file)
{
if(file_exists(VIDEOS_DIR.'/'.$file) && is_file(VIDEOS_DIR.'/'.$file))
unlink(VIDEOS_DIR.'/'.$file);
}
}else{
if(file_exists(VIDEOS_DIR.'/'.$files) && is_file(VIDEOS_DIR.'/'.$files))
unlink(VIDEOS_DIR.'/'.$files);
}
e(lang("vid_files_removed_msg"),m);
}
}
?>

View file

@ -102,7 +102,7 @@ if(DEBUG_LEVEL == 1)
}
elseif(DEBUG_LEVEL == 2)
{
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL ^ E_NOTICE ^E_DEPRECATED);
ini_set('display_errors', '1');
}
else
@ -111,7 +111,7 @@ else
ini_set('display_errors', '0');
}
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL ^ E_NOTICE ^E_DEPRECATED);
ini_set('display_errors', '1');
//Website Details
@ -415,4 +415,10 @@ $Smarty->register_modifier('request_form_val','request_form_val');
$Smarty->register_modifier('get_thumb_num','get_thumb_num');
/*
*
*/
register_action_remove_video('remove_video_thumbs');
register_action_remove_video('remove_video_log');
register_action_remove_video('remove_video_files');
?>

View file

@ -502,7 +502,7 @@ function SetTime($sec, $padHours = true) {
* @param ARRAY video_details, or videoid will also work
*/
function get_thumb($vdetails,$num='default',$multi=false,$count=false){
function get_thumb($vdetails,$num='default',$multi=false,$count=false,$return_full_path=true){
global $db,$Cbucket,$myquery;
$num = $num ? $num : 'default';
#checking what kind of input we have
@ -569,7 +569,11 @@ function SetTime($sec, $padHours = true) {
{
$thumb_parts = explode('/',$thumb);
$thumb_file = $thumb_parts[count($thumb_parts)-1];
if($return_full_path)
$thumbs[] = THUMBS_URL.'/'.$thumb_file;
else
$thumbs[] = $thumb_file;
}
if(count($thumbs)==0)
@ -615,6 +619,17 @@ function SetTime($sec, $padHours = true) {
return BASEURL.'/files/thumbs/processing.jpg';
}
/**
* Function used to check weather give thumb is deafult or not
*/
function is_default_thumb($i)
{
if(getname($i)=='processing.jpg')
return true;
else
return false;
}
//TEST EXCEC FUNCTION
function test_exec( $cmd )
@ -876,7 +891,7 @@ function SetTime($sec, $padHours = true) {
}
//Complete Query
$query = "UPDATE $tbl SET $fields_query WHERE $cond $ep";
//if(!mysql_query($query)) die(mysql_error());
//if(!mysql_query($query)) die($query.'<br>'.mysql_error());
$db->Execute($query);
if(mysql_error()) die ($db->db_query.'<br>'.mysql_error());
return $query;
@ -1060,6 +1075,15 @@ function SetTime($sec, $padHours = true) {
}
function username(){return user_name();}
/**
* Function used to check weather user access or not
*/
function has_access($acces,$check_only=FALSE)
{
global $userquery;
return $userquery->login_check($access,$check_only);
}
/**
* Function used to return mysql time
* @author : Fwhite
@ -1857,4 +1881,33 @@ function SetTime($sec, $padHours = true) {
return $LANG[$var];
}
/**
* function used to remove video thumbs
*/
function remove_video_thumbs($vdetails)
{
global $cbvid;
return $cbvid->remove_thumbs($vdetails);
}
/**
* function used to remove video log
*/
function remove_video_log($vdetails)
{
global $cbvid;
return $cbvid->remove_log($vdetails);
}
/**
* function used to remove video files
*/
function remove_video_files($vdetails)
{
global $cbvid;
return $cbvid->remove_files($vdetails);
}
?>

View file

@ -250,4 +250,14 @@
$link = $array['link'];
}
/**
* function use to register function that will be
* called while deleting a video
*/
function register_action_remove_video($func)
{
global $cbvid;
$cbvid->video_delete_functions[] = $func;
}
?>

View file

@ -1,15 +1,15 @@
/*
* jQuery Tooltip plugin 1.3
*
* http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
* http://docs.jquery.com/Plugins/Tooltip
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id$
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
/*
* jQuery Tooltip plugin 1.3
*
* http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
* http://docs.jquery.com/Plugins/Tooltip
*
* Copyright (c) 2006 - 2008 Jörn Zaefferer
*
* $Id$
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(8($){j e={},9,m,B,A=$.2u.2g&&/29\\s(5\\.5|6\\.)/.1M(1H.2t),M=12;$.k={w:12,1h:{Z:25,r:12,1d:19,X:"",G:15,E:15,16:"k"},2s:8(){$.k.w=!$.k.w}};$.N.1v({k:8(a){a=$.1v({},$.k.1h,a);1q(a);g 2.F(8(){$.1j(2,"k",a);2.11=e.3.n("1g");2.13=2.m;$(2).24("m");2.22=""}).21(1e).1U(q).1S(q)},H:A?8(){g 2.F(8(){j b=$(2).n(\'Y\');4(b.1J(/^o\\(["\']?(.*\\.1I)["\']?\\)$/i)){b=1F.$1;$(2).n({\'Y\':\'1D\',\'1B\':"2r:2q.2m.2l(2j=19, 2i=2h, 1p=\'"+b+"\')"}).F(8(){j a=$(2).n(\'1o\');4(a!=\'2f\'&&a!=\'1u\')$(2).n(\'1o\',\'1u\')})}})}:8(){g 2},1l:A?8(){g 2.F(8(){$(2).n({\'1B\':\'\',Y:\'\'})})}:8(){g 2},1x:8(){g 2.F(8(){$(2)[$(2).D()?"l":"q"]()})},o:8(){g 2.1k(\'28\')||2.1k(\'1p\')}});8 1q(a){4(e.3)g;e.3=$(\'<t 16="\'+a.16+\'"><10></10><t 1i="f"></t><t 1i="o"></t></t>\').27(K.f).q();4($.N.L)e.3.L();e.m=$(\'10\',e.3);e.f=$(\'t.f\',e.3);e.o=$(\'t.o\',e.3)}8 7(a){g $.1j(a,"k")}8 1f(a){4(7(2).Z)B=26(l,7(2).Z);p l();M=!!7(2).M;$(K.f).23(\'W\',u);u(a)}8 1e(){4($.k.w||2==9||(!2.13&&!7(2).U))g;9=2;m=2.13;4(7(2).U){e.m.q();j a=7(2).U.1Z(2);4(a.1Y||a.1V){e.f.1c().T(a)}p{e.f.D(a)}e.f.l()}p 4(7(2).18){j b=m.1T(7(2).18);e.m.D(b.1R()).l();e.f.1c();1Q(j i=0,R;(R=b[i]);i++){4(i>0)e.f.T("<1P/>");e.f.T(R)}e.f.1x()}p{e.m.D(m).l();e.f.q()}4(7(2).1d&&$(2).o())e.o.D($(2).o().1O(\'1N://\',\'\')).l();p e.o.q();e.3.P(7(2).X);4(7(2).H)e.3.H();1f.1L(2,1K)}8 l(){B=S;4((!A||!$.N.L)&&7(9).r){4(e.3.I(":17"))e.3.Q().l().O(7(9).r,9.11);p e.3.I(\':1a\')?e.3.O(7(9).r,9.11):e.3.1G(7(9).r)}p{e.3.l()}u()}8 u(c){4($.k.w)g;4(c&&c.1W.1X=="1E"){g}4(!M&&e.3.I(":1a")){$(K.f).1b(\'W\',u)}4(9==S){$(K.f).1b(\'W\',u);g}e.3.V("z-14").V("z-1A");j b=e.3[0].1z;j a=e.3[0].1y;4(c){b=c.2o+7(9).E;a=c.2n+7(9).G;j d=\'1w\';4(7(9).2k){d=$(C).1r()-b;b=\'1w\'}e.3.n({E:b,14:d,G:a})}j v=z(),h=e.3[0];4(v.x+v.1s<h.1z+h.1n){b-=h.1n+20+7(9).E;e.3.n({E:b+\'1C\'}).P("z-14")}4(v.y+v.1t<h.1y+h.1m){a-=h.1m+20+7(9).G;e.3.n({G:a+\'1C\'}).P("z-1A")}}8 z(){g{x:$(C).2e(),y:$(C).2d(),1s:$(C).1r(),1t:$(C).2p()}}8 q(a){4($.k.w)g;4(B)2c(B);9=S;j b=7(2);8 J(){e.3.V(b.X).q().n("1g","")}4((!A||!$.N.L)&&b.r){4(e.3.I(\':17\'))e.3.Q().O(b.r,0,J);p e.3.Q().2b(b.r,J)}p J();4(7(2).H)e.3.1l()}})(2a);',62,155,'||this|parent|if|||settings|function|current||||||body|return|||var|tooltip|show|title|css|url|else|hide|fade||div|update||blocked|||viewport|IE|tID|window|html|left|each|top|fixPNG|is|complete|document|bgiframe|track|fn|fadeTo|addClass|stop|part|null|append|bodyHandler|removeClass|mousemove|extraClass|backgroundImage|delay|h3|tOpacity|false|tooltipText|right||id|animated|showBody|true|visible|unbind|empty|showURL|save|handle|opacity|defaults|class|data|attr|unfixPNG|offsetHeight|offsetWidth|position|src|createHelper|width|cx|cy|relative|extend|auto|hideWhenEmpty|offsetTop|offsetLeft|bottom|filter|px|none|OPTION|RegExp|fadeIn|navigator|png|match|arguments|apply|test|http|replace|br|for|shift|click|split|mouseout|jquery|target|tagName|nodeType|call||mouseover|alt|bind|removeAttr|200|setTimeout|appendTo|href|MSIE|jQuery|fadeOut|clearTimeout|scrollTop|scrollLeft|absolute|msie|crop|sizingMethod|enabled|positionLeft|AlphaImageLoader|Microsoft|pageY|pageX|height|DXImageTransform|progid|block|userAgent|browser'.split('|'),0,{}))

View file

@ -14,5 +14,4 @@ register_action('date_picker','date_picker');
//Adding header
$file = PLUG_DIR.'/date_picker/header.html';
$Cbucket->add_header(array('uploadactive'=>$file ,'signupactive'=>$file));
?>

View file

@ -42,7 +42,7 @@ var imageurl = '{$imageurl}';
<!-- Including Headers -->
{foreach from=$Cbucket->header_files key=file item=type}
{foreach from=$Cbucket->header_files key=type item=file}
{if $curActive == $type || $type=='global' }
{include file="$file"}
{/if}

View file

@ -17,13 +17,6 @@ subtitle('videos');
$myquery->getVideoList(array('limit'=>'nolimit','featured'=>'yes','order'=>'date_added DESC'));
//Getting List Of Categories
$sql = "SELECT * FROM category ORDER BY category_name";
$data = $db->Execute($sql);
$total_data = $data->recordcount() + 0;
$category = $data->getrows();
Assign('category',$category);
//Listing Videos
$limit = VLISTPP;
Assign('limit',$limit);
@ -68,13 +61,11 @@ $myquery->getVideoList(array('limit'=>'nolimit','featured'=>'yes','order'=>'date
//$sql = "SELECT * FROM video WHERE $cat_query AND $query_param $orderby $query_limit";
//$sql_p = "SELECT * FROM video WHERE $cat_query AND $query_param $orderby";
$sql = $myquery->getVideoList(array(
'category'=>$cat_id,
'feature'=>$featured,
'order'=>$orderby,
'limit'=>$query_limit
),true,'query');
$sql_p = $myquery->getVideoList(array(
'category'=>$cat_id,
'feature'=>$featured,
'order'=>$orderby,
'limit'=>'nolimit'