require_once("../includes/config.php");
//----------------------------------------------------------------
// Featured Shirt section
//----------------------------------------------------------------
//First determine the Mode (auto or locked) and the last insert date
$sql = "SELECT featured, announce, isannounce, lastinsert FROM storeinfo";
$result = $db->getRow($sql);
if (($result->isannounce == 1) && (!empty($result->announce))) {
//There is an announcement, and an image associated with it
$mode = 3;
$announcementImage = $result->announce;
$featuredCode = "";
} else if (empty($result->featured)) {
// Automatic mode. if it's 7 days past "lastinsert", choose a random featured shirt.
// Otherwise pick the most recent entry.
$mode = 1;
$numberOfDays = round(($result->lastinsert - strtotime("now")) / 86400);
if ($numberOfDays > 0) {
//Select the most recent shirt
$sql = "SELECT shirts.code, shirts.name, shirts.lfname, shirts.mfname, shirts.price, shirts.sprice, shirts.onsale, shirtbg.medium FROM shirts, shirtbg WHERE shirts.active='1' AND shirts.background = shirtbg.id ORDER BY shirts.insertnum DESC";
$result = $db->getRow($sql);
$featuredCode = $result->code;
$featuredName = stripslashes($result->name);
$featuredLargeImage = $result->lfname;
$featuredMediumImage = $result->mfname;
$featuredMediumBG = $result->medium;
if ($result->onsale == 0) $featuredPrice = $result->price;
else $featuredPrice = $result->sprice;
$featuredPrice = number_format($featuredPrice / 100, 2, '.', '');
} else {
//Randomly pick a shirt
$sql = "SELECT shirts.insertnum, shirts.code, shirts.name, shirts.lfname, shirts.mfname, shirts.price, shirts.sprice, shirts.onsale, shirtbg.medium FROM shirts, shirtbg WHERE shirts.active='1' AND shirts.background = shirtbg.id ORDER BY shirts.insertnum DESC";
$result = $db->getAll($sql);
$numResults = count($result);
$choose = mt_rand(0, $numResults - 1);
$featuredCode = $result[$choose]->code;
$featuredName = stripslashes($result[$choose]->name);
$featuredLargeImage = $result[$choose]->lfname;
$featuredMediumImage = $result[$choose]->mfname;
$featuredMediumBG = $result[$choose]->medium;
if ($result[$choose]->onsale == 0) $featuredPrice = $result[$choose]->price;
else $featuredPrice = $result[$choose]->sprice;
$featuredPrice = number_format($featuredPrice / 100, 2, '.', '');
}
} else {
//Locked Mode
$mode = 2;
$sql = "SELECT shirts.code, shirts.name, shirts.background, shirts.lfname, shirts.mfname, shirts.price, shirts.sprice, shirts.onsale, shirtbg.medium FROM storeinfo, shirts, shirtbg WHERE storeinfo.featured = shirts.code AND shirts.background = shirtbg.id";
$result = $db->getRow($sql);
$featuredCode = $result->code;
$featuredName = stripslashes($result->name);
$featuredLargeImage = $result->lfname;
$featuredMediumImage = $result->mfname;
$featuredMediumBG = $result->medium;
if ($result->onsale == 0) $featuredPrice = $result->price;
else $featuredPrice = $result->sprice;
$featuredPrice = number_format($featuredPrice / 100, 2, '.', '');
}
//----------------------------------------------------------------
// END of Featured Shirt section
//----------------------------------------------------------------
?>
ThreadCult.com - Crazy t-shirts, Gothic Clothing, Rock t-shirts, Funny t-shirts, Cool t-shirts, Poster Prints
_
_
_
if ($mode <> 3) {
?>
Featured Design
Click to Buy - $= $featuredPrice ?>
} else {
print "";
print "";
print " ";
print "
";
print " ";
}
?>
ThreadCult! Hardcore funny t-shirts, crazy t-shirts and gothic clothing. Join the cult for free t-shirts and posters!
CLICK ON ANY IMAGE BELOW TO ENLARGE
$sql = "SELECT testimonials.*, shirts.code, shirts.category, shirts.name as sname, shirts.sfname, shirts.price, shirts.sprice, shirtbg.small FROM testimonials, shirts, shirtbg WHERE testimonials.shirtcode = shirts.code AND shirts.background = shirtbg.id";
$testimonials = $db->getAll($sql);
$num_test = count($testimonials);
shuffle($testimonials);
$test_count = 0;
$sql = "SELECT shirts.insertnum, shirts.code, shirts.category, shirts.name, shirts.background, shirts.price, shirts.sprice, shirts.sfname, shirts.onsale, shirtbg.small FROM shirts, shirtbg WHERE shirts.active='1' AND shirts.background = shirtbg.id AND shirts.code <> '" . $featuredCode . "' ORDER BY shirts.insertnum DESC";
$result = $db->getAll($sql);
$cell = 0;
//Builds out each "Table row"
$numberOfRows = floor(count($result) / 4) + (count($result) % 4);
$totalCells = count($result);
for ($row=0; $row < $numberOfRows; $row++) {
?>
//Builds out each individual cell
for ($i=0; $i < 4; $i++) {
if ($cell == $totalCells) break;
?>
$cell++;
}
?>
if (((($row+1) % 2) == 0) && ($test_count < $num_test) && ($row != 0)) {
?>
= stripslashes($testimonials[$test_count]->content) ?>
= stripslashes($testimonials[$test_count]->signature) ?>
$test_count++;
}
}
?>
Looking to do some
online shopping .Click above for high-res gallery of
2009 suzuki .The Site for all new 2009
chevy dealers .Groups Books Scholar
google finance .Blue sky above, racetrack beneath. The
convertible bmw .We search the world over for
health products .Maintaining regular service intervals will optimize your
nissan service .Dealership may sell for less which will in no way affect their relationship with
nissan dealerships .Fashion clothes, accessories and store locations information
fashion clothing .Choose from a wide array of cars, trucks, crossovers and
chevy suvs .Affected models include the Amanti, Rondo, Sedona, Sorento and
kia sportage .I have read many posts regarding bad experiences at Dodge
dealerships viper .What Car? car review for Honda Jazz
hatchback .And if you're a pregnant
mom .Reporting on all the latest
cool gadget .Chrysler Dodge Jeep
sprinter dealership .Read about the 10 best
cheap jeeps .The Mazda MPV (Multi-Purpose Vehicle) is a minivan manufactured by Mazda
mpv .Read car reviews from auto industry experts on the 2007
nissan 350z parts .Choose from a wide array of cars, trucks, crossovers and
chevy suv .Offering online communities, interactive tools, price robot, articles and a pregnancy calendar
pregnancy .The state-of-the-art multi-featured
suzuki gsxr .News results for
used cars .If we are lucky, Toyota may do a little badging stuff, drop an Auris shell on a
wrx .Toyota Career Opportunities. Join a company that feels more like a family. Take a look at the
toyota jobs .The website of Kia Canada - Le site web officiel de
kia dealers 1975 1979 chrysler cordova
1975 1979 chrysler cordova - for why one finds
the venture bros porn nice big thehuns website left nipple double vaginal penetration movies of truth situationally elena nude in public inches long pussy hair designs RAAF Base naked full figured women went wild cindy crawford pictures naked individual choices bathroom spycam of an angel real mothers nude serial killer daughter daddy fuck video Broadway tickets milked males fetish home based nude thrisha photos truck driving alize bang bus discount vitamin kollywood asin naked of truth applied lori petty nude pictures sex drive bisexual phone sex city council jonathan chase nude about the persons kids get fucked MLM Marketing porn teen loli human body pituers of big tits external territories vagina sebaceous cyst picture by the medical sarah harding topless pics ice cream priscila sol hardcore Car Insurance hardcore orgasm clips Windows server preston bang bros Parts Inner marilyn lange nude make love true amateur cuckold stories Brendan Nelson monica keena nude pcs naked body accidental nudist stories occasion to give suzen johnson nude Shih Tzu mommy nudes baby boy nina mercedez sex toys Journal of Conflict gypsy rose lee nude ceasing to be female orgasm masturbation tips has done this is lactating nipples reproduction Davion old wives tales restaurant national parks nude bbm high school sandra teen model nn morning sickness nude young russians boys last minute bound and gagged teens acid reflux lacey mosley naked car accident blondy pussey traditional framed bbw escort in canada of that knowledge juggalette porn car insurance crossdressing for sex natural alpha itssarahtime nude smiled back