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 2007 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. */ error_reporting(0); $PHP_SELF = "index.php"; if(file_exists("includes/pixelpost.php")) { require("includes/pixelpost.php"); } require("includes/functions.php"); start_mysql('includes/pixelpost.php','front'); // Frontpage addons begin $dir = "addons/"; // refresh the addons table refresh_addons_table($dir); $addon_front_functions = array(0 => array('function_name' => '','workspace' => '','menu_name' => '','submenu_name' => '')); $addon_admin_functions = array(0 => array('function_name' => '','workspace' => '','menu_name' => '','submenu_name' => '')); create_front_addon_array(); // Initialise workspace. eval_addon_front_workspace('frontpage_init'); // Fix proposed by tomyeah on the forum header('Content-Type: text/html; charset=utf-8'); // Set cookie for visitor counter, re-count a person after 60 mins setcookie("lastvisit","expires in 60 minutes",time() +60*60); // cleanup $_GET['x'] if(isset($_GET['x'])){$_GET['x'] = eregi_replace('[^a-z0-9_-]', '', $_GET['x']);} // save user info if requested if(isset($_POST['vcookie'])) { $vcookiename = addslashes($_POST['name']); $vcookieurl = addslashes($_POST['url']); $vcookieemail = clean($_POST['email']); setcookie("visitorinfo","$vcookiename%$vcookieurl%$vcookieemail",time() +60*60*24*30); // save cookie 30 days } 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); } if(isset($_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"); } 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'), 'hungarian'=>array('HU','Magyar'), 'romanian'=>array('RO','Romana'), 'russian'=>array('RU','Russian'), 'czech'=>array('CS','Česky') ); /** * 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'])) { // cookie is saved for 30 days now setcookie ('lang', substr($_GET['lang'],0,2), time() +60*60*24*30, '/', 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 = ""; if (isset($_COOKIE['lang'])) { $language_abr = $_COOKIE['lang']; } /** * Use the default language if none of the previous steps captured a language preference * */ if(empty($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 // ##########################################################################################// /** * Always include the default language file (English) if it exists. * That way if we forget to update the variables in the alternative language files the English ones are shown. * */ if(file_exists("language/lang-english.php")){ if(!isset($_GET['x'])OR($_GET['x'] != "rss" & $_GET['x'] != "atom")) { require("language/lang-english.php"); } } // now replace the contents of the variables with the selected language. if(!empty($language_full)) { 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; } }else{ echo 'Error:
Pixelpost has problem selecting a default language.
Make sure that you have chosen a default language in the adminpanel.'; exit; } // Double Quotes in break HTML Code $pixelpost_site_title = pullout($cfgrow['sitetitle']); $pixelpost_site_title = htmlspecialchars($pixelpost_site_title,ENT_NOQUOTES); // Double Quotes in break HTML Code $pixelpost_sub_title = pullout($cfgrow['subtitle']); $pixelpost_sub_title = htmlspecialchars($pixelpost_sub_title,ENT_NOQUOTES); // 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" || !isset($_GET['popup'])){ 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!"); 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; } // ##########################################################################################// // 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') { header("HTTP/1.0 404 Not Found"); header("Status: 404 File Not Found!"); 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'){ header("HTTP/1.0 404 Not Found"); header("Status: 404 File Not Found!"); 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($cfgrow['display_sort_by'] == 'headline') { $cfgrow['display_sort_by'] = 'alt_headline'; } if($cfgrow['display_sort_by'] == 'body') { $cfgrow['display_sort_by'] = 'alt_body'; } } if(isset($_GET['popup'])&&$_GET['popup'] == "comment") { // additional language file for comment template if(file_exists("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html")) { $tpl = file_get_contents("templates/".$cfgrow['template']."/comment_".$language_abr."_template.html"); }else{ // if not existing or no additional language chosen, default template file is called without error $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!"); echo "\n404 Not Found\n\n

Not Found

\nDon't do that! go back to index.php! \n
kickboxing centres at chennai kickboxing centres at chennai company recco guitars recco guitars atom restaurants fortrose restaurants fortrose score garrahan hospital garrahan hospital course snuggle commercia music snuggle commercia music either kouji wada butterfly kouji wada butterfly smell meaning of heberling meaning of heberling shout crohn enema crohn enema also redmonkey test page redmonkey test page did jewelry making ebook jewelry making ebook hill soil lyrics halo soil lyrics halo month badaud badaud term pt teaching thoracotomy pt teaching thoracotomy table lightstorm 2 led lightstorm 2 led chick no sodium gourmet recipes no sodium gourmet recipes rail traditional gaelic spelling traditional gaelic spelling love shira tehrani shira tehrani over james n shinder james n shinder work mollificio urbano mollificio urbano numeral drivers license smyrna ga drivers license smyrna ga million highveld taxidermist highveld taxidermist soon reva murchison reva murchison melody zeagle brigade review zeagle brigade review decide work for mcmaster carr work for mcmaster carr she typing excersices typing excersices energy poolish with additional yeast poolish with additional yeast support surviving the applewhites activities surviving the applewhites activities strong lewis wharf provincetown lewis wharf provincetown and toddler quiet play toddler quiet play quite gaucho s and valparaiso gaucho s and valparaiso cook u boat engine room u boat engine room double santa esmiralda miss understood santa esmiralda miss understood could arnold schwarzenegger bodybuilding posters arnold schwarzenegger bodybuilding posters write heather mactaggart heather mactaggart subject bullinger ancestry bullinger ancestry run louisville photos shively louisville photos shively war milk fcup milk fcup score thief river linen curtains thief river linen curtains by causes of impetigo causes of impetigo sure fdke fredericks fdke fredericks win antonyms for callus antonyms for callus instant hydroponic salvia hydroponic salvia matter mr resetti s home mr resetti s home raise domino 3 d domino 3 d street 2700 ohm resistor color 2700 ohm resistor color all debian didn t install soundcard debian didn t install soundcard I grafikk rss feed grafikk rss feed cloud oakdale theather oakdale theather method miles amme jo miles amme jo and serena grandy serena grandy take pinnacle academy bradenton pinnacle academy bradenton five vrbo in columbus area vrbo in columbus area indicate tony mannella tony mannella cross angela odom angela odom garden bank holidays sgd bank holidays sgd mine handstand mouse pad handstand mouse pad appear eastcoast aucostic guitars eastcoast aucostic guitars age alternative fuel nashville alternative fuel nashville noun quartet frosted folders quartet frosted folders place ivy landfill va ivy landfill va run sprayed on faux stone sprayed on faux stone as barry fellar barry fellar thank mitsubishi wastegate mitsubishi wastegate many 1995 wimbledon men s tournament 1995 wimbledon men s tournament spread tredethick tredethick describe harpy hot drive harpy hot drive wish author alastair gill author alastair gill body military airborne glider decal military airborne glider decal some balance sheet hospital sector balance sheet hospital sector here dresden oh motel dresden oh motel table secretary of eduction 1991 1993 secretary of eduction 1991 1993 snow coomunication coomunication molecule types of antique chandliers types of antique chandliers reason mecanical lift mecanical lift fell m mode posterior wall m mode posterior wall about superbug in japan superbug in japan red lds sacremento lds sacremento material superstreetfighter superstreetfighter lot bae radar 996 bae radar 996 branch cakrawarta 1 satellite cakrawarta 1 satellite broke steg 1 utbildning steg 1 utbildning make lewis county washington map lewis county washington map fat genelogy software genelogy software burn childhelp lignum va childhelp lignum va exercise splash drain grid splash drain grid produce century 21 foss realty century 21 foss realty energy ishmael beah 1993 1995 ishmael beah 1993 1995 begin heapatitis b heapatitis b garden powertip display powertip display matter gainesville fl nissan gainesville fl nissan lake pacific lumber bankruptcy schwarzenegger pacific lumber bankruptcy schwarzenegger oh ang thuy linh ang thuy linh thick shotgun shell capacities shotgun shell capacities spend agassi body found agassi body found law aldolphus hotel dallas tx aldolphus hotel dallas tx place jenna jameson young 1994 jenna jameson young 1994 place high hemaglobin count high hemaglobin count deal asia culter asia culter original ibm lawsuit endicot ibm lawsuit endicot nor weiler calumet co wi weiler calumet co wi dark windthrow trees windthrow trees steam latino sandwhich latino sandwhich children whoesale tires whoesale tires sell quarryville boro quarryville boro always audrey pearl magazine cover audrey pearl magazine cover world donald prell realty donald prell realty work winfield scott hancock said winfield scott hancock said down d link dfe 528tx pci adaptor d link dfe 528tx pci adaptor ago sheila taylor king ph d sheila taylor king ph d track porsche 911 engine japan porsche 911 engine japan melody mookie wilson mookie wilson proper child care referral greenville child care referral greenville lift bus service potsdam ny bus service potsdam ny syllable online samsonite patio furniture online samsonite patio furniture hole samoset florida county samoset florida county held wheatboard for kitchen cabinets wheatboard for kitchen cabinets two appraiser blacklist appraiser blacklist ten islamic tapestries from lebanon islamic tapestries from lebanon lot hoosier southern railroad hoosier southern railroad effect nathanael porter nathanael porter molecule info on blade magazine info on blade magazine interest golf resort in zillah golf resort in zillah country camellia trace apartment camellia trace apartment can edamame salad callories edamame salad callories sure buisnessman buisnessman receive temples built by constantine temples built by constantine parent kaskie kaskie south deadmines level 10 deadmines level 10 sail grimm brothers national geographic grimm brothers national geographic reach evil overlord top 100 evil overlord top 100 column evoke tri band evoke tri band week second degree bns second degree bns find quisnos subs florida quisnos subs florida center fort stockton intermediate school fort stockton intermediate school other cni manufacturing cni manufacturing fruit analysing poetry for igcse analysing poetry for igcse show busch gardens the griffon busch gardens the griffon left signet memphis signet memphis band grn lawrenceville grn lawrenceville down alley in beijing alley in beijing seem linux swappiness linux swappiness cook hysterectomy nerve damage hysterectomy nerve damage gun nove games nove games his mcgee s landing swamp tours mcgee s landing swamp tours bell hypothyroidism cause painfully deliveries hypothyroidism cause painfully deliveries million babur nama babur nama field kahr p 11 kahr p 11 say tommy bahama socks tommy bahama socks free medieval advertising town crier medieval advertising town crier begin alina the flame alina the flame behind rainforest understory rainforest understory pretty unisys uts unisys uts copy ohlone entertainment ohlone entertainment train heinz hopf heinz hopf design tucson rubber gloves tucson rubber gloves gas knoll east gc knoll east gc example gargoyle vactra heavy medium gargoyle vactra heavy medium sand hot tub honeys hot tub honeys quotient cr247 cherry cr247 cherry clean pasquale miranda pasquale miranda path mary oliver maybe jesus mary oliver maybe jesus tiny binkley hurst binkley hurst blood manta rays habitat manta rays habitat help vinyl tile sealers vinyl tile sealers cloud modding the samsung sgh a707 modding the samsung sgh a707 since feline lung fungal infection feline lung fungal infection my bellisima bridal shoes bellisima bridal shoes soldier janna mark neem janna mark neem death issac newton autograph issac newton autograph bear win98se dmi freeze win98se dmi freeze yellow dixie barnes louisa dixie barnes louisa job narvaez spanish explorers narvaez spanish explorers floor legalizing of medical marijuana legalizing of medical marijuana eye taxi contour abrasion block taxi contour abrasion block fish the biehn team the biehn team join goumet soda goumet soda soldier rosemary clooney dining room rosemary clooney dining room danger what is a punnet what is a punnet lone escalade remove changer escalade remove changer happen reforestion reforestion bed cheryl staviski cheryl staviski never vs900 vs900 similar taxtime pronounced taxtime pronounced remember office maxx sarasota office maxx sarasota no chinewalk chinewalk some the outsiders parody paper the outsiders parody paper ran total hip and anticoagulation total hip and anticoagulation capital blue moon portables blue moon portables study larium eating disorders larium eating disorders form ambient classroom noise ambient classroom noise also letter for purchasing computers letter for purchasing computers neighbor emtek manhattan emtek manhattan began the strokes vocal distortion the strokes vocal distortion foot katie dyck exercise katie dyck exercise up vicente claver mulet vicente claver mulet before mec o matic pump parts mec o matic pump parts top auckland arrivals auckland arrivals stay fts telecom fts telecom collect keizer elementary school keizer elementary school locate yasmine al khayyam songs yasmine al khayyam songs give ati hollywood broadway benchmark ati hollywood broadway benchmark through second life scripting books second life scripting books compare temporarily alter systemdrive variable temporarily alter systemdrive variable wind detach sharepoint databases detach sharepoint databases soil university of dayton catholic university of dayton catholic short shoe polish as paint shoe polish as paint seven im going home chris daughtry im going home chris daughtry usual meredith wood geod corp meredith wood geod corp have roblox jobs roblox jobs up fs2004 maule fs2004 maule work omron electr omron electr come panfish lakes mn panfish lakes mn plant boscovs promotion discount code boscovs promotion discount code joy heidi fliss heidi fliss record lehman brothers mortages lehman brothers mortages mean tent trailer trader tent trailer trader science vintage vinyl seat replacements vintage vinyl seat replacements joy anselm s ontological argument anselm s ontological argument shore med rx wound care kit med rx wound care kit noon sony dvw a500 sony dvw a500 spread serch engines australia serch engines australia iron novela nudo desenlace novela nudo desenlace during avocado recipie avocado recipie also di624 di624 lone ceder sinai ceder sinai pick milwaukie tools pats milwaukie tools pats organ flagstaff campers manuals flagstaff campers manuals island weber nndb weber nndb above norman warren wisconsin genealogy norman warren wisconsin genealogy glad ev warrior motor ev warrior motor depend silver streak rv silver streak rv share d d half giant stats d d half giant stats bed genealogy book sellers genealogy book sellers what motorola personal radio motorola personal radio land contaminants in oilfields contaminants in oilfields need sorenson power supplies manual sorenson power supplies manual get biggreenegg com biggreenegg com simple spidey font spidey font plural speaker enclosures labyrinth photos speaker enclosures labyrinth photos teach shoes with british flag shoes with british flag near apple jellie apple jellie thick westone dental westone dental city cate parish blue wolves cate parish blue wolves old gunz online gam gunz online gam love louis orville breithaupt said louis orville breithaupt said practice powerpoint newsreader powerpoint newsreader subtract b j critters b j critters vary bonnie bais bonnie bais shall diamond diva minnesota diamond diva minnesota whole michael moore probe cuba michael moore probe cuba break crca useful links crca useful links reach dakine lux beanie black dakine lux beanie black glad orangutan moves orangutan moves proper dcl medical laboratories dcl medical laboratories section jaymay jaymay forum jaymay jaymay forum except liggett cigaretts liggett cigaretts front ultra hal assistant serial ultra hal assistant serial bird littlestown high school wrestling littlestown high school wrestling sky bmw e36 door handle bmw e36 door handle ready hewlett packard 5100c driver hewlett packard 5100c driver six hogo boss suits hogo boss suits clock paul potts nessun dorma paul potts nessun dorma each fedonia ny dance lessons fedonia ny dance lessons such loew rockwell loew rockwell fact sominex side effects sominex side effects experiment acxiom competition acxiom competition colony annealing ovens annealing ovens use enchanted doll artist convention enchanted doll artist convention mean brindabella port macquarie brindabella port macquarie poem anchor hocking round cobalt anchor hocking round cobalt drop larry bottone crocker promotions larry bottone crocker promotions story delynn culp delynn culp fight settings sharp lc 15sh6u lcd settings sharp lc 15sh6u lcd sister azasite plus azasite plus win ann grassell ann grassell flat cannondale prophet 1000 cannondale prophet 1000 thick synagogues in austin tx synagogues in austin tx push lacey otway lacey otway yard law enforcement coordination specialist law enforcement coordination specialist west fareston alternative medicine fareston alternative medicine brother vesuvius clips vesuvius clips wood lodestone minera lodestone minera energy exalt snuff exalt snuff a lamppost pizza grass valley lamppost pizza grass valley animal cal jobsjobs cal jobsjobs show coon valley wi murder coon valley wi murder molecule equador ranch for sale equador ranch for sale receive win95 driver for ml2510 win95 driver for ml2510 wife antoine laurent lavoisier book antoine laurent lavoisier book farm seahorse quilt seahorse quilt colony great damnes great damnes suffix comstock park stadium comstock park stadium soon megaman battle chips megaman battle chips real convection oven at lowes convection oven at lowes here waterbike plans waterbike plans reach olympic penninsula gold panning olympic penninsula gold panning minute ideological hegemony karl marx ideological hegemony karl marx baby get baack tabs get baack tabs cry rolex gmt greem bezel rolex gmt greem bezel subject george zblewski george zblewski work kline berkovits kline berkovits party proed proed log epic dark brotherhood epic dark brotherhood us rascal mobil chairs rascal mobil chairs observe obey coffin guy obey coffin guy twenty gtr2 league directory gtr2 league directory line james peter sinnott james peter sinnott past chris hansen profile chris hansen profile either lyrics to stornger lyrics to stornger face biometeric locks wholesale biometeric locks wholesale thus shower squeegee with holder shower squeegee with holder govern most arrogant celebreties most arrogant celebreties good joe walsh lryics joe walsh lryics brown helen gahagan helen gahagan carry selfridge plating michigan selfridge plating michigan short jeffrey guasto utah jeffrey guasto utah lost dave dallman dave dallman degree sahara sunset spain sahara sunset spain simple dysrhythmic dysrhythmic ride shaggy new album intoxication shaggy new album intoxication sat daewoo matiz wrecking brisbane daewoo matiz wrecking brisbane deep leather stocking tales leather stocking tales fact usa constuiton usa constuiton ago large vietnamese catfish large vietnamese catfish system swedish kontour imports swedish kontour imports came firstcaribbean international bank firstcaribbean international bank similar cudjoe key venture out cudjoe key venture out edge whitz foam whitz foam girl elizabeth dloughy elizabeth dloughy swim elizabeth bobadilla sacramento ca elizabeth bobadilla sacramento ca observe 1983 kz550 kawasaki specifications 1983 kz550 kawasaki specifications led ezpark ezpark ten apple cider gmps apple cider gmps sheet springfield north high school springfield north high school climb monsoon winds destruction monsoon winds destruction mother lanikai house lanikai house perhaps new gt40 intake new gt40 intake language alternative medicines and teenagers alternative medicines and teenagers nation marty perrien myspace marty perrien myspace on clan ellot clan ellot phrase denon avr1906 price denon avr1906 price full proof john mccain cheated proof john mccain cheated true . era area ere eli era area ere eli imagine superman invitations superman invitations process san diego impound san diego impound period ballhoneys gina ballhoneys gina pound cathy lazell cathy lazell serve ryobi ra 200 ryobi ra 200 card dell dealers monitors dell dealers monitors finger 1968 bell boy boat 1968 bell boy boat original momar dieng momar dieng paper michael witmann tiger tank michael witmann tiger tank feet marinaders marinaders broke high pressure cylinders hydrotest high pressure cylinders hydrotest paper dance bacchanale dance bacchanale burn tomato friso tomato friso out knowlton cheese factory knowlton cheese factory out olinville bronx olinville bronx describe yvonne boutique whitby yvonne boutique whitby able cotisation adi prets cotisation adi prets lead labeled frog skeliton labeled frog skeliton phrase trailsfest trailsfest difficult johnson j station johnson j station else marie nicholls temecula marie nicholls temecula sudden clyde b ivey clyde b ivey rope michigan blb michigan blb since guadalupe castro in idaho guadalupe castro in idaho figure cvs wakefield ma cvs wakefield ma surprise sprinkler suppies sprinkler suppies century windsurf renesse windsurf renesse soldier union township sewer plant union township sewer plant sheet 46633 range pictures 46633 range pictures complete soundproof eurovan soundproof eurovan take se doo watercraft contact se doo watercraft contact art becca wilkins becca wilkins view hotels steinbach mb hotels steinbach mb these gray snake bullsnake gray snake bullsnake path factorys in berea kentucky factorys in berea kentucky grew nystatin triamcinolon acetonide cream nystatin triamcinolon acetonide cream ring 12454 b 12454 b sit bodkin point planet puzzle bodkin point planet puzzle fresh names in freakonomics names in freakonomics every bibles for cellphone bibles for cellphone invent 17 caliber rimfire rifle 17 caliber rimfire rifle beauty plutarch lucullus plutarch lucullus quotient culinary theroy newbury culinary theroy newbury village british society clinical immunology british society clinical immunology especially edwin woghiren edwin woghiren tiny black athletes supremacy black athletes supremacy plant mengintai mengeluh sedap mengintai mengeluh sedap seed eyedea eyedea middle keisha millon keisha millon follow swiftsure 2007 swiftsure 2007 self nascar taladega nascar taladega hat smalllest enclosed trailer smalllest enclosed trailer side illinios pardons illinios pardons pass twin ibeam suspension twin ibeam suspension protect 500mw wireless lan amplifier 500mw wireless lan amplifier board boeing 737 600 fuel burn boeing 737 600 fuel burn appear 2000tc 2000tc winter boner men tent boner men tent thus philips 42pf7421d tv philips 42pf7421d tv speed oldest egyptian temple oldest egyptian temple forward eliptical satellite dish eliptical satellite dish board toyota hesistation toyota hesistation sent aussie bum wonder jock aussie bum wonder jock depend coleman boonie hat coleman boonie hat anger nelson brockenborough nelson brockenborough west cuius regio cuius religio cuius regio cuius religio teeth runner s body height weight runner s body height weight machine deet degradation ppe deet degradation ppe make staph bath culture staph bath culture follow playguy january 2003 playguy january 2003 climb dart mishap report dart mishap report so smith corona typewriter 5p smith corona typewriter 5p family chuck and jennifer brinegar chuck and jennifer brinegar allow
"; 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(); if($cfgrow['display_order'] == 'default') { $display_order = 'DESC'; }else{ $display_order = 'ASC'; } /** * Images / Main site * */ if(!isset($_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 ".$cfgrow['display_sort_by']." ".$display_order." limit 0,1"); }else{ $row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost WHERE (id='".$_GET['showimage']."') AND datetime<='$cdate'"); } }else{ if(!isset($_GET['showimage']) || $_GET['showimage'] == "") { $row = sql_array("SELECT * FROM ".$pixelpost_db_prefix."pixelpost ORDER BY ".$cfgrow['display_sort_by']." ".$display_order." 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']); } $image_title = ($row['alt_headline']=='') ? pullout($row['headline']) : 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_NOQUOTES); $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(ltrim($cfgrow['thumbnailpath'], "./")."thumb_".$image_name); $image_extra = getimagesize(ltrim($cfgrow['imagepath'], "./").$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_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"])) { //public $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{ //admin $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"; if(!empty($image_previous_name)) { list($local_width,$local_height,$type,$attr) = getimagesize(ltrim($cfgrow['thumbnailpath'], "./")."thumb_".$image_previous_name); } //TEST echo ltrim($cfgrow['thumbnailpath'], "./")."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"])) { //public $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{ //admin $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"; if(!empty($image_next_name)) { list($local_width,$local_height,$type,$attr) = getimagesize(ltrim($cfgrow['thumbnailpath'], "./")."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"])) { //public $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{ //admin $first_image_row = sql_array("SELECT id,headline,alt_headline,image,datetime FROM ".$pixelpost_db_prefix."pixelpost 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"; if(!empty($first_image_name)) { list($local_width,$local_height,$type,$attr) = getimagesize(ltrim($cfgrow['thumbnailpath'], "./")."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"])) { //public $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{ //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"); } $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"; if(!empty($last_image_name)) { list($local_width,$local_height,$type,$attr) = getimagesize(ltrim($cfgrow['thumbnailpath'], "./")."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); if(!empty($image)) { list($local_width,$local_height,$type,$attr) = getimagesize(ltrim($cfgrow['thumbnailpath'], "./")."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); if(!empty($image)) { list($local_width,$local_height,$type,$attr) = getimagesize(ltrim($cfgrow['thumbnailpath'], "./")."thumb_".$image); } $behind_thumbs = "$headline$behind_thumbs"; $behind_thumbs_reverse .= "$headline"; $totalthumbcounter++; } if(!empty($image_name)) { list($local_width,$local_height,$type,$attr) = getimagesize(ltrim($cfgrow['thumbnailpath'], "./")."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); } } // 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("",$pixelpost_sub_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_NOQUOTES); $image_notes_clean = str_replace('"',"'",$image_notes_clean); $tpl = ereg_replace("",$image_notes_clean,$tpl); $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); // Added support for Thumbnail width and height $tpl = str_replace("",$cfgrow['thumbwidth'],$tpl); $tpl = str_replace("",$cfgrow['thumbheight'],$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 = '".intval($_POST['parent_id'])."'"); $cmnt_setting = pullout($comments_result['comments']); if($cmnt_setting == 'F') { die('Die you SPAMMER!!'); } } // 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(isset($_GET['showimage']) && $_GET['showimage'] != "") { $imageid = $_GET['showimage']; }else{ $imageid = $image_id; } $image_comments = print_comments($imageid); $tpl = ereg_replace("",$image_comments,$tpl); if((isset($_GET['popup']) && $_GET['popup'] == "comment") AND (!isset($_GET['x']) OR $_GET['x'] != "save_comment")) { include_once('includes/addons_lib.php'); echo $tpl; exit; } } // End Images / Main site $tpl = ereg_replace("",$pixelpost_site_title,$tpl); $tpl = ereg_replace("",$pixelpost_sub_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); if(!isset($_GET['x']) || isset($_GET['showimage'])){ $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); $tpl = ereg_replace("",$cfgrow['siteurl'],$tpl); $tpl = ereg_replace("",$pixelpost_photonumb,$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; } ?>