Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/setup_ex_general.htm
<!-- TITLE: General Setup -->

<center>
  <a href="index.php?page=setup"><b>General Setup</b></a> |
  <a href="index.php?page=setup&f=adv"><b>Advanced Setup</b></a> |
  <a href="index.php?page=perform"><b>Performance Setup</b></a>
</center>
<br />


<script>
function SetupOnSubmit(){
  var f = document.frm;
  var max_upload_php = parseInt(##max_upload_kb##);
  var max_upload = parseInt(f.IMG_MAXSIZE.value);
  if(max_upload_php>0 && max_upload > max_upload_php){
    alert('Current PHP Upload Max FileSize Limit is ' + max_upload_php + 'KB');
    f.IMG_MAXSIZE.focus();
    return false;
  }
  return true;
}
</script>

       <table width="100%" border="0" cellspacing="1" cellpadding="0">
         <tr> 
           <td colspan="3"> 
             <form method="post" name="frm" OnSubmit="return SetupOnSubmit()">

<input type=hidden name=token value="##TOKEN##">

               <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">

                 <tr> 
                   <td colspan="3" class=th_adm>GENERAL SETTINGS</td>
                 </tr>
                 <tr>
                   <td width="3%">&nbsp;</td>
                   <td width="30%">Admin Email</td>
                   <td width="67%"> 
                     <input size=30 name=ADMIN_EMAIL value="##ADMIN_EMAIL##">
                     </td>
                 </tr>

                 <tr> 
                   <td>&nbsp;</td>
                   <td>Admin Login</td>
                   <td valign=top>
                     <input name=ADM_LOGIN value="##ADM_LOGIN##" size=20>
                     </td>
                 </tr>

                 <tr> 
                   <td>&nbsp;</td>
                   <td>Admin Password</td>
                   <td valign=top>
                     <input type=password name=ADM_PWD size=20>
<font class=txt8 color=blue>Leave blank to keep current password
                     </td>
                 </tr>


                 <tr> 
                   <td>&nbsp;</td>
                   <td>Site URL</td>
                   <td valign=top>
                     <input name=SITE_URL value="##SITE_URL##" size=50>
<font class=txt8 color=blue>(with trailing "/")
                     </td>
                 </tr>
                 <tr> 
                   <td>&nbsp;</td>
                   <td>Company Name</td>
                   <td valign=top>
                     <input name=COMPANY value="##COMPANY##" size=30>
<font class=txt8 color=blue>Used in email templates and other places
                     </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Meta Keywords 
<font class=txt8>(you can enter category-specific keywords at "Add/Modify Category" page)</font>
                   </td>
                   <td valign=top>
                     <textarea cols=50 rows=3 name=META_K>##META_K##</textarea>
                   </td>
                 </tr>


                 <tr>
                   <td >&nbsp;</td>
                   <td>Meta Description
<font class=txt8>(you can enter category-specific description at "Add/Modify Category" page)</font>
                   </td>
                   <td valign=top>
                     <textarea cols=50 rows=3 name=META_D>##META_D##</textarea>
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Use email as login
                   <font class=txt8>(username otherwise)
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_LOGIN_EM ##EN_LOGIN_EM## value=1>
                    <font class=txt8 color=blue>
                    Should registered users be authenticated by email or username?
                     </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>
Registration confirmation [<a href="javascript:OpenPreview('index.php?page=reg_confirm')">view</a>]
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_CONFIRM_REG ##EN_CONFIRM_REG## value=1>
                     <font class=txt8 color=blue> Require email confirmation at registration
                     </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>{Items} manual approval
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_APR_REQ ##EN_APR_REQ## value=1>
                     <font class=txt8 color=blue> Require admin approval of added/modified {items}
                     </td>
                 </tr>                 

                 <tr>
                   <td>&nbsp;</td>
                   <td>Users manual approval
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_APR_USERS ##EN_APR_USERS## value=1>
                     <font class=txt8 color=blue> Require admin approval of registered users 
                     </td>
                 </tr>                 
                 
                 <tr>
                   <td >&nbsp;</td>
                   <td>{Items} allowed per member
                   </td>
                   <td valign=top>
                    <input name=AD_ALLOWED value="##AD_ALLOWED##" size=6>
                    <font class=txt8 color=blue>
Set to 0 to allow unlimited amount
                   </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Number of {items} per page
                   </td>
                   <td valign=top>
                    <input name=ITEMS_PER_PAGE value="##ITEMS_PER_PAGE##" size=6>
                    <font class=txt8 color=blue>
Default amount of {items} to be displayed in category browsing results
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Users can delete {items}?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_U_DEL ##EN_U_DEL## value=1>
                    <font class=txt8 color=blue>
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Users can modify {item} exp. date?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_U_EXP_MOD ##EN_U_EXP_MOD## value=1>
                    <font class=txt8 color=blue>Allow free {items} placing ?
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td valign=top>Allow {item} placement under final level categories only?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_FCAT_ADS ##EN_FCAT_ADS## value=1>
                    <font class=txt8 color=blue>
Checking on will only allow users to add their listings in categories that do not have 
subcategories to them thus making them choose the lowest categories to add their listings. 
Otherwise users will be allowed to add listings in any category.
                   </td>
                 </tr>


                 <tr>
                   <td>&nbsp;</td>
                   <td valign=top>Enable {item} posting without formal registration?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_REG_SKIP ##EN_REG_SKIP## value=1>
                    <font class=txt8 color=blue>
Allow quick user registration directly from "{Add_Item}" page ?
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Allow certain <a href="index.php?page=tpl&file_name=allowed_html.txt">HTML tags</a> in textarea/htmlarea controls ?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_HTML_TAGS ##EN_HTML_TAGS## value=1>
                    <font class=txt8 color=blue>

Restricted HTML tags set protects your users from attacks that will reveal their personal information.
Click "HTML tags" link at the left to manage allowed HTML tags

                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Enable <a href="index.php?page=tpl&file_name=bad_words.txt">Bad Words</a> filtering?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_BAD_WORDS ##EN_BAD_WORDS## value=1>
                    <font class=txt8 color=blue>Replace bad words with "*" ?
                   </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Max. allowed word length
                   </td>
                   <td valign=top>
                    <input name=WORD_MAX_LEN value="##WORD_MAX_LEN##" size=6>
                    <font class=txt8 color=blue>
Set to 0 to disable long words checking
                   </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Max. allowed description length in search results
                   </td>
                   <td valign=top>
                    <input name=DESCR_MAX_LEN value="##DESCR_MAX_LEN##" size=6>
                    <font class=txt8 color=blue>
How many characters from description should be displayed when browsing / searching ads ?
                   </td>
                 </tr>


                 <tr>
                   <td>&nbsp;</td>
                   <td>Show Empty Categories ?</td>
                   <td valign=top>
                     <input type=checkbox name=EN_ZERO_CAT ##EN_ZERO_CAT## value=1>
                    <font class=txt8 color=blue>Display categories without {items} ?
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Character Set</td>
                   <td valign=top>
                     <input name=CHARSET value="##CHARSET##" size=20>
                    <font class=txt8 color=blue>
Charset for webpages and emails, i.e. iso-8859-1
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Date Format</td>
                   <td valign=top>
                     <input name=DATE_FMT value="##DATE_FMT##" size=15>
                    <font class=txt8 color=blue>
See <a href="http://www.php.net/manual-lookup.php?function=strftime" target="_blank">here</a>. European Format (e.g., 25-04-98): %d-%m-%y
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Date/Time Format</td>
                   <td valign=top>
                     <input name=DATE_TIME_FMT value="##DATE_TIME_FMT##" size=25>
                    <font class=txt8 color=blue>
See <a href="http://www.php.net/manual-lookup.php?function=strftime" target="_blank">here</a>
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Date Entry Format</td>
                   <td valign=top>
                     <select name=DATE_MENU>##DATE_MENU##</select>
                    <font class=txt8 color=blue>
MMDDYY - U.S. format, DDMMYY - European format
                   </td>
                 </tr>


                 <tr>
                   <td>&nbsp;</td>
                   <td>WYSIWYG HTML editor</td>
                   <td valign=top>
                     <select name=HTML_EDITOR>##HTML_EDITOR##</select>
                    <font class=txt8 color=blue>

Supported HTML editors readme file: 
<a href="javascript:OpenPreview('../html_editor/readme.txt')">html_editor/readme.txt</a>

                   </td>
                 </tr>


                 <tr>
                   <td colspan=3>&nbsp;</td>
                 </tr>
                 <tr> 
                   <td colspan="3" class=th_adm>IMAGE SETTINGS
<!-- IF ##GD_VER## == "2" -->
&nbsp;<font class=txt8 color=blue>(GD2 found)</font>
<!-- ENDIF -->

</td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Check image files validity
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_IMG_CHECK ##EN_IMG_CHECK## value=1>
                     <font class=txt8 color=blue>Check if uploaded files are images and reject if not 
                     </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Allowed file extensions <font class=txt8>(comma-separated)
                   </td>
                   <td valign=top>
			<input name=IMG_AL_EXT value="##IMG_AL_EXT##" size=60>
                   </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Images allowed per {item}
                   </td>
                   <td valign=top>
                     <input name=IMG_ALLOWED value="##IMG_ALLOWED##" size=5>
                    <font class=txt8 color=blue>
                   </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Upload boxes amount
                   </td>
                   <td valign=top>
                     <input name=IMG_UPLOAD value="##IMG_UPLOAD##" size=5>
                    <font class=txt8 color=blue>

We recommend to allow no more than 5 boxes because users 
using low speed internet connection can get timeouts uploading many large pictures at once

                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Max. allowed width, pixels
                   </td>
                   <td valign=top>
                     <input name=IMG_MAX_X value="##IMG_MAX_X##" size=10>
                    <font class=txt8 color=blue>
Set to 0 to disable width checking
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Max. allowed height, pixels
                   </td>
                   <td valign=top>
                     <input name=IMG_MAX_Y value="##IMG_MAX_Y##" size=10>
                    <font class=txt8 color=blue>
Set to 0 to disable height checking
                   </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Force resizing if XY sizes exceeded (width/height)
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_MAX_RESIZE ##EN_MAX_RESIZE## value=1>
                     <font class=txt8 color=blue>Resize to max. allowed sizes if they are exceeded (reject otherwise)
                     </td>
                 </tr>


                 <tr>
                   <td>&nbsp;</td>
                   <td>JPEG resizing quality
                   </td>
                   <td valign=top>
                     <input name=JPEG_QUALITY value="##JPEG_QUALITY##" size=3 maxlength=2>
                    <font class=txt8 color=blue>

Quality is 0 (worst) to 99 (best). The default is 72. The image size increases with high quality value and vice versa.

                   </td>
                 </tr>


                 <tr>
                   <td>&nbsp;</td>
                   <td>Max. allowed size of uploaded file, kb
<font class=txt8 color=blue>
(up to ##max_upload_kb##)
</font>
                   </td>
                   <td valign=top>
                     <input name=IMG_MAXSIZE value="##IMG_MAXSIZE##" size=10>
                    <font class=txt8 color=blue>
Set to 0 to disable filesize checking
                   </td>
                 </tr>

                 <tr>
                   <td >&nbsp;</td>
                   <td>Use ImageMagick <font class=txt8>(GD library otherwise)
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_IMAGEMAGICK ##EN_IMAGEMAGICK## value=1>
                     <font class=txt8 color=blue>We recommend ImageMagick usage if it is installed at your server.
As an external process, it's not subject to PHP's memory limits.
                     </td>
                 </tr>
                 <tr>
                   <td >&nbsp;</td>
                   <td>Path to ImageMagick files</td>
                   <td valign=top>
                     <input name=IM_DIR value="##IM_DIR##" size=40> 
                     &nbsp;<font class=txt8 color=blue><a href="javascript:popUp('index.php?page=setup&pg=imagemagick&dir='+escape(document.frm.IM_DIR.value),'PathLookUp',50,50,400,50)">Lookup</a>
&nbsp; (with trailing "/")
                     </td>
                 </tr>


           <tr>
                   <td>&nbsp;</td>
                   <td>Notify admin by email when..
                   </td>
                   <td valign=top>
<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr>
<td class=txt8 valign=top width="33%">
<input type=checkbox name=EN_M_AD_POST ##EN_M_AD_POST## value=1> {Item} Posted<br />
<input type=checkbox name=EN_M_AD_MOD ##EN_M_AD_MOD## value=1> {Item} Modified<br />
</td>
<td class=txt8 valign=top width="33%">
<input type=checkbox name=EN_M_AD_DEL ##EN_M_AD_DEL## value=1> {Item} Deleted<br />
<input type=checkbox name=EN_M_USER_REG ##EN_M_USER_REG## value=1> User Registered <br />
</td>
<td class=txt8 valign=top width="33%">
<input type=checkbox name=EN_M_CRON ##EN_M_CRON## value=1> Cron Job executed <br />
</td>
</tr>
</table>

                   </td>
                 </tr>
           <tr>
           <td colspan=3 height=10></td>
           </tr>
           <tr>
                   <td>&nbsp;</td>
                   <td>Notify user by email when..
                   </td>
                   <td valign=top>
<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr>
<td class=txt8 valign=top width="33%">
<input type=checkbox name=EN_M_REG2USER ##EN_M_REG2USER## value=1> User Registered <br />
</td>
<td class=txt8 valign=top width="33%">
<input type=checkbox name=EN_M_POST2USER ##EN_M_POST2USER## value=1> {Item} Posted<br />
</td>
<td class=txt8 valign=top width="33%">
<input type=checkbox name=EN_M_APR2USER ##EN_M_APR2USER## value=1> {Item} Approved <br />
</td>
</tr>
</table>

                   </td>
                 </tr>


                 <tr>
                   <td colspan=3>&nbsp;</td>
                 </tr>

                 <tr> 
                   <td colspan="3" class=th_adm>PAYMENT SETTINGS</td>
                 </tr>


                 <tr> 
                   <td>&nbsp;</td>
                   <td>Enable {Item} Exp. Date ?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_EXP_DATE ##EN_EXP_DATE## value=1>
                     <font class=txt8 color=blue> Check this on to charge for {item} placing
                     </td>
                 </tr>                 

                 <tr>
                   <td >&nbsp;</td>
                   <td>First {Item} is placed for Free by New Members ?
                   </td>
                   <td valign=top>
                     <input type=checkbox name=EN_1AD_FREE value=1 ##EN_1AD_FREE##>
                    <font class=txt8 color=blue>This has effect if {items} exp. date is enabled
                   </td>
                 </tr>

           <tr>
                   <td>&nbsp;</td>
                   <td>Allow these pages if User Account is Expired ?</td>
                   <td valign=top>
<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr>
<td class=txt8 valign=top width="50%">
<input type=checkbox name=EN_P_ADD ##EN_P_ADD## value=1> {Add_Item}<br />
</td>
<td class=txt8 valign=top width="50%">
<input type=checkbox name=EN_P_MOD ##EN_P_MOD## value=1> Modify {Item}<br />
</td>
</tr>
</table>

                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>
User must be logged in..
<br>
[<a target=_blank href="index.php?page=category_extra&type=A">category-specific</a>]
 
                  </td>
                   <td valign=top>
<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr>
<td class=txt8 valign=top width="50%">
<input type=checkbox name=EN_U_BROWSE_CATS ##EN_U_BROWSE_CATS## value=1> to browse categories<br />
<input type=checkbox name=EN_U_LIST_ADS ##EN_U_LIST_ADS## value=1> to browse/search {items}<br />
</td>
<td class=txt8 valign=top width="50%">
<input type=checkbox name=EN_U_VIEW_AD_DET ##EN_U_VIEW_AD_DET## value=1> to view {item} details<br />
</td>
</tr>
</table>

                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Currency Symbol</td>
                   <td valign=top>
                     <input name=CURR_SIGN value="##CURR_SIGN##" size=5> 
                     &nbsp;<font class=txt8>($, &pound;..)
                     </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Payment Description</td>
                   <td valign=top>
                     <input name=PAY_DESCR value="##PAY_DESCR##" size=40>
                   </td>
                 </tr>

                 <tr>
                   <td>&nbsp;</td>
                   <td>Online Sales Tax, %</td>
                   <td valign=top>
                     <input name=TAX value="##TAX##" size=4 maxlength=5>
                     &nbsp;<font class=txt8 color=blue>Set to 0 not to charge customers additional tax fee
                   </td>
                 </tr>


                  <tr>
                   <td colspan="3"> 
                     <div align="center"><br />
                       <input type="submit" name=go value="Update" class=button>
                       </div>
                   </td>
                 </tr>
               </table>
             </form>
  </td>
 </tr>
</table>
Return current item: Esvon Personals