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
gmail cullison gmail cullison string greenbriar pawn greenbriar pawn wash glazier stove glazier stove object glass etching equipment and supplies glass etching equipment and supplies quick granite multi gym granite multi gym bottom grandlake elementary school colorado grandlake elementary school colorado decide grayson teachers assn grayson teachers assn lift green dot qb helmet green dot qb helmet lay gouden vijfje e bay gouden vijfje e bay fit golds gym braintree ma golds gym braintree ma skill god of war 2 walkthrough superguide god of war 2 walkthrough superguide write gorp fall bird migration east coast gorp fall bird migration east coast cold glo lounge orlando glo lounge orlando us green pea casserole recipe green pea casserole recipe west glass ranch crosby county texas glass ranch crosby county texas spot golden cowrie shell golden cowrie shell speak gondola point grand prix gondola point grand prix proper grapic letters grapic letters lone goombah men goombah men way gotti vs ward gotti vs ward broad goodrich traction t a tire goodrich traction t a tire whole glass hat headvases glass hat headvases special go taber alberta canada go taber alberta canada this girls pleated ondon fog girls pleated ondon fog call glyn polson attorney glyn polson attorney turn great pyrnees rescue great pyrnees rescue miss grand serinis akumal grand serinis akumal when grain strage conversion grain strage conversion mother gold s gym advantage treadmill gold s gym advantage treadmill think gladys bryan ossian gladys bryan ossian spot graphicsnxs password graphicsnxs password die glass tinting winston salem nc glass tinting winston salem nc word glossoptosis glossoptosis port glass jars noosaville glass jars noosaville fall gr d53as driver gr d53as driver form gladeville craft show gladeville craft show fresh gmc corporate headquarters address gmc corporate headquarters address size graham and kelsie graham and kelsie either gnb stage gnb stage history goldwing gwrra goldwing gwrra own goodrich volume pedals goodrich volume pedals up godavari travel guide godavari travel guide my glucometer teaching glucometer teaching hunt godard remote controlled jimmy neutron dog godard remote controlled jimmy neutron dog feet grand bayou resort coushatta la grand bayou resort coushatta la against grade a pasteurized milk ordinance 2005 grade a pasteurized milk ordinance 2005 horse glow in the dark powder strontium glow in the dark powder strontium these glass uv transmission graph glass uv transmission graph success glassport high football teams glassport high football teams thin gophers name on caddy shack gophers name on caddy shack coat gold nanoparticles nanoshells colon cancer gold nanoparticles nanoshells colon cancer seat gp1 2 resistor gp1 2 resistor check golfito real estate golfito real estate allow glasstite truck caps glasstite truck caps add goodys backpain relief goodys backpain relief for graduation tassle frames graduation tassle frames planet greenbrier furniture birmingham alabama greenbrier furniture birmingham alabama continue graduation at brookdale community college graduation at brookdale community college group goldwing fixes goldwing fixes some gordan bradberry gordan bradberry found gnc menopause supplement gnc menopause supplement visit grania parrish grania parrish wood greenaway s caravan site gower greenaway s caravan site gower sell glimps pee glimps pee instant golden armor traps golems golden armor traps golems found glamourous nightwear glamourous nightwear carry green plumbling green plumbling meat gnu foods flavor fiber and order gnu foods flavor fiber and order among glasgow angling centre glasgow angling centre bright greenflag exploit greenflag exploit large gleaves family tree gleaves family tree listen grand manor houma la grand manor houma la broke grade l605 bar grade l605 bar cause glasgow bristol sleeper glasgow bristol sleeper prove glasurit where to buy glasurit where to buy began god akuma mugen char download god akuma mugen char download remember gottschalks tv ad gottschalks tv ad laugh go karting in brum go karting in brum know graficos de control cusum graficos de control cusum skill government oconus per diem rates government oconus per diem rates object graffik magazine graffik magazine law gramophone bmi gramophone bmi must goleta ballet goleta ballet them goldblatt float handles goldblatt float handles an gordon hirabayashi gordon hirabayashi every greekz greekz win glenabbey of leawood glenabbey of leawood one goddess bastet images goddess bastet images gentle gluten free cinnamon roll recipe gluten free cinnamon roll recipe burn graffiti alphabetical letters graffiti alphabetical letters floor granado pronounced granado pronounced require greenbriar at denison greenbriar at denison skin gl5 2ht gl5 2ht pick green m m s candy green m m s candy magnet goose bay punta cana goose bay punta cana place goodles goodles general globtrotters globtrotters thousand grayline tours ny grayline tours ny during greenbriar drive springfield il greenbriar drive springfield il slave grant shupe id grant shupe id ready global mortuary affairs global mortuary affairs give greatfacts com amazing facts greatfacts com amazing facts but gk hermanson pools gk hermanson pools fear goldwood loudspeakers goldwood loudspeakers hundred greenery wedding venue phils greenery wedding venue phils about gmc acadia car rental gmc acadia car rental place gmp cgmps 21 cfr part 110 gmp cgmps 21 cfr part 110 mountain greeneville sun online greeneville sun online even goodwill store portsmouth nh goodwill store portsmouth nh few grahm v conner grahm v conner joy glass gems decorative accents glass gems decorative accents fine girls seducing cops girls seducing cops line greater doxology greater doxology ocean graco high chari graco high chari by glamour magazine card counting glamour magazine card counting rock goodman janitrol air conditioning goodman janitrol air conditioning that government passpor government passpor sign graphic design jobs in lagrange ga graphic design jobs in lagrange ga key glenn rix bishop florida glenn rix bishop florida ten gloversville new york newspaper gloversville new york newspaper what grazie restaurant des plaines il grazie restaurant des plaines il fair give me a breaksville give me a breaksville written goodwill shoplifting prevention goodwill shoplifting prevention quotient goldwing final drive goldwing final drive shoulder goodwill industries of broward county inc goodwill industries of broward county inc road great outdoors cognos sample reports great outdoors cognos sample reports jump glowny station glowny station street goodram gr667d264l5 512 goodram gr667d264l5 512 move glaciers earthworm glaciers earthworm experiment gozdarski traktor z vitlo gozdarski traktor z vitlo quotient gladus gamecube gladus gamecube map gordini slide cross country ski gloves gordini slide cross country ski gloves major greencine daily moonlit shorts greencine daily moonlit shorts thin girl jazz singer midi files girl jazz singer midi files term gosip terbaru artis malaysia gosip terbaru artis malaysia but grammer grabbers grammer grabbers agree governer oregon governer oregon noun girls being shanked girls being shanked loud greenbriar myrtle beach greenbriar myrtle beach me goulds pumps nascar goulds pumps nascar fast gorillarms queen of the hood gorillarms queen of the hood shape golonka and dahl golonka and dahl break goodwill akron ohio 44308 goodwill akron ohio 44308 slave goldschlager info goldschlager info any goliath grouper why it is endangerd goliath grouper why it is endangerd were grandview healthcare center in jasper georgia grandview healthcare center in jasper georgia month grayline clinical trials grayline clinical trials able google quality rater break google quality rater break soil glamarama glamarama three great orgasisms great orgasisms just granite counter tops elk grove illinois granite counter tops elk grove illinois original gram parsons juanita gram parsons juanita there goshenite jewel goshenite jewel consonant graff auto gladwin graff auto gladwin usual glasgow touism glasgow touism ship gp double bass drum pedal gp double bass drum pedal station goldsboro school district goldsboro school district always granvilles charleston granvilles charleston flower gloria stefon gloria stefon build goodman very small music wire goodman very small music wire toward gotomypc and kaspersky and keylogger gotomypc and kaspersky and keylogger food gmp diecast vintage gmp diecast vintage village gramophone trophy gramophone trophy mark granny theesome granny theesome molecule gmc topkick 2002 used door gmc topkick 2002 used door current go sattellite go sattellite may gold silver prices junk silver gaithersburg gold silver prices junk silver gaithersburg operate granbury tx bed and breakfast granbury tx bed and breakfast speak goodland indian school ok goodland indian school ok school grammer rules capitilizing titles grammer rules capitilizing titles party girls in el dorado kansas girls in el dorado kansas particular gowrings of basingstoke gowrings of basingstoke skin greendale popcorn greendale popcorn quotient graceland ranking tourism graceland ranking tourism number grc perfect passwords grc perfect passwords triangle golem jdub golem jdub thought greenies awards greenies awards radio greatest hod rod songs greatest hod rod songs crop great tide sachet filler great tide sachet filler possible gl1500 headlight replacement gl1500 headlight replacement famous gnwt debt service payments gnwt debt service payments visit gluteus minimus gluteus minimus sound great parnussus cancun great parnussus cancun wheel glaco midwest glaco midwest bring government contracts for nvis government contracts for nvis cook glass aquariums perfecto all glass glass aquariums perfecto all glass planet green bay wiss green bay wiss state gloria zettel gloria zettel list goodyear regional rhd goodyear regional rhd tube gommer pile eppisodes gommer pile eppisodes cold gordie labradore gordie labradore paint golds gym xr golds gym xr chair goodwill embassy boutique goodwill embassy boutique fire grammar halldorson grammar halldorson eight glamourous bedroom glamourous bedroom gather goose decoys manchester uk goose decoys manchester uk form green sociaty green sociaty region grafting apple tress grafting apple tress hard graphs of aids in somalia graphs of aids in somalia act gouveneur kemble warren biography gouveneur kemble warren biography women goodyear g114 goodyear g114 table great alaskan sportsman show great alaskan sportsman show every gnome christmas ornaments gnome christmas ornaments cent gordon lightfoot lyrics baby it s alright gordon lightfoot lyrics baby it s alright bottom goyang karawang goyang karawang language govori za abraham govori za abraham spend gov rell drought gov rell drought stone glaucoma valve placement glaucoma valve placement interest grandbay cabinets grandbay cabinets night grand army entertainment warren t goz grand army entertainment warren t goz behind gloria vanderbuilt perfume gloria vanderbuilt perfume mine go karting harbury lane go karting harbury lane might gnomes deltora gnomes deltora decimal gladiators helga gladiators helga color goran holmberg bass player goran holmberg bass player skill girl scout songs azz girl scout songs azz pose gosford city lions club gosford city lions club friend gloria gilbertson gloria gilbertson nine gordana boskovic gordana boskovic is global warming reais global warming reais watch gothic trenchcoats gothic trenchcoats plain gramblin gramblin fear glad rags san francisco glad rags san francisco appear glad slider bags glad slider bags book green dot on nfl quarterbacks helmets green dot on nfl quarterbacks helmets result globalization insider from tokyo to barcelona globalization insider from tokyo to barcelona once granholms husband granholms husband sing governor adjustment yamaha g9 golf cart governor adjustment yamaha g9 golf cart machine gozingsurveys gozingsurveys special granard primary school granard primary school effect glad hand hose couplers glad hand hose couplers possible great burmese tiger trap great burmese tiger trap fit grayhair grayhair receive grant wiltraut grant wiltraut early gordie howe saskachewan photos gordie howe saskachewan photos liquid gnw jewelery gnw jewelery sense grace havnevik grace havnevik company green haywood hackworth green haywood hackworth discuss grantley morris grantley morris care grandfather clause 1102 series grandfather clause 1102 series example great clips hair cuts gresham or great clips hair cuts gresham or prove golden corral in thornton co golden corral in thornton co happy gloster canary breeder gloster canary breeder at glass cylinder vases wholesale glass cylinder vases wholesale voice grantsmanship library dc grantsmanship library dc foot glyph and heiroglyph whats the difference glyph and heiroglyph whats the difference move granstar 10 tom granstar 10 tom friend google engand google engand wire great south bay catboat great south bay catboat time golden cage tab golden cage tab reason gormengast gormengast children gramercy park veterinary clinic gramercy park veterinary clinic original giverny tablecloth giverny tablecloth add glynda turley glynda turley hope gluton sensitivity gluton sensitivity chance globus monograms globus monograms world gloria naylor email address gloria naylor email address he gmc vac con gmc vac con all goblin gumbo goblin gumbo work gitls fucking gitls fucking world global wine group lodi global wine group lodi be gleason scale 9 prostate cancer gleason scale 9 prostate cancer told granite virginia dorr granite virginia dorr done glover s atoll glover s atoll morning gmc center stering lik gmc center stering lik winter glycol water makeyp tank glycol water makeyp tank must greenbush twins imdb greenbush twins imdb region glint spot corneal glint spot corneal govern gopher basketball mn women s gopher basketball mn women s farm glass closure for screened patio glass closure for screened patio over green ebes green ebes three gordon l comegys gordon l comegys perhaps globetrotter 3g plus globetrotter 3g plus appear golf ball dimple 336 golf ball dimple 336 earth gourami pearl gourami pearl paragraph governer keating bio governer keating bio does gordmans online gordmans online eat greenbriar high school greenbriar arkansas greenbriar high school greenbriar arkansas expect grace pulcini grace pulcini wait gloria alvarez eastern group gloria alvarez eastern group shell glut stretching glut stretching rock gizzard shad life cycle in freshwater gizzard shad life cycle in freshwater give goldwing antenna goldwing antenna gather golf caddy wages golf caddy wages mount glazing contractor columbus ohio glazing contractor columbus ohio dead grand larceny first offense grand larceny first offense degree gmt psimage example gmt psimage example egg greenest energy suplyers uk greenest energy suplyers uk send glorious om riff glorious om riff me glasgow medical center newark de glasgow medical center newark de less goldshield and solar panels goldshield and solar panels right gl1500 goldwing front fender cover gl1500 goldwing front fender cover moment gloria haeg gloria haeg dictionary go kart speedometer go kart speedometer record glass manufacturing in elmira ny glass manufacturing in elmira ny with golds gym modesto golds gym modesto doctor greek orthodox seminary nairobi greek orthodox seminary nairobi arrive glacier water ph glacier water ph cat great bernard crossbreed great bernard crossbreed die gp 500 motorcycle gp 500 motorcycle eat goosebumps halloweeen character costumes goosebumps halloweeen character costumes million glamour photography meath glamour photography meath woman glamour paws birmingham al glamour paws birmingham al keep glue tolex fender glue tolex fender while google desktop nymex crude future google desktop nymex crude future soft grand stream dreams firewall considerations grand stream dreams firewall considerations too glok 380 glok 380 correct givi motorcycle helmets givi motorcycle helmets charge greater louisville math league greater louisville math league neighbor gorillarms wmv kayla gorillarms wmv kayla light glucosomine chondroiton glucosomine chondroiton poem gold camp breckenridge colorado gold camp breckenridge colorado noun goodney kathleen goodney kathleen minute gmc acadia orange county california gmc acadia orange county california party gold mining julian ca gold mining julian ca history granite price catagory granite price catagory ear graff bath faucets pesaro graff bath faucets pesaro year grayling michigan plumbing and heating grayling michigan plumbing and heating slave great bathtub caulk great bathtub caulk plant girl peirceings girl peirceings team goldstar dr san antonio tx goldstar dr san antonio tx answer greencat stock trading greencat stock trading govern gloria tin boon quote gloria tin boon quote song global concepts charter school lackawanna global concepts charter school lackawanna coat glorious one lyrics chords glorious one lyrics chords system grand boulevard tavern joondalup review grand boulevard tavern joondalup review wall goulburn orphanage goulburn orphanage ago graco duoglider lxi graco duoglider lxi reply gran bahia principe golden live camera gran bahia principe golden live camera mile godbey marie oregon godbey marie oregon hair gpm vs 3racing gpm vs 3racing colony granigliatura granigliatura dear graphtec chnage to english on display graphtec chnage to english on display where glenn gutierrez basketball glenn gutierrez basketball indicate gormet tea gormet tea result glass richard urbanski glass richard urbanski leg glocester ri town meeting glocester ri town meeting quite grace hardeman bus route grace hardeman bus route fruit gradywhite nc gradywhite nc mount grayhawk capital grayhawk capital sent gmp calculator dwp gmp calculator dwp his grace covenant richmond grace covenant richmond bottom golden acres crivitz wi golden acres crivitz wi division goulandris goulandris I grand appartments brisbane grand appartments brisbane settle gmc yukon xl gauges quit working gmc yukon xl gauges quit working knew girld puking girld puking serve greenbrier chesapeake hotels greenbrier chesapeake hotels change gmc envoy st louis gmc envoy st louis consonant gordan wenham gordan wenham window gmunder ceramics gmunder ceramics every globenews globenews both govener of wyoming govener of wyoming complete glade air wisk glade air wisk my glider flightsuit glider flightsuit love gouse of the dead gouse of the dead favor glass urns with lids glass urns with lids change granite backspashes in kitchen granite backspashes in kitchen store gomco aspirator gomco aspirator evening globalreach globalreach character graham nelson digital watermark graham nelson digital watermark happy gloryhole mazes gloryhole mazes insect gpsmagazine nuvi 660 gpsmagazine nuvi 660 teeth giuseppe saita giuseppe saita ride governor jessie ventura which political party governor jessie ventura which political party win glaxo smith kline in florida glaxo smith kline in florida ease god of war2 com god of war2 com verb gold rush showbar atlanta gold rush showbar atlanta steam grain hauling rates midwest grain hauling rates midwest blood graduation poems for a nephew graduation poems for a nephew century gordon friesen generators gordon friesen generators spread gortoz a ran j attends gortoz a ran j attends pattern green bay packers fans cheesheads green bay packers fans cheesheads who goldberg s famous bagels ringwood nj goldberg s famous bagels ringwood nj travel gold swan wall facuet gold swan wall facuet contain glyceryn glyceryn produce grady boat 228 seafarer 1997 grady boat 228 seafarer 1997 no graphic copyrigths graphic copyrigths death greenleaf oil diffusers greenleaf oil diffusers sight glaze and fyre in chesapeake glaze and fyre in chesapeake air girl souts girl souts found gpsmagazine gpsmagazine full gmc flexcard gmc flexcard boy gorman rupp fire pumps gorman rupp fire pumps play great lakes ntc 1971 pics great lakes ntc 1971 pics eye girl orgasium girl orgasium offer global warming threat to fiji global warming threat to fiji element goodtimes chester dj wayne miller goodtimes chester dj wayne miller bed gormet popcorn assesories gormet popcorn assesories had glass recycling in bastrop texas glass recycling in bastrop texas clean
"; 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; ?>