user_details($instant_user); $user_id = $user_data[user_id]; $user_name_reg = $user_data[user_name]; $user_email_reg = $user_data[user_email]; //------------------------------------------------------------------------------------------------------------- include 'opendb.php'; $cat = $_REQUEST['cat']; $id = $_REQUEST['id']; $greet2k_top_heading = $_REQUEST['cat'].' Ecards'; $ecard_url_main = '/'.$_REQUEST['cat'].'/l0'.$_REQUEST['id'].'/'; $cat_url_main = '/'.$_REQUEST['cat'].'/'; //-------------------------------------------------------------------------------------------------------------- //$id = $_GET['i']; $sql = "SELECT * FROM `ecard_gallery` WHERE `id` = '$id' AND `cat_id` = '$cid' AND `status` = '0' OR `id` = '$id' AND `additional_cat_id` = '$cid' AND `status` = '0' OR `id` = '$id' AND `additional_cat_id1` = '$cid' AND `status` = '0' OR `id` = '$id' AND `additional_cat_id2` = '$cid' AND `status` = '0' OR `id` = '$id' AND `additional_cat_id3` = '$cid' AND `status` = '0' OR `id` = '$id' AND `additional_cat_id4` = '$cid' AND `status` = '0'"; $temp = mysql_query($sql) or die('Error, query failed1 ' . mysql_error()); $count_row = mysql_num_rows($temp); if($count_row == '0'){ $lnk = "http://ecards.greet2k.com/"; header("HTTP/1.1 301 Moved Permanently"); header("Location: $lnk"); } //$img_gif = "$img.gif"; $quaryl = "SELECT * FROM `ecard_gallery` WHERE `id` = '$id' AND `status` = '0'"; $resultl = mysql_query($quaryl) or die('Error, query failed1 ' . mysql_error()); $row = mysql_fetch_array($resultl); $file_id = $row[id]; $filename = $row[file_name]; $image_name = $row[image_name]; $image_path_main = 'http://cdn.greet2k.com/ecard/'.$row['image_name']; function ReallyGetFileExtension( &$filename ){ return ereg( ".([^\.]+)$", $filename, $r ) ? $r[1] : ""; } $ss = ReallyGetFileExtension($filename); //$f_url = substr($f_url,0,strrpos($f_urls,'.')); $file_caption = ucwords($row[ecard_caption]); $description = $row[description]; $i_w = $row[width]; $i_h = $row[hight]; //$ratio = $i_w/$i_h; //$ratio = round($ratio, 1); $voter = $row[voter]; $ratings = $row[ratings]; $downloads = $row[downloads]; $added = $row[added]; $card_type = $row[card_type]; $cloud= $row[tags]; $hits = $row[hits]; $t_hits = $hits; $hits = $hits + 1; $hit_update = mysql_query("UPDATE `ecard_gallery` SET `hits`='$hits' WHERE id='$file_id'"); //code for cate details $cat_id = $row[cat_id]; $catid = $row[cat_id]; $quaryc = "SELECT * FROM `ecard_category` WHERE `id` = '$cat_id'"; $resultc = mysql_query($quaryc) or die('Error, query failed1 ' . mysql_error()); $rowc = mysql_fetch_array($resultc); $cat_id = $rowc[id]; $catid = $cat_id; $path = $rowc[path]; $path_name = $rowc[path_name]; //echo $path_name; $wall_cat_name = $rowc[cat_name]; $mtf_cat_name = $wall_cat_name; $cate_background = $rowc[background]; if($cate_background == ''){ $cate_background = "default.gif"; } $currentDay = date("d"); $currentMonth = date("m"); $currentYear = date("Y"); $todays_date = date("d/m/Y"); //code for cate details $cat_id = $row[cat_id]; $catid = $row[cat_id]; $quaryc = "SELECT * FROM `ecard_category` WHERE `id` = '$cat_id'"; $resultc = mysql_query($quaryc) or die('Error, query failed1 ' . mysql_error()); $rowc = mysql_fetch_array($resultc); $cat_id = $rowc[id]; $catid = $cat_id; $path = $rowc[path]; $path_name = $rowc[path_name]; $path_url_srg = $rowc[path]; $wall_cat_name = $rowc[cat_name]; $mtf_cat_name = $wall_cat_name; $cate_background = $rowc[background]; if($cate_background == '') { $cate_background = "default.gif"; } //echo $cate_background; //----------------------------------------------------- $page_preview = '/view-ecard.html'; $page_send = '/send-ecard.html'; $fb_main_url = "http://ecards.greet2k.com".$ecard_url_main; $fb_thumb_url = $image_path_main; $top_header = "no_header"; ?> <?=$file_caption;?> - Free Online Greeting Cards

To: Recipient
From: Sender
Card Info

Send Ecard from here

Sender information
>
>
Recipient Information
+ click to add more recipents
Your Message
characters left.
Optional
> Please send me a copy of this card.
> Please notify me when the recipient views card. >
Delivery Date
Date :