示例#1
0
>Show my gallery</option>
                            <option value="Inactive" <?php 
if ($art_status_row['artist_gallery_status'] == 'Inactive') {
    ?>
 selected="selected"<?php 
}
?>
>Do not show my gallery</option>
                        </select>&nbsp;
                        </td>
					    <td>&nbsp;<a class="link_header_artist" href="<?php 
echo $_SERVER['HTTP_HOST'];
?>
cusvidtut.php">Help / Videos</a></td>
						<?php 
if (isloggedIn()) {
    ?>
							<td>&nbsp;<a class="link_header_artist" href="<?php 
    echo $_SERVER['HTTP_HOST'];
    ?>
logout.php"><b>Logout</b></a>&nbsp;</td>
						<?php 
}
?>
                    </tr>
					<tr>
						<td><a class="link_header_artist" href="<?php 
echo $_SERVER['HTTP_HOST'];
?>
art-hm.php">My Orders</a>&nbsp;</td>
						<td>&nbsp;<a class="link_header_artist" href="<?php 
<?php

include "includes/configuration.php";
include DIR_INCLUDES . 'functions/orders.php';
$payment = $_GET['payment'];
$u_id = $_SESSION['sess_tt_uid'];
$cart_id = $_GET['cart_id'];
if (!isloggedIn()) {
    header('Location:alogin.php?back_to=order-caricature.php');
    exit;
}
if ($cart_id == "" || $payment != 1) {
    header('Location:shoppingcart.php');
    exit;
}
$cartarray_rs = mysql_query("SELECT TEOP.*,TC.*,T.*,TU.user_email FROM `toon_cart`TC,`toon_ez_order_products`TEOP,`toon_users`TU,`toon_shipping_address`T WHERE TEOP.user_id={$u_id}  AND TC.user_id={$u_id} AND TEOP.cart_id='{$cart_id}' AND TC.cart_id='{$cart_id}' AND TU.user_id={$u_id} AND T.ezopro_id=TEOP.ezopro_id AND T.user_id={$u_id} ");
$cartarray_row = mysql_fetch_array($cartarray_rs);
$number = mysql_num_rows($cartarray_rs);
$cart = unserialize(base64_decode($cartarray_row['cart_array']));
if ($number == 0) {
    header('Location:buy-caricature-gift.php');
    exit;
}
$k = 1;
foreach ($cart as $key => $name) {
    $total_email += $name['totalprice'];
    $table = '<tr style="text-align:center">
		<td style="border-bottom:1px solid #CCCCCC;border-right:1px solid #CCCCCC;text-align:center;line-height:25px;">' . $k . '</td>
		<td style="border-bottom:1px solid #CCCCCC;border-right:1px solid #CCCCCC;text-align:center;">' . $name['ezproduct_name'] . '</td>
		<td style="border-bottom:1px solid #CCCCCC;border-right:1px solid #CCCCCC;text-align:center;">' . $name['number'] . '</td>
		<td style="border-bottom:1px solid #CCCCCC;border-right:1px solid #CCCCCC;text-align:center;">$&nbsp;' . number_format($name['ezproduct_price'], 2) . ' U.S</td>
示例#3
0
define("DIR_CARICATURE_IMAGES", FILESYSTEM_PATH . 'z_uploads/caricature_images/');
define("DIR_EZPRINTS_IMAGES", FILESYSTEM_PATH . 'z_uploads/EZ_images/');
define("DIR_PROFILE_IMAGES", FILESYSTEM_PATH . 'z_uploads/profile_images/');
define("DIR_COOL_LINK_IMAGES", FILESYSTEM_PATH . 'z_uploads/cool_link_images/');
define("DIR_COUPON_IMAGES", FILESYSTEM_PATH . 'z_uploads/coupon_images/');
define("DIR_EZUPLOAD_IMAGES", FILESYSTEM_PATH . 'z_uploads/ez_uploads/');
define("DIR_EZPRINTS_CAT_IMAGES", FILESYSTEM_PATH . 'z_uploads/EZ_category_images/');
define("DIR_SAMPLE_IMAGES", FILESYSTEM_PATH . 'z_uploads/sample_images/');
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . $pear_dir);
// For PEAR packages
/**
 * Include the Connections file.
 **/
$filename = DIR_INCLUDES . 'db_connect.php';
if (file_exists($filename)) {
    require_once $filename;
} else {
    print "Database connection file not found!!!";
}
## FETCH VALUES FROM CONFIG TABLE AND MOVE TO '$_CONFIG' ARRAY()
$configuration_query = mysql_query('SELECT * FROM `toon_configuration`') or die(mysql_error());
while ($row_configuration = mysql_fetch_assoc($configuration_query)) {
    $config_code = strtolower($row_configuration['config_code']);
    $_CONFIG[$config_code] = $row_configuration['config_value'];
}
//TO INCLUDE FUNCTION USER.PHP
include DIR_INCLUDES . 'functions/user.php';
if (!isloggedIn() && $_COOKIE["toons_id"]) {
    $_SESSION['sess_tt_uid'] = $_COOKIE["toons_id"];
}
/* End of file configuration.php */
示例#4
0
?>
order-caricature.php" />
					<area shape="poly" coords="186,105,435,122,434,150,187,148,187,120" href="<?php 
echo $_SERVER['HTTP_HOST'];
?>
buy-caricature-gift.php" />
					<area shape="poly" coords="455,112,577,122,575,153,450,149" href="<?php 
echo $_SERVER['HTTP_HOST'];
?>
contact.php" />
					</map>
			  </div>
		  	</div>
			<div class="headershadow">&nbsp;</div>
			<?php 
if (isloggedIn() || $getuserDetails['utype_id'] == 2) {
    $getuserDetails = getUserDetails($_SESSION['sess_tt_uid']);
    //Fetching the user details according to the userid
    ?>
					<div align="right" style="padding-right:10px;" class="header_text">
                    Hello <?php 
    echo $getuserDetails['user_fname'];
    ?>
 |
                    <a href="<?php 
    echo $_SERVER['HTTP_HOST'];
    ?>
aproset.php" class="header_links">Account</a> |
                    <a href="<?php 
    echo $_SERVER['HTTP_HOST'];
    ?>
示例#5
0
include "includes/configuration.php";
include DIR_FUNCTIONS . 'options.php';
include DIR_FUNCTIONS . 'paypal.php';
$ord_id = $_REQUEST['ord_id'];
if (!isloggedIn()) {
    if ($_COOKIE["toons_order_id"]) {
        header("Location:alogin.php?back_to=chkout.php?ord_id={$ord_id}");
        exit;
    } else {
        header('Location:alogin.php');
        exit;
    }
}
$u_id = $_SESSION['sess_tt_uid'];
if (isloggedIn() && $_COOKIE["toons_order_id"] == $ord_id) {
    mysql_query("UPDATE `toon_orders`SET`user_id`='{$u_id}' WHERE `order_id`='{$ord_id}'");
    setcookie('toons_order_id');
}
$biling_ord_query = mysql_query("SELECT * FROM `toon_orders` WHERE `order_id`='{$ord_id}' AND `user_id`='{$u_id}' AND `order_status`='Pending'");
$biling_ord_row = mysql_fetch_array($biling_ord_query);
if (mysql_num_rows($biling_ord_query) == 0) {
    header('Location:order-caricature.php');
    exit;
}
$price = $biling_ord_row['order_price'];
$ord_date = $biling_ord_row['order_date'];
$product_query = mysql_query("SELECT * FROM `toon_products` WHERE `product_id`={$biling_ord_row['product_id']}");
$product_row = mysql_fetch_array($product_query);
$artist_query = mysql_query("SELECT * FROM `toon_users` WHERE `user_id`={$biling_ord_row['artist_id']}");
$artist_row = mysql_fetch_array($artist_query);