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