49 $title =
"Edit Details for {$video->title}";
61 $form->hide(
"user_id",
"video_gallery_id");
62 $form->required(
"title",
"width",
"height");
63 $form->annotate(
"width",
"<em>Natural width of video in pixels</em>");
64 $form->annotate(
"height",
"<em>Natural height of video in pixels</em>");
65 $form->annotate(
"video_file",
$useHTML5 ?
"<em>Video File in MP4 format</em>" :
"<em>Video File in FLV format</em>");
66 $form->annotate(
"image_file",
"<em>First Frame in PNG or JPG format</em>");
72 $form->button(
"Play Video",
"videoLightbox(this, '$video_id'); return false;",
false,
true);
78 $form->hide(
"width",
"height",
"image_file");
81 $form->alias(
"image_id",
"First Frame Image");
91 $redirect =
"/admin/videos?video_gallery_id=$video_gallery_id";
96 $form->button(
"Download Video",
"/action/video/download?video_id=$video_id");
117 <div
id=
"tab_border" style=
"margin-right: -2px">
128 trace(
"uploadFLV() called for $field", 3);
132 trace(
"No upload record for $field", 3);
135 if ($_FILES[
$field][
"name"]==
"")
137 trace(
"Upload name is empty", 3);
146 trace(
"Upload Base: {$dir}", 3);
148 if (!file_exists(
$dir))
155 $ext = strtolower(substr(
$filename, -4));
157 trace(
"Video format: $ext", 3);
159 if ($ext !=
".flv" && $ext !=
".f4v" && $ext !=
".mp4")
165 trace (
"Uploading file to $target", 3);
203 trace(
"imageUploadHandler() called for $field", 3);
207 trace(
"No upload record for $field", 3);
210 if ($_FILES[
$field][
"name"]==
"")
212 trace(
"Upload name is empty", 3);
221 trace(
"Upload Base: {$dir}", 3);
224 $ext = strtolower(substr(
$filename, -4));
226 if ($ext !=
".png" && $ext !=
".jpg" && $ext !=
".svg")
234 trace (
"Uploading file to $target", 3);
FakoliException is the base exception class for all Fakoli errors.
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static getValue($component, $name)
Retrieve the value of the specified Setting.
static addTaxonomyFieldRenderers($form, $showSelectAll=true, $group=null, $limitTo=null)
static videoGalleryTabs($key)
$method
Pull out a simple reference to the request method.
if(!Settings::getValue("debug", "enable_trace_file_downloads")) $filename