IMPORTANT!!! Due to the nature of the characterset used in this file it is important to save this file with an UTF-8 encoding. Contact: thecrew (at) pixelpost (dot) org Copyright 2006 Pixelpost.org License: http://www.gnu.org/copyleft/gpl.html 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. */ // fix proposed by tomyeah on the forum header('Content-Type: text/html; charset=utf-8'); error_reporting(0); ini_set('arg_separator.output', '&'); session_start(); if (isset($_GET['errors']) && $_SESSION["pixelpost_admin"]){ error_reporting(E_ALL ^ E_NOTICE); }elseif(isset($_GET['errorsall']) && $_SESSION["pixelpost_admin"]){ error_reporting(E_ALL); } $PHP_SELF = "index.php"; // includes require("includes/pixelpost.php"); require("includes/functions.php"); // Set cookie for visitor counter, re-count a person after 60 mins setcookie("lastvisit","expires in 60 minutes",time() +60*60); // save user info if requested if(isset($_POST['vcookie'])) { $vcookiename = addslashes($_POST['name']); $vcookieurl = addslashes($_POST['url']); // modified for Email $vcookieemail = clean($_POST['email']); setcookie("visitorinfo","$vcookiename%$vcookieurl%$vcookieemail",time() +60*60*24*30); // save cookie 30 days } start_mysql(); if($_GET['showimage']) $_GET['showimage'] = (int) $_GET['showimage']; // get config if($cfgrow = sql_array("SELECT * FROM ".$pixelpost_db_prefix."config")) { $upload_dir = $cfgrow['imagepath']; } else { $extra_message= "Coming Soon. Not Installed Yet. Cause #1"; show_splash($extra_message,"templates"); //echo "Coming Soon. Not Installed Yet."; //exit; } if ($cfgrow['markdown'] == 'T') { require("includes/markdown.php"); } // added token support for use in forms only if it is set on if ($cfgrow['token'] == 'T'){ if (!isset($_SESSION['token'])){ $_SESSION['token'] = md5($_SERVER["HTTP_USER_AGENT"].$_SERVER["HTTP_ACCEPT_LANGUAGE"].$_SERVER["HTTP_ACCEPT_ENCODING"].$_SERVER["HTTP_ACCEPT_CHARSET"].$_SERVER["HTTP_ACCEPT"].$_SERVER["SERVER_SOFTWARE"].session_id().uniqid(rand(), TRUE)); } if(!isset($_GET['x'])&&$_GET['x'] !== "save_comment"){ $_SESSION['token_time'] = time(); } } // book visitors if (strtolower($cfgrow['visitorbooking'])!='no') book_visitor($pixelpost_db_prefix."visitors"); if(isset($mod_rewrite)&&$mod_rewrite == "1") $showprefix = ""; else $showprefix = "./index.php?showimage="; // refresh the addons table $dir = "addons/"; refresh_addons_table($dir); $tz = $cfgrow['timezone']; $datetime = gmdate("Y-m-d H:i:s",time()+(3600 * $tz)); // current date+time $cdate = $datetime; // for future posting, current date+time // ##########################################################################################// // LANGUAGE SELECTION // ##########################################################################################// // Original idea by RobbieMc (http://forum.pixelpost.org/showthread.php?t=3668) // This is an array of all supported languages in PP. It contains the country abbreviation // and the native word for the language spoken in that country. This is used to get all // variables. $PP_supp_lang = array('dutch'=>array('NL','Nederlands'), 'english'=>array('EN','English'), 'french'=>array('FR','Français'), 'german'=>array('DE','Deutsch'), 'italian'=>array('IT','Italiano'), 'norwegian'=>array('NO','Norsk'), 'persian'=>array('FA','Farsi'), 'polish'=>array('PL','Polskiego'), 'portuguese'=>array('PT','Português'), 'simplified_chinese'=>array('CN','Chinese'), 'spanish'=>array('ES','Español'), 'swedish'=>array('SE','Svenska'), 'danish'=>array('DK','Dansk'), 'japanese'=>array('JP','Japanese') ); // The default language is the language the user has set in the adminpanel // We have to find the abbreviation $default_language_abr = strtolower($PP_supp_lang[$cfgrow['langfile']][0]); // Try to find if another language was selected or not (different ways) // Set a cookie to the GET arg 'lang' if it exists. if(isset($_GET['lang'])) { setcookie ('lang', substr($_GET['lang'],0,2), false, '/', false, 0); $language_abr = substr($_GET['lang'],0,2); } // Set the &language variable to session 'lang' - this variable is the one used below $language_abr = $_COOKIE['lang']; // Use the default language if none of the previous steps captured a language preference if(!isset($language_abr)) $language_abr = $default_language_abr; // override the language if $_GET['lang'] is set. if(isset($_GET['lang'])) $language_abr = substr($_GET['lang'],0,2); // convert the two letter $language variable to full name of language file // (used in language file switch but not template switch (template uses abbreviation)) foreach ($PP_supp_lang as $key => $row) { foreach($row as $cell) { if ($cell == strtoupper($language_abr)) $language_full = $key; } } // ##########################################################################################// // GET LANGUAGE FILE BASED ON LANGUAGE SELECTION // ##########################################################################################// if (file_exists("language/lang-".$language_full.".php")) { if ( !isset($_GET['x'])OR($_GET['x'] != "rss" & $_GET['x'] != "atom")) require("language/lang-".$language_full.".php"); } else { echo 'Error:
No language folder exists or the file "lang-' .$language_full.'.php" is missing in that folder.
Make sure that you have uploaded all necessary files with the exact same names as mentioned here.'; exit; } // Double Quotes in break HTML Code $pixelpost_site_title = $cfgrow['sitetitle']; $pixelpost_site_title = pullout($cfgrow['sitetitle']); $pixelpost_site_title = htmlspecialchars($pixelpost_site_title,ENT_QUOTES); // Added ability to use header and footers for templates. They are not needed but used if included in the template // Don't show header or footer if viewing comments in a popup: if(!isset($_GET['popup'])&&$_GET['popup'] != "comment"){ if(file_exists("templates/".$cfgrow['template']."/header.html")) $header = file_get_contents("templates/".$cfgrow['template']."/header.html"); if(file_exists("templates/".$cfgrow['template']."/footer.html")) $footer = file_get_contents("templates/".$cfgrow['template']."/footer.html"); } // You can now add any template you want by just adding the template and a link to it. For example, // ?x=about will load the template about_template.html if(isset($_GET['x'])&& $_GET['x'] == "ref") { // Maintain backwards compatibility with the referer template $_GET['x'] = "referer"; } // refererlog if(isset($_GET['x'])&&$_GET['x'] == "referer") { header("HTTP/1.0 404 Not Found"); header("Status: 404 File Not Found!"); // header("Location: index.php"); echo "\n404 Not Found\n\n

Not Found

\nThe requested URL /index.php was not found on this server.

\n

Additionally, a 404 Not Found\nerror was encountered while trying to use an ErrorDocument to handle the request.\n"; exit; } // end refererlog // ##########################################################################################// // GET TEMPLATE FILE BASED ON LANGUAGE SELECTION // ##########################################################################################// if ($language_full==$cfgrow['langfile']) { // we have our default language from the PP installation, so we use our default templates if( isset($_GET['x'])&&file_exists( "templates/".$cfgrow['template']."/".$_GET['x']."_template.html")) { if (eregi("[.]",$_GET['x'])) die("Come on! forget about it..."); $tpl = file_get_contents("templates/".$cfgrow['template']."/".$_GET['x']."_template.html"); } else { if (!file_exists("templates/".$cfgrow['template']."/image_template.html")) { echo 'Error:
No template folder exists by the name of "' .$cfgrow['template'] .'" or the file image_template.html is missing in that folder.
Make sure that you have uploaded all necessary files with the exact same names as mentioned here.'; exit; } // if the x=foo does not exist prompt it! don't show the main page anymore! if (isset($_GET['x'])&& $_GET['x']!='atom' && $_GET['x']!='comment_atom' && $_GET['x']!='rss' && $_GET['x']!='comment_rss' && $_GET['x']!='save_comment') { // if (isset($_GET['x']) and !file_exists( "templates/".$cfgrow['template']."/".$_GET['x']."_template.html")) header("HTTP/1.0 404 Not Found"); header("Status: 404 File Not Found!"); // header("Location: index.php"); echo "\n404 Not Found\n\n

Not Found

\nThe requested URL /index.php was not found on this server.

\n

Additionally, a 404 Not Found\nerror was encountered while trying to use an ErrorDocument to handle the request.\n"; exit; } $tpl = file_get_contents("templates/".$cfgrow['template']."/image_template.html"); } } else { // we use our special designed language templates. if( isset($_GET['x'])&&file_exists( "templates/".$cfgrow['template']."/".$_GET['x']."_".$language_abr."_template.html")) { if (eregi("[.]",$_GET['x'])) die("Come on! forget about it..."); $tpl = file_get_contents("templates/".$cfgrow['template']."/".$_GET['x']."_".$language_abr."_template.html"); } else { if (!file_exists("templates/".$cfgrow['template']."/image_".$language_abr."_template.html")) { echo 'Error:
No template folder exists by the name of "' .$cfgrow['template'] .'" or the file image_'.$language_abr .'_template.html is missing in that folder.
Make sure that you have uploaded all necessary files with the exact same names as mentioned here.

Click here to return to the default language.'; exit; } // if the x=foo does not exist prompt it! don't show the main page anymore! if (isset($_GET['x'])&& $_GET['x']!='atom' && $_GET['x']!='comment_atom' && $_GET['x']!='rss' && $_GET['x']!='comment_rss' && $_GET['x']!='save_comment'){ // if (isset($_GET['x']) and !file_exists( "templates/".$cfgrow['template']."/".$_GET['x']."_template.html")) header("HTTP/1.0 404 Not Found"); header("Status: 404 File Not Found!"); // header("Location: index.php"); echo "\n404 Not Found\n\n

Not Found

\nThe requested URL /index.php was not found on this server.

\n

Additionally, a 404 Not Found\nerror was encountered while trying to use an ErrorDocument to handle the request.\n"; exit; } $tpl = file_get_contents("templates/".$cfgrow['template']."/image_".$language_abr."_template.html"); } } if(isset($_GET['popup'])&&$_GET['popup'] == "comment") { // additional language file for comment template if ($language_full==$cfgrow['altlangfile'] && file_exists("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html")) $tpl = file_get_contents("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html"); // if not existing or no additional language chosen, default template file is called without error else $tpl = file_get_contents("templates/".$cfgrow['template']."/comment_template.html"); } // if showimage=badstuff or email to hijack! if (isset($_GET['showimage']) && !is_numeric($_GET['showimage'])){ // show 404! header("HTTP/1.0 404 Not Found"); header("Status: 404 File Not Found!"); // header("Location: index.php"); echo "\n404 Not Found\n\n

Not Found

\nDon't do that! go back to index.php! \n
devil crab recipe

devil crab recipe

stretch southwestern food riverside california

southwestern food riverside california

happy polanta recipes

polanta recipes

box rose plant food 1 2 1

rose plant food 1 2 1

flower contaminated pet food listing

contaminated pet food listing

river martha stewart wedding cake recipe

martha stewart wedding cake recipe

answer the meals in beach resort hotel

the meals in beach resort hotel

list early virginia settlers food

early virginia settlers food

before pickle flovored ice cream recipe

pickle flovored ice cream recipe

settle toy picnic set

toy picnic set

yes deer chilli recipe

deer chilli recipe

ground ashleys food delivery service sarasota

ashleys food delivery service sarasota

store pasta dinner recipes

pasta dinner recipes

rest what is polish food

what is polish food

sky copy famous recipe

copy famous recipe

door crockpot chicken soup recipe

crockpot chicken soup recipe

less recipes thai

recipes thai

old heathy breakfast food

heathy breakfast food

believe ancient west african food

ancient west african food

coast echidna food web diagram

echidna food web diagram

well newcastle upon tyne foods

newcastle upon tyne foods

little coconut juice recipes

coconut juice recipes

south recipe and cucumber sandwiches

recipe and cucumber sandwiches

team canandaigua bed breakfast

canandaigua bed breakfast

describe dinner shows nevada

dinner shows nevada

people blackfoot tribe food source

blackfoot tribe food source

bear recipes pork leftover

recipes pork leftover

office recipe nutritional and gi index calculator

recipe nutritional and gi index calculator

visit chicken and broccoli crepe recipes

chicken and broccoli crepe recipes

end pizza hut cooking oil

pizza hut cooking oil

and culinary school rome

culinary school rome

set angel food ministries muskegon michigan

angel food ministries muskegon michigan

since food tolerance testing inverness

food tolerance testing inverness

written disney food wine

disney food wine

century buffalo wing flavors recipes

buffalo wing flavors recipes

major outback steak house recipes

outback steak house recipes

such christmas cooking for a crowd servings

christmas cooking for a crowd servings

search adhd study food

adhd study food

dad aal recipe

aal recipe

sentence recipes mussels

recipes mussels

too creamed turkey school cafeteria recipe

creamed turkey school cafeteria recipe

thought barbecue university raichlen steven cooking

barbecue university raichlen steven cooking

order halal food products in malaysia

halal food products in malaysia

common clear clam chowder recipes

clear clam chowder recipes

ocean neelams natural foods and spices

neelams natural foods and spices

fire pediasure nutripals nutrition drinks

pediasure nutripals nutrition drinks

strange baldwin brothers cooking

baldwin brothers cooking

love the breakfast club workout

the breakfast club workout

moon quick and easy irish recipes

quick and easy irish recipes

problem outdoors recipe pheasant wild rice soup

outdoors recipe pheasant wild rice soup

column sugar free caramel apple recipe

sugar free caramel apple recipe

laugh every secret recipe for webkinz

every secret recipe for webkinz

middle food pantry west bend wisconsin

food pantry west bend wisconsin

how list of eatable fruits

list of eatable fruits

start calories of restaurant foods

calories of restaurant foods

free recipes using bread dough

recipes using bread dough

start cannabis cookie recipe

cannabis cookie recipe

map bread recipes machine yeast

bread recipes machine yeast

lay dinner cruise glen cove

dinner cruise glen cove

skill food plots turkeys

food plots turkeys

tail pork shish kebab recipe

pork shish kebab recipe

side spicy catfish nugget recipes

spicy catfish nugget recipes

climb whidbey island bed breakfast association

whidbey island bed breakfast association

stood foods native of california

foods native of california

tie food chain of a moose

food chain of a moose

sail western culinary arts

western culinary arts

change fast food wrappers

fast food wrappers

people jamaican beef curry recipe

jamaican beef curry recipe

grew space freighter delivering food snacks

space freighter delivering food snacks

written food for space flight

food for space flight

so lydia recipes pittsburg

lydia recipes pittsburg

degree recipe for gettin money

recipe for gettin money

summer fry food recipt

fry food recipt

high cooking lessons chicago il

cooking lessons chicago il

city labor cost in food service

labor cost in food service

run gordens food service

gordens food service

remember gound beef n pasta recipes

gound beef n pasta recipes

parent murder mystery dinner shows in chattanooga

murder mystery dinner shows in chattanooga

neck chilean christmas bread christmas recipes

chilean christmas bread christmas recipes

afraid foods can eat with gallbladder problems

foods can eat with gallbladder problems

element letter of terrace food

letter of terrace food

fair raw food recipes pie crust

raw food recipes pie crust

main scouting for food flyer

scouting for food flyer

during kiel picnic

kiel picnic

get shoepeg corn green chilie recipe

shoepeg corn green chilie recipe

class recipe with red fire peppers

recipe with red fire peppers

lay whitewave foods new jersey

whitewave foods new jersey

change food menu clipart

food menu clipart

build antimated food backgrounds

antimated food backgrounds

near sean connely favourite food

sean connely favourite food

similar emeril s lemon chicken breast recipe

emeril s lemon chicken breast recipe

down greek doughnuts recipe

greek doughnuts recipe

please minute chicken recipe

minute chicken recipe

leave oven dried tomatoes recipe

oven dried tomatoes recipe

sister the food 4 less grocery store

the food 4 less grocery store

suit affiliated foods shipping guide

affiliated foods shipping guide

cent resturant clone recipes

resturant clone recipes

century italian spghetti sauce recipe

italian spghetti sauce recipe

thing is canidae good dog food

is canidae good dog food

quite tips for meal preparation

tips for meal preparation

shoe brownies marbelized recipe

brownies marbelized recipe

present food costs in chile

food costs in chile

law grandmas stuffing recipe

grandmas stuffing recipe

main vegetarian pasta broccli recipe

vegetarian pasta broccli recipe

need boild milk and limejuice recipe

boild milk and limejuice recipe

chick recipe italian cookie

recipe italian cookie

jump supplementation of animals bone meal

supplementation of animals bone meal

sheet bacalao recipe

bacalao recipe

do dinner jacket

dinner jacket

trade food broker association

food broker association

room sundance utah breakfast

sundance utah breakfast

view cooking sweetened condensed milk caramel

cooking sweetened condensed milk caramel

sing easy healthy breakfast

easy healthy breakfast

deal amount of water in food

amount of water in food

check beaken dinner in spartanburg south carolina

beaken dinner in spartanburg south carolina

figure windsor castle dog food

windsor castle dog food

repeat recipe easy baklava

recipe easy baklava

order british recipe sticky toffee pudding

british recipe sticky toffee pudding

catch tofu recipes key ingredients

tofu recipes key ingredients

food blood building foods

blood building foods

has will there be food in heaven

will there be food in heaven

motion magic mushroom pizza recipe

magic mushroom pizza recipe

position recipe for beef tenderloin tips

recipe for beef tenderloin tips

warm breakfast nook kitchen banquette

breakfast nook kitchen banquette

are new zealand fruit recipes

new zealand fruit recipes

lift drinks frangelico liquer recipes

drinks frangelico liquer recipes

map southern arizona bed and breakfast

southern arizona bed and breakfast

egg overeaters anonymous how food plan

overeaters anonymous how food plan

rock president foods h k

president foods h k

winter pet food re call cnn

pet food re call cnn

cause vietnamese vegetarian food sacramento ca

vietnamese vegetarian food sacramento ca

paper william kidd food

william kidd food

mount culinary arts schools nebraska

culinary arts schools nebraska

triangle make my cake bakery recipes

make my cake bakery recipes

verb christmas goose dinner

christmas goose dinner

stone pizza frita recipes

pizza frita recipes

serve california restaurant meals program

california restaurant meals program

rain angeles dinner los magic show

angeles dinner los magic show

material pics of asian food

pics of asian food

music ginger bread recipe

ginger bread recipe

make more aout culinary arts

more aout culinary arts

settle beef bbq ribs recipe

beef bbq ribs recipe

suit nutone food center attachment

nutone food center attachment

hope purina one dog food recall

purina one dog food recall

dear picturesque bed and breakfast cheshire

picturesque bed and breakfast cheshire

oh betty crocker brownie mocha torte recipe

betty crocker brownie mocha torte recipe

exercise pasta recipes with olive oil

pasta recipes with olive oil

spot slow cooking london broil

slow cooking london broil

material burgers smoke house recipes

burgers smoke house recipes

off italian poached salmon recipe

italian poached salmon recipe

object all beef summer sausage recipe

all beef summer sausage recipe

happy what foods have carbon

what foods have carbon

line recipe for roux

recipe for roux

got recipes for marijuana leaves

recipes for marijuana leaves

here wooden picnic table kit

wooden picnic table kit

if fudge doughnut recipe

fudge doughnut recipe

imagine primate picnics

primate picnics

wall national culinary report food network

national culinary report food network

far berner foods

berner foods

air shucks food stores

shucks food stores

seat willow springs bed and breakfast

willow springs bed and breakfast

gold fusion asian recipes

fusion asian recipes

went base cream recipes

base cream recipes

suggest thanksgiving fruit recipes

thanksgiving fruit recipes

sudden rice cereal mixed with baby food

rice cereal mixed with baby food

chance tenn annotated food code

tenn annotated food code

sand home dinners delivery boise idaho

home dinners delivery boise idaho

large homemade soap recipes

homemade soap recipes

lady mami sea food

mami sea food

story labels on genetically modified foods

labels on genetically modified foods

camp sweet breads french cooking

sweet breads french cooking

cry red and yellow pepper recipes

red and yellow pepper recipes

wood genetically modified foods pbs

genetically modified foods pbs

dry food web for grassland habitats

food web for grassland habitats

slip west virginia food products

west virginia food products

atom cooking coals

cooking coals

paragraph chocate chip cookies recipes

chocate chip cookies recipes

loud worship video recipe for religion

worship video recipe for religion

some beef wellington cooking instructions

beef wellington cooking instructions

human recipe for eggplant parmegan

recipe for eggplant parmegan

station costa rica recipes cookies

costa rica recipes cookies

fill enjoy junk food shirt

enjoy junk food shirt

against san francisco sourdough recipes

san francisco sourdough recipes

write recipe for cherries in the snow

recipe for cherries in the snow

fat dolly madison cookie recipe

dolly madison cookie recipe

dream cornish hen baked recipe

cornish hen baked recipe

poor akaroa bed and breakfast

akaroa bed and breakfast

column rachel ray pomagranite martini recipe

rachel ray pomagranite martini recipe

kept baby food pork recipes

baby food pork recipes

bottom recipe tomato goat cheese

recipe tomato goat cheese

test tuna lasagne recipes

tuna lasagne recipes

consonant most powerful low gi food mexican

most powerful low gi food mexican

sand macraroni grill recipe veal parmeasan

macraroni grill recipe veal parmeasan

blow vegetable recipes from calabria

vegetable recipes from calabria

distant boiled egg custard recipe

boiled egg custard recipe

to food prices 1928

food prices 1928

world authentic mexican rice recipes

authentic mexican rice recipes

deal montana famous recipes

montana famous recipes

dry food recall documentation

food recall documentation

noise diabetic cooking class

diabetic cooking class

has carteret county home bed and breakfast

carteret county home bed and breakfast

race 60 cooking ranges

60 cooking ranges

determine shredded pork with bean sprouts recipe

shredded pork with bean sprouts recipe

colony journal of food and nutrition research

journal of food and nutrition research

won't anti cancer food helps circulation

anti cancer food helps circulation

picture cooking or a crowd

cooking or a crowd

house recipe for baby teething biscuits

recipe for baby teething biscuits

top recipe for freezing a quiche

recipe for freezing a quiche

read shitake mushrooms recipe psychedelic

shitake mushrooms recipe psychedelic

wire african food security supply

african food security supply

wild gourmet meal receipes

gourmet meal receipes

method crock pot beef brisket recipe

crock pot beef brisket recipe

log gluten free cake mix recipe

gluten free cake mix recipe

get food helps get rid of muscles

food helps get rid of muscles

real food related science eperiments and reports

food related science eperiments and reports

reason raw pet food diet

raw pet food diet

protect vittles vault stackable pet food container

vittles vault stackable pet food container

dark foods suply in germany

foods suply in germany

hand whale s tail pale ale odell recipe

whale s tail pale ale odell recipe

follow recipe for chicken salad sandwiches

recipe for chicken salad sandwiches

keep bacardi drinks recipe

bacardi drinks recipe

mile mail order pheasant dinner

mail order pheasant dinner

those university of maryland lunch bag

university of maryland lunch bag

was food allergy labels

food allergy labels

dark recipe background border

recipe background border

certain chicken torilla soup recipe

chicken torilla soup recipe

gas angel food program tennessee

angel food program tennessee

came jeeves food delivery denver

jeeves food delivery denver

require dinner roll shaped like a turkey

dinner roll shaped like a turkey

copy giant food byron ga

giant food byron ga

place diabetic diet foods and beverages

diabetic diet foods and beverages

foot rat poisen in dog food

rat poisen in dog food

stream recipes using cheez its

recipes using cheez its

sudden win pirates dinner adventure

win pirates dinner adventure

leave biotechnology in the food industry

biotechnology in the food industry

moment refridgerating foods safely

refridgerating foods safely

simple jiffy cake mix cobbler recipe

jiffy cake mix cobbler recipe

dance baby ruth candy recipe

baby ruth candy recipe

draw lunch in arlington tx

lunch in arlington tx

noon recipe bacon wrapped olive appetizer

recipe bacon wrapped olive appetizer

die cooking with yellow corn meal

cooking with yellow corn meal

tree recipes mediterranean diet

recipes mediterranean diet

got picnic dinner

picnic dinner

modern basic automatic bread machine recipes

basic automatic bread machine recipes

mine health food stores in wellington

health food stores in wellington

tell massaman curry crock pot recipe

massaman curry crock pot recipe

plant dark sweet cherry pie recipe

dark sweet cherry pie recipe

lie recipe italian filetto of tenderloin

recipe italian filetto of tenderloin

coat biscuit recipe with dry milk

biscuit recipe with dry milk

done florida panther food web

florida panther food web

metal make your own food web wetlands

make your own food web wetlands

call recipes for tortillini

recipes for tortillini

hundred food heat pack

food heat pack

between diabetic tuna noodle casserole recipe

diabetic tuna noodle casserole recipe

sleep food allergy chestnuts

food allergy chestnuts

tube smile please fast food rockers

smile please fast food rockers

never dinner dance hotel

dinner dance hotel

crop recipes for oval bakers

recipes for oval bakers

divide high chlorestrol foods

high chlorestrol foods

need sponge cake recipes

sponge cake recipes

sent menu foods recall of pet food

menu foods recall of pet food

cross recipe asian grilled salmon

recipe asian grilled salmon

travel northwestern food and clothing

northwestern food and clothing

invent thai frozen meals

thai frozen meals

develop weight watchers apple bran muffins recipes

weight watchers apple bran muffins recipes

edge budget dinner menus tv

budget dinner menus tv

take recipe slum goo

recipe slum goo

month real cajun recipes chocolate whiskey balls

real cajun recipes chocolate whiskey balls

fun proposition 65 food labeling

proposition 65 food labeling

word plank cooking toxicity

plank cooking toxicity

smell christmas dinner in 27560

christmas dinner in 27560

few cooking with little marijuana

cooking with little marijuana

broad positive gm foods

positive gm foods

shoe charcoal grill cooking and sulfite allergy

charcoal grill cooking and sulfite allergy

consonant alkaline acid ph foods

alkaline acid ph foods

meant buy chicken soup dry food

buy chicken soup dry food

sight breakfast for large groups

breakfast for large groups

number canned asparagus recipe

canned asparagus recipe

prove hungarian food brighton mi

hungarian food brighton mi

search shredded chicken stuffing recipe

shredded chicken stuffing recipe

against langhorne pa bed and breakfast

langhorne pa bed and breakfast

ball effect of junk food on he

effect of junk food on he

or recipes with hamburger mince

recipes with hamburger mince

chord scallpoed potato recipes

scallpoed potato recipes

front czechoslovakian recipe

czechoslovakian recipe

early breakfast kuchen

breakfast kuchen

busy grilled giant mushroom recipes

grilled giant mushroom recipes

shoe easter bunny cooking clipart

easter bunny cooking clipart

west oven baked brown rice recipe

oven baked brown rice recipe

voice recipe and frappaccino

recipe and frappaccino

quick salmon croquettes recipe

salmon croquettes recipe

young pa dutch turkey barbeque recipe

pa dutch turkey barbeque recipe

milk non fried food diet

non fried food diet

bring here is the secret recipe that

here is the secret recipe that

ear rosemary and garlic reduction recipe

rosemary and garlic reduction recipe

prepare food delivery in denton tx

food delivery in denton tx

take jamies oliver recipes

jamies oliver recipes

follow sour cream cucumber recipe

sour cream cucumber recipe

size old spaghetti factory browned butter recipe

old spaghetti factory browned butter recipe

push valentine meal for two

valentine meal for two

morning hershey foods hershey pa

hershey foods hershey pa

dead dinners drive ins dives

dinners drive ins dives

middle palm beach bead and breakfast

palm beach bead and breakfast

problem recipe for wild mushroom tortilini

recipe for wild mushroom tortilini

afraid new zealand food lovers guide

new zealand food lovers guide

most hello kitty lunch bento

hello kitty lunch bento

road geriatric meals

geriatric meals

fear mardan foods

mardan foods

language breakfast roll ups recipes

breakfast roll ups recipes

know turkey cooking

turkey cooking

north chicago spirit dinner cruise

chicago spirit dinner cruise

believe rice recipes from australia

rice recipes from australia

these don pablos cholate volcano recipe

don pablos cholate volcano recipe

wind cake chocolate recipe white

cake chocolate recipe white

count rib roast dinner

rib roast dinner

broke ames tribune food iowa

ames tribune food iowa

save philadelphia pennsylvania dinner reservations

philadelphia pennsylvania dinner reservations

if left over recipes

left over recipes

like st louis rib recipes

st louis rib recipes

join food la loss program weight

food la loss program weight

lot food pavilion lynden wa

food pavilion lynden wa

numeral tomato cucumber salad recipe

tomato cucumber salad recipe

cook fruit juice sweetened jam recipe

fruit juice sweetened jam recipe

kill recipe jogging in a jug

recipe jogging in a jug

turn efl food

efl food

town greek food costa mesa

greek food costa mesa

least island recipes vegetables

island recipes vegetables

now cook frozen vegetables recipes

cook frozen vegetables recipes

famous duck potato recipe

duck potato recipe

fig the importance of organic foods

the importance of organic foods

wash convection micro wave oven recipes

convection micro wave oven recipes

before information about egyptian food

information about egyptian food

does recipes for tender cooker microwave

recipes for tender cooker microwave

first recipe site from list of ingredients

recipe site from list of ingredients

people crab cake dinner menu

crab cake dinner menu

corner home design with cooking fireplace

home design with cooking fireplace

kill breakfast board

breakfast board

teeth requirements michigan food handler

requirements michigan food handler

teach soup recipes from carnival cruise lines

soup recipes from carnival cruise lines

spoke recipe for saltpeter

recipe for saltpeter

window cooking times for roast pork

cooking times for roast pork

rest ncaa recipe cards

ncaa recipe cards

wrote greek food recipes

greek food recipes

track stephen of breakfast on pluto

stephen of breakfast on pluto

seem sugar rub recipes

sugar rub recipes

root japan food recipites

japan food recipites

shell maclaren s imperial and recipe

maclaren s imperial and recipe

joy breakfast 02145

breakfast 02145

get send a dinner

send a dinner

depend spaghetti sauce seasoning mix recipes

spaghetti sauce seasoning mix recipes

station dinner is served cookie jar

dinner is served cookie jar

her recipe pineapple tart

recipe pineapple tart

hard types of bird food

types of bird food

thank rachael ray 5 ingredient dinners

rachael ray 5 ingredient dinners

event heavenly meals

heavenly meals

sing meal planner for 1500 caloriews

meal planner for 1500 caloriews

one general tso chicken recipe resturaunt style

general tso chicken recipe resturaunt style

reason northwest food pantry

northwest food pantry

some rice krispies treat recipe

rice krispies treat recipe

vary recipes for chowder

recipes for chowder

dry whoe foods careers

whoe foods careers

sure bed and breakfast for sale illinios

bed and breakfast for sale illinios

circle baked dog food and review

baked dog food and review

other louis lunch in new haven ct

louis lunch in new haven ct

bear dinner salad with meat recipe

dinner salad with meat recipe

sight avoidance foods with colitis

avoidance foods with colitis

those cooking on onions

cooking on onions

cold foods that metabolize quickly

foods that metabolize quickly

person oklahoma storage food bulk

oklahoma storage food bulk

read wetlands food webs

wetlands food webs

slave spa dinner plates

spa dinner plates

agree food menu examples

food menu examples

river recipe cards and pink and green

recipe cards and pink and green

great hong kong meal prices

hong kong meal prices

happen recipes for houska

recipes for houska

control pork cooking temp safe

pork cooking temp safe

them meals on wheels phoenix

meals on wheels phoenix

shoe food pyramid grains

food pyramid grains

smile phosphatidylcholine between meals

phosphatidylcholine between meals

bone la reina foods l a

la reina foods l a

quick foods with high ldl

foods with high ldl

snow night crawlers food

night crawlers food

until cooking rice in the microwave

cooking rice in the microwave

got refreshing summer drink recipes

refreshing summer drink recipes

quiet diabetic recipes for thanksgiving

diabetic recipes for thanksgiving

smile dinner ticket

dinner ticket

complete sysco food service of atlanta

sysco food service of atlanta

law advent sedar meal

advent sedar meal

went easy recipe ceasar dressing

easy recipe ceasar dressing

country recipes for gluten free cookies

recipes for gluten free cookies

now famous dave corn recipe

famous dave corn recipe

cloud yanomami food supplies

yanomami food supplies

special breakfast fried potatoes

breakfast fried potatoes

die john mclane meals alone

john mclane meals alone

round ac n cheese recipe

ac n cheese recipe

connect highest rated fiber cat food

highest rated fiber cat food

effect atkins food breads cakes

atkins food breads cakes

solve jiffy cake mix recipes

jiffy cake mix recipes

see gm foods health risks

gm foods health risks

lead thankgiving dinner infant

thankgiving dinner infant

either print ads for soft drinks

print ads for soft drinks

grew chichen itza mayan ruin food history

chichen itza mayan ruin food history

get aqua blue food color

aqua blue food color

own easy gourmet dinner

easy gourmet dinner

swim vegetarian gyro recipe

vegetarian gyro recipe

garden senegal food exports

senegal food exports

just calories in cooking sherry

calories in cooking sherry

summer peterborough bed and breakfast

peterborough bed and breakfast

trouble real whipped cream icing recipe

real whipped cream icing recipe

bone recipes zucchine bread

recipes zucchine bread

shape sugar free rhubarb recipes

sugar free rhubarb recipes

operate wagon recipes

wagon recipes

from nepolian cake recipe

nepolian cake recipe

system recipe for egg fried rice

recipe for egg fried rice

list food in venezuela

food in venezuela

yet rita s water ice recipe

rita s water ice recipe

build artichockes recipes

artichockes recipes

steel recipe eggs sausage

recipe eggs sausage

single crews inn bead breakfast nc

crews inn bead breakfast nc

prove wilder foods inc

wilder foods inc

earth kosher foods oklahoma city

kosher foods oklahoma city

separate hornblower dinner cruises

hornblower dinner cruises

work armish recipes

armish recipes

behind easy peach jam recipe

easy peach jam recipe

give indian food ft collins co

indian food ft collins co

act anasazi bean recipes

anasazi bean recipes

cut roasted red peppers anchovie recipe

roasted red peppers anchovie recipe

natural brenham whole foods

brenham whole foods

find cooking in an aluminum electric skillet

cooking in an aluminum electric skillet

clear on cor dinners

on cor dinners

fresh photos of pretend food

photos of pretend food

organ calorie food calculator

calorie food calculator

summer collard greens recipe wine

collard greens recipe wine

dark hummus roasted red pepper tahini recipe

hummus roasted red pepper tahini recipe

arrange gia russa italian food recipes

gia russa italian food recipes

finger easy cheese recipes

easy cheese recipes

between sugo fresh anchovy recipes

sugo fresh anchovy recipes

group kraft food ethics

kraft food ethics

such food waste digester

food waste digester

rock
"; exit; } // Added ability to use header and footers for templates. They are not needed but used if included in the template if(isset($header)) $tpl = $header . $tpl; if(isset($footer)) $tpl = $tpl. $footer; // Get visitor count $visitors = sql_array("SELECT count(*) as count FROM ".$pixelpost_db_prefix."visitors"); $pixelpost_visitors = $visitors['count']; // Get number of photos in database $photonumb = sql_array("SELECT count(*) as count FROM ".$pixelpost_db_prefix."pixelpost WHERE datetime<='$datetime'"); $pixelpost_photonumb = $photonumb['count']; // added for temp to create banlist table if it is not there TODO: THIS WILL GO INTO THE CREATE_TABLES create_banlist(); // images/main site if(!isset($_GET['x']) /*$_GET['x'] == ""*/) { // Get Current Image. if(!isset($_SESSION["pixelpost_admin"])) { if(!isset($_GET['showimage']) /*$_GET['showimage'] == ""*/) { $row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE datetime<='$cdate' ORDER BY datetime DESC limit 0,1"); } else { $row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE (id='".$_GET['showimage']."') AND datetime<='$cdate'"); } } else { if($_GET['showimage'] == "") { $row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost ORDER BY datetime DESC limit 0,1"); } else { $row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE (id='".$_GET['showimage']."')"); } } if(!$row['image']) { echo "$lang_nothing_to_show"; exit; } $image_name = $row['image']; if ($language_abr == $default_language_abr) { $image_title = pullout($row['headline']); $image_notes = ($cfgrow['markdown'] == 'T') ? markdown(pullout($row['body'])) : pullout($row['body']); } else { if ($row['alt_headline']=='') $image_title = pullout($row['headline']); else $image_title = pullout($row['alt_headline']); if ($row['alt_body']=='') $image_notes = ($cfgrow['markdown'] == 'T') ? markdown(pullout($row['body'])) : pullout($row['body']); else $image_notes = ($cfgrow['markdown'] == 'T') ? markdown(pullout($row['alt_body'])) : pullout($row['alt_body']); } $image_title = htmlspecialchars($image_title,ENT_QUOTES); $image_id = $row['id']; $image_datetime = $row['datetime']; $image_datetime_formatted = strtotime($image_datetime); $image_datetime_formatted = date($cfgrow['dateformat'],$image_datetime_formatted); $image_date = substr($row['datetime'],0,10); $image_time = substr($row['datetime'],11,5); $image_date_year_full = substr($row['datetime'],0,4); $image_date_year = substr($row['datetime'],2,2); $image_date_month = substr($row['datetime'],5,2); $image_date_day = substr($row['datetime'],8,2); $thumbnail_extra = getimagesize("thumbnails/thumb_$image_name"); $image_extra = getimagesize("images/$image_name"); $image_width = $image_extra['0']; $image_height = $image_extra['1']; $tpl = str_replace("",$image_width,$tpl); $tpl = str_replace("",$image_height,$tpl); $local_width = $thumbnail_extra['0']; $local_height = $thumbnail_extra['1']; $image_exif = $row['exif_info']; //$image_title = htmlentities($image_title); $image_thumbnail = "$image_title"; // thumnail no link $image_thumbnail_no_link = "$image_title"; $image_permalink = "$lang_permalink"; // permalink automated for fancy url/no fancy // get previous image id and name if(!isset($_SESSION["pixelpost_admin"])) { $previous_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime < '$image_datetime') and (datetime<='$cdate') ORDER BY datetime desc limit 0,1"); } else { $previous_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime < '$image_datetime') ORDER BY datetime desc limit 0,1"); } $image_previous_name = $previous_row['image']; $image_previous_id = $previous_row['id']; if ($language_abr == $default_language_abr) { $image_previous_title = pullout($previous_row['headline']); } else { $image_previous_title = pullout($previous_row['alt_headline']); } $image_previous_datetime = $previous_row['datetime']; $image_previous_link = "$lang_previous"; list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image_previous_name"); $image_previous_thumbnail = "$image_previous_title"; if($image_previous_id == "") { $image_previous_id = $image_id; $image_previous_title = "$lang_no_previous"; $image_previous_link = ""; $image_previous_thumbnail = ""; } // get next image id and name if(!isset($_SESSION["pixelpost_admin"])) { $next_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime > '$image_datetime') and (datetime<='$cdate') ORDER BY datetime asc limit 0,1"); } else { $next_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime > '$image_datetime') ORDER BY datetime asc limit 0,1"); } $image_next_name = $next_row['image']; $image_next_id = $next_row['id']; if ($language_abr == $default_language_abr) { $image_next_title = pullout($next_row['headline']); } else { $image_next_title = pullout($next_row['alt_headline']); } $image_next_datetime = $next_row['datetime']; $image_next_link = "$lang_next"; list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image_next_name"); $image_next_thumbnail = "$image_next_title"; if($image_next_id == "") { $image_next_id = $image_id; $image_next_title = "$lang_no_next"; $image_next_link = ""; $image_next_thumbnail = ""; } // get first image if(!isset($_SESSION["pixelpost_admin"])) { $first_image_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime asc limit 0,1"); } else { $first_image_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE ORDER BY datetime asc limit 0,1"); } $first_image_name = $first_image_row['image']; $first_image_id = $first_image_row['id']; if ($language_abr == $default_language_abr) { $first_image_title = pullout($first_image_row['headline']); } else { $first_image_title = pullout($first_image_row['alt_headline']); } $first_image_datetime = $first_image_row['datetime']; $first_image_link = "$lang_first"; list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$first_image_name"); $first_image_thumbnail = "$first_image_title"; if($first_image_id == $image_id) { $first_image_title = null; $first_image_link = null; $first_image_thumbnail = null; } // get latest image if(!isset($_SESSION["pixelpost_admin"])) { $last_image_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime desc limit 0,1"); } else { $last_image_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost WHERE ORDER BY datetime desc limit 0,1"); } $last_image_name = $last_image_row['image']; $last_image_id = $last_image_row['id']; if ($language_abr == $default_language_abr) { $last_image_title = pullout($last_image_row['headline']); } else { $last_image_title = pullout($last_image_row['alt_headline']); } $last_image_datetime = $last_image_row['datetime']; $last_image_link = "$lang_latest"; list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$last_image_name"); $last_image_thumbnail = "$last_image_title"; if($last_image_id == $image_id) { $last_image_title = null; $last_image_link = null; $last_image_thumbnail = null; } if(function_exists('gd_info')) { $gd_info = gd_info(); if($gd_info != "") { // check that gd is here before this $aheadnumb = sql_array("SELECT count(*) as count FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime > '$image_datetime') and (datetime<='$cdate')"); $aheadnumb = $aheadnumb['count']; $behindnumb = sql_array("SELECT count(*) as count FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime < '$image_datetime') and (datetime<='$cdate')"); $behindnumb = $behindnumb['count']; $aheadlimit = round(($cfgrow['thumbnumber']-1)/2); $behindlimit = round(($cfgrow['thumbnumber']-1)/2); if($aheadnumb <= $aheadlimit) { $behindlimit = ($cfgrow['thumbnumber']-1)-$aheadnumb; $aheadlimit = $aheadnumb; } if($behindnumb <= $behindlimit) { $aheadlimit = ($cfgrow['thumbnumber']-1)-$behindnumb; $behindlimit = $behindnumb; } $totalthumbcounter = 1; $ahead_thumbs = ""; $ahead_thumbs_reverse =""; $thumbs_ahead = mysql_query("SELECT id,headline,alt_headline,image FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime > '$image_datetime') and (datetime<='$cdate') ORDER BY datetime asc limit 0,$aheadlimit"); while(list($id,$headline,$alt_headline,$image) = mysql_fetch_row($thumbs_ahead)) { if ($language_abr == $default_language_abr) { $headline = pullout($headline); } else { $headline = pullout($alt_headline); } $headline = htmlspecialchars($headline,ENT_QUOTES); list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image"); $ahead_thumbs .= "$headline"; $ahead_thumbs_reverse = "$headline" .$ahead_thumbs_reverse ; $totalthumbcounter++; } $behind_thumbs = ""; $behind_thumbs_reverse =""; $thumbs_behind = mysql_query("SELECT id,headline,alt_headline,image FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime < '$image_datetime') and (datetime<='$cdate') ORDER BY datetime desc limit 0,$behindlimit"); while(list($id,$headline,$alt_headline,$image) = mysql_fetch_row($thumbs_behind)) { if ($language_abr == $default_language_abr) { $headline = pullout($headline); } else { $headline = pullout($alt_headline); } $headline = htmlspecialchars($headline,ENT_QUOTES); list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image"); $behind_thumbs = "$headline$behind_thumbs"; $behind_thumbs_reverse .= "$headline"; $totalthumbcounter++; } list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image_name"); $thumbnail_row = "$behind_thumbs$image_title$ahead_thumbs"; $thumbnail_row_reverse = "$ahead_thumbs_reverse$image_title$behind_thumbs_reverse"; $tpl = ereg_replace("",$thumbnail_row,$tpl); $tpl = ereg_replace("",$thumbnail_row_reverse,$tpl); } // gd_info() } // func exist // Modified from Mark Lewin's hack for multiple categories $querystr = "SELECT t1.cat_id,t2.name,t2.alt_name FROM ".$pixelpost_db_prefix."catassoc as t1 inner join ".$pixelpost_db_prefix."categories t2 on t1.cat_id = t2.id WHERE t1.image_id = '$image_id' ORDER BY t2.name "; $query = mysql_query($querystr); $image_category_number = 0; $image_category_all =""; $image_category_all_paged = ""; while(list($cat_id,$name,$alt_name) = mysql_fetch_row($query)) { if ($language_abr == $default_language_abr) { $name = pullout($name); } else { $name = pullout($alt_name); } $image_category_all .= "" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."  "; $image_category_all_paged .= "" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."  "; $image_category_number = $image_category_number +1; } if ($image_category_number >1) $image_categoryword = "$lang_category_plural "; else $image_categoryword = "$lang_category_singular "; $tpl = ereg_replace("",$pixelpost_site_title,$tpl); $tpl = ereg_replace("",$cfgrow['siteurl'],$tpl); $tpl = ereg_replace("",$image_categoryword." ".$image_category_all,$tpl); // for paged_archive addon $tpl = ereg_replace("",$image_categoryword." ".$image_category_all_paged,$tpl); $tpl = ereg_replace("",$image_date_year_full,$tpl); $tpl = ereg_replace("",$image_date_year,$tpl); $tpl = ereg_replace("",$image_date_month,$tpl); $tpl = ereg_replace("",$image_date_day,$tpl); $tpl = ereg_replace("",$image_thumbnail,$tpl); // thumbnail no link $tpl = ereg_replace("",$image_thumbnail_no_link,$tpl); $tpl = ereg_replace("",$image_date,$tpl); $tpl = ereg_replace("",$image_time,$tpl); $tpl = ereg_replace("",$image_name,$tpl); $tpl = ereg_replace("",$image_title,$tpl); $tpl = ereg_replace("",$image_datetime_formatted,$tpl); $tpl = ereg_replace("",$image_notes,$tpl); // image notes without HTML tags and double quotes $image_notes_clean = strip_tags($image_notes); $image_notes_clean = htmlspecialchars($image_notes_clean,ENT_QUOTES); $tpl = ereg_replace("",$image_notes_clean,$tpl); // end image notes without HTML tags $tpl = ereg_replace("",$image_id,$tpl); $tpl = ereg_replace("",$image_permalink,$tpl); $tpl = ereg_replace("",$image_previous_link,$tpl); $tpl = ereg_replace("",$image_previous_thumbnail,$tpl); $tpl = ereg_replace("",$image_previous_id,$tpl); $tpl = ereg_replace("",$image_previous_title,$tpl); $tpl = ereg_replace("",$image_next_link,$tpl); $tpl = ereg_replace("",$image_next_id,$tpl); $tpl = ereg_replace("",$image_next_title,$tpl); $tpl = ereg_replace("",$image_next_thumbnail,$tpl); $tpl = ereg_replace("",$last_image_link,$tpl); $tpl = ereg_replace("",$last_image_thumbnail,$tpl); $tpl = ereg_replace("",$last_image_id,$tpl); $tpl = ereg_replace("",$last_image_title,$tpl); $tpl = ereg_replace("",$first_image_link,$tpl); $tpl = ereg_replace("",$first_image_id,$tpl); $tpl = ereg_replace("",$first_image_title,$tpl); $tpl = ereg_replace("",$first_image_thumbnail,$tpl); // get number of comments $cnumb_row = sql_array("SELECT count(*) as count FROM ".$pixelpost_db_prefix."comments WHERE parent_id='$image_id' and publish='yes'"); $image_comments_number = $cnumb_row['count']; // get latest comment $latest_comment = sql_array("SELECT parent_id FROM ".$pixelpost_db_prefix."comments WHERE publish='yes' ORDER BY id desc limit 0,1"); $latest_comment = $latest_comment['parent_id']; $queryrow = sql_array("SELECT headline FROM ".$pixelpost_db_prefix."pixelpost WHERE id='$latest_comment'"); $latest_comment_name = pullout($queryrow['headline']); // ##########################################################################################// // EXIF STUFF // ##########################################################################################// if ($cfgrow['exif']=='T'){ include_once('includes/functions_exif.php'); if ($image_exif!==null){ $tpl = replace_exif_tags ($language_full, $image_exif, $tpl); } else { $tpl = replace_exif_tags_null($tpl); } } else { include_once('includes/functions_exif.php'); $tpl = replace_exif_tags_null($tpl); } ///////////// // build a string with all comments // only perform this code when the user has commenting enabled if(isset($_GET['x'])&&($_GET['x'] == "") or (isset($_GET['popup'])&&$_GET['popup'] == "comment")) { $comments_result = sql_array("SELECT comments FROM ".$pixelpost_db_prefix."pixelpost where id = '".$_POST['parent_id']."'"); $cmnt_setting = pullout($comments_result['comments']); if($cmnt_setting == 'F') die('Die you SPAMMER!!'); } // end if comment // visitor information in comments $vinfo_name = ""; $vinfo_url = ""; $vinfo_email = ""; if(isset($_COOKIE['visitorinfo'])) list($vinfo_name,$vinfo_url,$vinfo_email) = split("%",$_COOKIE['visitorinfo']); $tpl = ereg_replace("",$vinfo_name,$tpl); $tpl = ereg_replace("",$vinfo_url,$tpl); $tpl = ereg_replace("",$vinfo_email,$tpl); if ($cfgrow['token'] == 'T'){ $tpl = ereg_replace("","",$tpl); } else { $tpl = ereg_replace("",null,$tpl); } if($_GET['showimage'] == "") $imageid = $image_id; else $imageid = $_GET['showimage']; $image_comments = print_comments($imageid); $tpl = ereg_replace("",$image_comments,$tpl); if(($_GET['popup'] == "comment") AND (!isset($_GET['x'])OR$_GET['x'] != "save_comment")) { include_once('includes/addons_lib.php'); echo $tpl; exit; } //} // end if comment } // end imageprint $tpl = ereg_replace("",$pixelpost_site_title,$tpl); // ##########################################################################################// // BROWSE STUFF // ##########################################################################################// require("includes/functions_browse.php"); // ##########################################################################################// // FEED STUFF // ##########################################################################################// require("includes/functions_feeds.php"); // ##########################################################################################// // creating other tags // ######################################################################################## $tpl = ereg_replace("","./index.php?x=browse",$tpl); $tpl = ereg_replace("","./index.php?x=browse&pagenum=1",$tpl); $tpl = ereg_replace("",$pixelpost_photonumb,$tpl); $tpl = ereg_replace("",$pixelpost_visitors,$tpl); $tpl = ereg_replace("",$image_comments_number,$tpl); $tpl = ereg_replace("",$latest_comment,$tpl); $tpl = ereg_replace("",$latest_comment_name,$tpl); if($image_comments_number != 1){ $tpl = ereg_replace("",$lang_comment_plural,$tpl); }else{ $tpl = ereg_replace("",$lang_comment_single,$tpl); } if ($row['comments'] == 'F') { $tpl = ereg_replace("","$lang_comment_popup",$tpl); } else { $tpl = ereg_replace("","$lang_comment_popup",$tpl); } $tpl = ereg_replace("",$browse_select,$tpl); $tpl = str_replace("","",$tpl); // ##########################################################################################// // COMMENT STUFF // ##########################################################################################// require("includes/functions_comments.php"); // ##########################################################################################// // REPLACE LANGUAGE SPECIFIC TAGS // ##########################################################################################// if ($cfgrow['altlangfile'] != 'Off') { $tpl = replace_alt_lang_tags( $tpl, $language_abr, $PP_supp_lang, $cfgrow); } // ##########################################################################################// // SUCK IN ADDONS // ##########################################################################################// include_once('includes/addons_lib.php'); // ##########################################################################################// // END - ECHO TEMPLATE // ##########################################################################################// if( (isset($_GET['x'])&&$_GET['x'] != "save_comment") || (!isset($_GET['x']))) echo $tpl; ?>