Файл: adultscript-2.0.3-pro/files/admin/templates/default/photo_config.tpl.php
Строк: 562
<?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() {
$("input[name='thumb_server']").change(function() {
if ($(this).val() == '1') {
$("#thumb-server-container").show();
} else {
$("#thumb-server-container").hide();
}
});
});
</script>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('photo_menu'); ?>
<div class="content clearfix">
<div class="clearfix tabbar barProds">
<ul class="tabs">
<li class="tab4"><a href="#" onclick="showOnly('tab4','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="" />Advanced</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 name="pornstar-config-form" id="pornstar-config-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=photo/config">
<div class="tab1">
<fieldset>
<legend>Browse Settings</legend>
<div class="required">
<label for="browse_type">Browse Type</label>
<select name="browse_type" id="browse_type">
<option value="albums"<?php if ($this->pcfg['browse_type'] == 'albums'): echo ' selected="selected"'; endif; ?>>Albums</option>
<option value="photos"<?php if ($this->pcfg['browse_type'] == 'photos'): echo ' selected="selected"'; endif; ?>>Photos</option>
</select>
</div>
<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->pcfg['browse_category'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="browse_category" type="radio" class="radio" value="0"<?php if ($this->pcfg['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->pcfg['browse_order'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="browse_order" type="radio" class="radio" value="0"<?php if ($this->pcfg['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->pcfg['browse_timeline'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="browse_timeline" type="radio" class="radio" value="0"<?php if ($this->pcfg['browse_timeline'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="browse_per_page">Albums per Page</label>
<input name="browse_per_page" type="text" id="browse_per_page" class="tiny" value="<?php echo $this->pcfg['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->pcfg['search_type'] == 'simple'): echo ' selected="selected"'; endif; ?>>Simple</option>
<option value="complex"<?php if ($this->pcfg['search_type'] == 'complex'): echo ' selected="selected"'; endif; ?>>Complex</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->pcfg['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">Simple</option>
<option value="complex">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->pcfg['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->pcfg['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->pcfg['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->pcfg['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->pcfg['view_desc'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="view_desc" type="radio" class="radio" value="0"<?php if ($this->pcfg['view_desc'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="album_per_page">Album per Page</label>
<input name="album_per_page" type="text" id="album_per_page" class="small" value="<?php echo $this->pcfg['album_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->pcfg['view_comments'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="view_comments" type="radio" class="radio" value="0"<?php if ($this->pcfg['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->pcfg['allow_comment'] == '1'): echo ' checked="checked"'; endif; ?> /> Registered
<input name="allow_comment" type="radio" class="radio" value="2"<?php if ($this->pcfg['allow_comment'] == '2'): echo ' checked="checked"'; endif; ?> /> All
<input name="allow_comment" type="radio" class="radio" value="0"<?php if ($this->pcfg['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="allow_comment" class="radio" value="1"<?php if ($this->pcfg['approve_comments'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="approve_comments" type="radio" class="radio" value="0"<?php if ($this->pcfg['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->pcfg['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->pcfg['allow_rating'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="allow_rating" type="radio" class="radio" value="0"<?php if ($this->pcfg['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->pcfg['rating_count'] == '1'): echo ' selected="selected"'; endif; ?>>Once</option>
<option value="0"<?php if ($this->pcfg['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->pcfg['rating_type'] == 'ip'): echo ' selected="selected"'; endif; ?>>IP</option>
<option value="user"<?php if ($this->pcfg['rating_type'] == 'user'): echo ' selected="selected"'; endif; ?>>User</option>
</select>
</div>
</fieldset>
<fieldset>
<legend>Password Protection</legend>
<div class="required">
<label for="allow_password">Allow Password</label>
<input name="allow_password" type="radio" id="allow_password" class="radio" value="1"<?php if ($this->pcfg['allow_password'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="allow_password" type="radio" class="radio" value="0"<?php if ($this->pcfg['allow_password'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
</div>
<div class="tab3" style="display: none;">
<fieldset>
<legend>Upload Configuration</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->pcfg['upload_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="upload_enabled" type="radio" class="radio" value="0"<?php if ($this->pcfg['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->pcfg['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->pcfg['upload_perm'] == $group['name']): echo ' selected="selected"'; endif; ?>><?php echo $this->_($group['name']); ?></option>
<?php endforeach; ?>
</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->pcfg['max_categories']; ?>" />
</div>
<div class="required">
<label for="photo_allowed_ext">Allowed Extensions</label>
<input name="photo_allowed_ext" type="text" id="photo_allowed_ext" class="large" value="<?php echo e(implode(',', $this->pcfg['photo_allowed_ext'])); ?>" />
</div>
<div class="required">
<label for="photo_max_size">Maximum Size</label>
<input name="photo_max_size" type="text" id="photo_max_size" class="tiny" value="<?php echo $this->pcfg['photo_max_size']; ?>" /> MB
</div>
<div class="required">
<label for="approve">Approve Uploads</label>
<input name="approve" type="radio" id="allow_comment" class="radio" value="1"<?php if ($this->pcfg['approve'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="approve" type="radio" class="radio" value="0"<?php if ($this->pcfg['approve'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="multi_server">Multi Server</label>
<input name="multi_server" type="radio" id="allow_comment" class="radio" value="1"<?php if ($this->pcfg['multi_server'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="multi_server" type="radio" class="radio" value="0"<?php if ($this->pcfg['multi_server'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<fieldset>
<legend>Cover Settings</legend>
<div class="required">
<label for="cover_resize_type">Resize Method</label>
<select name="cover_resize_type" id="cover_resize_type">
<option value="canvas"<?php if ($this->pcfg['cover_resize_type'] == 'canvas'): echo ' selected="selected"'; endif; ?>>Canvas</option>
<option value="crop"<?php if ($this->pcfg['cover_resize_type'] == 'crop'): echo ' selected="selected"'; endif; ?>>Crop</option>
</select>
</div>
<div class="required">
<label for="cover_width">Width</label>
<input name="cover_width" type="text" id="cover_width" class="tiny" value="<?php echo $this->pcfg['cover_width']; ?>" />
</div>
<div class="required">
<label for="cover_height">Height</label>
<input name="cover_height" type="text" id="cover_height" class="tiny" value="<?php echo $this->pcfg['cover_height']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Photo Settings</legend>
<div class="required">
<label for="photo_width">Photo Width</label>
<input name="photo_width" type="text" id="photo_width" class="tiny" value="<?php echo $this->pcfg['photo_width']; ?>" />
</div>
<div class="required">
<label for="photo_height">Photo Height</label>
<input name="photo_height" type="text" id="photo_height" class="tiny" value="<?php echo $this->pcfg['photo_height']; ?>" />
</div>
<div class="required">
<label for="thumb_width">Thumb Width</label>
<input name="thumb_width" type="text" id="thumb_width" class="tiny" value="<?php echo $this->pcfg['thumb_width']; ?>" />
</div>
<div class="required">
<label for="thumb_height">Thumb Height</label>
<input name="thumb_height" type="text" id="thumb_height" class="tiny" value="<?php echo $this->pcfg['thumb_height']; ?>" />
</div>
</fieldset>
<fieldset>
<legend>Mobile Photos Settings</legend>
<div class="required">
<label for="mobile">Resize Mobile</label>
<input name="mobile" type="radio" id="mobile" class="radio" value="1"<?php if ($this->pcfg['mobile'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="mobile" type="radio" class="radio" value="0"<?php if ($this->pcfg['mobile'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="mobile_width">Photo Width</label>
<input name="mobile_width" type="text" id="mobile_width" class="tiny" value="<?php echo $this->pcfg['mobile_width']; ?>" />
</div>
<div class="required">
<label for="mobile_height">Photo Height</label>
<input name="mobile_height" type="text" id="mobile_height" class="tiny" value="<?php echo $this->pcfg['mobile_height']; ?>" />
</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->pcfg['thumb_server'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="thumb_server" type="radio" class="radio" value="0"<?php if ($this->pcfg['thumb_server'] == '0'): echo ' checked="checked"';endif; ?> /> No
<span> - Enable to store photo thumbs and album covers!</span>
</div>
<div id="thumb-server-container"<?php if ($this->pcfg['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->pcfg['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->pcfg['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->pcfg['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->pcfg['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->pcfg['thumb_root']); ?>" />
</div>
</div>
</fieldset>
</fieldset>
</div>
<div class="tab4" style="display: none;">
<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->pcfg['track_views'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
<option value="1"<?php if ($this->pcfg['track_views'] == '1'): echo ' selected="selected"'; endif; ?>>Yes (no time limit)</option>
<option value="7"<?php if ($this->pcfg['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>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->pcfg['delete_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="delete_enabled" type="radio" class="radio" value="0"<?php if ($this->pcfg['delete_enabled'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div id="delete_container"<?php if ($this->pcfg['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->pcfg['delete_method'] == 'delete'): echo ' selected="selected"'; endif; ?>>Delete</option>
<option value="suspend"<?php if ($this->pcfg['delete_method'] == 'suspend'): echo ' selected="selected"'; endif; ?>>Suspend</option>
<option value="change"<?php if ($this->pcfg['delete_method'] == 'change'): echo ' selected="selected"'; endif; ?>>Changed Username</option>
</select>
</div>
<div id="delete_method_change"<?php if ($this->pcfg['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->pcfg['delete_username']); ?>" />
</div>
</div>
</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->pcfg['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->pcfg['title_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->pcfg['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->pcfg['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->pcfg['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->pcfg['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->pcfg['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->pcfg['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>