<?php
global $emailtmp;

$scriptversion="2.1";
/*Start M.Conf*/

/*Set Cookie Path - please use full local server path !important - end the path with a slash*/
$cookiepath=$ARCHIVES_DIR;

/*Set Form POST action page !integrate to page?*/
$postpath="sendmail.php";

/*Show @email.com just beside the textbox? [set 1 or 0]*/
$showemailtxt=1;

/*Insert emails to mysql table (contacts) note: compile the table from db.sql*/
$storeemail=0;

/*Fill the following mysql information if store email is enabled.
Ask your host for more details*/
$mysqldomain="localhost";
$mysqlusername="";
$mysqlpassword="";
$mysqldbname="";

/*Set Default Importer File*/
$defaultimporterlib="yahoolib.php";

/*Default !important*/
$importerinfo=Array();
$importerinfo["Hotmail"]="hotmaillib.php";
$importerinfo["MSN"]="msnlib.php";
$importerinfo["AOL"]="aollib.php";
$importerinfo["Yahoo"]="yahoolib.php";
$importerinfo["Gmail"]="gmaillib.php";
$importerinfo["Lycos"]="lycoslib.php";
$importerinfo["Mail.com"]="maillib.php";
$importerinfo["Rediffmail"]="rediffmaillib.php";
$importerinfo["Indiatimes"]="indiatimeslib.php";
$importerinfo[".Mac"]="maclib.php";
$importerinfo["FastMail"]="fastmaillib.php";
$importerinfo["Outlook CSV"]="outlooklib.php";
/*End Importer Filename Set*/

/*End M.Conf*/


/*Check Existence of Cookie Path*/
if(!file_exists($cookiepath)){echo "<pre>Cannot find <b>".htmlspecialchars($cookiepath,ENT_QUOTES)."</b>. Please make sure it is valid!
The cookie path can be set in <b>config.php</b>.</pre>"; exit;}


/*
Remove the lines below if your server OS does not support chmod.
Remember to allow full permission for the script !important
-------------------------------------------------------------------------------------------
*/
/*Check Cookie Path Chmod*/
if(substr(sprintf('%o',@fileperms($cookiepath)),-4)!="0777"){
echo "<pre>Chmod Directory: <b>".htmlspecialchars($cookiepath,ENT_QUOTES)."</b> is not set to 0777.
Poses a security risk. Cookie files will not be deleted after each session!</pre>";

/*Set Chmod Start*/
if(@chmod($cookiepath,0777)){echo "<pre>Chmod Directory: <b>".htmlspecialchars($cookiepath,ENT_QUOTES)."</b> is set to 0777 by the script. Refresh the page to take effect.
If this message still appears, please remove the line below in <b>config.php</b> and try again.</pre>";
}else{
echo "<pre>Chmod Directory: <b>".htmlspecialchars($cookiepath,ENT_QUOTES)."</b> failed to be set to 0777 by the script. Please set Chmod to 0777 manually.</pre>";
}
/*Set Chmod End*/

}




?>