Файл: adultscript-2.0.3-pro/files/admin/templates/default/main_config.tpl.php
Строк: 452
<?php defined('_VALID') or die('Restricted Access!'); ?>
<script type="text/javascript">
$(document).ready(function() {
$("select[name='mailer']").change(function() {
$("div[id^='mailer_']").hide();
$("div[id='mailer_" + $(this).val() + "']").show();
});
$("input[name='akismet_enabled']").change(function() {
if ($(this).val() == '1') {
$("#akismet-container").show();
} else {
$("#akismet-container").hide();
}
});
$("select[name='cache_driver']").change(function() {
var driver = $(this).val();
if (driver == 'memcache') {
$("#cache-container-memcache").show();
} else {
$("#cache-container-memcache").hide();
}
});
});
</script>
<?php echo $this->fetch('errors'); ?>
<?php echo $this->fetch('messages'); ?>
<?php echo $this->fetch('warnings'); ?>
<div id="container" class="clearfix">
<div id="page">
<?php echo $this->fetch('main_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="Security!" />Security</a></li>
<li class="tab3"><a href="#" onclick="showOnly('tab3','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="Server!" />Server</a></li>
<li class="tab2"><a href="#" onclick="showOnly('tab2','barProds')"><img src="<?php echo TPL_REL; ?>/images/icons/plus-small.png" alt="System!" />System</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="Site!" />Site</a></li>
</ul>
<div class="tabContent clearfix">
<form name="config-form" id="config-form" method="post" action="<?php echo ADMIN_URL; ?>/index.php?q=main/config">
<div class="tab1">
<fieldset class="clearfix">
<legend>Site Settings</legend>
<div class="required">
<label for="site_name">Site Name</label>
<input name="site_name" type="text" value="<?php echo e($this->cfg['site_name']); ?>" id="site_name" class="large" />
</div>
</fieldset>
<fieldset>
<legend>Offline Settings</legend>
<div class="required">
<label for="offline">Site Offline:</label>
<input name="offline" type="radio" id="offline" class="radio" value="0"<?php if ($this->cfg['offline'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<input name="offline" type="radio" class="radio" value="1"<?php if ($this->cfg['offline'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
</div>
<div class="required">
<label for="offline_message">Offline Message:</label>
<textarea name="offline_message" id="offline_message" class="large" rows="3"><?php echo e($this->cfg['offline_message']); ?></textarea>
</div>
</fieldset>
<fieldset>
<legend>Seo Settings</legend>
<div class="required">
<label for="meta_desc">Meta Description</label>
<textarea name="meta_desc" id="meta_desc" class="mega" rows="3"><?php echo e($this->cfg['meta_desc']); ?></textarea>
</div>
<div class="required">
<label for="meta_keys">Meta Keywords</label>
<textarea name="meta_keys" id="meta_keys" class="mega" rows="3"><?php echo e($this->cfg['meta_keys']); ?></textarea>
</div>
<div class="required">
<label for="meta_title">Meta Title</label>
<input name="meta_title" type="radio" id="meta_title" class="radio" value="1"<?php if ($this->cfg['meta_title'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="meta_title" type="radio" class="radio" value="0"<?php if ($this->cfg['meta_title'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="meta_author">Meta Author</label>
<input name="meta_author" type="radio" id="meta_author" class="radio" value="1"<?php if ($this->cfg['meta_author'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="meta_author" type="radio" class="radio" value="0"<?php if ($this->cfg['meta_author'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Email Addresses</legend>
<div class="required">
<label for="email_site">Email Site</label>
<input name="email_site" type="text" id="email_site" class="mega" value="<?php echo e($this->cfg['email_site']); ?>" />
</div>
<div class="required">
<label for="email_admin">Email Admin</label>
<input name="email_admin" type="text" id="email_admin" class="mega" value="<?php echo e($this->cfg['email_admin']); ?>" />
</div>
<div class="required">
<label for="email_noreply">Email NoReply</label>
<input name="email_noreply" type="text" id="email_noreply" class="mega" value="<?php echo e($this->cfg['email_noreply']); ?>" />
</div>
</fieldset>
<fieldset>
<legend>Age Check</legend>
<div class="required">
<label for="age_check">Age Check:</label>
<input name="age_check" type="radio" id="age_check" class="radio" value="0"<?php if ($this->cfg['age_check'] == '0'): echo ' checked="checked"'; endif; ?> /> No
<input name="age_check" type="radio" class="radio" value="1"<?php if ($this->cfg['age_check'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
</div>
</fieldset>
<fieldset>
<legend>Multi Language</legend>
<div class="required">
<label for="multi_language">Multi Language:</label>
<input name="multi_language" type="radio" class="radio" value="1"<?php if ($this->cfg['multi_language'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="multi_language" type="radio" id="multi_language" class="radio" value="0"<?php if ($this->cfg['multi_language'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
</div>
<div class="tab2" style="display: none;">
<fieldset>
<legend>System Settings</legend>
<div class="required">
<label for="error">Error Handling</label>
<select name="error" id="error">
<option value="1"<?php if ($this->cfg['error'] == '1'): echo ' selected="selected"'; endif; ?>>Custom</option>
<option value="0"<?php if ($this->cfg['error'] == '0'): echo ' selected="selected"'; endif; ?>>PHP</option>
</select>
</div>
<div class="required">
<label for="debug">Debug</label>
<input name="debug" type="radio" id="debug" class="radio" value="1"<?php if ($this->cfg['debug'] == '1'): ?> checked="checked"<?php endif; ?> /> Yes
<input name="debug" type="radio" class="radio" value="0"<?php if ($this->cfg['debug'] == '0'): ?> checked="checked"<?php endif; ?> /> No
</div>
<div class="required">
<label for="profile">Profile</label>
<input name="profile" type="radio" id="profile" class="radio" value="1"<?php if ($this->cfg['profile'] == '1'): ?> checked="checked"<?php endif; ?> /> Yes
<input name="profile" type="radio" class="radio" value="0"<?php if ($this->cfg['profile'] == '0'): ?> checked="checked"<?php endif; ?> /> No
</div>
<div class="required">
<label for="log">Logging</label>
<input name="log" type="radio" id="log" class="radio" value="1"<?php if ($this->cfg['log'] == '1'): ?> checked="checked"<?php endif; ?> /> Yes
<input name="log" type="radio" class="radio" value="0"<?php if ($this->cfg['log'] == '0'): ?> checked="checked"<?php endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Cache Settings</legend>
<div class="required">
<label for="cache">Cache</label>
<input name="cache" type="radio" id="cache" class="radio" value="1"<?php if ($this->cfg['cache'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="cache" type="radio" class="radio" value="0"<?php if ($this->cfg['cache'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="cache_driver">Cache Driver</label>
<select name="cache_driver" id="cache_driver">
<?php foreach ($this->cache_drivers as $driver): ?>
<option value="<?php echo $driver['value']; ?>"<?php if ($this->cfg['cache_driver'] == $driver['value']): ?> selected="selected"<?php endif; ?>><?php echo e($driver['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
<div id="cache-container-memcache" <?php if ($this->cfg['cache_driver'] != 'memcache'): echo 'style="display: none;"'; endif; ?>>
<fieldset>
<legend>Memcache Settings</legend>
<div class="required">
<label for="memcache_servers">Memcache Server(s)</label>
<input name="memcache_servers" type="text" id="memcache_servers" class="large" value="<?php echo e($this->cfg['memcache_servers']); ?>" />
</div>
<div class="required">
<label for="memcache_persistent">Memcache Persistent</label>
<input name="memcache_persistent" type="radio" id="memcache_persistent" class="radio" value="1"<?php if ($this->cfg['memcache_persistent'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="memcache_persistent" type="radio" class="radio" value="0"<?php if ($this->cfg['memcache_persistent'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="memcache_compression">Memcache Compression</label>
<input name="memcache_compression" type="radio" id="memcache_compression" class="radio" value="1"<?php if ($this->cfg['memcache_compression'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="memcache_compression" type="radio" class="radio" value="0"<?php if ($this->cfg['memcache_compression'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
</div>
<div class="required">
<label for="cache_lifetime">Cache Lifetime</label>
<input name="cache_lifetime" type="text" id="cache_lifetime" class="tiny" value="<?php echo e($this->cfg['cache_lifetime']); ?>" /> Minutes
</div>
<div class="required">
<label for="template_cache">Cache Templates</label>
<input name="template_cache" type="radio" id="template_cache" class="radio" value="1"<?php if ($this->cfg['template_cache'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="template_cache" type="radio" class="radio" value="0"<?php if ($this->cfg['template_cache'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
</fieldset>
<fieldset>
<legend>Session Settings</legend>
<div class="required">
<label for="session_name">Session Name</label>
<input name="session_name" type="text" id="session_name" class="medium" value="<?php echo e($this->cfg['session_name']); ?>" />
</div>
<div class="required">
<label for="session_driver">Session Driver</label>
<select name="session_driver" id="session_driver">
<?php foreach ($this->session_drivers as $driver): ?>
<option value="<?php echo $driver['value']; ?>"<?php if ($this->cfg['session_driver'] == $driver['value']): ?> selected="selected"<?php endif; ?>><?php echo e($driver['name']); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="required">
<label for="session_lifetime">Session Lifetime</label>
<input name="session_lifetime" type="text" id="session_lifetime" class="tiny" value="<?php echo e($this->cfg['session_lifetime']); ?>" /> Minutes
</div>
</fieldset>
</div>
<div class="tab3" style="display: none;">
<fieldset>
<legend>Locale Settings</legend>
<div class="required">
<label for="timezone">Timezone</label>
<select name="timezone" id="timezone">
<?php $current = date_default_timezone_get();
foreach ($this->timezones as $timezone): ?>
<option value="<?php echo e($timezone); ?>"<?php if ($current == $timezone): echo ' selected="selected"'; endif; ?>><?php echo e($timezone); ?></option>
<?php endforeach; ?>
</select>
</div>
</fieldset>
<fieldset>
<legend>PHP CLI</legend>
<div class="required">
<label for="php_cli_path">PHP CLI Path</label>
<input name="php_cli_path" type="text" id="php_cli_path" class="large" value="<?php echo e($this->cfg['php_cli_path']); ?>" />
</div>
</fieldset>
<fieldset>
<legend>Mail Settings</legend>
<div class="required">
<label for="mailer">Mailer</label>
<select name="mailer" id="mailer">
<option value="mail"<?php if ($this->cfg['mailer'] == 'mail'): ?> selected="selected"<?php endif;?>>PHP Mail Function</option>
<option value="sendmail"<?php if ($this->cfg['mailer'] == 'sendmail'): ?> selected="selected"<?php endif;?>>Sendmail</option>
<option value="smtp"<?php if ($this->cfg['mailer'] == 'smtp'): ?> selected="selected"<?php endif;?>>SMTP Server</option>
</select>
</div>
<div id="mailer_sendmail"<?php if ($this->cfg['mailer'] != 'sendmail'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="sendmail">Sendmail Path</label>
<input name="sendmail" type="text" id="sendmail" class="large" value="<?php echo e($this->cfg['sendmail']); ?>" />
</div>
</div>
<div id="mailer_smtp"<?php if ($this->cfg['mailer'] != 'smtp'): echo ' style="display: none;"'; endif; ?>>
<div class="required">
<label for="smtp_host">SMTP Host</label>
<input name="smtp_host" type="text" id="smtp_host" class="large" value="<?php echo e($this->cfg['smtp_host']); ?>" />
</div>
<div class="required">
<label for="smtp_port">SMTP Port</label>
<input name="smtp_port" type="text" id="smtp_port" class="tiny" value="<?php echo e($this->cfg['smtp_port']); ?>" />
</div>
<div class="required">
<label for="smtp_auth">SMTP Authentification</label>
<input name="smtp_auth" type="radio" id="smtp_auth" class="radio" value="1"<?php if ($this->cfg['smtp_auth'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="smtp_auth" type="radio" class="radio" value="0"<?php if ($this->cfg['smtp_auth'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required">
<label for="smtp_username">SMTP Username</label>
<input name="smtp_username" type="text" id="smtp_username" value="<?php echo e($this->cfg['smtp_username']); ?>" />
</div>
<div class="required">
<label for="smtp_password">SMTP Password</label>
<input name="smtp_password" type="password" id="smtp_password" value="<?php echo e($this->cfg['smtp_password']); ?>" />
</div>
<div class="required">
<label for="smtp_prefix">SMTP Prefix</label>
<select name="smtp_prefix" id="smtp_prefix">
<option value=""<?php if ($this->cfg['smtp_prefix'] == ''): echo ' selected="selected"'; endif; ?>>None</option>
<option value="ssl"<?php if ($this->cfg['smtp_prefix'] == 'ssl'): echo ' selected="selected"'; endif; ?>>SSL</option>
<option value="tls"<?php if ($this->cfg['smtp_prefix'] == 'tls'): echo ' selected="selected"'; endif; ?>>TLS</option>
</select>
</div>
</div>
</fieldset>
<fieldset>
<legend>Sphinx Settings</legend>
<div class="required">
<label for="sphinx_host">Sphinx Host/IP: </label>
<input name="sphinx_host" type="text" id="sphinx_host" class="medium" value="<?php echo e($this->cfg['sphinx_host']); ?>" /> <i>Leave empty if you are not using Sphinx!</i>
</div>
<div class="required">
<label for="sphinx_port">Sphinx Port: </label>
<input name="sphinx_port" type="text" id="sphinx_port" class="small" value="<?php echo $this->cfg['sphinx_port']; ?>" />
</div>
<div class="required">
<label for="sphinx_index">Sphinx Index: </label>
<input name="sphinx_index" type="text" id="sphinx_index" class="medium" value="<?php echo e($this->cfg['sphinx_index']); ?>" />
</div>
</fieldset>
</div>
<div class="tab4" style="display: none;">
<fieldset>
<legend>Security Settings</legend>
<div class="required">
<label for="comment_delay">Comment Delay: </label>
<input name="comment_delay" type="text" id="comment_delay" class="tiny" value="<?php echo e($this->cfg['comment_delay']); ?>" /> <i>In seconds (default is 30).</i>
</div>
<div class="required">
<label for="akismet_enabled">Akismet Enabled: </label>
<input name="akismet_enabled" type="radio" id="akismet_enabled" class="radio" value="1"<?php if ($this->cfg['akismet_enabled'] == '1'): echo ' checked="checked"'; endif; ?> /> Yes
<input name="akismet_enabled" type="radio" class="radio" value="0"<?php if ($this->cfg['akismet_enabled'] == '0'): echo ' checked="checked"'; endif; ?> /> No
</div>
<div class="required" id="akismet-container"<?php if ($this->cfg['akismet_enabled'] == '0'): echo ' style="display: none;"'; endif; ?>>
<label for="akismet_key">Akismet Key: </label>
<input name="akismet_key" type="text" id="akismet_key" class="large" value="<?php echo e($this->cfg['akismet_key']); ?>" />
<span class="help-info">A commercial api key from http://www.akismet.com is required to use this service!</span>
</div>
</fieldset>
</div>
<div class="submit">
<input name="submit_config" type="submit" id="submit_config" class="button butDef" value=" Save " />
</div>
</form>
</div>
</div>
</div>
</div>
</div>