#!c:/sambar51/perl/bin/perl
##################################################################
# Classified Ads ClAd-4.02                                       #
# Created 07/20/2000                                             #
# Available at http://clad.hypermart.net                         #
# Copyright 1999-2000 Ads-Programming.Com All Rights Reserved.   #
##################################################################

# Setting up Classified Ads options:

# Do not forget end slash / in paths!

# Set the base of the path of the directory where
# all database  files will be kept.
$basepath="c:/sambar51/docs/InetPub/nugorg/clad/data/";

# Set the base of the path of the directory where
# photos files will be kept.
$photopath="c:/sambar51/docs/InetPub/nugorg/clad/photo/";

# Set the base to the URL of the directory where
# all photos files will be kept.
$photourl="http://www.nuggethunters.org/clad/photo/";

# Auto deleting of expired ads (yes, no)
$auto_exp_del="no";
# Set up expiration period (days)
$stat{'expperiod'}="180";

# Moderating of ads submissions by admin before they
# appear in the index (yes, no) (this feature available only with "advamced" module)
$stat{'moderat'}="no";

# Date format mm/dd/yy (0) or dd/mm/yy (1)
$date_format_type="0";

# Admin password
$admpssw="eng300";

# Set admin e-mail (do nor forget slesh \ before @ )
$admmail="ggpa\@nuggethunters.com";

# Protect e-mail of ad owners by privacy mail feature (yes, no)
$stat{'protem'}="no";
# If privacy mail feature included , send copy of privacy
# mail to admin (yes, no)
$sendcopyadm="no";

# Enter the location of your mail program.
$mailprog = 'c:/sendmail/sendmail';

# Two different method to send e-mail via sendmail
# if not works "1" set up "2"
$smllq="2";

# number of Ads will be displays on each page
$hits =30;

# Set allowing html tags in the ad , 1- yes,  0- no.
$htmltag=1;

 # Set max bytes allowed for each ad fields
$maxadln=3000;

# Set max photos quantity allowed to load for each ad
$maxphotos=2;

# Set max size for all photos on the second ad page
$maxsizeph=92000;

# Includes into ads multimadia file (yes, no)
$mmfile_yn="yes";
# Extension for multimedia file (wav, avi ...)
$multim_ext=".wav";
# Title for multimedia link on the second page
$multim_link="Voice";
# Max size for multimedia file ( bytes )
$multim_maxs="120000";

# Include "Search" link (yes, no)
$include_search="yes";
# Include "Search" form on the index page of categories (yes, no)
$include_schform_ind="yes";

# Include Search form on the top page (yes, no)
$include_search_top="yes";
# Case sensitive (1) or unsensitive (0) searching for keywords .
$casesens="0";
# number of Ads will be displays on search page
$search_hits=30;

# Set up the description of categories
%cat_list=(
'1' =>['categories_group', "PRECIOUS METALS and GEMSTONES:"],
'2' =>['gold', "Gold-Sliver ForSale","price,ads_type,company"],
'3' =>['gems', "Gemstones ForSale","price,ads_type,company"],
'4' =>['categories_group', "Vehicles and ATVs:"],
'5' =>['car', "Cars, Motor-Homes","price,,ads_type,company"],
'6' =>['atv', "Atvs, Equip-Trailers","price,ads_type,company"],
'7' =>['truck', "Trucks, Travel-Trailers","price,ads_type,company"],
'8' =>['van', "Vans","price,ads_type,company"],
'b5' =>['categories_group', "Computers :"],
'b6' =>['hardware', "Computers, Hardware","price,ads_type,company"],
'b7' =>['software', "Computer Software","price,ads_type,company"],
'b8' =>['networking', "Networking","price,ads_type,company"],
'b9' =>['customprog', "Custom Programming, WebHosting","price,ads_type,company"],
'c0' =>['categories_group', "Equipment,Mining Prospecting: "],
'c1' =>['gold_prospecting', "Prospecting Equip","price,ads_type,company"],
'c2' =>['metal_detecting', "Detectors, Accessories, Misc","price,ads_type,company"],
'c3' =>['misc_equipment', "Generators, Engines, Winches","price,ads_type,company"],
'c4' =>['services', "Equipment Repair","price,ads_type,company"],
'c5' =>['misc_items', "Misc Items","price,ads_type,company"],
'c6' =>['camping', "Camping Equip","price,ads_type,company"]

 );



#  Set up description of ad fields used in all categories:
%def_fields=(
'1' => ['Title','title',"1",'nosearch','40', 'text', '', "yes"],
'3' => ['Brief Description','brief',"00",'nosearch','40','textarea', '10'],
'a4' => ['City','city',"12",'keyword','20', 'text', ''],
'a5' => ['State','state',"2",'nosearch','20', 'text', ''],
'a6' => ['Zip/Postal Code','zipcod',"2",'keyword','10', 'text', ''],
'a7' => ['Contact Name','contact_name',"2",'nosearch','40', 'text', '','yes'],
'a8' => ['Contact Phone','contact_phone',"00",'nosearch','20', 'text', ''],
'a9' => ['Contact e-mail','email',"00",'keyword','20', 'text', '','yes'],
'b1' => ['Home Page URL ','urlpage',"00",'nosearch','40', 'text', 'http://'],
'ab2' => ['Edit/delete password','passw',"00",'nosearch','20', 'text', '']
        );

#  Set up description of specific ad fields used only in some categories:
%specific_fields=(
'2' => ['Goal','goal','2','keyword','1','select',
        '<option>Marriage<option>Sex<option>Virtual Romance'],
'4' =>  ['Price','price','12','minmax','10','text'],
'5' => ['Salary','salary','12','minmax','10','text'],
'6' =>  ['Ads Type','ads_type','12','keyword','1','select',
        '<option>Wanted<option>Offered<option>General'],
'7' => ['Name','name',"12",'keyword','20', 'text', '',"yes"],
'8' => ['Age','age',"12",'minmax','10', 'text', '',"yes"],
'9' => ['Weihgt, kg','weight',"12",'minmax','10', 'text', '',"yes"],
'a1' => ['Height, cm','height',"12",'minmax','10', 'text', '',"yes"],
'a2' => ['Smoker','smoke','2','nosearch','1','select', '<option>Yes<option>No'],
'a3' => ['Company','company',"12",'keyword','20', 'text', '']

);

# Set up general html header and footer for all ad categories
$ghead= <<HTMLF;
<center>
<font FACE="ARIAL, HELVETICA" COLOR="#ffbc61" size=+2>
<b><I>Nuggethunter's Classified Ads </I></b>
</font>
</center>
<p>
HTMLF

$gfoot= <<HTMLF;
<hr size=0>
<center>
<font FACE="ARIAL, HELVETICA" COLOR="#ffbc61" size=-2>
<a href="ads.pl?admin">admin area</a>
&nbsp; &nbsp;
 Classified Ads by
<A HREF="http://www.nuggethunters.com" >Nuggethunters.Com</a>
<BR></font>
</center>
HTMLF




# Type of OS ( u - Unix, w - Windows)
$ostype="w";

# Using local time (local) or GMT time (gmt)
$localgmt="local";

############################################################
# Congratulations!  You've finished defining the variables.#
############################################################
############################################################
# Names of perl libraries for Classified Ads               #
# Set up libriary for specifying html layout of            #
# Classified Ads pages                                     #
require "clad_ht1.pl";                                     #
require "clad_usr.pl";                                     #
############################################################

$catname="ads";

$scache="<meta http-equiv=\"Expires\" content=\"3000\">";

$oneadmopt=1;
$crypt_form="1";
$select_defval="Please choose one";
$dlmtr1='|';
$dlmtr='\|';
$dlmt_flds="##!";
$dlmnewln="%!!";
$dlmnvar="=".$dlmnewln;
# Name of file with info about categories:
$catinfl=$basepath."catinfo.cci";
$chinerep="ab71cdk";

&startsub;