/*
* gCards - a web-based eCard application
* Copyright (C) 2003 Greg Neustaetter
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
session_start();
include_once('inc/UIfunctions.php');
include_once('config.php');
include_once('inc/smileyClass.php');
include_once("inc/".$languageFile);
$smileyClass = new smileyClass("images/siteImages/smilies/");
if (isset($HTTP_GET_VARS['imageid'])) $HTTP_SESSION_VARS['imageid'] = (int)$HTTP_GET_VARS['imageid'];
$imageid = $HTTP_SESSION_VARS['imageid'];
if (isset($HTTP_SESSION_VARS['to_name'])) $to_name = $HTTP_SESSION_VARS['to_name'];
if (isset($HTTP_SESSION_VARS['from_name'])) $from_name = $HTTP_SESSION_VARS['from_name'];
if (isset($HTTP_SESSION_VARS['to_email'])) $to_email = $HTTP_SESSION_VARS['to_email'];
if (isset($HTTP_SESSION_VARS['from_email'])) $from_email = $HTTP_SESSION_VARS['from_email'];
if (isset($HTTP_SESSION_VARS['cardtext'])) $cardtext = $HTTP_SESSION_VARS['cardtext'];
if (isset($HTTP_SESSION_VARS['sendOnPickup'])) $sendOnPickup = $HTTP_SESSION_VARS['sendOnPickup'];
if (!$imageid)
{
showHeader();
echo $compose02;
showFooter();
exit;
}
else
{
showHeader($siteName,'',1, 1, 0, 'myForm.cardtext');
include('inc/adodb300/adodb.inc.php'); # load code common to ADOdb
include('config.php');
$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
$conn = &ADONewConnection('mysql'); # create a connection
$conn->Connect($dbhost,$dbuser,$dbpass,$dbdatabase);
$sqlstmt = "select * from ".$tablePrefix."cardinfo where imageid='$imageid'";
$recordSet = &$conn->Execute($sqlstmt);
if (!$recordSet)
print $conn->ErrorMsg();
else
{
while (!$recordSet->EOF)
{
$imageid = $recordSet->fields[imageid];
$cardname = $recordSet->fields[cardname];
$category = $recordSet->fields[category];
$imagepath = $recordSet->fields[imagepath];
$thumbpath = $recordSet->fields[thumbpath];
$recordSet->MoveNext();
}
?>
echo $compose02;?>