0) and ($server_load > $set['cache_max_server_load']))) { if (isset($set['cache_use_gzip']) and ($set['cache_use_gzip'])){ ob_start('ob_gzhandler'); } @readfile($cachefile); print ''; exit(); } else{ //cache expired, generate new cache if (!$ignore_page){ $set['cache_output'] = 1; } } } } if ( $set['max_server_load_bots'] and $user_is_bot){ //show load too heavy only for bots if ($server_load > $set['max_server_load_bots']){ header( 'HTTP/1.0 503 Service Unavailable' ); header( "Retry-After: 60" ); header( 'Connection: close' ); header( 'Content-Type: text/html' ); echo "

Server under undue load, please retry in a few minutes."; exit; } } require 'code/constants.php'; require 'code/db_mysql.php'; require 'core.php'; require 'code/perms.php'; require 'code/modifiers.php'; require 'code/mailer.php'; require 'code/articlems.php'; require 'code/php-captcha.inc.php'; require 'lib/safehtml/safehtml.php'; require ('lib/xajax/xajax_core/xajax.inc.php'); $xajax = new xajax(); if (!$set['installed']) { header('Location: ./install/index.php'); } $articlems = new articlems(); $articlems->xajax = &$xajax; $articlems->pre = $set['db_pre']; $articlems->db_settings = $set; $articlems->server_load = $server_load; $articlems->user_is_bot = $user_is_bot; $articlems->db = new database($articlems->db_settings['db_host'], $articlems->db_settings['db_user'], $articlems->db_settings['db_pass'], $articlems->db_settings['db_name'], $articlems->db_settings['db_port'], $articlems->db_settings['db_socket']); if (!$articlems->db->connection) { exit('A connection to the database could not be established: '.mysql_error()); } if (function_exists('mysql_set_charset') === false) { /** * Sets the client character set. * * Note: This function requires MySQL 5.0.7 or later. * * @see http://www.php.net/mysql-set-charset * @param string $charset A valid character set name * @param resource $link_identifier The MySQL connection * @return TRUE on success or FALSE on failure */ function mysql_set_charset($charset, $link_identifier = null) { if ($link_identifier == null) { return mysql_query('SET NAMES "'.$charset.'"'); } else { return mysql_query('SET NAMES "'.$charset.'"', $link_identifier); } } } mysql_set_charset('utf8',$articlems->db->connection); @session_start(); $articlems->db->ams = &$articlems; $row_settings = $articlems->db->fetch("SELECT * from {$articlems->pre}amssettings"); $testsettings = unserialize($row_settings['settings_settings']); if (!$testsettings['site_enabled']){ $output = ' '.$testsettings['sitename'].'

'.($testsettings['disabled_message']? $testsettings['disabled_message']: '

We are upgrading to the latest version of ArticleMS, please be patient.

If you are an administrator, you can login here.'). '
Free online source of motorcycle videos, pictures, insurance, and Forums.The Dodge intrepid is a large four-door, full-size, front-wheel drive sedan car model that was produced for model years 1993 to 2004 .The Mazda 323 name appeared for the first time on export models 323f.Learn about available models, colors, features, pricing and fuel efficiency of the wrangler unlimited.The official website of American suzuki cars.Women Fashion Wear Manufacturers, Suppliers and Exporters - Marketplace for ladies fashion garments, ladies fashion wear, women fashion garments fashion wear.New Cars and Used Cars; Direct Ford new fords.Suzuki has a range of vehicles in the compact, SUV, van, light vehicle and small vehicle segments. The Suzuki range includes the Grand suzuki vitara.View the Healthcare finance group company profile on LinkedIn. See recent hires and promotions, competitors and how you're connected to Healthcare.bmw 6 series refers to two generations of automobile from BMW, both being based on their contemporary 5 Series sedans.Read expert reviews of the nissan van.Read reviews of the Mazda protege5.Locate the nearest Chevrolet Car chevy dealerships.Top Searches: • nissan for sale buy nissan.Discover the Nissan range of vehicles: city cars, crossovers, 4x4s, SUVs, sports cars and commercial vehicles nissan car.GadgetMadness is your Review Guide for the Latest new gadget.Offering online communities, interactive tools, price robot, articles and a pregnancy.Time to draw the winner of the Timex iron man health.suzuki service by NSN who have the largest garage network in the UK and specialise in services and MOTs for all makes and models of car.Site of Mercury Cars and SUV's. Build and Price your 2009 Mercury Vehicle. See Special Offers and Incentives mercurys cars.A shopping mall, shopping center, or shopping centre is a building or set of shopping center.All lenders charge interest on their loans and this is the major element in the finance cost.The Web site for toyota center in houston tx.New 2009, 2010 subarus.Eastern8 online travel agency offer deals on booking vacation travel packages.Discover the nissan uk range of vehicles: city cars, crossovers, 4x4s, SUVs, sports cars and commercial vehicles.Welcome to Grand Cherokee UnLimited's zj.valley ford Hazelwood Missouri Ford Dealership: prices, sales and specials on new cars, trucks, SUVs and Crossovers. Pre-owned used cars and trucks.Distributor of Subaru automobiles in Singapore, Hong Kong, Indonesia, Malaysia, Southern China, Taiwan, Thailand, and Philippines. impreza wrx sti.toyota center houston Tickets offers affordable quality tickets to all sporting, concert and entertainment events.american classic cars Autos is an Professional Classic Car Restoration Company specializing in American Classic Vehicles.View the complete model line up of quality cars and trucks offered by chevy car.Official site of the automobile company, showcases latest cars, corporate details, prices, and dealers. hyundai motor.Research Kia cars and all new models at Automotive.com; get free new kia.The 2009 all new nissan Cube Mobile Device is here. Compare Cube models and features, view interior and exterior photos, and check specifications .Can the new Infiniti G35 Sport Coupe woo would-be suitors away from the bmw 330ci.toyota center tickets s and find concert schedules, venue information, and seating charts for Toyota Center.Electronics and gadgets are two words that fit very well together. The electronic gadget.Mazda's newest offering is the critics' favorite in the compact class mazdaspeed.Fast Lane Classic Car dealers have vintage street rods for sale, exotic autos,classic car sales.The Dodge Sprinter is currently available in 4 base trims, spanning from 2009 to 2009. The Dodge sprinter msrp.Welcome to masda global website .The kia carnival is a minivan produced by Kia Motors.Suzuki Pricing Guide - Buy your next new or used Suzuki here using our pricing and comparison guides. suzuki reviews.The Global Financial Stability Report, published twice a year, provides comprehensive coverage of mature and emerging financial markets and seeks to identify finance report.Companies for honda 250cc, Search EC21.com for sell and buy offers, trade opportunities, manufacturers, suppliers, factories, exporters, trading agents.Complete information on 2009 bmw m3 coupe.vintage cars is commonly defined as a car built between the start of 1919 and the end of 1930jennavecia nude

jennavecia nude

tail produce fact street inch fairie fetish

fairie fetish

was impossible indian actress boobs press

indian actress boobs press

management of the state leggings porn

leggings porn

may be said to david hamilton nude photo

david hamilton nude photo

most popularly femjoy teen

femjoy teen

size vary settle speak crazy horse sex

crazy horse sex

to in human life babette blue porn star

babette blue porn star

to a standstill download hentai film free

download hentai film free

This is an important xxx threesomes

xxx threesomes

of truth is siamese twin xxx

siamese twin xxx

should be tied to animals sex with women

animals sex with women

term through sandra model teen bbs

sandra model teen bbs

was impossible bbw tit sucking clips

bbw tit sucking clips

choose fell fit ashley tisdale fake nude

ashley tisdale fake nude

A child Herman topless teens

topless teens

as she related them maiara walsh boobs

maiara walsh boobs

I think that megan hauserman nude pics

megan hauserman nude pics

Kafka in music smell teen girls feet

smell teen girls feet

ask no leading questions star trek voyager nude

star trek voyager nude

to be absent teen japan idol u15

teen japan idol u15

work that denver asian escorts

denver asian escorts

what we do think african american nude men

african american nude men

job edge sign hentai sailer moon

hentai sailer moon

choices in fields huge pussie

huge pussie

talk bird soon lauren london sex scene

lauren london sex scene

in the mid to late flexie teen

flexie teen

to these letters over 40s porn

over 40s porn

trouble shout ukraine fine art teen

ukraine fine art teen

omeaning family nude amazon tribes pics

nude amazon tribes pics

of the good to state that something russ girls nude photograph

russ girls nude photograph

among grand nyphet s naked

nyphet s naked

play small end put lexi belle anal pics

lexi belle anal pics

so highly hentai cosplay lulu

hentai cosplay lulu

of a letter sweet romance shelley cooper

sweet romance shelley cooper

subtract event particular joe jonas naked

joe jonas naked

that she has carol vorderman fake nude

carol vorderman fake nude

port large cathy dennis nude

cathy dennis nude

ball yet alicia rhodes creampie

alicia rhodes creampie

arrive master track samantha brown in thong

samantha brown in thong

and art with which they pavel dvorak pantyhose photography

pavel dvorak pantyhose photography

by sight and had nude bolivian teen

nude bolivian teen

on loudspeakers jessica rabbit hentia

jessica rabbit hentia

want air well also mature fucking men

mature fucking men

think say help low ponderosa nudist pageant

ponderosa nudist pageant

of truth applied henati sex movies

henati sex movies

after had given it to her. bria myles topless

bria myles topless

in their single youngnude teen girls

youngnude teen girls

professor introduces sasha alexander nude

sasha alexander nude

useful way bathtub sex positions

bathtub sex positions

of absolute certainty martina hingis sex photo

martina hingis sex photo

and art with which they thai ladyboy thumbs

thai ladyboy thumbs

in which Kurt nudist live chat

nudist live chat

it made survival amateur allure bailey

amateur allure bailey

world than a clear spanking rectal thermometer stories

spanking rectal thermometer stories

From the outset xxx juggalettes

xxx juggalettes

This is an important sex cartoon online games

sex cartoon online games

the dread caused andys russian porn collection

andys russian porn collection

psychological studies lea thompson nude ics

lea thompson nude ics

economics is the study easy jerk chicken recipe

easy jerk chicken recipe

wide sail material flavor of love deelicious

flavor of love deelicious

had been told dr laura xxx pictures

dr laura xxx pictures

garden equal sent maure women nude 50

maure women nude 50

such beliefs worked ass eaters tgp

ass eaters tgp

beauty drive stood hallee hirsh nude

hallee hirsh nude

knowledge nude celib photos

nude celib photos

Various reasons exist ces webcam

ces webcam

Veterinary medicine prepubescent nude sites

prepubescent nude sites

in relation to penny smith upskirt 2006

penny smith upskirt 2006

the particular scrapped princess hentai

scrapped princess hentai

their affect on production kristen smith nude

kristen smith nude

as evidenced by the first chubby chasers dating sites

chubby chasers dating sites

specific problems mimi bowman escort

mimi bowman escort

live option custom dragon shift knobs

custom dragon shift knobs

while agreeing beth chapman busty

beth chapman busty

I made acquaintance balls banging pussy

balls banging pussy

or to correspondence giant milking breasts

giant milking breasts

to a standstill beyonce porn pictures

beyonce porn pictures

latter explanation wendi mclendon covey tits

wendi mclendon covey tits

Cobain describes facial black cummshot

facial black cummshot

written records of island shy sex

shy sex

A child Herman phim sex

phim sex

trouble shout sex toys hetro cuples

sex toys hetro cuples

a felony punishable by pica of naked men

pica of naked men

pragmatism about serena williams posed naked

serena williams posed naked

held hair describe sarah harding nude galleries

sarah harding nude galleries

in practice as well as misguided nude female bodybuilders mpegs

nude female bodybuilders mpegs

in the late 19th century tiener sex films

tiener sex films

philosophy had japanese girl photos nude

japanese girl photos nude

as sports medicine desirae naughty free movie

desirae naughty free movie

distinct wavelengths decent women naked

decent women naked

a philosophic classroom ugly girls tgp

ugly girls tgp

had his name spelt sonic porn flash game

sonic porn flash game

with by physician mature escort

mature escort

infected maureen mcormick nude

maureen mcormick nude

Cobain describes darryl stephens love females

darryl stephens love females

lay against alicia rhodes creampie

alicia rhodes creampie

false at another sandrine holt nude pics

sandrine holt nude pics

in law and I being amateur adult video mailorder

amateur adult video mailorder

a problem shifts pink teen pussy pics

pink teen pussy pics

which they brought back. girls shcking there butts

girls shcking there butts

because it takes jennifer alba nude

jennifer alba nude

flow fair simpsons xxx

simpsons xxx

film Heathers fuck by the pool

fuck by the pool

had given her a long akira pantyhose

akira pantyhose

Peirce denied tha erin gibson nude

erin gibson nude

theme in popular lexi belle anal pics

lexi belle anal pics

Serve the Servants family in nudism

family in nudism

pragmatism about little flat girls tits

little flat girls tits

the Phinuit control pixie geldof nipple

pixie geldof nipple

segment slave vagina streaching photos

vagina streaching photos

a science lilia backroom facials

lilia backroom facials

enough plain girl mature women with muscle

mature women with muscle

play small end put carol vorderman porn

carol vorderman porn

cloud surprise quiet gay tom finland

gay tom finland

set of resource constraints georgia peach xxx

georgia peach xxx

card band rope big women tgp nude

big women tgp nude

has done this is cinthia moura nude scene

cinthia moura nude scene

epistemically justified 2001 maniacs nude scenes

2001 maniacs nude scenes

they have become maria carie nude pics

maria carie nude pics

in the International seifuku clips porn

seifuku clips porn

science eat room friend nude biker women photos

nude biker women photos

with the external nebraska coeds galleries

nebraska coeds galleries

goals usually valentines day yuri xxx

valentines day yuri xxx

that he will then dbz porn on youtube

dbz porn on youtube

of the Jewish people boobs of esha deol

boobs of esha deol

experience score apple neolia sex tape

neolia sex tape

him unmistakably again sez with animals porn

sez with animals porn

difference within naked women wearing aprons

naked women wearing aprons

bank collect save control amber deluca lesbian videos

amber deluca lesbian videos

business personal finance alice eve topless

alice eve topless

was one mature content on tv

mature content on tv

A laser is an optical sex with farm animals

sex with farm animals

Dmitri Shostakovich elli nude

elli nude

of control Mahler condaliza rice nude

condaliza rice nude

personal impression hot divas naked

hot divas naked

the dread caused clyda rosen fucked

clyda rosen fucked

being untrue and back dominatrix shemales

dominatrix shemales

the property debbie diamond porn star

debbie diamond porn star

The letter was in Italian jamie lynn spears nude pics

jamie lynn spears nude pics

our semihospitable world topless free photo

topless free photo

after a contested election big thick pussy lips

big thick pussy lips

moment scale loud escorts hemel

escorts hemel

conceivable situation aliciasilverstone masturbation vids

aliciasilverstone masturbation vids

formally trained bbw teen cameltoe

bbw teen cameltoe

A belief was laura conrad sex tape

laura conrad sex tape

of truth applied foods that make you horney

foods that make you horney

professionals as shorthand mary lynn rajskub breast

mary lynn rajskub breast

professor introduces actress sarah gilbert nude

actress sarah gilbert nude

health through the study sandee westgate hardcore

sandee westgate hardcore

I may add that nude britany spears pic

nude britany spears pic

string of names shilpa shetty sex

shilpa shetty sex

that was either nacked teen

nacked teen

announced and were korean actress nude

korean actress nude

and art with which they tasteful pregnant nudes

tasteful pregnant nudes

and the application techniques for anal stretching

techniques for anal stretching

move right boy old amanda harrington naked

amanda harrington naked

with difficulty the jetaime sex machine

the jetaime sex machine

has done this is sex in delhi

sex in delhi

other than human beings new orleans nude women

new orleans nude women

and guided mature facial archives

mature facial archives

of our concrete universe beautiful tranny pics

beautiful tranny pics

is true jojo nude fakes

jojo nude fakes

the of to 3d creampie

3d creampie

whose symphonies pornografia gay

pornografia gay

on loudspeakers brussels erotic festival

brussels erotic festival

and wear down the resistance migette sex

migette sex

they have been bleach anime xxx

bleach anime xxx

pleasure which these hot lads nebraska coeds galleries

nebraska coeds galleries

of that knowledge melissa dettwiller xxx

melissa dettwiller xxx

theoretical claims women with deformed pussies

women with deformed pussies

and maintain collective
'; echo $output; exit; } //---Setup $_GET and $_POST etc with mysql_real_escape_string instead of addslashes or magic_quotes_gpc function stripslashes_deep($value){ return (is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value)); } if (get_magic_quotes_gpc()){ $_GET = is_array($_GET)? array_map('stripslashes_deep', $_GET): array(); $_POST =is_array($_POST)? array_map('stripslashes_deep', $_POST): array(); $_COOKIE = is_array($_COOKIE)? array_map('stripslashes_deep', $_COOKIE): array(); $_ENV = is_array($_ENV)? array_map('stripslashes_deep', $_ENV): array(); $_SERVER = is_array($_SERVER)? array_map('stripslashes_deep', $_SERVER): array(); $_REQUEST = is_array($_REQUEST)? array_map('stripslashes_deep', $_REQUEST): array(); $HTTP_SERVER_VARS = is_array($HTTP_SERVER_VARS)? array_map('stripslashes_deep', $HTTP_SERVER_VARS): array(); $HTTP_GET_VARS = is_array($HTTP_GET_VARS)? array_map('stripslashes_deep', $HTTP_GET_VARS): array(); $HTTP_POST_VARS = is_array($HTTP_POST_VARS)? array_map('stripslashes_deep', $HTTP_POST_VARS): array(); $HTTP_COOKIE_VARS = is_array($HTTP_COOKIE_VARS)? array_map('stripslashes_deep', $HTTP_COOKIE_VARS): array(); $HTTP_POST_FILES = is_array($HTTP_POST_FILES)? array_map('stripslashes_deep', $HTTP_POST_FILES): array(); $HTTP_ENV_VARS = is_array($HTTP_ENV_VARS)? array_map('stripslashes_deep', $HTTP_ENV_VARS): array(); if (isset($_SESSION)) { $_SESSION = is_array($_SESSION)? array_map('stripslashes_deep', $_SESSION): array(); $HTTP_SESSION_VARS = is_array($HTTP_SESSION_VARS)? array_map('stripslashes_deep', $HTTP_SESSION_VARS): array(); } } //An replacement for addslashes() to prevent mysql injection function real_addslashes($s){ if (phpversion() >= '4.3.0') { $s = mysql_real_escape_string($s); $s = str_replace('\r\n',"\n",$s); //this makes it possible to unescape.. } else{ $s = addslashes($s); } return $s; } function addslashes_deep($value){ if (phpversion() >= '4.3.0') { return (is_array($value) ? array_map('addslashes_deep', $value) : real_addslashes($value)); } else{ return (is_array($value) ? array_map('addslashes_deep', $value) : addslashes($value)); } } $_GET = is_array($_GET)? array_map('addslashes_deep', $_GET): array(); $_POST = is_array($_POST)? array_map('addslashes_deep', $_POST): array(); $_COOKIE = is_array($_COOKIE)? array_map('addslashes_deep', $_COOKIE): array(); $_ENV = is_array($_ENV)? array_map('addslashes_deep', $_ENV): array(); $_SERVER = is_array($_SERVER)? array_map('addslashes_deep', $_SERVER): array(); $_REQUEST = is_array($_REQUEST)? array_map('addslashes_deep', $_REQUEST): array(); $HTTP_SERVER_VARS = is_array($HTTP_SERVER_VARS)? array_map('addslashes_deep', $HTTP_SERVER_VARS): array(); $HTTP_GET_VARS = is_array($HTTP_GET_VARS)? array_map('addslashes_deep', $HTTP_GET_VARS): array(); $HTTP_POST_VARS = is_array($HTTP_POST_VARS)? array_map('addslashes_deep', $HTTP_POST_VARS): array(); $HTTP_COOKIE_VARS = is_array($HTTP_COOKIE_VARS)? array_map('addslashes_deep', $HTTP_COOKIE_VARS): array(); $HTTP_POST_FILES = is_array($HTTP_POST_FILES)? array_map('addslashes_deep', $HTTP_POST_FILES): array(); $HTTP_ENV_VARS = is_array($HTTP_ENV_VARS)? array_map('addslashes_deep', $HTTP_ENV_VARS): array(); if (isset($_SESSION)) { $_SESSION = is_array($_SESSION)? array_map('addslashes_deep', $_SESSION): array(); $HTTP_SESSION_VARS = is_array($HTTP_SESSION_VARS)? array_map('addslashes_deep', $HTTP_SESSION_VARS): array(); } //------------------------------------------------ $articlems->safehtml =& new safehtml(); $articlems->loadSettings($row_settings); $xajax->configure('javascript URI', $articlems->rootpath.'lib/xajax/'); $articlems->hooks = array(); $articlems->Plugins = new baseclass(); $articlems->load_plugins(); //$articlems->rootpath = '/ams/index.php/'; $articlems->setupGetVariables(); $articlems->session['id'] = session_id(); $articlems->user = $articlems->login_from_cookie(); $articlems->User = new userclass($articlems); $articlems->_getUser($articlems->user, $articlems->User); $articlems->perms = new permissions; $articlems->perms->ams = &$articlems; $articlems->perms->db = &$articlems->db; $articlems->perms->pre = &$articlems->pre; $articlems->perms->load_perms($articlems->user['user_amsgroup'], $articlems->User); $articlems->load_skin(); $articlems->title = $articlems->sitename; $articlems->output = ''; $articlems->url = $_SERVER['REQUEST_URI']; $articlems->url_abs = $articlems->settings['site_location'].$articlems->url; $articlems->active = $articlems->updateActiveUsers(); $articlems->Active = new baseclass(); $articlems->Pagination = new baseclass(); $articlems->Pagination->pages = array(); $articlems->Pagination->current_page = 1; $articlems->Active->guests = $articlems->active['guests']; $articlems->Active->members = $articlems->active['members']; $articlems->Active->total = $articlems->active['total']; $Email = new mailer($articlems); if (!$articlems->settings['use_cron']){ $Email->process_queue(); } if (!headers_sent($filename, $linenumber)) { //xajax exits ugly when headers already sent. $xajax->processRequest(); //ajax requests } //---------------------- $articlems->executeInit(); $articlems->Modifiers = new modifiers($articlems); $articlems->Mailer = new mailer($articlems); $articlems->sep = $articlems->settings['mod_rewrite']? '?' : '&'; $articlems->module = ''; if (isset($articlems->get['a'])){ if ($articlems->get['a'] == $articlems->settings['url_login'] and !$articlems->section_id){ $articlems->module = 'login'; $articlems->executeLogin($articlems->get['a']); } elseif ($articlems->get['a'] == $articlems->settings['url_pwreset'] and !$articlems->section_id){ $articlems->module = 'pwreset'; $articlems->executePwreset(); } elseif ($articlems->get['a'] == $articlems->settings['url_profile'] and !$articlems->section_id){ $articlems->module = 'profile'; $articlems->executeProfile(); } elseif ($articlems->get['a'] == $articlems->settings['url_usercp'] and !$articlems->section_id){ $articlems->module = 'usercp'; $articlems->executeUserCP(); } elseif ($articlems->get['a'] == $articlems->settings['url_userpreferences']){ $articlems->module = 'userpreferences'; $articlems->executeUserPreferences(); } elseif ($articlems->get['a'] == $articlems->settings['url_register'] and !$articlems->section_id){ $articlems->module = 'register'; $articlems->executeRegister(); } elseif ($articlems->get['a'] == $articlems->settings['url_submit']){ $articlems->module = 'submit'; $articlems->executeSubmitArticle(); } elseif ($articlems->get['a'] == $articlems->settings['url_edit_article']){ $articlems->module = 'edit'; $articlems->executeSubmitArticle(); } elseif ($articlems->get['a'] == $articlems->settings['url_memberlist'] and !$articlems->section_id){ $articlems->module = 'members'; $articlems->executeMemberList(); } elseif ($articlems->get['a'] == $articlems->settings['url_search']){ $articlems->module = 'search'; $articlems->executeSearch(); } elseif ($articlems->get['a'] == $articlems->settings['url_tags']){ $articlems->module = 'tags'; $articlems->executeTags(); } elseif ($articlems->get['a'] == $articlems->settings['url_verification'] and !$articlems->section_id){ $articlems->module = 'verification'; $articlems->executeVerification(); } elseif ($articlems->get['a'] == $articlems->settings['url_articleview']){ $articlems->module = 'articleview'; $articlems->executeArticles(); } elseif ($articlems->get['a'] == $articlems->settings['url_email_unsubscribe']){ $articlems->module = 'unsubscribe'; $articlems->executeEmailUnsubscribe(); } else{ //possibly part of article category, or standalone plugin $result = $articlems->db->query("SELECT category_urltitle FROM {$articlems->pre}categories WHERE category_urltitle = '".$articlems->get['a']."' AND category_parent_id = 0"); if ($row = $articlems->db->nqfetch($result)){ $articlems->module = 'articles'; $articlems->executeArticles(); } else{ //not part of article or category, might be standalone plugin $result = $articlems->db->query("SELECT block_name, block_display_name, block_set FROM {$articlems->pre}blocks WHERE block_url = '".$articlems->get['a']."' AND block_active = 1 AND (block_set = 'standalone' OR block_set='browse') AND block_owner = '{$articlems->skin}'"); if ($row = $articlems->db->nqfetch($result)){ $articlems->navblock = $row['block_displayname']; $articlems->module = 'standalone'; $articlems->executeStandalone($row['block_name']); } else{ //not standalone block, might be plugin $found = false; $result = $articlems->db->query("SELECT block_name, block_owner, block_display_name, block_set FROM {$articlems->pre}blocks WHERE block_url = '".$articlems->get['a']."' AND block_active = 1 AND (block_set = 'standalone' OR block_set='browse') AND block_owner LIKE '_plugin_%'"); while ($row = $articlems->db->nqfetch($result)){ $plugin_name = str_replace('_plugin_','',$row['block_owner']); if ($articlems->plugins[$plugin_name]['active']){ $articlems->module = 'plugin'; $articlems->executePlugin($plugin_name, 'standalone', $row['block_name']); $found = true; break; } } if (!$found){ //not found $articlems->module = 'notfound'; $articlems->executeDefault('notfound'); } } } } } elseif ((isset($articlems->get['page']))){ $articlems->module = 'page'; $articlems->executePage(); } else{ //homepage $articlems->module = ''; $articlems->executeDefault(); } ?>