/*
*********************************************
* eCard Application Info *
*********************************************
*/
$sitePath = "http://www.heartandcoeur.com/postcards"; // needed to create url for eCard pickup. Please leave off trailing slash.
$siteName = "Heart and Coeur PostCards "; // name shown in upper left corner of site and in emails
$siteEmail = "webmaster@heartandcoeur.com"; // 'From' email address shown in notification email
$deleteDays = 10; // Delete sent cards after this number of days. Set to 0 to not delete cards
$showLoginLink = 'no'; // Whether or not to show the 'login' link in the upper right. Valid options are 'yes' and 'no'. Access this page at login.php if you have link disabled
/*
*********************************************
* Database Properties *
*********************************************
*/
$dbhost = 'sql1.cluster1.easy-hebergement.net'; // database host
$dbuser = 'hearta8'; // database user name
$dbpass = 'e3icdm2q'; // database user password
$dbdatabase = 'hearta8'; // database with eCards tables
$tablePrefix = 'z_'; // prefix of tables created/used by gCards
/*
*********************************************
* Card Display Options *
*********************************************
*/
$cardsPerRow = 3; // number of cards shown per row on the index.php page
$rowsPerPage = 3; // number of rows of cards per page on the index.php page
$orderPop = 'yes'; // whether or not to show the most popular cards (those sent most) first. Takes precedence over the $order option below.
$order = 'DESC'; // 'ASC' or 'DESC' - set DESC to show most recently added cards first
$dropShadow = 'yes'; // whether to show cards with a drop shadow or a white background. 'yes' for drop shadow, any other value for white background
$stampImage = 'heartandcoeur.gif'; // stamp image to show when dropShadow = 'yes'. Use one of the included ones or create your own.
/*
*********************************************
* Email Text *
*********************************************
*/
$subject = 'Heart and coeur E-Card from $from_name!'; // subject of email sent when a person receives an eCard - $from_name gets replaced with the senders name
$message ='French Version:\r\n - $from_name vous a envoyé une carte virtuelle!\r\n - Vous pouvez aller la voir à cette adresse :\r\n - $sitePath/getcard.php?cardid=$cardid\r\n----------------------\r\nEnglish Version:\r\n - $from_name has sent you an eCard!\r\n - You can pick it up at the following address:\r\n - $sitePath/getcard.php?cardid=$cardid\r\n\r\n\r\n-------------------------------\r\nPowered by: http://www.heartandcoeur.com\r\n'; // the message sent to someone who receives an eCard.
/*
*********************************************
* Card Options *
*********************************************
*/
$imageLibrary = 'GD2'; // Choose GD or GD2 - use GD2 if it is available
$maxFileSize = 250; // Maximum image size allowed in upload (measured in KiloBytes)
$resize_height = 150; // Height of generated thumbnails
$imagequality = 95; // Quality of thumbnails. Range 0-100
/*
*********************************************
* News Options *
*********************************************
*/
$enableNews = 'no'; // whether or not to show 'news' on index.php
$newsLocation = 'bottom'; // whether news shows up on the 'right' or the 'bottom' of index.php
$newsTitle = 'Site News'; // title for news section
$newsLimit = 2; // number of news stories to show on index.php
$summaryLength = 350; // number of characters to show for each news item on index.php - news items with more characters will have a link to another page
$dateFormat ="F j, Y g:i a";// date format for news - see the following url for date format values: http://www.php.net/manual/en/function.date.php
/*
*********************************************
* Statistics *
*********************************************
*/
$stats_unique_index_hits_enabled = true; // track number of users who come to the index.php page (1 per browser session)
$stats_pickupcard_hits_enabled = true; // track number of cards that are picked up (getcard.php)
/*
*********************************************
* Language Options *
*********************************************
*/
$defaultLang = 'fr';
$lang = array();
$lang['fr'] = array (
'file' => "language_fr.php",
'desc' => "French",
'flag' => "fr.gif",
);
/*
*******************************************************
*** Example of adding another language file - add ***
*** file to inc/lang directory, add image to ***
*** images/SiteImages/flags directory ***
*******************************************************
*/
$lang['en'] = array (
'file' => "language_en.php",
'desc' => "English and USA",
'flag' => "en.gif",
);
/*
*******************************************************
*** Example of adding another language file - add ***
*** file to inc/lang directory, add image to ***
*** images/SiteImages/flags directory ***
*******************************************************
$lang['es'] = array (
'file' => "language_es.php",
'desc' => "Spanish",
'flag' => "es.gif",
);
*/
/*
*******************************************************
*** Example of adding another language file - add ***
*** file to inc/lang directory, add image to ***
*** images/SiteImages/flags directory ***
*******************************************************
$lang['de'] = array (
'file' => "language_de.php",
'desc' => "German",
'flag' => "de.gif",
);
*/
$gCardsVersion = 'Service of the webside: www.heartandcoeur.com'; // please don't change this
?>
// pager class requires use of ADODB
class pager
{
var $row;
var $pages;
var $currentpage;
var $limit;
var $numrows;
var $first;
var $last;
function pager($conn, $row, $limit=10, $getNumRowsSQL)
{
if (!isset($row)) $row = 0;
$this->row = $row;
$this->limit = $limit;
$this->numrows = $conn->GetOne($getNumRowsSQL);
if (($this->numrows % $this->limit) == 0) $this->pages = ($this->numrows/$this->limit);
else $this->pages = intval($this->numrows/$this->limit) + 1;
$this->currentpage = ($this->row/$this->limit) + 1;
$this->first = ($this->row + 1);
if (($this->row + $this->limit) >= $this->numrows) $this->last = $this->numrows; else $this->last = ($this->row + $this->limit);
}
function getrecords($conn, $sql, $array=false)
{
$recordSet = &$conn->SelectLimit($sql,$this->limit,$this->row);
if (!$array) return $recordSet;
return $recordSet->getArray();
}
function showpagernav($backtext = 'Back', $nexttext = 'Next', $otherargs='')
{
if ($this->pages > 1)
{
echo '
Notice: Undefined variable: cardsPerRow in /public_html/postcards/index.php on line 38
Notice: Undefined variable: rowsPerPage in /public_html/postcards/index.php on line 38
Notice: Undefined variable: dbhost in /public_html/postcards/index.php on line 42
Notice: Undefined variable: dbuser in /public_html/postcards/index.php on line 42
Notice: Undefined variable: dbpass in /public_html/postcards/index.php on line 42
Notice: Undefined variable: dbdatabase in /public_html/postcards/index.php on line 42
Warning: mysql_connect(): No such file or directory in /public_html/postcards/inc/adodb/drivers/adodb-mysql.inc.php on line 235
Error: Could not connect to database
Notice: Undefined index: nav09 in /public_html/postcards/inc/UIfunctions.php on line 95
Service of the webside: www.heartandcoeur.com Notice: Undefined index: CardsVersion in /public_html/postcards/inc/UIfunctions.php on line 95
Notice: Undefined index: siteName in /public_html/postcards/inc/UIfunctions.php on line 95
Notice: Undefined index: nav03 in /public_html/postcards/inc/UIfunctions.php on line 95 [ ]