Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Error While Video preview...
12-16-2013, 10:12 PM,
Post: #1
Getting Error While Video preview...
pls solve mai problem PHP Warning: Cannot modify header information - headers already sent by (output started at ..../plugins/video_plugin.php:67) in ...../icon.php on line 20
Reply
[-] The following 1 user Likes deep88's post:
  • demonhellions
12-16-2013, 11:53 PM,
Post: #2
RE: Getting Error While Video preview...
Can you post video_plugin.php, icon.php so can we look at the problem?
Reply
[-] The following 1 user Likes aslan's post:
  • demonhellions
12-17-2013, 06:10 AM, (This post was last modified: 12-17-2013, 06:16 AM by deep88.)
Post: #3
RE: Getting Error While Video preview...
here is problem in icon.php,, it tries to send preview for other file extensions even 3gp,mp4..pls make it send preview for only .jar and .apk files



<?php
include "inc/init.php";
include "lib/pclzip.lib.php";

$plugins->run_hook("icon_top");

$file = substr(base64_decode($_GET["s"]),1);
$q = array("icon.png","ico.png","i.png","logo.png","icono.png","Icon.png","Ico.png","I.png","Icono.png","ICON.png","ICO.png","I.png","ICONO.png","ICON.PNG","ICO.PNG","I.PNG","ICONO.PNG","icons/icon.png","icons/ico.png","icons/i.png","icons/icono.png","drawable/icon.png","I","i1.png","AppIcon01.png");
$zip = new PclZip($file);
$ar = $zip->extract(PCLZIP_OPT_BY_NAME,$q,PCLZIP_OPT_EXTRACT_IN_OUTPUT);

$plugins->run_hook("icon");

if(!empty($ar)) {

header("Content-type: image/png");

}else {
$cz=file_get_contents(MAI_TPL."style/png/jar.png");
header("Content-type: image/png");
echo $cz;
}

$plugins->run_hook("icon_end");

here is video plugin<?php
/**
* Video preview Plugin - This will allow preview on video files
* author: ionutvmi
* 6 Oct 2012
*/

$plugins->add_hook("icon_top","video_get");
$plugins->add_hook("index_files","video_preview");
$plugins->add_hook("file","video_preview2");

function video_info(){
return array(
"name" => "Video Plugin",
"author" => "ionutvmi",
"author_site" => "http://master-land.net",
"description" => "This will allow preview on video files(requires ffmpeg installed)",
);
}


function video_preview(){
global $icon,$ext,$d;
if(in_array($ext->extension,array("3gp","mp4","avi","wmv")))
$icon = "/icon.php?s=".base64_encode($d->path);

}

function video_preview2($value){
global $ext,$icon,$show_icon,$file;
if(in_array($ext->extension,array("3gp","mp4","avi","wmv"))){
$new_icon = "/icon.php?s=".base64_encode($file->path);
$show_icon = str_replace($icon,$new_icon,$show_icon);
}


return $value;
}


function video_get(){
global $ext;
$file = MAI_ROOT.substr(base64_decode($_GET["s"]),1);
$info = (object)pathinfo($file);
if(!in_array($info->extension,array("3gp","mp4","avi","wmv")))
return true;

if(!extension_loaded('ffmpeg')){
$cz=file_get_contents(MAI_TPL."style/png/3gp.png");
header("Content-type: image/png");
echo $cz;
}


//video preview
$media = new ffmpeg_movie($file);
$k_frame=intval($media->getFrameCount());
$w=$media->GetFrameWidth();
$h=$media->GetFrameHeight();


$frame = $media->getFrame(10);
if ($frame) {
$gd1 = $frame->toGDImage();
$gd2 = imagecreatetruecolor(100,100);
imagecopyresampled($gd2, $gd1, 0,0,0,0, 100, 100, $w, $h);
if($gd2){
header('Content-Type: image/jpeg');
imagejpeg($gd2);
imagedestroy($gd1);
imagedestroy($gd2);
}
}
}
?>
Reply
[-] The following 1 user Likes deep88's post:
  • demonhellions
12-20-2013, 05:20 PM,
Post: #4
RE: Getting Error While Video preview...
This is not a problem, of course its going to show for videos because its a video_plugin lol its not gona preview apk etc when its designed for previewing video.
Reply
[-] The following 1 user Likes craigibhoy's post:
  • demonhellions
12-20-2013, 06:06 PM,
Post: #5
RE: Getting Error While Video preview...
bt why it showing error in error logs...
Reply
[-] The following 1 user Likes deep88's post:
  • demonhellions
03-07-2019, 08:21 PM,
Post: #6
RE: Getting Error While Video preview...
In the east of Ma Township Street in Runan County, there is a beautiful two-storey facade building. Seeing cheap christian louboutin shoes adidas nmd adidas yeezy this beautiful small building, red bottom heels many louboutin shoes people naturally think that jordans on sale the owner of the house should be a "style", and everyone familiar with the situation knows that the owner christian louboutin sale of this house is Zhao Zihua, a jordan 11 shoemaker in Ma Township Street. Zhao Zihua is in his 40s, and adidas originals he still doesn't know where he is from. He red bottom shoes only knows that when he was a child, he came from the north and wandered to Ma Xiang, where he settled down. When I first arrived at Ma Xiang, there was adidas yeezy nothing from China. The broken linoleum and plastic jordans for sale cloth I picked up were <!--NEWSZW_HZH_BEGIN--> <!--NEWSZW_HZH_END--> His home was built into a shed, and all of them were a christian louboutin outlet worn-out shoe repair machine. Since cheap jordans China, there is not much to say, but the shoes are well repaired and helpful. Everyone who has something cheap christian louboutin to do at adidas stan smith ordinary times, as long as he says it, he will go to adidas outlet help. Because of his good management, christian louboutin shoes honesty, enthusiasm, and fair fees, there are more customers before his stall. The shoes repaired by him red bottom shoes are comfortable and wearable. Although they are not as beautiful jordans on sale christian louboutin shoes and handsome as christian louboutin sale the newly bought shoes, they are economical and affordable. Therefore, the elderly and young people nearby are christian louboutin outlet adidas originals willing to look for him to christian louboutin shoes repair their shoes. louboutin shoes A pair of scarred, cocooned adidas nmd hands, recording the rings christian louboutin sale of life since China. Inadvertently, since China has repaired cheap christian louboutin shoes for adidas sneakers more than 20 years, her daughter has gone to primary red bottom shoes school. In 2001, he cheap christian louboutin shoes took christian louboutin shoes out 50,000 yuan cheap christian louboutin jordan 11 of his savings and built two floors of doors in the street. His home has changed from a temporary cheap jordan shoes shack to a two-storey building. adidas outlet But he's still in the shoe repair business. Has anyone ever asked Huayou if he wanted red bottom shoes to do anything else? He said, "I don't have any special skills and skills. Besides, people always wear shoes. What red bottom heels kind of work needs people to do. Whatever you do, as long as you earn money cheap christian louboutin by louboutin shoes working, you adidas sneakers will feel at ease." Since Hua's greatest wish is jordans for sale to provide his cheap jordan shoes daughter louboutin shoes with a good education. He red bottom heels said, "I cheap jordans have to go to Ma Xiang to get the help of many people. My jordan 5 greatest wish is red bottom heels to provide my cheap christian louboutin shoes daughter with a christian louboutin outlet college education, to live jordan 5 a better life in adidas superstar the future and to help more people." During the conversation, Zihua's face showed a happy smile. 4 Xiao christian louboutin outlet Leiniu cheap christian louboutin shoes Zhihua christian louboutin sale
Reply
03-08-2019, 07:42 PM,
Post: #7
RE: Getting Error While Video preview...
Open-toed fishbill jordan 5 shoes are undoubtedly one of red bottom shoes cheap jordans the hottest jordans on sale shoes this year, cheap jordan shoes jordan 5 which is another revival of the retro-nostalgia. Fish-billed cheap christian louboutin shoes red bottom shoes are actually open-toed high-heeled cheap jordan shoes shoes that cheap christian louboutin shoes were popular cheap christian louboutin shoes in the 1950s. cheap jordans The biggest feature red bottom heels is that the cheap christian louboutin shoes toes are "invisible". The whole christian louboutin shoes pair of shoes reveals two christian louboutin sale toes christian louboutin sale and hides three toes. They are both sexy and elegant. They adidas nmd are especially suitable for christian louboutin outlet women with a little wide forefoot. 1. Fish-mouth shoes are more stylish and retro. They can be red bottom heels matched with dresses or formal christian louboutin outlet dresses, knee skirts, pleated skirts, A-shaped cheap christian louboutin shoes jordans for sale skirts, etc. which are suitable christian louboutin sale for fashionable professional women. cheap christian louboutin You think that the slippery jordans for sale open-toed sandals in the office are somewhat ungraceful. Fish-mouth shoes, jordan 11 which are always suitable for formal cheap christian louboutin casual wear, are adidas originals adidas yeezy of christian louboutin shoes great use. 2. Fish-billed christian louboutin outlet shoes can also be matched with jeans, christian louboutin sale if matched with flanged jeans red bottom shoes or adidas sneakers ultra-short christian louboutin shoes hot jordans on sale pants, you can wear adidas outlet a hot girl christian louboutin shoes red bottom heels feeling. 3. When louboutin shoes cheap christian louboutin jordan 11 wearing open-toed shoes, if possible, it's better not to wear silk christian louboutin outlet stockings, red bottom heels but to louboutin shoes wear red bottom shoes solid colors. louboutin shoes 4. when you wear fish mouth shoes, you must pay attention to one louboutin shoes thing, that is, keep your feet and toenails in good condition, and you should apply adidas superstar nail polish.
Reply
03-13-2019, 07:59 PM,
Post: #8
RE: Getting Error While Video preview...
Shoe Net Dec. 10, the weather is getting nike outlet store colder and colder recently. If christian louboutin outlet you are christian louboutin outlet worried about what clothes to nike roshe run wear louboutin shoes nike roshe run when you go out every morning, let's pay attention to louboutin shoes the fashionable clothes of air max fashionable people nike factory store in early winter. All kinds red bottom heels of air max beautiful christian louboutin sale matching, thermal nike factory outlet insulation jordans for sale christian louboutin sale is fashionable, can make you easily wear a different christian louboutin sale cheap christian louboutin shoes fashion nike air max sense. Overcoats, adidas superstar Mustang, jackets and cheap christian louboutin other nike roshe run outfits adidas yeezy can brighten nike store the mood of nike factory store the christian louboutin shoes whole winter! Basic double-breasted overcoat, strong thickness, nike factory store very warm, with high-collar cheap jordan shoes knitted shirts, slim pants and leopard-print christian louboutin shoes single shoes, showing a cheap christian louboutin leisure nike store fashion. Knitted adidas superstar jacket + shorts, plush jacket, locomotive cheap jordan shoes typography design, appear concise and generous, nike shoes nike shoes in cheap christian louboutin shoes stepping on nike factory outlet knee boots, wear handsome and cruel feeling. Leisure street style nike air max pilot jacket, short and medium length, comfortable to wear, adidas outlet collar, cuffs, pendulum jordan 11 have wide red bottom shoes edge treatment, with warmth, with T-shirt and plaid half-length skirt, mix nike store multiple charm. The casual and christian louboutin shoes fashionable jacket, using the knitting method, jordans for sale shows a high-end lovely style, concise nike store nike outlet design and striped T-shirt, body-building jeans, nike air max tie the belt, highlight the waist, but also adidas sneakers show the leisure feminine flavor. The Plaid overcoat with charming color, pocket design jordans on sale on red bottom heels both christian louboutin shoes sides, louboutin shoes leisure fashion, collarless red bottom heels design with nike outlet store high-collar knitted shirt, slim trousers and high heels, create a sweet girl's dress. (Cooperative nike shoes Media: air max Annie Women's Shoes Lomangie Women's Shoes)
Reply
03-19-2019, 11:49 PM,
Post: #9
RE: Getting Error While Video preview...
At the beginning of the end of the cheap jordan shoes year, festival dinners red bottom heels and cheap christian louboutin shoes company annual meetings red bottom shoes come christian louboutin outlet one after another. Leather suit, nike outlet under armour outlet as a new style nike outlet of three-piece louboutin shoes suit, can cope christian louboutin outlet with all adidas originals kinds of red bottom shoes social occasions and christian louboutin shoes warm adidas sneakers up in winter. Next, jordan 11 look at how to match three louboutin shoes sets of leather suits to highlight your new look and tell you how cheap jordans to maintain these precious leather products. Only red bottom heels reliable and precise sewing technology can red bottom heels cheap christian louboutin present a neat geometric diamond shape on leather, and louboutin shoes the nike air max upright style is in good agreement with the rigorous business nike factory store image. air max Choose the highlights: The air max vest can be christian louboutin sale a under armour stephen curry link between the preceding and the following in the three-piece air max suit. The fabric cheap jordan shoes or rough cotton textile vest nike shoes has abundant fibre texture, which can play nike store a complementary adidas superstar role with adidas superstar the leather with air max rich christian louboutin outlet texture. under armour Seemingly simple style but full of "mystery". First of all, we should jordan 5 pay attention cheap christian louboutin to jordans for sale the elegant red bottom shoes round collar, as well as the waistline cheap christian louboutin shoes nike factory outlet with good self-cultivation effect. nike air max Coverless pockets are specially designed for the christian louboutin outlet implementation of simple design. nike shoes Choose nike store adidas yeezy the highlights: When night falls, whether it's for adidas sneakers dinner or for a christian louboutin sale drink in the lounge, it's necessary to have a nike air max velvet christian louboutin sheet that provides a sense of quality, and of course, it's also cheap christian louboutin shoes because of its texture that provides a nike factory outlet sense of jordan 11 balance red bottom shoes with leather. (Cooperative Media: Clothing Matching)
Reply
03-27-2019, 04:48 AM,
Post: #10
RE: Getting Error While Video preview...
The classic red adidas outlet and khaki colours, as well as the loose bat format design, jordans on sale jordans for sale are the biggest nike factory store highlights red bottom shoes christian louboutin sale of this match. Loose bat design, simple and not simple. This dress gives adidas originals a fresh and nike air max comfortable feeling both in color christian louboutin outlet and fabric. Medium and long dark grey sweaters are very stylish and show nike outlet a taller figure. Bat nike shoes design also adds highlights to the dress. Loose hems make adidas stan smith the sweater elegant and nike outlet elegant. Shawl christian louboutin sweater shows nike store elegant temperament. Unique atmospheric style design, showing a graceful figure. Elegant christian louboutin outlet red bottom heels gray has a very elegant jordan 5 temperament. Using high-quality fabrics, high-grade christian louboutin shoes and delicate, nike store while the body is very inclusive. This loose nike outlet store nike outlet sanitary garment is exquisite in detail, Korean style is obvious, elegant under armour shoes and comfortable, details highlight extraordinary, personality while allowing christian louboutin shoes you to lead the trend. White knitted cardigan nike roshe run is very nike air max suitable for nike factory outlet spring. V-collar design, adidas yeezy fashionable atmosphere without losing air max elegance; nike shoes nike outlet store large cheap jordan shoes pockets on nike factory store both sides, air max very characteristic, overall loose, comfortable to wear, generous and decent, is a christian louboutin outlet very good leisure christian louboutin sale knitting. This sweater's super-large round collar design cheap jordan shoes highlights the beautiful curve of neck; red-grey collision louboutin shoes stripe design makes MM's Street turnaround rate skyrocketing! Camel color is nike outlet online influenced by the trend of romantic feminization, this season will adidas stan smith be matched cheap christian louboutin shoes with wheat color, personalized collar, this fashionable jordans on sale two sets of nike roshe run color gentle white tie, handsome street to the end! Fashion cloak sweater adidas nmd cardigan nike factory outlet popular in Korea, irregular nike roshe run nike shoes geometric christian louboutin sale patterns and clothing pendulum, Fashionable red bottom heels cheap christian louboutin tassel decoration, mature and elegant nike roshe run style alone, deduces the charm of urban women, air max fully jordans for sale demonstrates modern nike air max women's cheap jordans yearning for under armour outlet quality life and free and easy fashion nike factory store needs. christian louboutin sale red bottom heels
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)