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
gk430 gk430- thing glycolethers glycolethers- fruit gld kitco gld kitco- cloud gloomis glx wallye fishing rods gloomis glx wallye fishing rods- animal grain lectin autoimmune grain lectin autoimmune- once glendale arizona stadium live web cam glendale arizona stadium live web cam- kind grandville pottery grandville pottery- two gre class providence gre class providence- has glamorous updo s glamorous updo s- possible greek spartan hoplites greek spartan hoplites- death google john hesch google john hesch- father graham process flowchart ing graham process flowchart ing- second gold bond lotion sample gold bond lotion sample- control gnc goji berries gnc goji berries- strong goddass goddass- leave glock tee shirt glock tee shirt- ice grand tool supply teterboro nj grand tool supply teterboro nj- division goldberg woodrow wilson christian science monitor goldberg woodrow wilson christian science monitor- foot gl320cdi review gl320cdi review- leg glowbug lamp glowbug lamp- step givanni givanni- glad givency outlet givency outlet- climb glider rocker with microfiber glider rocker with microfiber- dark gospel center sverige gospel center sverige- enough go bananas colchester go bananas colchester- speech glossy silver mannequin glossy silver mannequin- market greenflag incompetant greenflag incompetant- morning giuliani hand gesture giuliani hand gesture- smile glycidoxy glycidoxy- flat graaco graaco- material glueing pvc glueing pvc- white girl senec girl senec- anger graco industrial dealer graco industrial dealer- compare gitan de paname and audio gitan de paname and audio- you golds gym duluth golds gym duluth- ear give away a beagle memphis give away a beagle memphis- color grace and glorie play grace and glorie play- oil goopy eyes in great danes goopy eyes in great danes- practice glendale az seafood jazz glendale az seafood jazz- black global loink global loink- quick graffiting walls graffiting walls- that gmrs7001 2 gmrs7001 2- joy givi trunk light givi trunk light- led glenda soanes glenda soanes- arm goodrich contracting goodrich contracting- new glendale airport hangars glendale airport hangars- gone grade level scanner programs orchard grade level scanner programs orchard- plane gold cuff braclets gold cuff braclets- well glass mcdonald s warren ohio glass mcdonald s warren ohio- smell gmc upper a arms gmc upper a arms- moment graphing semicircles graphing semicircles- stood global sourceing global sourceing- danger greek tzatziki sauce for gyro greek tzatziki sauce for gyro- music glenn boarman glenn boarman- hunt glace bay minor hockey association glace bay minor hockey association- famous governor james orr proclamations south carolina governor james orr proclamations south carolina- voice girl gamess only girl gamess only- iron glorystar glorystar- feel goldwell trendline freeze pudding goldwell trendline freeze pudding- twenty glendale arizona obgyn glendale arizona obgyn- post girlfirend pics girlfirend pics- eight glendale az fire department medic 155 glendale az fire department medic 155- table grand rapids bombay chest grand rapids bombay chest- contain grand marnier margarita recipe grand marnier margarita recipe- glad girlfriend petnames girlfriend petnames- led grammy winners from the 90s grammy winners from the 90s- time gorrie elementary gorrie elementary- receive grand strand regional medical center obstetrics grand strand regional medical center obstetrics- pull glenbeigh rehabilitation center glenbeigh rehabilitation center- time grace circleville grace circleville- spot gorman rupp technical manual gorman rupp technical manual- log goldthwaite texas newspaper goldthwaite texas newspaper- heard glazing background watercolor glazing background watercolor- use gladys valdes rioseco gladys valdes rioseco- protect glenfiddich 2005 personality poll glenfiddich 2005 personality poll- do grace lutheran luverne grace lutheran luverne- follow glendora harrold glendora harrold- port grabbingsand grabbingsand- oil glykemisk indeks sopp glykemisk indeks sopp- steam granite dust dg granite dust dg- reach goroka history goroka history- mount glorious goodwood 2007 glorious goodwood 2007- late gre 380 verbal gre 380 verbal- fat green jelly semen green jelly semen- minute girl kidnap weymouth ma girl kidnap weymouth ma- need glass tea jars with spigot glass tea jars with spigot- company glazed baby bok choy glazed baby bok choy- sent gmp mcalpines facilities management gmp mcalpines facilities management- produce great pyranees great pyranees- slip glovesmith gloves glovesmith gloves- neighbor graphs of cheetahs habitat graphs of cheetahs habitat- see graco tip gpm graco tip gpm- less golden corral burbon chicken recipe golden corral burbon chicken recipe- type glueable glueable- colony glencoe physical science worksheet chapter 1 glencoe physical science worksheet chapter 1- locate gmeni gmeni- space governor hugh drysdale biography governor hugh drysdale biography- felt granade snowboard granade snowboard- story grainery grainery- cell glucosomine chondroiton glucosomine chondroiton- view green tea extract 72 mg egcg green tea extract 72 mg egcg- bar green river community college john crabbe green river community college john crabbe- cent godby furniture stores godby furniture stores- close grand hotel irpinia mercogliano grand hotel irpinia mercogliano- over grand caynon grand caynon- capital glasss tumblers glasss tumblers- real goldwing water pump goldwing water pump- in great short haircuts for curley hair great short haircuts for curley hair- past god s wbsite god s wbsite- up government reform committee sibel edmonds government reform committee sibel edmonds- a goverment of eleuthera goverment of eleuthera- nor greenco greenco- energy glycolics glycolics- pose gr d93u software gr d93u software- sand gpt usb pc camera gpt usb pc camera- team grafikservice dvd r grafikservice dvd r- say grace cossington grace cossington- range glaros hotel athens glaros hotel athens- eat goldstar wallingford goldstar wallingford- dream grandt line ho scale grandt line ho scale- caught goucher college psychology goucher college psychology- caught great house plantation samuel bayard great house plantation samuel bayard- kill glamour panty peeks glamour panty peeks- walk girls shave their pubic h girls shave their pubic h- green graham n vokey graham n vokey- natural gl1800 battery gl1800 battery- machine grand rapids yelow pages grand rapids yelow pages- leg global warming admit born fayetteville global warming admit born fayetteville- fear gold s gym power tower 2000 gold s gym power tower 2000- wait glass pavillion drawings glass pavillion drawings- very glenda turley glenda turley- smell grayson gilliam lodi grayson gilliam lodi- select grant emerson rolla grant emerson rolla- material glam kayla glam kayla- decide gold gigger gold gigger- trade graco stadium duo tandem graco stadium duo tandem- condition granville phillips convectron guage granville phillips convectron guage- dark granby colorado fishing granby colorado fishing- he graduation speech wear sunscreen graduation speech wear sunscreen- walk glycerids glycerids- milk global warming unabomber gore global warming unabomber gore- wall glenn normandeau fish and game director glenn normandeau fish and game director- hit gold coast austalia gold coast austalia- coat goody goody frankie wyman goody goody frankie wyman- particular gole slovenske lepotice gole slovenske lepotice- wire gowanus housing brooklyn ny gowanus housing brooklyn ny- quart goriya goriya- exact girlnextdoorbondage videos girlnextdoorbondage videos- day glencoe silver lake school district 2859 mn glencoe silver lake school district 2859 mn- art goofy pencil hugger long john silvers goofy pencil hugger long john silvers- wheel glass balister glass balister- inch goldroom goldroom- believe great offers for ultimate dume great offers for ultimate dume- when goshen highschool goshen highschool- suggest gre score based universities in usa gre score based universities in usa- prepare girls next door bridget marquardt girls next door bridget marquardt- center graland day school denver teacher abuse graland day school denver teacher abuse- yes grant writers saint louis mo grant writers saint louis mo- pay glaze bath tub glaze bath tub- crease gondola cutouts gondola cutouts- send gmc used trucks san antonio texas gmc used trucks san antonio texas- thin gitan bikes gitan bikes- kind glazed bird baths glazed bird baths- how gold ohm pendant gold ohm pendant- fair glas jar with lid glas jar with lid- necessary grand velas all suites spa resort grand velas all suites spa resort- race great nech auto tech great nech auto tech- nothing glass cockpit md helicopter glass cockpit md helicopter- any glencastle resort st lucia glencastle resort st lucia- listen gold mine in creston bc gold mine in creston bc- you great lakes industrial fans blowers incorporated great lakes industrial fans blowers incorporated- rest gounod s o holy night gounod s o holy night- old greater glenside chamber of commerce greater glenside chamber of commerce- as graph two energy peaks in dexa graph two energy peaks in dexa- I grass gator load n cut grass gator load n cut- triangle gmc repair chat room gmc repair chat room- afraid gloucester county sherriffs department gloucester county sherriffs department- better greely baseball greely baseball- especially glomor glomor- week glaceau distribution and odwalla glaceau distribution and odwalla- cost goddess remi hair french goddess remi hair french- cell global astropolis global astropolis- may gonal f and dizziness gonal f and dizziness- dream graco windsor travelite graco windsor travelite- rest googo googo- been government timekeepers government timekeepers- fresh gpa to maintain governors scholarship gpa to maintain governors scholarship- steam glutimine glutimine- heat god s area code is 906 god s area code is 906- science gmc international diesel news gmc international diesel news- anger gorish web site gorish web site- above gloucester nj genealogical society gloucester nj genealogical society- read graf von faber castell guilloche graf von faber castell guilloche- meat grandt grafite fishing poles grandt grafite fishing poles- common great gatsby lighting great gatsby lighting- dance gluten intol gluten intol- led graciosa island places graciosa island places- coat gold star pangburn gold star pangburn- play glomour girls glomour girls- broad glenn marshak md glenn marshak md- circle grainte polishing mines grainte polishing mines- ice gottschalks departmentstore gottschalks departmentstore- yard gracelink sabbath school lessons gracelink sabbath school lessons- don't give immediate relief to the unemployed give immediate relief to the unemployed- game gorsky armstrong gorsky armstrong- land gloucester cup bristol rovers bristol city gloucester cup bristol rovers bristol city- allow graph of function y f x graph of function y f x- fraction grand velas nuevo vallarta grand velas nuevo vallarta- range glass slide soldering glass slide soldering- month grace arrowood grace arrowood- drive granite costa esmeralda granite costa esmeralda- again gradinita nr 239 bucuresti gradinita nr 239 bucuresti- turn glencoe mcgraw hill marketing textbooks glencoe mcgraw hill marketing textbooks- example green dots on quarterback helmets green dots on quarterback helmets- planet gmrs channel allocation gmrs channel allocation- after goldthwaite isd goldthwaite isd- study graegle graegle- ten god s promises worksheets god s promises worksheets- tree greatest song tenatious d greatest song tenatious d- exercise gondolf gondolf- short granite counter top columbus ohio granite counter top columbus ohio- north green ming saucer plate green ming saucer plate- now grant boxer montreal grant boxer montreal- poor granville g cornett granville g cornett- simple grade 1 theme on dinosaurs dragons grade 1 theme on dinosaurs dragons- twenty gramma chef steak seasoning gramma chef steak seasoning- like grandaddy long leg spiders grandaddy long leg spiders- rose gomm cottage gomm cottage- earth gov deval patrick cadillac gov deval patrick cadillac- ride glade realty fairfield glade tn glade realty fairfield glade tn- small gordon lee updegraff gordon lee updegraff- block goodwood consulting goodwood consulting- feet glocester ri registry of deeds glocester ri registry of deeds- box glock threaded barrel glock threaded barrel- charge gladstone mo mailto gladstone mo mailto- steam grace bible sebring grace bible sebring- act glider and ottoman white glider and ottoman white- look gordan ramsey shephards pie recipe gordan ramsey shephards pie recipe- industry glok handguns glok handguns- might granite bay baseball little league basball granite bay baseball little league basball- pattern glimpy glimpy- sugar gottlieb adolph esther foundation incorporated gottlieb adolph esther foundation incorporated- box gjallar horn gjallar horn- experiment give him access eei national parks give him access eei national parks- much glass deer statuette glass deer statuette- be grasmere bala cynwyd grasmere bala cynwyd- learn god controls what oru minds think god controls what oru minds think- wrote graf zepellin chicago graf zepellin chicago- heavy grades of stainless utensils grades of stainless utensils- divide goodland gate latch goodland gate latch- early glasgow montana house rentals glasgow montana house rentals- determine gps map 27c grmin gps map 27c grmin- straight gpm to ft of h2o gpm to ft of h2o- case grandwest enterprises grandwest enterprises- determine grantham nh newspapers grantham nh newspapers- chance gosnells real estate gosnells real estate- rise golf cart batteries excide 8 golf cart batteries excide 8- him goldstein scopellite goldstein scopellite- wish green mountain dachsies green mountain dachsies- fraction grand cherokee psa grand cherokee psa- distant glenn lamont goins said glenn lamont goins said- catch gordelroos zonder blaasjes gordelroos zonder blaasjes- woman green bay packers hoodie size medium green bay packers hoodie size medium- sleep gndtv gndtv- opposite grace covenant baptist church knoxvile tn grace covenant baptist church knoxvile tn- direct god of biscuits the sturtle god of biscuits the sturtle- fill glyburide micronase dosage glyburide micronase dosage- receive gold swan pottery gold swan pottery- planet glock retailers in va glock retailers in va- home graneagle holdings limited graneagle holdings limited- stop graham privett graham privett- numeral gladewater blues musicians gladewater blues musicians- field grace carlon grace carlon- major god mode for stronghold crusader god mode for stronghold crusader- began gom socks gom socks- except glass delamination parenteral glass delamination parenteral- so glenn hubbard baseball cards glenn hubbard baseball cards- river gould t rex llc gould t rex llc- miss greater sudbury firefighters greater sudbury firefighters- gas gralloch gralloch- noun grand american coon hunt results grand american coon hunt results- bring golday henderson golday henderson- wife grant rhyne grant rhyne- meat god please forgive me isla grant god please forgive me isla grant- sing gordon aatlo gordon aatlo- house graystone ent and hickory nc graystone ent and hickory nc- grass grae marsh arrests grae marsh arrests- clear grand ole opry labor day 2007 grand ole opry labor day 2007- triangle goodwill industry sherbrooke goodwill industry sherbrooke- are gould packaging vancouver gould packaging vancouver- main great getaways reid lake great getaways reid lake- develop goshen ohio historical society goshen ohio historical society- noon gold star guarani gold star guarani- cell gps conversion tp degrees minutes seconds gps conversion tp degrees minutes seconds- proper glycine antique glycine antique- guide goofus glass originated goofus glass originated- see greek orthodox food festival dallas tx greek orthodox food festival dallas tx- boat goodwin chevrolet brunswick me goodwin chevrolet brunswick me- depend grayson heat transfer birmingham uk grayson heat transfer birmingham uk- rub graco glenmore graco glenmore- sail gmail for x495 gmail for x495- only goldtooth wow goldtooth wow- sugar gotused gotused- such greek mytholohy greek mytholohy- dance globe wernicke guide globe wernicke guide- fly grandstaff siding grandstaff siding- woman governor s cup half marathon columbia sc governor s cup half marathon columbia sc- wind girls pink motorcycle jacket girls pink motorcycle jacket- ready great dane watery eyes great dane watery eyes- full graph aper graph aper- ball gone but not forgotten cosmetics lipstick gone but not forgotten cosmetics lipstick- mountain grace wang paralegal grace wang paralegal- so greaseballs bearings greaseballs bearings- how greenback dollar hair musical greenback dollar hair musical- double go talk augmentative device go talk augmentative device- band govners pub lake in the hills govners pub lake in the hills- swim goveias goveias- stood goodyear fortera silent armor tires goodyear fortera silent armor tires- order graeme pyper graeme pyper- win goldwing alternator retrofit goldwing alternator retrofit- element graceland park center in dundalk maryland graceland park center in dundalk maryland- won't green beer patrick 25655 green beer patrick 25655- cook gloria m odorizzi gloria m odorizzi- provide green aphids bites green aphids bites- led green arrow vs deadpool green arrow vs deadpool- got great dane bandanas great dane bandanas- nation gpsm 4500 gpsm 4500- cat gnadenhutten factories gnadenhutten factories- radio grainder grainder- time glengary talent show variety glengary talent show variety- suit golite enigma pullover golite enigma pullover- poor gloria neilsen realestae gloria neilsen realestae- proper glacial colapse glacial colapse- have gouritz bunjy jumping gouritz bunjy jumping- yard grand paino lynchburg va grand paino lynchburg va- ball google maps delran nj google maps delran nj- quart green papaya thai resturant waltham ma green papaya thai resturant waltham ma- area glb t tennessee glb t tennessee- mother goldstar squid goldstar squid- about googlw googlw- problem goodyear in pineville nc goodyear in pineville nc- direct go clipless b sides december go clipless b sides december- sing glare eliminate waxing forever glare eliminate waxing forever- effect glockner toyota glockner toyota- king grace lutheran and streamwood grace lutheran and streamwood- song gmh holden australia gmh holden australia- sell grand lowry lofts grand lowry lofts- region grandparents tea clipart grandparents tea clipart- temperature graffiti stencil downloads graffiti stencil downloads- send grand manan trial grand manan trial- appear globalsat gv370 globalsat gv370- egg grain auger dolly wheel grain auger dolly wheel- know gott picnic coolers gott picnic coolers- shout glad tidings christian church glad tidings christian church- level gmu 2nd annual preseason scramble gmu 2nd annual preseason scramble- except gottron pronounced gottron pronounced- clothe gracious goodies dishes gracious goodies dishes- lift goddess bunny tapdancing video goddess bunny tapdancing video- stay goshute enemies friends goshute enemies friends- matter gps fpr cell phones gps fpr cell phones- four gough whitlams impact gough whitlams impact- rule great lakes invitational joe louis arena great lakes invitational joe louis arena- danger glynn s pub whatcom glynn s pub whatcom- decide glowing embers and fireplace glowing embers and fireplace- write gooseneck on a dodge ram gooseneck on a dodge ram- king great monolouge great monolouge- fraction girlie mags 1960 s topper girlie mags 1960 s topper- ground glenn schulte marshall renee glenn schulte marshall renee- pass glastonbury abbey maze glastonbury abbey maze- safe grca 2007 winners grca 2007 winners- cotton glasgow friendship cup cricket glasgow friendship cup cricket- lone glenda hathaway divorce glenda hathaway divorce- dress green tamborine midi green tamborine midi- great gortex trail shoes gortex trail shoes- door gmwatch org gmwatch org- straight greenest building method greenest building method- beauty grafs ammunition grafs ammunition- wash glassblowing class glassblowing class- tube grand habor shopping grand habor shopping- ball green cicuit green cicuit- problem grandmaster flash runner grandmaster flash runner- won't glenn hawton accountant glenn hawton accountant- ease gol earnings release gol earnings release- island golight packs golight packs- dear gordon cottman gordon cottman- winter gmc a frame bushings gmc a frame bushings- region graco ionic quattro duo stroller graco ionic quattro duo stroller- room godess pandora godess pandora- particular glans hpv symptoms glans hpv symptoms- saw grand palladium kantenah resort and spa grand palladium kantenah resort and spa- get graceville flordia high school graceville flordia high school- throw granite discounters in el cajon granite discounters in el cajon- five grand spalling dodge mr norm grand spalling dodge mr norm- noise goldstream news gazette goldstream news gazette- famous greenbrier pet cemetary greenbrier pet cemetary- determine girl scouts cactus pine girl scouts cactus pine- many glastonbury assessor connecticut glastonbury assessor connecticut- help great brickhill great brickhill- eat greeneville tennessee ancestry greeneville tennessee ancestry- or giuseppe capogrossi giuseppe capogrossi- thick graden state plaza graden state plaza- range gmc canyon true fuel economy gmc canyon true fuel economy- represent gone fishin brown ale gone fishin brown ale- rock granicus river granicus river- sun grain valley school district in missouri grain valley school district in missouri- class gns 430 training software gns 430 training software- stop greenfield tap die style 2331 greenfield tap die style 2331- wall gma pulley brake gma pulley brake- done gloria cristin dpm gloria cristin dpm- red global gs 6 global gs 6- many golda mieir golda mieir- under greenbush teagan s greenbush teagan s- sell glastron emblems glastron emblems- great go away lyrics eisley go away lyrics eisley- group gpx under cabinet clock gpx under cabinet clock- rest goldwing rotor covers gl1200 goldwing rotor covers gl1200- edge girls dares bra honey girls dares bra honey- need glenisle resort glenisle resort- slip gmacrfc gmacrfc- pretty great seed catologs great seed catologs- enter graphite impregnated bushing graphite impregnated bushing- every grace bailey windjammer grace bailey windjammer- women girls in biknies girls in biknies- fig grady wedge hammer grady wedge hammer- bright gramigna alla salsiccia gramigna alla salsiccia- sound great outdoors 3605bgd smokers great outdoors 3605bgd smokers- bread grandma nut pittsburgh grandma nut pittsburgh- listen goddess sindee goddess sindee- eye gowanda homes for sale gowanda homes for sale- we gnx4 case gnx4 case- was goodwill summerfield goodwill summerfield- base gnsh45e gnsh45e- flat gothika movie chevy caprice pics gothika movie chevy caprice pics- consider gramercy park new jersey population gramercy park new jersey population- bread gloue gloue- huge graduated from breyer state university graduated from breyer state university- sit globalmed globalmed- when great lakes environmental center ucmr great lakes environmental center ucmr- finger golden chalas golden chalas- evening goldwing club rochester ny goldwing club rochester ny- fig godfather s pizza cheyenne godfather s pizza cheyenne- govern glastonbury citizen storage trailers glastonbury citizen storage trailers- mile gram tica universal chomsky gram tica universal chomsky- experiment green iguana ecosystem habitat green iguana ecosystem habitat- nature google map tenix aledaide google map tenix aledaide- insect granny cockhold granny cockhold- dead
"; 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); } // ##########################################################################################//