<?php
/*
NmnNewsletter is a library that provides newsletter service
management for websites running php and mysql.
Copyright (C) 2006 Ivan Preziosi from netmeans.net - Rome.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
For more informations or to join the development of the library contact
the author at: hide@address.com
*/
/**
* This is a configuration file for the NmnNewsletter package
*
* @author Ivan Preziosi <hide@address.com>
*
* @package NmnNewsletter
*
*/
//iniSet **DON'T CHANGE THIS!!**//////////////
ini_set('include_path', ".".PATH_SEPARATOR."includes/");
ini_set('magic_quotes_gpc',"0");
ini_set('magic_quotes_runtime',"0");
////////////////////////////////////////////////////////////
//ADMIN SECTION
////////////////////////////////////
define("ADMIN_USERNAME", "admin");
//username of the admin
define("ADMIN_PASSWORD", "admin");
// pw of the administrator
//VERSION INFO
define("VERSION","NmnNewsletter 1.0.8");
//EMAIL CONTENT SECTION
///////////////////////////////////////
define("MAIL_FROM",'hide@address.com');
//mail from & reply to email address
define("NAME_FROM",'NmnNewsletter Bot');
//name from that will appear in your emails
define("LIST_NAME", "Your Newsletter");
//name that will appear in the confirmation messages sent out to your users for
//subscribe or unsubscribe actions. It will identify your list to the user as he will
//be asked to confirm subscription/unsubscription.
define("CHARSET", 'ISO-8859-1');
//ISO-8859-1
//UTF-8
//email and pages charset definition
//NOTE: file class.phpmailer.php has been modified to conform to the CHARSET constant. deleting it
//might compromise the funcionality of the phpMailer package
define("UNSUB_LINK",true);
//turns on the :|:UNSUBHREF:|: custom tag replacement functionality to insert raw href
// data in unsubscribe links into the newsletter template
define("TRACK_NL",true);
//turns on newsletter tracking
//APPLICATION SECTION
////////////////////////////////////////
define("SITE_URL",'http://localhost/');
//the root path of the site embedding the NmnNewsletter package
//ending with slash
define("APPLICATION_PATH",'NmnNewsletter/');
//the subdirectory in which the NmnNewsletter package is installed
//ending with slash
define("SETTIMELIMIT", true);
//if running in safe mode set it to false.
//if not in safe mode turn in to true to fire a "set_time_limit(0);" command before sending the newsletters.
define("USE_TINYMCE", true);
//if turned to on adds the possibility to implement
//the tinyMce WYSIWYG editor for newsletters compose page
//DATABASE SECTION
/////////////////////////////////////////
//database connection parameters
define("DB_HOST", "");
define("DB_USER", "");
define("DB_PASS", "");
define("DB_NAME", "");
//database table information
define("DB_NEWSLETTERS_TABLE", "nmn_newsletter");
//table in which all the newsletters data is stored
define("DB_USERS_TABLE", "nmn_iscritti");
//table in which all the users data is stored
define("DB_LOGS_TABLE", "nmn_newsletter_log");
//table in which all the logs data is stored
//MAIL SERVERS DATA
///////////////////////////////////////////
define("SEND_METHOD","MAIL"); // can be "MAIL", "SENDMAIL" or "SMTP"
//switch between the sendMail sending method(for linux servers), mail sending method(php function) or the smtp server connection method.
define("SMTP_HOST", "");
//address of the smtp server to use in case smtp sending method is in use
define("SMTP_USER", "");
//username to authenticate to the smtp server
define("SMTP_PASSWORD", "");
//pw to authenticate to the smtp server
//LANGUAGE SECTION DATA
///////////////////////////////////////////
define("LANGUAGE", "english");
// this is just the name of the propery file you want to use
// to load language data. Skip the .php extension.
// language files are to be located into the includes/lang directory.
//
// supported options:
// english
// italian
// german (thanks to Thomas Poshen - poschek[at]googlemail[dot]com - for german translation!)
// polish (thanks to Marcin Rożek - marcin[dot]rozek[at]am[dot]edu[dot]pl - for polish translation!)
// spanish (thanks to Javier Gálvez - jgalvez[at]cabocom[dot]com - for spanish translation!)
// japanese (thanks to Masato SAITO - mabots[at]gmail[dot]com - for japanese translation!)***
//
//
// **Volunteers willing to translate NmnNewsletter to still unsupported languages welcome!!
// **Please contact us at hide@address.com for more infos
//
// *****Note for using nmnnewsletter in Japanese Enviroment:******
//
// 1. Change mysql charset to utf8 before you use included SQL file.
// ( I suppose latin1 causes bad result with multi byte character.)
// 2. Set Character set to UTF-8 in config.php
//////////////////////////////////////////
//ENCRYPTION UTILITY//////////////////////
define("ENC_KEY", "changeMeSoon");
//encription key for all encription facilities present or future!
//***BE SURE TO INSERT A NEW KEY TO SECURE YOUR APPLICATION***
//you don't need to remember it so you can even select a fancy one
////////////////////////////////////////////////////
/////////////MYPAGINA CONFIG///////////////
// myPagina is a php class for paginating list
// it is published under the terms of the GNU General Public License
// for more info you can contact the author:
// Olaf Lederer (olaf.lederer[at]gmail[dot]com)
define("QS_VAR", "pageNumMyPagina");
// the variable name inside the request string (it must be reserved for myPagina)
define("NUM_ROWS", 20);
// the number of records on each page
define("STR_FWD", ">>");
// the string to be used for the step forward link
define("STR_BWD", "<<");
// the string to be used for the step backward link
define("NUM_LINKS", 10);
// the number of pages shown inside the navigation interface
////////////////////////////////////////////////
//DON'T CHANGE THIS ////////////////////////////
//require_once 'logger/NmnLogger.php';
require_once 'myPagina/my_pagina_class.php';
require_once 'sessionCtrl.php';
require_once 'common.libs.php';
require_once 'NewsletterDbConnector.class.php';
require_once 'NewsletterUsers.class.php';
require_once 'Newsletter.class.php';
require_once 'NewsletterLog.class.php';
require_once 'NewsletterSender.class.php';
require_once 'NewsletterConfirmation.class.php';
require_once 'NewsletterLangManager.class.php';
if (!NewsletterLangManager::loadLanguage()){
echo "Language file not found!";
exit;
}
////////////////////////////////////////////////
?>