Файл: adultscript-2.0.3-pro/files/admin/templates/default/video_config.tpl.php
Строк: 1886
<?php defined('_VALID') or die('Restricted Access!'); ?>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
<script type="text/javascript">
$(document).ready(function() {
$("select[name='video_format']").change(function() {
var format = $(this).val();
$("div[id^='video_format_']").hide();
$("#video_format_" + format).show();
});
$("input[name='queue']").change(function() {
if ($(this).val() == '1') {
$("#queue-container").show();
} else {
$("#queue-container").hide();
}
});
$("select[name='thumb_extr']").change(function() {
if ($(this).val() == 'imagick') {
$("#thumb-extr-container").show();
} else {
$("#thumb-extr-container").hide();
}
});
$("input[name='delete_enabled']").change(function() {
var delete_enabled = $(this).val();
if (delete_enabled == '0') {
$('#delete_container').hide();
} else {
$('#delete_container').show();
}
});
$("select[name='delete_method']").change(function() {
var delete_method = $(this).val();
if (delete_method == 'change') {
$('#delete_method_change').show();
} else {
$('#delete_method_change').hide();
}
});
$("select[name='streaming_method']").change(function() {
$("div[id^='streaming_container_']").hide();
$("#streaming_container_" + $(this).val()).show();
});
$("input[name='streaming_secure']").change(function() {
if ($(this).val() == '1') {
$("#streaming_secure_container").show();
} else {
$("#streaming_secure_container").hide();
}
});
$("select[name='flv_bitrate_method']").change(function() {
if ($(this).val() == 'fixed') {
$("#flv_bitrate_method_container_fixed").show();
} else {
$("#flv_bitrate_method_container_fixed").hide();
}
});
$("input[name='mp4_hd_convert']").change(function() {
if ($(this).val() == '1') {
$("#mp4_hd_container").show();
} else {
$("#mp4_hd_container").hide();
}
});
$("input[name='mp4_resize']").change(function() {
if ($(this).val() == '1') {
$("#mp4_resize_container").show();
} else {
$("#mp4_resize_container").hide();
}
});
$("input[name='amazon_s3']").change(function() {
if ($(this).val() == '1') {
$("#amazon_s3_container").show();
} else {
$("#amazon_s3_container").hide();
}
});
$("select[name='mobile_resize']").change(function() {
var size = $(this).val();
if (size == '0') {
$("#mobile_resize_container").hide();
} else {
$("#mobile_resize_container").show();
}
});
$("input[name='thumb_server']").change(function() {
if ($(this).val() == '1') {
$("#thumb-server-container").show();
} else {
$("#thumb-server-container").hide();
}
});
$("input[name='playlists']").change(function() {
if ($(this).val() == '1') {
$("#playlists-container").show();
} else {
$("#playlists-container").hide();
}
});
});
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('video_menu'); ?>
<div class="content clearfix">
<div class="clearfix tabbar barProds">
<ul class="tabs">
<li class="tab8"><a href="#" onclick="showOnly('tab8','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Advanced</a></li>
<li class="tab7"><a href="#" onclick="showOnly('tab7','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Playlists</a></li>
<li class="tab6"><a href="#" onclick="showOnly('tab6','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Embed</a></li>
<li class="tab5"><a href="#" onclick="showOnly('tab5','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Thumbs</a></li>
<li class="tab4"><a href="#" onclick="showOnly('tab4','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Conversion</a></li>
<li class="tab3"><a href="#" onclick="showOnly('tab3','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Upload</a></li>
<li class="tab2"><a href="#" onclick="showOnly('tab2','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />View</a></li>
<li class="tab1"><a href="#" onclick="showOnly('tab1','barProds')" class="selected"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Browse</a></li>
</ul>
<div class="tabContent clearfix">
<form id="video-config-form" method="post" enctype="multipart/form-data" action="<?php echo ADMIN_URL; ?>/index.php?q=video/config">
<div class="tab1">
<fieldset>
<legend>Browse Settings</legend>
<div class="required">
<label for="browse_category">Show Categories</label>
<input name="browse_category" type="radio" id="browse_category" class="radio" value="1"<?php if ($this->vcfg['browse_category'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="browse_category" type="radio" class="radio" value="0"<?php if ($this->vcfg['browse_category'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="browse_order">Show Orders</label>
<input name="browse_order" type="radio" id="browse_order" class="radio" value="1"<?php if ($this->vcfg['browse_order'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="browse_order" type="radio" class="radio" value="0"<?php if ($this->vcfg['browse_order'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="browse_timeline">Show Timeline</label>
<input name="browse_timeline" type="radio" id="browse_timeline" class="radio" value="1"<?php if ($this->vcfg['browse_timeline'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="browse_timeline" type="radio" class="radio" value="0"<?php if ($this->vcfg['browse_timeline'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="browse_per_page">Videos per Page</label>
<input name="browse_per_page" type="text" id="browse_per_page" class="tiny" value="<?php echo $this->vcfg['browse_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Search Settings</legend>
<div class="required">
<label for="search_type">Search Type</label>
<select name="search_type" id="search_type">
<option value="simple"<?php if ($this->vcfg['search_type'] == 'simple'): echo ' selected="selected"'; endif; ?>>Simple</option>
<option value="complex"<?php if ($this->vcfg['search_type'] == 'complex'): echo ' selected="selected"'; endif; ?>>Complex (Sphinx)</option>
</select>
</div>
<div class="required">
<label for="search_per_page">Search per page</label>
<input name="search_per_page" type="text" id="search_per_page" class="tiny" value="<?php echo $this->vcfg['search_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>RSS Settings</legend>
<div class="required">
<label for="rss">Feeds</label>
<select name="rss" id="rss">
<option value="1">Enabled</option>
<option value="0">Disabled</option>
</select>
</div>
<div class="required">
<label for="rss_type">RSS Type</label>
<select name="rss_type" id="rss_type">
<option value="simple"<?php if ($this->vcfg['rss_type'] == 'simple'): echo ' selected="selected"'; endif; ?>>Simple</option>
<option value="complex"<?php if ($this->vcfg['rss_type'] == 'complex'): echo ' selected="selected"'; endif; ?>>Complex</option>
</select>
</div>
<div class="required">
<label for="rss_per_page">Feed Length</label>
<input name="rss_per_page" type="text" id="rss_per_page" class="tiny" value="<?php echo $this->vcfg['rss_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Tags Settings</legend>
<div class="required">
<label for="tag_per_page">Tag per page:</label>
<input name="tag_per_page" type="text" id="tag_per_page" class="tiny" value="<?php echo $this->vcfg['tag_per_page']; ?>" />
</div>
</fieldset>
</div>
<div class="tab2" style="display: none">
<fieldset>
<legend>View Settings</legend>
<div class="required">
<label for="view_access">View Access</label>
<select name="view_access" id="view_access">
<option value="all"<?php if ($this->vcfg['view_access'] == 'all'): echo ' selected="selected"'; endif; ?>>All</option>
<?php foreach ($this->groups as $group): ?>
<option value="<?php echo e($group['name']); ?>"<?php if ($this->vcfg['view_access'] == $group['name']): echo ' selected="selected"'; endif; ?>><?php echo e($group['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="required">
<label for="view_desc">Show Description</label>
<input name="view_desc" type="radio" id="view_desc" class="radio" value="1"<?php if ($this->vcfg['view_desc'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="view_desc" type="radio" class="radio" value="0"<?php if ($this->vcfg['view_desc'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<fieldset>
<legend>Download Settings</legend>
<div class="required">
<label for="download">Allow Video Download</label>
<input name="download" type="radio" id="download" class="radio" value="1"<?php if ($this->vcfg['download'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="download" type="radio" class="radio" value="0"<?php if ($this->vcfg['download'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="download_container"<?php if ($this->vcfg['download'] == '0'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="downoad_perms">Download Permissions</label>
<select name="download_perms" id="download_perms">
<option value="all"<?php if ($this->vcfg['download_perms'] == 'all'): echo ' selected="selected"'; endif; ?>>All</option>
<option value="registered"<?php if ($this->vcfg['download_perms'] == 'registered'): echo ' selected="selected"'; endif; ?>>Registered</option>
<option value="premium"<?php if ($this->vcfg['download_perms'] == 'premium'): echo ' selected="selected"'; endif; ?>>Premium</option>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>Related Settings</legend>
<div class="required">
<label for="view_related">Show Related Videos</label>
<input name="view_related" type="radio" id="view_related" class="radio" value="1"<?php if ($this->vcfg['view_related'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="view_related" type="radio" class="radio" value="0"<?php if ($this->vcfg['view_related'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="related_method">Related Method</label>
<select name="related_method" id="related_method">
<option value="simple"<?php if ($this->vcfg['related_method'] == 'simple'): echo ' selected="selected"'; endif; ?>>Simple</option>
<option value="complex"<?php if ($this->vcfg['related_method'] == 'complex'): echo ' selected="selected"'; endif; ?>>Complex (Sphinx Search)</option>
</select>
</div>
<div class="required">
<label for="related_total">Related Limit</label>
<input name="related_total" type="text" id="related_total" class="tiny" value="<?php echo $this->vcfg['related_total']; ?>" />
</div>
<div class="required">
<label for="related_per_page">Related per page</label>
<input name="related_per_page" type="text" id="related_per_page" class="tiny" value="<?php echo $this->vcfg['related_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Comments Settings</legend>
<div class="required">
<label for="view_comments">Show Comments</label>
<input name="view_comments" type="radio" id="view_comments" class="radio" value="1"<?php if ($this->vcfg['view_comments'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="view_comments" type="radio" class="radio" value="0"<?php if ($this->vcfg['view_comments'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="allow_comment">Allow Comment</label>
<input name="allow_comment" type="radio" id="allow_comment" class="radio" value="1"<?php if ($this->vcfg['allow_comment'] == '1'): echo ' checked="checked"'; endif; ?> /> Registered
<input name="allow_comment" type="radio" class="radio" value="2"<?php if ($this->vcfg['allow_comment'] == '2'): echo ' checked="checked"'; endif; ?> /> All
<input name="allow_comment" type="radio" class="radio" value="0"<?php if ($this->vcfg['allow_comment'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="approve_comments">Approve Comments</label>
<input name="approve_comments" type="radio" id="approve_comments" class="radio" value="1"<?php if ($this->vcfg['approve_comments'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="approve_comments" type="radio" class="radio" value="0"<?php if ($this->vcfg['approve_comments'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="comments_per_page">Comments per page</label>
<input name="comments_per_page" type="text" id="comments_per_page" class="tiny" value="<?php echo $this->vcfg['comments_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Rating Settings</legend>
<div class="required">
<label for="allow_rating">Allow Rating</label>
<input name="allow_rating" type="radio" id="allow_rating" class="radio" value="1"<?php if ($this->vcfg['allow_rating'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="allow_rating" type="radio" class="radio" value="0"<?php if ($this->vcfg['allow_rating'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="rating_count">Rating Count</label>
<select name="rating_count" id="rating_count">
<option value="1"<?php if ($this->vcfg['rating_count'] == '1'): echo ' selected="selected"'; endif; ?>>Once</option>
<option value="0"<?php if ($this->vcfg['rating_count'] == '0'): echo ' selected="selected"'; endif; ?>>Unlimited</option>
</select>
</div>
<div class="required">
<label for="rating_type">Rating Type</label>
<select name="rating_type" id="rating_type">
<option value="ip"<?php if ($this->vcfg['rating_type'] == 'ip'): echo ' selected="selected"'; endif; ?>>IP</option>
<option value="user"<?php if ($this->vcfg['rating_type'] == 'user'): echo ' selected="selected"'; endif; ?>>User</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Player Settings</legend>
<div class="required">
<label for="player">Player: </label>
<select name="player" id="player">
<option value="nuevoplayer"<?php if ($this->vcfg['player'] == 'nuevoplayer'): echo ' selected="selected"'; endif; ?>>Nuevoplayer</option>
<option value="flowplayer5"<?php if ($this->vcfg['player'] == 'flowplayer5'): echo ' selected="selected"'; endif; ?>>Flowplayer HTML5</option>
<option value="flowplayer"<?php if ($this->vcfg['player'] == 'flowplayer'): echo ' selected="selected"'; endif; ?>>Flowplayer</option>
<option value="videojs"<?php if ($this->vcfg['player'] == 'videojs'): echo ' selected="selected"'; endif; ?>>Video JS</option>
</select>
<i>If you chose to use the JW Player please upload player.swf and jwplayer.js to misc/jwplayer/!</i>
</div>
</fieldset>
<fieldset>
<legend>Streaming Settings</legend>
<div class="required">
<label for="streaming_method">Streaming Method</label>
<select name="streaming_method" id="streaming_method">
<option value="progressive"<?php if ($this->vcfg['streaming_method'] == 'progressive'): echo ' selected="selected"'; endif; ?>>Progressive</option>
<option value="pseudostreaming"<?php if ($this->vcfg['streaming_method'] == 'pseudostreaming'): echo ' selected="selected"'; endif; ?>>Pseudostreaming</option>
<option value="rtmp"<?php if ($this->vcfg['streaming_method'] == 'rtmp'): echo ' selected="selected"'; endif; ?>>RTMP</option>
</select>
</div>
<div id="streaming_container_pseudostreaming"<?php if ($this->vcfg['streaming_method'] != 'pseudostreaming'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="streaming_server">Streaming Server</label>
<select name="streaming_server" id="streaming_server">
<option value="lighttpd"<?php if ($this->vcfg['streaming_server'] == 'lighttpd'): echo ' selected="selected"'; endif; ?>>Lighttpd</option>
<option value="apache"<?php if ($this->vcfg['streaming_server'] == 'apache'): echo ' selected="selected"'; endif; ?>>Apache</option>
<option value="nginx"<?php if ($this->vcfg['streaming_server'] == 'nginx'): echo ' selected="selected"'; endif; ?>>NGinx</option>
</select>
</div>
<div class="required">
<label for="streaming_url">Streaming URL</label>
<input name="streaming_url" type="text" id="streaming_url" class="mega" value="<?php echo e($this->vcfg['streaming_url']); ?>" />
</div>
<div class="required">
<label for="streaming_secure">Streaming Secure</label>
<input name="streaming_secure" type="radio" id="streaming_secure" class="radio" value="1"<?php if ($this->vcfg['streaming_secure'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="streaming_secure" type="radio" class="radio" value="0"<?php if ($this->vcfg['streaming_secure'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="streaming_secure_container"<?php if ($this->vcfg['streaming_secure'] == '0'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="streaming_prefix">Secure Prefix</label>
<input name="streaming_prefix" type="text" id="streaming_prefix" class="medium" value="<?php echo e($this->vcfg['streaming_prefix']); ?>" />
<i>Only used for Lighttpd SecDownload!</i>
</div>
<div class="required">
<label for="streaming_key">Secure Key</label>
<input name="streaming_key" type="text" id="streaming_key" class="medium" value="<?php echo e($this->vcfg['streaming_key']); ?>" />
</div>
</div>
</div>
<div id="streaming_container_rtmp"<?php if ($this->vcfg['streaming_method'] != 'rtmp'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="rtmp_stream">RTMP Stream Location</label>
<input name="rtmp_stream" type="text" id="rtmp_stream" class="mega" value="<?php echo e($this->vcfg['rtmp_stream']); ?>" />
</div>
</div>
</fieldset>
</fieldset>
</div>
<div class="tab3" style="display: none;">
<fieldset>
<legend>Upload Settings</legend>
<div class="required">
<label for="upload_enabled">Upload Enabled:</label>
<input name="upload_enabled" type="radio" id="upload_enabled" class="radio" value="1"<?php if ($this->vcfg['upload_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="upload_enabled" type="radio" class="radio" value="0"<?php if ($this->vcfg['upload_enabled'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="upload_perm">Upload Permission:</label>
<select name="upload_perm" id="upload_perm">
<option value="anonymous"<?php if ($this->vcfg['upload_perm'] == 'anonymous'): echo ' selected="selected"'; endif; ?>>All</option>
<?php foreach ($this->groups as $group): ?>
<option value="<?php echo $this->_($group['name']); ?>"<?php if ($this->vcfg['upload_perm'] == $group['name']): echo ' selected="selected"'; endif; ?>><?php echo $this->_($group['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="required">
<label for="upload_limit">Upload Limit:</label>
<input name="upload_limit" type="text" id="upload_limit" class="small" value="<?php echo $this->vcfg['upload_limit']; ?>" />
</div>
<div class="required">
<label for="upload_progress">Upload Progress:</label>
<select name="upload_progress" id="upload_progress">
<option value="none"<?php if ($this->vcfg['upload_progress'] == 'none'): echo ' selected="selected"'; endif; ?>>None</option>
<option value="js"<?php if ($this->vcfg['upload_progress'] == 'js'): echo ' selected="selected"'; endif; ?>>Javascript (XCR)</option>
<option value="php"<?php if ($this->vcfg['upload_progress'] == 'php'): echo ' selected="selected"'; endif; ?>>PHP Upload Progress</option>
<option value="swf"<?php if ($this->vcfg['upload_progress'] == 'swf'): echo ' selected="selected"'; endif; ?>>Flash Uploader</option>
<option value="cgi"<?php if ($this->vcfg['upload_progress'] == 'cgi'): echo ' selected="selected"'; endif; ?>>CGI Perl (currently unsupported)</option>
</select>
</div>
<div class="required">
<label for="max_categories">Maximum Categories:</label>
<input name="max_categories" type="text" id="max_categories" class="tiny" value="<?php echo $this->vcfg['max_categories']; ?>" />
</div>
<div class="required">
<label for="video_allowed_ext">Allowed Extensions:</label>
<textarea name="video_allowed_ext" id="video_allowed_ext" class="mega"><?php echo e(implode(',', $this->vcfg['video_allowed_ext'])); ?></textarea>
</div>
<div class="required">
<label for="video_max_size">Maximum Filesize:</label>
<input name="video_max_size" type="text" id="video_max_size" class="tiny" value="<?php echo $this->vcfg['video_max_size']; ?>" /> MB
</div>
<div class="required">
<label for="queue">Queue Uploads:</label>
<input name="queue" type="radio" id="queue" class="radio" value="1"<?php if ($this->vcfg['queue'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="queue" type="radio" class="radio" value="0"<?php if ($this->vcfg['queue'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="queue-container"<?php if ($this->vcfg['queue'] != '1'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="queue_limit">Queue Conversion Limit:</label>
<input name="queue_limit" type="text" id="queue_limit" class="tiny" value="<?php echo $this->vcfg['queue_limit']; ?>" />
<span class="help-inline">Number of conversion processes to run at the same time (1 recommended)!</span>
</div>
</div>
<div class="required">
<label for="approve">Approve Videos:</label>
<input name="approve" type="radio" id="approve" class="radio" value="1"<?php if ($this->vcfg['approve'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="approve" type="radio" class="radio" value="0"<?php if ($this->vcfg['approve'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Multi Server Settings</legend>
<div class="required">
<label for="multi_server">Multi Server</label>
<input name="multi_server" type="radio" id="multi_server" class="radio" value="1"<?php if ($this->vcfg['multi_server'] == '1'): echo ' checked="checked"'; endif; ?> /> Enabled
<input name="multi_server" type="radio" class="radio" value="0"<?php if ($this->vcfg['multi_server'] == '0'): echo ' checked="checked"'; endif; ?> /> Disabled
</div>
</fieldset>
<fieldset>
<legend>Amazon S3 Configuration</legend>
<div class="required">
<label for="amazon_s3">Amazon S3 Storage:</label>
<input name="amazon_s3" type="radio" id="amazon_s3" class="radio" value="1"<?php if ($this->vcfg['amazon_s3'] == '1'): echo ' checked="checked"'; endif; ?> /> Enabled
<input name="amazon_s3" type="radio" class="radio" value="0"<?php if ($this->vcfg['amazon_s3'] == '0'): echo ' checked="checked"'; endif; ?> /> Disabled
</div>
<div id="amazon_s3_container"<?php if ($this->vcfg['amazon_s3'] != '1'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="s3_access_key">Access Key:</label>
<input name="s3_access_key" type="text" id="s3_access_key" class="large" value="<?php echo $this->vcfg['s3_access_key']; ?>" />
</div>
<div class="required">
<label for="s3_secret_key">Secret Key:</label>
<input name="s3_secret_key" type="text" id="s3_secret_key" class="large" value="<?php echo $this->vcfg['s3_secret_key']; ?>" />
</div>
<div class="required">
<label for="s3_bucket">Bucket:</label>
<input name="s3_bucket" type="text" id="s3_bucket" class="large" value="<?php echo $this->vcfg['s3_bucket']; ?>" />
</div>
<div class="required">
<label for="cloudfront_url">Cloudfront URL:</label>
<input name="cloudfront_url" type="text" id="cloudfront_url" class="large" value="<?php echo $this->vcfg['cloudfront_url']; ?>" />
</div>
</div>
</fieldset>
</div>
<div class="tab4" style="display: none;">
<fieldset>
<legend>Conversion Settings</legend>
<fieldset>
<legend>Priority</legend>
<div class="required">
<label for="nice_level">CPU Priority:</label>
<input name="nice_level" type="text" id="nice_level" class="tiny" value="<?php echo $this->vcfg['nice_level']; ?>" />
<span class="help">(default: <strong>8</strong>, use values from 1 to 20 to enable (the greater the value the lower the CPU priority for the ffmpeg process is)</span>
</div>
</fieldset>
<fieldset>
<legend>FLV Settings</legend>
<div class="required">
<label for="flv_copy">FLV Copy</label>
<input name="flv_copy" type="radio" class="radio" value="1"<?php if ($this->vcfg['flv_copy'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="flv_copy" type="radio" id="flv_copy" class="radio" value="0"<?php if ($this->vcfg['flv_copy'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help">(default: <strong>No</strong>, if enabled the FLV file will be copied and no mp4 file is created (mobile will still be created))</span>
</div>
</fieldset>
<fieldset>
<legend>MP4 Settings</legend>
<div class="required">
<label for="mp4_reconvert">MP4 Re-Convert:</label>
<input name="mp4_reconvert" type="radio" id="mp4_reconvert" class="radio" value="1"<?php if ($this->vcfg['mp4_reconvert'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="mp4_reconvert" type="radio" class="radio" value="0"<?php if ($this->vcfg['mp4_reconvert'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help">(default: <strong>No</strong>, reconvert already MP4 videos or just copy)</span>
</div>
<div class="required">
<label for="mp4_preset">Preset:</label>
<select name="mp4_preset" id="mp4_preset">
<option value="ultrafast"<?php if ($this->vcfg['mp4_preset'] == 'ultrafast'): echo ' selected="selected"'; endif; ?>>Ultrafast</option>
<option value="superfast"<?php if ($this->vcfg['mp4_preset'] == 'superfast'): echo ' selected="selected"'; endif; ?>>Suprerfast</option>
<option value="veryfast"<?php if ($this->vcfg['mp4_preset'] == 'veryfast'): echo ' selected="selected"'; endif; ?>>Veryfast</option>
<option value="faster"<?php if ($this->vcfg['mp4_preset'] == 'faster'): echo ' selected="selected"'; endif; ?>>Faster</option>
<option value="fast"<?php if ($this->vcfg['mp4_preset'] == 'fast'): echo ' selected="selected"'; endif; ?>>Fast</option>
<option value="medium"<?php if ($this->vcfg['mp4_preset'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="slow"<?php if ($this->vcfg['mp4_preset'] == 'slow'): echo ' selected="selected"'; endif; ?>>Slow</option>
<option value="slower"<?php if ($this->vcfg['mp4_preset'] == 'slower'): echo ' selected="selected"'; endif; ?>>Slower</option>
<option value="veryslow"<?php if ($this->vcfg['mp4_preset'] == 'veryslow'): echo ' selected="selected"'; endif; ?>>Veryslow</option>
</select>
<span class="help">(default: <strong>Medium</strong>, )</span>
</div>
<div class="required">
<label for="mp4_profile">Profile:</label>
<select name="mp4_profile" id="mp4_profile">
<option value="baseline"<?php if ($this->vcfg['mp4_profile'] == 'baseline'): echo ' selected="selected"'; endif; ?>>Baseline</option>
<option value="main"<?php if ($this->vcfg['mp4_profile'] == 'main'): echo ' selected="selected"'; endif; ?>>Main</option>
<option value="high"<?php if ($this->vcfg['mp4_profile'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
<span class="help">(default: <strong>Main</strong>)</span>
</div>
<div class="required">
<label for="mp4_level">Encoding Level:</label>
<input name="mp4_level" type="text" id="mp4_level" class="small" value="<?php echo $this->vcfg['mp4_level']; ?>" />
<span class="help">(default: <strong>3.0</strong>)</span>
</div>
<div class="required">
<label for="mp4_maxrate">Max Rate:</label>
<input name="mp4_maxrate" type="text" id="mp4_maxrate" class="small" value="<?php echo $this->vcfg['mp4_maxrate']; ?>" />
<span class="help">(default: <strong>850</strong>, use <strong>0</strong> to disable)</span>
</div>
<div class="required">
<label for="mp4_crf">CRF</label>
<input name="mp4_crf" type="text" id="mp4_crf" class="tiny" value="<?php echo $this->vcfg['mp4_crf']; ?>" />
<span class="help">(default: <strong>20</strong>, from 18 (same quality as input) to 28)</span>
</div>
<div class="required">
<label for="mp4_resize">Resize:</label>
<input name="mp4_resize" type="radio" id="mp4_resize" class="radio" value="1"<?php if ($this->vcfg['mp4_resize'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="mp4_resize" type="radio" class="radio" value="0"<?php if ($this->vcfg['mp4_resize'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help">(default: <strong>Yes</strong>)</span>
</div>
<div id="mp4_resize_container"<?php if ($this->vcfg['mp4_resize'] != '1'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="mp4_width">Resize Width:</label>
<input name="mp4_width" type="text" id="mp4_width" class="tiny" value="<?php echo $this->vcfg['mp4_width']; ?>" />
<span class="help">(default: <strong>640</strong>)</span>
</div>
<div class="required">
<label for="mp4_height">Resize Height:</label>
<input name="mp4_height" type="text" id="mp4_height" class="tiny" value="<?php echo $this->vcfg['mp4_height']; ?>" />
<span class="help">(default: <strong>360</strong>)</span>
</div>
</div>
<div class="required">
<label for="mp4_audio_codec">Audio Codec:</label>
<select name="mp4_audio_codec" id="mp4_audio_codec">
<?php foreach ($this->audio_codecs as $codec => $name): ?>
<option value="<?php echo $codec,'"'; if ($this->vcfg['mp4_audio_codec'] == $codec): echo ' selected="selected"'; endif; echo '>',$name ; ?></option>
<?php endforeach; ?>
</select>
<span class="help">(default: <strong>libfaac</strong>)</span>
</div>
<div class="required">
<label for="mp4_audio_bitrate">Audio Bitrate</label>
<input name="mp4_audio_bitrate" type="text" id="mp4_audio_bitrate" class="small" value="<?php echo $this->vcfg['mp4_audio_bitrate']; ?>" />
<span class="help">(default: <strong>128</strong>)</span>
</div>
<div class="required">
<label for="mp4_audio_samplerate">Audio Sample Rate</label>
<input name="mp4_audio_samplerate" type="text" id="mp4_audio_samplerate" class="small" value="<?php echo $this->vcfg['mp4_audio_samplerate']; ?>" />
<span class="help">(default: <strong>44100</strong>)</span>
</div>
<fieldset>
<legend>Trailer Options</legend>
<div class="required">
<label for="mp4_trailer">Trailer</label>
<input name="mp4_trailer" type="text" id="mp4_trailer" class="tiny" value="<?php echo $this->vcfg['mp4_trailer']; ?>" />
<span class="help">(default: <strong>0</strong>, set the number of seconds if you want a separate trailer created, used if the video is premium)</span>
</div>
</fieldset>
<fieldset<?php if (!WATERMARK): echo ' style="display: none;"'; endif; ?>>
<legend>Watermark Options</legend>
<div class="required">
<label for="mp4_watermark">Watermark</label>
<input name="mp4_watermark" type="file" id="mp4_watermark" />
<input name="mp4_watermark_remove" type="checkbox" value="1" /> Remove?
<span class="help">PNG file will be displayed over the video!</span>
</div>
<?php if ($this->vcfg['mp4_watermark']): ?>
<div class="required">
<label for="mp4_watermark_cur">Current Watermark</label>
<img src="<?php echo MEDIA_REL,'/videos/wm/',$this->vcfg['mp4_watermark']; ?>" alt=""/>
</div>
<?php endif; ?>
<div class="required">
<label for="mp4_watermark_pos">Watermark Position</label>
<select name="mp4_watermark_pos" id="mp4_watermark_pos">
<option value="top-left"<?php if ($this->vcfg['mp4_watermark_pos'] == 'top-left'): echo ' selected="selected"'; endif; ?>>Top Left</option>
<option value="bottom-left"<?php if ($this->vcfg['mp4_watermark_pos'] == 'bottom-left'): echo ' selected="selected"'; endif; ?>>Bottom Left</option>
<option value="top-right"<?php if ($this->vcfg['mp4_watermark_pos'] == 'top-right'): echo ' selected="selected"'; endif; ?>>Top Right</option>
<option value="bottom-right"<?php if ($this->vcfg['mp4_watermark_pos'] == 'bottom-right'): echo ' selected="selected"'; endif; ?>>Bottom Right</option>
</select>
</div>
</fieldset>
</fieldset>
<fieldset>
<legend>MP4 HD Settings</legend>
<div class="required">
<label for="mp4_hd_convert">Convert to MP4 HD</label>
<input name="mp4_hd_convert" type="radio" id="mp4_hd_convert" class="radio" value="1"<?php if ($this->vcfg['mp4_hd_convert'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="mp4_hd_convert" type="radio" class="radio" value="0"<?php if ($this->vcfg['mp4_hd_convert'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help">(default: <strong>Yes</strong>)</span>
</div>
<div id="mp4_hd_container"<?php if ($this->vcfg['mp4_hd_convert'] != '1'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="mp4_hd_min_width">MP4 HD Min Width</label>
<input name="mp4_hd_min_width" type="text" id="mp4_hd_min_width" class="small" value="<?php echo $this->vcfg['mp4_hd_min_width']; ?>" />
<span class="help">(default: <strong>0</strong>, minimum width for the video to be considered for HD conversion)</span>
</div>
<div class="required">
<label for="mp4_hd_min_height">MP4 HD Min Height</label>
<input name="mp4_hd_min_height" type="text" id="mp4_hd_min_height" class="small" value="<?php echo $this->vcfg['mp4_hd_min_height']; ?>" />
<span class="help">(default: <strong>720</strong>, minimum height for the video to be considered for HD conversion)</span>
</div>
<div class="required">
<label for="mp4_hd_min_bitrate">MP4 HD Min Bitrate</label>
<input name="mp4_hd_min_bitrate" type="text" id="mp4_hd_min_bitrate" class="small" value="<?php echo $this->vcfg['mp4_hd_min_bitrate']; ?>" />
<span class="help">(default: <strong>0</strong>, minimum bitrate for the video to be considered for HD conversion)</span>
</div>
<div class="required">
<label for="mp4_hd_reconvert">MP4 HD Reconvert</label>
<input name="mp4_hd_reconvert" type="radio" id="mp4_hd_reconvert" class="radio" value="1"<?php if ($this->vcfg['mp4_hd_reconvert'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="mp4_hd_reconvert" type="radio" class="radio" value="0"<?php if ($this->vcfg['mp4_hd_reconvert'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help">(default: <strong>No</strong>, reconvert already MP4-HD videos or just copy)</span>
</div>
<div class="required">
<label for="mp4_hd_preset">Preset:</label>
<select name="mp4_hd_preset" id="mp4_hd_preset">
<option value="ultrafast"<?php if ($this->vcfg['mp4_hd_preset'] == 'ultrafast'): echo ' selected="selected"'; endif; ?>>Ultrafast</option>
<option value="superfast"<?php if ($this->vcfg['mp4_hd_preset'] == 'superfast'): echo ' selected="selected"'; endif; ?>>Suprerfast</option>
<option value="veryfast"<?php if ($this->vcfg['mp4_hd_preset'] == 'veryfast'): echo ' selected="selected"'; endif; ?>>Veryfast</option>
<option value="faster"<?php if ($this->vcfg['mp4_hd_preset'] == 'faster'): echo ' selected="selected"'; endif; ?>>Faster</option>
<option value="fast"<?php if ($this->vcfg['mp4_hd_preset'] == 'fast'): echo ' selected="selected"'; endif; ?>>Fast</option>
<option value="medium"<?php if ($this->vcfg['mp4_hd_preset'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="slow"<?php if ($this->vcfg['mp4_hd_preset'] == 'slow'): echo ' selected="selected"'; endif; ?>>Slow</option>
<option value="slower"<?php if ($this->vcfg['mp4_hd_preset'] == 'slower'): echo ' selected="selected"'; endif; ?>>Slower</option>
<option value="veryslow"<?php if ($this->vcfg['mp4_hd_preset'] == 'veryslow'): echo ' selected="selected"'; endif; ?>>Veryslow</option>
</select>
<span class="help">(default: <strong>Medium</strong>)</span>
</div>
<div class="required">
<label for="mp4_hd_profile">Profile:</label>
<select name="mp4_hd_profile" id="mp4_hd_profile">
<option value="baseline"<?php if ($this->vcfg['mp4_hd_profile'] == 'baseline'): echo ' selected="selected"'; endif; ?>>Baseline</option>
<option value="main"<?php if ($this->vcfg['mp4_hd_profile'] == 'main'): echo ' selected="selected"'; endif; ?>>Main</option>
<option value="high"<?php if ($this->vcfg['mp4_hd_profile'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
<span class="help">(default: <strong>High</strong>)</span>
</div>
<div class="required">
<label for="mp4_hd_level">Encoding Level:</label>
<input name="mp4_hd_level" type="text" id="mp4_hd_level" class="small" value="<?php echo $this->vcfg['mp4_hd_level']; ?>" />
<span class="help">(default: <strong>3.0</strong>)</span>
</div>
<div class="required">
<label for="mp4_hd_maxrate">Max Rate:</label>
<input name="mp4_hd_maxrate" type="text" id="mp4_hd_maxrate" class="small" value="<?php echo $this->vcfg['mp4_hd_maxrate']; ?>" />
<span class="help">(default: <strong>0</strong>, use <strong>0</strong> to disable)</span>
</div>
<div class="required">
<label for="mp4_hd_crf">CRF</label>
<input name="mp4_hd_crf" type="text" id="mp4_hd_crf" class="tiny" value="<?php echo $this->vcfg['mp4_hd_crf']; ?>" />
<span class="help">(default: <strong>20</strong>, from 18 (same quality as input) to 28)</span>
</div>
<div class="required">
<label for="mp4_hd_resize">Resize:</label>
<input name="mp4_hd_resize" type="radio" id="mp4_hd_resize" class="radio" value="1"<?php if ($this->vcfg['mp4_hd_resize'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="mp4_hd_resize" type="radio" class="radio" value="0"<?php if ($this->vcfg['mp4_hd_resize'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help">(default: <strong>Yes</strong>)</span>
</div>
<div id="mp4_hd_resize_container"<?php if ($this->vcfg['mp4_hd_resize'] != '1'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="mp4_hd_width">Resize Width:</label>
<input name="mp4_hd_width" type="text" id="mp4_hd_width" class="tiny" value="<?php echo $this->vcfg['mp4_hd_width']; ?>" />
<span class="help">(default: <strong>1280</strong>)</span>
</div>
<div class="required">
<label for="mp4_hd_height">Resize Height:</label>
<input name="mp4_hd_height" type="text" id="mp4_hd_height" class="tiny" value="<?php echo $this->vcfg['mp4_hd_height']; ?>" />
<span class="help">(default: <strong>720</strong>)</span>
</div>
</div>
<div class="required">
<label for="mp4_hd_audio_codec">Audio Codec:</label>
<select name="mp4_hd_audio_codec" id="mp4_hd_audio_codec">
<?php foreach ($this->audio_codecs as $codec => $name): ?>
<option value="<?php echo $codec,'"'; if ($this->vcfg['mp4_hd_audio_codec'] == $codec): echo ' selected="selected"'; endif; echo '>',$name ; ?></option>
<?php endforeach; ?>
</select>
<span class="help">(default: <strong>libfaac</strong>)</span>
</div>
<div class="required">
<label for="mp4_hd_audio_bitrate">Audio Bitrate</label>
<input name="mp4_hd_audio_bitrate" type="text" id="mp4_hd_audio_bitrate" class="small" value="<?php echo $this->vcfg['mp4_hd_audio_bitrate']; ?>" />
<span class="help">(default: <strong>192</strong>)</span>
</div>
<div class="required">
<label for="mp4_hd_audio_samplerate">Audio Sample Rate</label>
<input name="mp4_hd_audio_samplerate" type="text" id="mp4_hd_audio_samplerate" class="small" value="<?php echo $this->vcfg['mp4_hd_audio_samplerate']; ?>" />
<span class="help">(default: <strong>44100</strong>)</span>
</div>
<fieldset>
<legend>Trailer Options</legend>
<div class="required">
<label for="mp4_hd_trailer">Trailer</label>
<input name="mp4_hd_trailer" type="text" id="mp4_hd_trailer" class="tiny" value="<?php echo $this->vcfg['mp4_hd_trailer']; ?>" />
<span class="help">(default: <strong>0</strong>, set the number of seconds if you want a separate trailer created, used if the video is premium)</span>
</div>
</fieldset>
<fieldset<?php if (!WATERMARK): echo ' style="display: none;"'; endif; ?>>
<legend>Watermark Options</legend>
<div class="required">
<label for="mp4_hd_watermark">Watermark</label>
<input name="mp4_hd_watermark" type="file" id="mp4_hd_watermark" />
<input name="mp4_hd_watermark_remove" type="checkbox" value="1" /> Remove?
<span class="help">PNG file will be displayed over the video!</span>
</div>
<?php if ($this->vcfg['mp4_hd_watermark']): ?>
<div class="required">
<label for="mp4_hd_watermark_cur">Current Watermark</label>
<img src="<?php echo MEDIA_REL,'/videos/wm/',$this->vcfg['mp4_hd_watermark']; ?>" alt=""/>
</div>
<?php endif; ?>
<div class="required">
<label for="mp4_hd_watermark_pos">Watermark Position</label>
<select name="mp4_hd_watermark_pos" id="mp4_hd_watermark_pos">
<option value="top-left"<?php if ($this->vcfg['mp4_hd_watermark_pos'] == 'top-left'): echo ' selected="selected"'; endif; ?>>Top Left</option>
<option value="bottom-left"<?php if ($this->vcfg['mp4_hd_watermark_pos'] == 'bottom-left'): echo ' selected="selected"'; endif; ?>>Bottom Left</option>
<option value="top-right"<?php if ($this->vcfg['mp4_hd_watermark_pos'] == 'top-right'): echo ' selected="selected"'; endif; ?>>Top Right</option>
<option value="bottom-right"<?php if ($this->vcfg['mp4_hd_watermark_pos'] == 'bottom-right'): echo ' selected="selected"'; endif; ?>>Bottom Right</option>
</select>
</div>
</fieldset>
</div>
</fieldset>
<fieldset<?php if (!VModule::enabled('mobile')): echo ' style="display: none;"'; endif; ?>>
<legend>Mobile Settings</legend>
<div class="required">
<label for="mobile_convert">Convert to Mobile MP4</label>
<input name="mobile_convert" type="radio" id="mobile_convert" class="radio" value="1"<?php if ($this->vcfg['mobile_convert'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="mobile_convert" type="radio" class="radio" value="0"<?php if ($this->vcfg['mobile_convert'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<span class="help">(default: <strong>Yes</strong>)</span>
</div>
<div class="required">
<label for="mobile_preset">Preset:</label>
<select name="mobile_preset" id="mobile_preset">
<option value="ultrafast"<?php if ($this->vcfg['mobile_preset'] == 'ultrafast'): echo ' selected="selected"'; endif; ?>>Ultrafast</option>
<option value="superfast"<?php if ($this->vcfg['mobile_preset'] == 'superfast'): echo ' selected="selected"'; endif; ?>>Suprerfast</option>
<option value="veryfast"<?php if ($this->vcfg['mobile_preset'] == 'veryfast'): echo ' selected="selected"'; endif; ?>>Veryfast</option>
<option value="faster"<?php if ($this->vcfg['mobile_preset'] == 'faster'): echo ' selected="selected"'; endif; ?>>Faster</option>
<option value="fast"<?php if ($this->vcfg['mobile_preset'] == 'fast'): echo ' selected="selected"'; endif; ?>>Fast</option>
<option value="medium"<?php if ($this->vcfg['mobile_preset'] == 'medium'): echo ' selected="selected"'; endif; ?>>Medium</option>
<option value="slow"<?php if ($this->vcfg['mobile_preset'] == 'slow'): echo ' selected="selected"'; endif; ?>>Slow</option>
<option value="slower"<?php if ($this->vcfg['mobile_preset'] == 'slower'): echo ' selected="selected"'; endif; ?>>Slower</option>
<option value="veryslow"<?php if ($this->vcfg['mobile_preset'] == 'veryslow'): echo ' selected="selected"'; endif; ?>>Veryslow</option>
</select>
<span class="help">(default: <strong>Medium</strong>)</span>
</div>
<div class="required">
<label for="mobile_profile">Profile:</label>
<select name="mobile_profile" id="mobile_profile">
<option value="baseline"<?php if ($this->vcfg['mobile_profile'] == 'baseline'): echo ' selected="selected"'; endif; ?>>Baseline</option>
<option value="main"<?php if ($this->vcfg['mobile_profile'] == 'main'): echo ' selected="selected"'; endif; ?>>Main</option>
<option value="high"<?php if ($this->vcfg['mobile_profile'] == 'high'): echo ' selected="selected"'; endif; ?>>High</option>
</select>
<span class="help">(default: <strong>Baseline</strong>)</span>
</div>
<div class="required">
<label for="mobile_level">Encoding Level:</label>
<input name="mobile_level" type="text" id="mobile_level" class="small" value="<?php echo $this->vcfg['mobile_level']; ?>" />
<span class="help">(default: <strong>1.3</strong>)</span>
</div>
<div class="required">
<label for="mobile_maxrate">Max Rate:</label>
<input name="mobile_maxrate" type="text" id="mobile_maxrate" class="small" value="<?php echo $this->vcfg['mobile_maxrate']; ?>" />
<span class="help">(default: <strong>500</strong>, use <strong>0</strong> to disable)</span>
</div>
<div class="required">
<label for="mobile_crf">CRF</label>
<input name="mobile_crf" type="text" id="mobile_crf" class="tiny" value="<?php echo $this->vcfg['mobile_crf']; ?>" />
<span class="help">(default: <strong>20</strong>, from 18 (same quality as input) to 28)</span>
</div>
<div class="required">
<label for="mobile_resize">Resize:</label>
<select name="mobile_resize" id="mobile_resize">
<option value="1"<?php if ($this->vcfg['mobile_resize'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
<option value="0"<?php if ($this->vcfg['mobile_resize'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
</select>
<span class="help">(default: <strong>Yes</strong>)</span>
</div>
<div id="mobile_resize_container"<?php if ($this->vcfg['mobile_resize'] == '0'): echo ' selected="selected"'; endif; ?>>
<div class="required">
<label for="mobile_width">Width:</label>
<input name="mobile_width" type="text" id="mobile_width" class="small" value="<?php echo $this->vcfg['mobile_width']; ?>" />
<span class="help">(default: <strong>426</strong>)</span>
</div>
<div class="required">
<label for="mobile_height">Height:</label>
<input name="mobile_height" type="text" id="mobile_height" class="small" value="<?php echo $this->vcfg['mobile_height']; ?>" />
<span class="help">(default: <strong>240</strong>)</span>
</div>
</div>
<div class="required">
<label for="mobile_audio_codec">Audio Codec:</label>
<select name="mobile_audio_codec" id="mobile_audio_codec">
<?php foreach ($this->audio_codecs as $codec => $name): ?>
<option value="<?php echo $codec,'"'; if ($this->vcfg['mobile_audio_codec'] == $codec): echo ' selected="selected"'; endif; echo '>',$name ; ?></option>
<?php endforeach; ?>
</select>
<span class="help">(default: <strong>libfaac</strong>)</span>
</div>
<div class="required">
<label for="mobile_audio_bitrate">Audio Bitrate</label>
<input name="mobile_audio_bitrate" type="text" id="mobile_audio_bitrate" class="small" value="<?php echo $this->vcfg['mobile_audio_bitrate']; ?>" />
<span class="help">(default: <strong>128</strong>)</span>
</div>
<div class="required">
<label for="mobile_audio_samplerate">Audio Sample Rate</label>
<input name="mobile_audio_samplerate" type="text" id="mobile_audio_samplerate" class="small" value="<?php echo $this->vcfg['mobile_audio_samplerate']; ?>" />
<span class="help">(default: <strong>44100</strong>)</span>
</div>
<fieldset>
<legend>Trailer Options</legend>
<div class="required">
<label for="mobile_trailer">Trailer</label>
<input name="mobile_trailer" type="text" id="mobile_trailer" class="tiny" value="<?php echo $this->vcfg['mobile_trailer']; ?>" />
<span class="help">(default: <strong>0</strong>, set the number of seconds if you want a separate trailer created, used if the video is premium)</span>
</div>
</fieldset>
<fieldset<?php if (!WATERMARK): echo ' style="display: none;"'; endif; ?>>
<legend>Watermark Options</legend>
<div class="required">
<label for="mobile_watermark">Watermark</label>
<input name="mobile_watermark" type="file" id="mobile_watermark" />
<input name="mobile_watermark_remove" type="checkbox" value="1" /> Remove?
<span class="help">PNG file will be displayed over the video!</span>
</div>
<?php if ($this->vcfg['mobile_watermark']): ?>
<div class="required">
<label for="mobile_watermark_cur">Current Watermark</label>
<img src="<?php echo MEDIA_REL,'/videos/wm/',$this->vcfg['mobile_watermark']; ?>" alt=""/>
</div>
<?php endif; ?>
<div class="required">
<label for="mobile_watermark_pos">Watermark Position</label>
<select name="mobile_watermark_pos" id="mobile_watermark_pos">
<option value="top-left"<?php if ($this->vcfg['mobile_watermark_pos'] == 'top-left'): echo ' selected="selected"'; endif; ?>>Top Left</option>
<option value="bottom-left"<?php if ($this->vcfg['mobile_watermark_pos'] == 'bottom-left'): echo ' selected="selected"'; endif; ?>>Bottom Left</option>
<option value="top-right"<?php if ($this->vcfg['mobile_watermark_pos'] == 'top-right'): echo ' selected="selected"'; endif; ?>>Top Right</option>
<option value="bottom-right"<?php if ($this->vcfg['mobile_watermark_pos'] == 'bottom-right'): echo ' selected="selected"'; endif; ?>>Bottom Right</option>
</select>
</div>
</fieldset>
</fieldset>
</fieldset>
<fieldset>
<legend>Paths</legend>
<div class="required">
<label for="ffmpeg_path">FFMpeg Path:</label>
<input name="ffmpeg_path" type="text" id="ffmpeg_path" class="mega" value="<?php echo $this->_($this->vcfg['ffmpeg_path']); ?>" />
</div>
<div class="required">
<label for="ffprobe_path">FFProbe Path:</label>
<input name="ffprobe_path" type="text" id="ffprobe_path" class="mega" value="<?php echo $this->_($this->vcfg['ffprobe_path']); ?>" />
</div>
<div class="required">
<label for="yamdi_path">Yamdi Path:</label>
<input name="yamdi_path" type="text" id="yamdi_path" class="mega" value="<?php echo $this->_($this->vcfg['yamdi_path']); ?>" />
</div>
<div class="required">
<label for="qtfaststart_path">QT-FastStart Path:</label>
<input name="qtfaststart_path" type="text" id="qtfaststart_path" class="mega" value="<?php echo $this->_($this->vcfg['qtfaststart_path']); ?>" />
</div>
</fieldset>
<fieldset>
<legend>Miscelanous</legend>
<div class="required">
<label for="log">Log Conversions</label>
<input name="log" type="radio" id="log" class="radio" value="1"<?php if ($this->vcfg['log'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="log" type="radio" class="radio" value="0"<?php if ($this->vcfg['log'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="delete_orig">Delete Original</label>
<input name="delete_orig" type="radio" id="delete_orig" class="radio" value="1"<?php if ($this->vcfg['delete_orig'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="delete_orig" type="radio" class="radio" value="0"<?php if ($this->vcfg['delete_orig'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
</div>
<div class="tab5" style="display: none;">
<fieldset>
<legend>Thumb Preview</legend>
<div class="required">
<label for="thumb_preview">Thumb Preview</label>
<input name="thumb_preview" type="radio" id="thumb_preview" class="radio" value="1"<?php if ($this->vcfg['thumb_preview'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="thumb_preview" type="radio" class="radio" value="1"<?php if ($this->vcfg['thumb_preview'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Thumb Extraction</legend>
<div class="required">
<label for="thumbs">Thumbs:</label>
<input name="thumbs" type="text" id="thumbs" class="tiny" value="<?php echo $this->vcfg['thumbs']; ?>" />
</div>
<div class="required">
<label for="thumb_width">Thumb Size:</label>
<input name="thumb_width" type="text" id="thumb_width" class="tiny" value="<?php echo $this->vcfg['thumb_width']; ?>" /> x
<input name="thumb_height" type="text" id="thumb_height" class="tiny" value="<?php echo $this->vcfg['thumb_height']; ?>" />
</div>
<div class="required">
<label for="thumb_sizes">Thumb Sizes:</label>
<?php $thumb_sizes = array_flip($this->vcfg['thumb_sizes']); ?>
<input name="thumb_sizes[]" type="checkbox" value="160x120"<?php if (isset($thumb_sizes['160x120'])): echo ' checked="checked"'; endif; ?>/> 160x120
<input name="thumb_sizes[]" type="checkbox" value="180x135"<?php if (isset($thumb_sizes['180x135'])): echo ' checked="checked"'; endif; ?>/> 180x135
<input name="thumb_sizes[]" type="checkbox" value="200x150"<?php if (isset($thumb_sizes['200x150'])): echo ' checked="checked"'; endif; ?>/> 200x150
<input name="thumb_sizes[]" type="checkbox" value="240x180"<?php if (isset($thumb_sizes['240x180'])): echo ' checked="checked"'; endif; ?>/> 240x180
<input name="thumb_sizes[]" type="checkbox" value="320x240"<?php if (isset($thumb_sizes['320x240'])): echo ' checked="checked"'; endif; ?>/> 320x240
<input name="thumb_sizes[]" type="checkbox" value="300x225"<?php if (isset($thumb_sizes['300x225'])): echo ' checked="checked"'; endif; ?>/> 300x225
</div>
<div class="required">
<label for="thumb_extr">Extract Method:</label>
<select name="thumb_extr" id="thumb_extr">
<option value="direct"<?php if ($this->vcfg['thumb_extr'] == 'direct'): echo ' selected="selected"'; endif; ?>>Extract size formatted with FFMpeg</option>
<option value="imagick"<?php if ($this->vcfg['thumb_extr'] == 'imagick'): echo ' selected="selected"'; endif; ?>>Extract with FFMpeg and resize/optimize with Image Magick</option>
<option value="gd"<?php if ($this->vcfg['thumb_extr'] == 'gd'): echo ' selected="selected"'; endif; ?>>Extract with FFMPeg and resize with GD</option>
</select>
</div>
<div id="thumb-extr-container"<?php if ($this->vcfg['thumb_extr'] != 'imagick'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="thumb_resize">Resize Method:</label>
<select name="thumb_resize" id="thumb_resize">
<option value="preserve"<?php if ($this->vcfg['thumb_resize'] == 'preserve'): echo ' selected="selected"'; endif; ?>>Preserve aspect ratio (fill)</option>
<option value="crop"<?php if ($this->vcfg['thumb_resize'] == 'crop'): echo ' selected="selected"'; endif; ?>>Preserve aspect ratio (crop)</option>
<option value="adjust"<?php if ($this->vcfg['thumb_resize'] == 'adjust'): echo ' selected="selected"'; endif; ?>>Adjust to size</option>
<option value="dynamic"<?php if ($this->vcfg['thumb_resize'] == 'dynamic'): echo ' selected="selected"'; endif; ?>>Dynamic preserve aspect ratio</option>
</select>
</div>
<div class="required">
<label for="thumb_optimize">Optimize Filters: </label>
<input name="thumb_optimize" type="radio" id="thumb_optimize" class="radio" value="1"<?php if ($this->vcfg['thumb_optimize'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="thumb_optimize" type="radio" class="radio" value="0"<?php if ($this->vcfg['thumb_optimize'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="convert_path">Convert Path</label>
<input name="convert_path" type="text" id="convert_path" class="large" value="<?php echo $this->vcfg['convert_path']; ?>" />
</div>
</div>
<div class="required">
<label for="thumb_slide">Thumbs Slide:</label>
<input name="thumb_slide" type="radio" id="thumb_slide" class="radio" value="1"<?php if ($this->vcfg['thumb_slide'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="thumb_slide" type="radio" class="radio" value="0"<?php if ($this->vcfg['thumb_slide'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<div class="help-info"> If enabled, a slide will be created for each video (used to display in the flash player above the control bar).</div>
</div>
</fieldset>
<fieldset>
<legend>Embed Thumb</legend>
<div class="required">
<label for="thumb_allowed_ext">Allowed Extensions</label>
<input name="thumb_allowed_ext" type="text" id="thumb_allowed_ext" class="large" value="<?php echo e(implode(',', $this->vcfg['thumb_allowed_ext'])); ?>" />
</div>
<div class="required">
<label for="thumb_max_size">Max Size</label>
<input name="thumb_max_size" type="text" id="thumb_max_size" class="small" value="<?php echo $this->vcfg['thumb_max_size']; ?>" /> MB
</div>
</fieldset>
<fieldset>
<legend>Thumb Server</legend>
<div class="required">
<label for="thumb_server">Thumb Server: </label>
<input name="thumb_server" type="radio" id="thumb_server" class="radio" value="1"<?php if ($this->vcfg['thumb_server'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="thumb_server" type="radio" class="radio" value="0"<?php if ($this->vcfg['thumb_server'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="thumb-server-container"<?php if ($this->vcfg['thumb_server'] != '1'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="thumb_host">FTP Host</label>
<input name="thumb_host" type="text" id="thumb_host" class="medium" value="<?php echo e($this->vcfg['thumb_host']); ?>" />
</div>
<div class="required">
<label for="thumb_port">FTP Port</label>
<input name="thumb_port" type="text" id="thumb_port" class="tiny" value="<?php echo e($this->vcfg['thumb_port']); ?>" />
</div>
<div class="required">
<label for="thumb_user">FTP Username</label>
<input name="thumb_user" type="text" id="thumb_username" class="medium" value="<?php echo e($this->vcfg['thumb_user']); ?>" />
</div>
<div class="required">
<label for="thumb_pass">FTP Password</label>
<input name="thumb_pass" type="password" id="thumb_password" class="medium" value="<?php echo e($this->vcfg['thumb_pass']); ?>" />
</div>
<div class="required">
<label for="thumb_root">FTP Root</label>
<input name="thumb_root" type="text" id="thumb_root" class="large" value="<?php echo e($this->vcfg['thumb_root']); ?>" />
</div>
</div>
</fieldset>
</div>
<div class="tab6" style="display: none;">
<fieldset>
<legend>Embed Settings</legend>
<div class="required">
<label for="embed_allow">Allow Embedding</label>
<input name="embed_allow" type="radio" id="embed_allow" class="radio" value="1"<?php if ($this->vcfg['embed_allow'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="embed_allow" type="radio" class="radio" value="0"<?php if ($this->vcfg['embed_allow'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="embed_track">Track Embeds</label>
<input name="embed_track" type="radio" id="embed_track" class="radio" value="1"<?php if ($this->vcfg['embed_track'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="embed_track" type="radio" class="radio" value="0"<?php if ($this->vcfg['embed_track'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="embed_width">Embed Width</label>
<input name="embed_width" type="text" id="embed_width" class="tiny" value="<?php echo $this->vcfg['embed_width']; ?>" />
</div>
<div class="required">
<label for="embed_height">Embed Height</label>
<input name="embed_height" type="text" id="embed_height" class="tiny" value="<?php echo $this->vcfg['embed_height']; ?>" />
</div>
</fieldset>
</div>
<div class="tab7" style="display: none;">
<fieldset>
<legend>Playlist Settings</legend>
<div class="required">
<label for="playlists">Enable Playlists</label>
<input name="playlists" type="radio" id="playlists" class="radio" value="1"<?php if ($this->vcfg['playlists'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="playlists" type="radio" class="radio" value="0"<?php if ($this->vcfg['playlists'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="playlists-container"<?php if ($this->vcfg['playlists'] == '0'): echo ' style="display: none;"'; endif; ?>>
<fieldset>
<legend>Browse Settings</legend>
<div class="required">
<label for="playlists_per_page">Playlists per Page:</label>
<input name="playlists_per_page" type="text" id="playlists_per_page" class="tiny" value="<?php echo $this->vcfg['playlists_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Comments Settings</legend>
<div class="required">
<label for="playlist_comments">Show Comments</label>
<input name="playlist_comments" type="radio" id="playlist_comments" class="radio" value="1"<?php if ($this->vcfg['playlist_comments'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="playlist_comments" type="radio" class="radio" value="0"<?php if ($this->vcfg['playlist_comments'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="playlist_allow_comment">Allow Comment</label>
<input name="playlist_allow_comment" type="radio" id="playlist_allow_comment" class="radio" value="1"<?php if ($this->vcfg['playlist_allow_comment'] == '1'): echo ' checked="checked"'; endif; ?> /> Registered
<input name="playlist_allow_comment" type="radio" class="radio" value="2"<?php if ($this->vcfg['playlist_allow_comment'] == '2'): echo ' checked="checked"'; endif; ?> /> All
<input name="playlist_allow_comment" type="radio" class="radio" value="0"<?php if ($this->vcfg['playlist_allow_comment'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="playlist_comments_per_page">Comments per page</label>
<input name="playlist_comments_per_page" type="text" id="playlist_comments_per_page" class="tiny" value="<?php echo $this->vcfg['playlist_comments_per_page']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Rating Settings</legend>
<div class="required">
<label for="playlist_rating">Allow Rating</label>
<input name="playlist_rating" type="radio" id="playlist_rating" class="radio" value="1"<?php if ($this->vcfg['playlist_rating'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="playlist_rating" type="radio" class="radio" value="0"<?php if ($this->vcfg['playlist_rating'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="playlist_rating_count">Rating Count</label>
<select name="playlist_rating_count" id="playlist_rating_count">
<option value="1"<?php if ($this->vcfg['playlist_rating_count'] == '1'): echo ' selected="selected"'; endif; ?>>Once</option>
<option value="0"<?php if ($this->vcfg['playlist_rating_count'] == '0'): echo ' selected="selected"'; endif; ?>>Unlimited</option>
</select>
</div>
<div class="required">
<label for="playlist_rating_type">Rating Type</label>
<select name="playlist_rating_type" id="playlist_rating_type">
<option value="ip"<?php if ($this->vcfg['playlist_rating_type'] == 'ip'): echo ' selected="selected"'; endif; ?>>IP</option>
<option value="user"<?php if ($this->vcfg['playlist_rating_type'] == 'user'): echo ' selected="selected"'; endif; ?>>User</option>
</select>
</div>
</fieldset>
</div>
</fieldset>
</div>
<div class="tab8" style="display: none;">
<fieldset>
<legend>Categories Options</legend>
<div class="required">
<label for="subcategories">Subcategories</label>
<input name="subcategories" type="radio" id="subcategories" class="radio" value="1"<?php if ($this->vcfg['subcategories'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="subcategories" type="radio" class="radio" value="0"<?php if ($this->vcfg['subcategories'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>SEO Options</legend>
<div class="required">
<label for="separate_meta">Individual Meta</label>
<input name="separate_meta" type="radio" id="separate_meta" class="radio" value="1"<?php if ($this->vcfg['separate_meta'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="separate_meta" type="radio" class="radio" value="0"<?php if ($this->vcfg['separate_meta'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Delete Options</legend>
<div class="required">
<label for="delete_enabled">Allow Delete</label>
<input name="delete_enabled" type="radio" id="delete_enabled" class="radio" value="1"<?php if ($this->vcfg['delete_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="delete_enabled" type="radio" class="radio" value="0"<?php if ($this->vcfg['delete_enabled'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="delete_container"<?php if ($this->vcfg['delete_enabled'] == '0'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="delete_method">Delete Method</label>
<select name="delete_method" id="delete_method">
<option value="delete"<?php if ($this->vcfg['delete_method'] == 'delete'): echo ' selected="selected"'; endif; ?>>Delete</option>
<option value="suspend"<?php if ($this->vcfg['delete_method'] == 'suspend'): echo ' selected="selected"'; endif; ?>>Suspend</option>
<option value="change"<?php if ($this->vcfg['delete_method'] == 'change'): echo ' selected="selected"'; endif; ?>>Changed Username</option>
<option value="mark"><?php if ($this->vcfg['delete_method'] == 'mark'): echo ' selected="selected"'; endif; ?>>Mark as Deleted</option>
</select>
</div>
<div id="delete_method_change"<?php if ($this->vcfg['delete_method'] != 'change'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="delete_username">Username</label>
<input name="delete_username" type="text" id="delete_username" class="medium" value="<?php echo e($this->vcfg['delete_username']); ?>" />
</div>
</div>
</div>
</fieldset>
<fieldset>
<legend>Track Views</legend>
<div class="required">
<label for="track_views">Track Views:</label>
<select name="track_views" id="track_views">
<option value="0"<?php if ($this->vcfg['track_views'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
<option value="1"<?php if ($this->vcfg['track_views'] == '1'): echo ' selected="selected"'; endif; ?>>Yes (no time limit)</option>
<option value="7"<?php if ($this->vcfg['track_views'] == '7'): echo ' selected="selected"'; endif; ?>>One Week</option>
</select>
<span class="help-large">If you decide to use the One Week option, you need to add the 'cron/video_history.php' file to your weekly crontab!</span>
</div>
</fieldset>
<fieldset>
<legend>Miscelanous</legend>
<div class="required">
<label for="title_min_length">Title Min Length</label>
<input name="title_min_length" type="text" id="title_min_length" class="tiny" value="<?php echo $this->vcfg['title_min_length']; ?>" />
</div>
<div class="required">
<label for="title_max_length">Title Max Length</label>
<input name="title_max_length" type="text" id="title_max_length" class="tiny" value="<?php echo $this->vcfg['title_max_length']; ?>" />
</div>
<div class="required">
<label for="slug_max_length">SLUG Max Length</label>
<input name="slug_max_length" type="text" id="slug_max_length" class="tiny" value="<?php echo $this->vcfg['slug_max_length']; ?>" />
</div>
<div class="required">
<label for="desc_min_length">Description Min Length</label>
<input name="desc_min_length" type="text" id="desc_min_length" class="tiny" value="<?php echo $this->vcfg['desc_min_length']; ?>" />
</div>
<div class="required">
<label for="desc_max_length">Description Max Length</label>
<input name="desc_max_length" type="text" id="desc_max_length" class="tiny" value="<?php echo $this->vcfg['desc_max_length']; ?>" />
</div>
<div class="required">
<label for="tags_min_length">Tags Min Length</label>
<input name="tags_min_length" type="text" id="tags_min_length" class="tiny" value="<?php echo $this->vcfg['tags_min_length']; ?>" />
</div>
<div class="required">
<label for="tags_max_length">Tags Max Length</label>
<input name="tags_max_length" type="text" id="tags_max_length" class="tiny" value="<?php echo $this->vcfg['tags_max_length']; ?>" />
</div>
<div class="required">
<label for="tag_max_length">Tag Max Length</label>
<input name="tag_max_length" type="text" id="tag_max_length" class="tiny" value="<?php echo $this->vcfg['tag_max_length']; ?>" />
</div>
<div class="required">
<label for="tag_max_words">Tag Max Words</label>
<input name="tag_max_words" type="text" id="tag_max_words" class="tiny" value="<?php echo $this->vcfg['tag_max_words']; ?>" />
</div>
</fieldset>
</div>
<div class="submit">
<input name="submit_config" type="submit" id="submit_config" class="button butDef" value=" Save " />
<input name="submit_default" type="submit" id="submit_default" class="button butDef" value=" Default " />
</div>
</form>
</div>
</div>
</div>
</div>
</div>