Location: PHPKode > projects > MJGUEST > mjguest/interface/cp_admin.htm.php
<form method="post" action="<?php echo $this->script_name?>do=setup" accept-charset="utf-8">
<fieldset>
	<table cellspacing="1">
		<tr>
			<th colspan="2"><?php echo $this->say['acp_admin_info']?></th>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['name']?></td>
			<td class="paramvalue">
				<input type="text" name="name_admin" value="<?php echo $this->SYSTEM->settings->param['name_admin']?>" class="panel_text" maxlength="50" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['email']?></td>
			<td class="paramvalue">
				<input type="text" name="adminmail" value="<?php echo $this->SYSTEM->settings->param['adminmail']?>" maxlength="<?php echo $this->SYSTEM->settings->param['adminmaillen']?>" class="panel_text" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['cp_password']?></td>
			<td class="paramvalue">
				<input type="password" name="adminpass" value="" class="panel_text" maxlength="30" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['email_notify']?></td>
			<td class="paramvalue">
				<label for="notifynewentry_on"><input type="radio" name="notifynewentry" id="notifynewentry_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo ($this->SYSTEM->settings->param['notifynewentry'] == 1 ? ' checked="checked"' : '')?> /> +</label>
				<label for="notifynewentry_off"><input type="radio" name="notifynewentry" id="notifynewentry_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['notifynewentry'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['mod_account']?></td>
			<td class="paramvalue">
				<label for="mod_on"><input type="radio" name="mod_account" id="mod_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo ($this->SYSTEM->settings->param['mod_account'] == 1 ? ' checked="checked"' : '')?> /> +</label>
				<label for="mod_off"><input type="radio" name="mod_account" id="mod_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['mod_account'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<th colspan="2"><?php echo $this->say['acp_localization']?></th>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['language']?> <bdo dir="ltr">(Dynamic: <?php echo strtoupper($this->SYSTEM->user->get('language'))?>)</bdo></td>
			<td class="paramvalue"><?php echo strtoupper($this->SYSTEM->user->get('language'))?>
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['time_zone']?> <bdo dir="ltr">(Dynamic: UTC <?php echo (int)+$this->SYSTEM->user->get('timezone')?> min.)</bdo></td>
			<td class="paramvalue">
<?php echo $this->list_timezones()?> 
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['datetime_format']?> <bdo dir="ltr">(Dynamic: <script type="text/javascript">document.write(localdate(<?php echo time()?>))</script>)</bdo></td>
			<td class="paramvalue">
<?php echo $this->list_dateformats()?> 
			</td>
		</tr>
		<tr>
			<th colspan="2"><?php echo $this->say['acp_appearance']?></th>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['theme']?></td>
			<td class="paramvalue">
<?php echo $this->list_themes()?> 
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['website_name']?></td>
			<td class="paramvalue">
				<input type="text" name="title" value="<?php echo $this->SYSTEM->settings->param['title']?>" maxlength="<?php echo $this->SYSTEM->settings->param['titlelen']?>" class="panel_text" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['entries_per_page']?></td>
			<td class="paramvalue">
				<input type="text" name="entriesxpage" value="<?php echo $this->SYSTEM->settings->param['entriesxpage']?>" maxlength="3" class="panel_text" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['redirect_screen']?></td>
			<td class="paramvalue">
				<label for="redirectscreen_on"><input type="radio" name="redirectscreen" id="redirectscreen_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo ($this->SYSTEM->settings->param['redirectscreen'] == 1 ? ' checked="checked"' : '')?> /> +</label>
				<label for="redirectscreen_off"><input type="radio" name="redirectscreen" id="redirectscreen_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['redirectscreen'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<th colspan="2"><?php echo $this->say['acp_customization']?></th>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['field_name_maxlength']?></td>
			<td class="paramvalue">
				<input type="text" name="namelen" value="<?php echo $this->SYSTEM->settings->param['namelen']?>" class="panel_text" maxlength="2" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['field_msg_maxlength']?></td>
			<td class="paramvalue">
				<input type="text" name="msglen" value="<?php echo $this->SYSTEM->settings->param['msglen']?>" class="panel_text" maxlength="5" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['max_emoticons_permsg']?> <bdo dir="ltr">(<?php echo $this->say['disabled']?> = 0)</bdo></td>
			<td class="paramvalue">
				<input type="text" name="emoticons" value="<?php echo $this->SYSTEM->settings->param['emoticons']?>" class="panel_text" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['max_avatar_kb']?> <bdo dir="ltr">(<?php echo $this->say['disabled']?> = 0)</bdo></td>
			<td class="paramvalue">
				<input type="text" name="avatars_maxkilobytes" value="<?php echo (/*!ini_get('file_uploads') ? '0" disabled="disabled' : */$this->SYSTEM->settings->param['avatars_maxkilobytes']) ?>" maxlength="4" class="panel_text" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['chat']?></td>
			<td class="paramvalue">
				<label for="messenger_on"><input type="radio" name="messenger" id="messenger_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo ($this->SYSTEM->settings->param['messenger'] == 1 ? ' checked="checked"' : '')?> /> +</label>
				<label for="messenger_off"><input type="radio" name="messenger" id="messenger_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['messenger'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['rating_system'],$this->rating_stats()?></td>
			<td class="paramvalue">
				<label for="rating_on"><input type="radio" name="rating" id="rating_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo ($this->SYSTEM->settings->param['rating'] == 1 ? ' checked="checked"' : '')?> /> +</label>
				<label for="rating_off"><input type="radio" name="rating" id="rating_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['rating'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<th colspan="2"><?php echo $this->say['acp_security']?></th>
		</tr>
		<tr>
			<td class="paramname">Built-in systems: anti-Spam, anti-Flood, anti-Hammering, anti-mailSpiders</td>
			<td class="paramvalue"><?php echo $this->say['eneabled']?></td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['swearwords_filter']?></td>
			<td class="paramvalue">
				<label for="wordfilter_on"><input type="radio" name="wordfilter" id="wordfilter_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo ($this->SYSTEM->settings->param['wordfilter'] == 1 ? ' checked="checked"' : '')?> /> +</label>
				<label for="wordfilter_off"><input type="radio" name="wordfilter" id="wordfilter_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['wordfilter'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['use_captcha']?></td>
			<td class="paramvalue">
				<label for="captcha_on"><input type="radio" name="captcha" id="captcha_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo (!function_exists('imagecreate') ? 'disabled="disabled"' : ($this->SYSTEM->settings->param['captcha'] == 1 ? ' checked="checked"' : ''))?> /> +</label>
				<label for="captcha_off"><input type="radio" name="captcha" id="captcha_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['captcha'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['entry_approval']?></td>
			<td class="paramvalue">
				<label for="entry_approval_on"><input type="radio" name="entry_approval" id="entry_approval_on" value="1" title="<?php echo $this->say['eneabled']?>"<?php echo ($this->SYSTEM->settings->param['entry_approval'] == 1 ? ' checked="checked"' : '')?> /> +</label>
				<label for="entry_approval_off"><input type="radio" name="entry_approval" id="entry_approval_off" value="0" title="<?php echo $this->say['disabled']?>"<?php echo ($this->SYSTEM->settings->param['entry_approval'] == 0 ? ' checked="checked"' : '')?> /> -</label>
			</td>
		</tr>
		<tr>
			<th colspan="2"><?php echo $this->say['acp_reset_ops']?></th>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['banned_guests']?></td>
			<td class="paramvalue">
<?php echo $this->list_banned()?> 
				<!--
				onsubmit="for (var i = 0; i < document.getElementById('banned[]').length; i++) document.getElementById('banned[]').options[i].selected=true"
				<input type="button" onclick="for (i = document.getElementById('banned[]').length - 1; i>=0; i- -) if (document.getElementById('banned[]').options[i].selected) document.getElementById('banned[]').remove(i); this.blur()" value="x" class="small" / >
				-->
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['trash_entries']?> <bdo dir="ltr">(<?php echo $this->SYSTEM->entry->total()?>)</bdo></td>
			<td class="paramvalue">
				<input type="checkbox" name="trashdata" value="1" onclick="return confirm_check(this, Say.confirm_trash_entries)" />
			</td>
		</tr>
		<tr>
			<td class="paramname"><?php echo $this->say['restore_config']?></td>
			<td class="paramvalue">
				<input type="checkbox" name="restoreconfig" value="1" onclick="return confirm_check(this, Say.confirm_restore_config)" />
			</td>
		</tr>
		<!--tr>
			<th colspan="2" style="cursor:hand" onclick="document.getElementById('adv_s').style.display = document.getElementById('adv_s').style.display == 'none' ? '' : 'none'">Advanced Settings (edit via mjguest.class.php)</th>
		</tr>
		<tr id="adv_s">
			<td class="paramname" colspan="2">
				<pre>< ?php print_r($this->SYSTEM->advanced_settings) ? ></pre>
			</td>
		</tr-->
	</table>
	<div class="buttons">
		<input type="submit" />
		<input type="reset" />
		<input type="submit" name="logout" value="<?php echo $this->say['button_logout']?>" />
		<input type="button" onclick="window.open('<?php echo mjguest_basedir?>UserGuide_<?php echo $this->SYSTEM->user->get('language') == 'it' ? 'it' : 'en' ?>.htm#2_0')" value="?" class="small" />
	</div>
</fieldset>
</form>
Return current item: MJGUEST