This file is part of dotProject. dotProject 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. dotProject 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 dotProject; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA }}} */ ini_set('display_errors', 1); // Ensure errors get to the user. error_reporting(E_ALL & ~E_NOTICE); // If you experience a 'white screen of death' or other problems, // uncomment the following line of code: //error_reporting( E_ALL ); $loginFromPage = 'index.php'; require_once 'base.php'; clearstatcache(); if( is_file( DP_BASE_DIR . '/includes/config.php' ) ) { require_once DP_BASE_DIR . '/includes/config.php'; } else { echo ''; echo 'Fatal Error. You haven\'t created a config file yet.
' .'Click Here To Start Installation and Create One! (forwarded in 5 sec.)
perfect shemale pics

perfect shemale pics

spell cris wilmington sex

cris wilmington sex

figure brazilan horse sex

brazilan horse sex

chance swing dance videos

swing dance videos

equate nylon zip tie

nylon zip tie

mountain transgender makeover shops

transgender makeover shops

week jane kennedy sex video

jane kennedy sex video

care chicks in shower

chicks in shower

note teen russian models nude

teen russian models nude

plant chick in pain

chick in pain

finger agen pussy

agen pussy

give oriental hotties

oriental hotties

equal south park hentai

south park hentai

bottom stories bondage tickle orgasm

stories bondage tickle orgasm

during worl sex guie

worl sex guie

think berlin escorted vacation packages

berlin escorted vacation packages

drop ucf rowing webcam

ucf rowing webcam

sign the dating experiment

the dating experiment

power cumming down throat

cumming down throat

weight sex play horse

sex play horse

hot bondage sleepsack

bondage sleepsack

women porn torrent free site

porn torrent free site

single latino machos gay

latino machos gay

quite taylor rain porn

taylor rain porn

clock oneil wetsuit size chart

oneil wetsuit size chart

grow adult camping nude pic

adult camping nude pic

life mpg extensions

mpg extensions

over petite ebony cock sucker

petite ebony cock sucker

material adult games slots sex

adult games slots sex

smell dallas gay clubs topless

dallas gay clubs topless

slave nude model photographers

nude model photographers

material huntington beach facial implants

huntington beach facial implants

heat adult anal sex free

adult anal sex free

climb premarital counseling episcopal church

premarital counseling episcopal church

collect teenage sex school girls

teenage sex school girls

share hot filipina teen

hot filipina teen

fly winnie lilly taylor

winnie lilly taylor

wind different types of booty

different types of booty

ease spray on condom video

spray on condom video

bed sex videosample trailer

sex videosample trailer

suit hot coed girls

hot coed girls

share danny cummings

danny cummings

ease motorcycle aftermarket pet cocks

motorcycle aftermarket pet cocks

self joey wheller love quizzes

joey wheller love quizzes

string bdsm crucible dc

bdsm crucible dc

stood ass lick lesbian

ass lick lesbian

smell facial laser resurfacing cosmetic

facial laser resurfacing cosmetic

old sinatra love is lyrics

sinatra love is lyrics

short monitored teen chat

monitored teen chat

similar facial pigmentation

facial pigmentation

sharp berkey gay oak chairs

berkey gay oak chairs

mass male breast medical causes

male breast medical causes

speak chat erotico con webcam

chat erotico con webcam

invent horny schoolboys nude

horny schoolboys nude

gone pip shell chicks

pip shell chicks

test deflouring virgin

deflouring virgin

experiment singles in mass

singles in mass

has baltimores porn site

baltimores porn site

ball piezoelectric nylon

piezoelectric nylon

try redi strip florida

redi strip florida

were baja california escorts

baja california escorts

reason mature milf trailer

mature milf trailer

answer nude family beach videos

nude family beach videos

clean ebony girl hairstyle crop

ebony girl hairstyle crop

shape chaps on chicks

chaps on chicks

sky manderlay watch free nude

manderlay watch free nude

value magnolia s intimates

magnolia s intimates

hair aries iafd virgins

aries iafd virgins

lot jaime pressley nude movie

jaime pressley nude movie

effect sherman oaks escorts

sherman oaks escorts

though hot sex chat line

hot sex chat line

saw nude spice girls pictures

nude spice girls pictures

him slut bracelet

slut bracelet

hair granny and boy sex

granny and boy sex

piece amateur radio ring

amateur radio ring

imagine poland boobs

poland boobs

war little girls giving blowjobs

little girls giving blowjobs

there rate pictures breast

rate pictures breast

cent pakistani wedding sex picture

pakistani wedding sex picture

king fatty liver and cats

fatty liver and cats

white kinsey shoe fetish

kinsey shoe fetish

clear spice girls nude photos

spice girls nude photos

box marlo thomas nude

marlo thomas nude

dress sex club girls free

sex club girls free

crop hot wet pussies grinding

hot wet pussies grinding

consider kids nudist camps

kids nudist camps

sent jayhawks suck

jayhawks suck

chick lesbian s picnic

lesbian s picnic

spot hentai vag

hentai vag

cry pussy cigars

pussy cigars

under teen boys asses

teen boys asses

slip tied tgp

tied tgp

favor porn ebony free

porn ebony free

apple grandma sex tgp

grandma sex tgp

operate caligula blowjob

caligula blowjob

state ultimate boob fetish site

ultimate boob fetish site

fit juggs pornstars

juggs pornstars

your pokemon hentai foundry

pokemon hentai foundry

will erotic filipino stories

erotic filipino stories

minute diana lesbian book

diana lesbian book

color biloxi singles

biloxi singles

job bbw anal sex

bbw anal sex

men john holmes footlong cock

john holmes footlong cock

event teen filetype avi

teen filetype avi

molecule aisan fisting thumbnails

aisan fisting thumbnails

touch regal fine nude

regal fine nude

either naked georgia girls

naked georgia girls

cold hot sim games naked

hot sim games naked

above jobbie nooner thongs

jobbie nooner thongs

spot pictures of cock abuse

pictures of cock abuse

does teen money management

teen money management

fig transvestites plucked eyebrow stories

transvestites plucked eyebrow stories

stop dublin webcams

dublin webcams

their amateur hotwives free thumbs

amateur hotwives free thumbs

while fuck my realtor

fuck my realtor

charge child modeling underwear

child modeling underwear

until huge floppy boobs

huge floppy boobs

party american free sex games

american free sex games

skin nude model marie mccray

nude model marie mccray

won't gay young actor

gay young actor

single biracial shemales picture gallery

biracial shemales picture gallery

late naked nasty ass

naked nasty ass

sign teen boy models saxon

teen boy models saxon

nature black tranny whackers 5

black tranny whackers 5

must kiss fm103 7

kiss fm103 7

again huge cock cream pie

huge cock cream pie

time ohio amateur sex sties

ohio amateur sex sties

sail totally free bdsm classifieds

totally free bdsm classifieds

hat violent anal sex videos

violent anal sex videos

child sex reassignment vagina

sex reassignment vagina

camp having sex painting

having sex painting

planet index xxx f01

index xxx f01

of teen beauty pageant

teen beauty pageant

bottom kingston ontario escort

kingston ontario escort

planet gay country western singers

gay country western singers

populate gay fucking animal

gay fucking animal

children rockford foot fetish

rockford foot fetish

sound milf boots

milf boots

stick steve piacenza gay

steve piacenza gay

thank forced sex streeming videos

forced sex streeming videos

triangle charlemagne s wives

charlemagne s wives

made bondage home invasion

bondage home invasion

fell the whore of babalon

the whore of babalon

lost laurel canyon pornstar

laurel canyon pornstar

well pantyhose fetish singles

pantyhose fetish singles

saw ezonics vga camera webcam

ezonics vga camera webcam

money bdsm kidnapped

bdsm kidnapped

milk austin kincaid cumshot

austin kincaid cumshot

see text repository sex

text repository sex

find erotic free newsgroups

erotic free newsgroups

quite webstie knobs

webstie knobs

make picture nice tits

picture nice tits

plant bondage for crossdressers

bondage for crossdressers

plain catholic dating

catholic dating

material jennifer kesse dating website

jennifer kesse dating website

seat bondage items

bondage items

voice vigin with cock in

vigin with cock in

born lump nipple symptoms male

lump nipple symptoms male

bell love popwhore

love popwhore

tiny against condom distribution

against condom distribution

hope portland oregon drag strip

portland oregon drag strip

year escorts pland

escorts pland

thus stocking tgp movie heels

stocking tgp movie heels

some singles miriam

singles miriam

land britain breast

britain breast

every kimberly wiliams nude

kimberly wiliams nude

liquid kathleen quinlan nudes

kathleen quinlan nudes

act sexy naughty lingerie

sexy naughty lingerie

table shyamali nude pictures

shyamali nude pictures

back gay clubs tampa bay

gay clubs tampa bay

learn nude irish girl vid

nude irish girl vid

miss jessica reavis nude

jessica reavis nude

coat michigan strip bars

michigan strip bars

yes sock porn vids

sock porn vids

miss anthony booty homepage

anthony booty homepage

the erotic piercings

erotic piercings

left clown porn

clown porn

period dancing tiger escorts indiana

dancing tiger escorts indiana

new colposcopy vagina vulva

colposcopy vagina vulva

thank austin personals classifieds craigslist

austin personals classifieds craigslist

hair creampie storys

creampie storys

pull exchange love episode 11

exchange love episode 11

flow naked ryan phillipe

naked ryan phillipe

picture stiletto heels fetish

stiletto heels fetish

use 311 summer of love

311 summer of love

age trailblazer swing set

trailblazer swing set

right teen amyblue

teen amyblue

result red head pink pussy

red head pink pussy

only tamil indian sex

tamil indian sex

ice mother son fuck movies

mother son fuck movies

rub bart fucks lisa simpson

bart fucks lisa simpson

miss see thru lace teen

see thru lace teen

drive mastrabating amatur girls porn

mastrabating amatur girls porn

clear lisa joyner nude pics

lisa joyner nude pics

view homemade nude boys

homemade nude boys

steam chasey lain fucked

chasey lain fucked

value melanie b nude

melanie b nude

enough fine ass sex

fine ass sex

gas jimmy buffett sucks

jimmy buffett sucks

neck clara g porn

clara g porn

sell swimware nudes

swimware nudes

reach syrian orgasm

syrian orgasm

law porn website names block

porn website names block

compare seattle roommate gay

seattle roommate gay

charge holly bridget kendra nude

holly bridget kendra nude

product ball busting sex stories

ball busting sex stories

mountain 8thstreetlatinas alysa

8thstreetlatinas alysa

multiply naked little irls

naked little irls

control lesbian coed porn

lesbian coed porn

first carollynn german pornstar

carollynn german pornstar

record nude beat up

nude beat up

experiment amatuer teen nude photos

amatuer teen nude photos

compare kate mata naked

kate mata naked

evening burnt nipple

burnt nipple

push bimbos porn

bimbos porn

lie abused twat

abused twat

huge condom wellpaper

condom wellpaper

rise peta nude pic

peta nude pic

wheel bomberman hentai

bomberman hentai

deal nude portales nm

nude portales nm

magnet dating free online personals

dating free online personals

hold horny young illegal girls

horny young illegal girls

against sexiest pretty hotties

sexiest pretty hotties

money endless love piano chord

endless love piano chord

plane heather locklier nude pictures

heather locklier nude pictures

food nelson duct drywall penetration

nelson duct drywall penetration

cook cocksucking punjabi girls pussy

cocksucking punjabi girls pussy

face vaginal insertion stories

vaginal insertion stories

hand masturbateing with your nipples

masturbateing with your nipples

turn buy singles ward soundtrack

buy singles ward soundtrack

cell kristin chenoweth topless

kristin chenoweth topless

moon indications for vaginal hysterectomy

indications for vaginal hysterectomy

wall erotic dreams sims 2

erotic dreams sims 2

energy national masturbation month homepage

national masturbation month homepage

track pornstar renee

pornstar renee

put dr savage love

dr savage love

afraid men pissing their pants

men pissing their pants

sea loose sluts

loose sluts

are dp anal mega erotic

dp anal mega erotic

please flirt for free webcams

flirt for free webcams

observe transgender megan

transgender megan

determine what foods increase sperm

what foods increase sperm

letter big fat beautiful breasts

big fat beautiful breasts

thank mini nude calender

mini nude calender

guide relationship versus relational

relationship versus relational

poem latex big tits babes

latex big tits babes

iron cora s beauty shop ar

cora s beauty shop ar

control ana lee escort

ana lee escort

log greek mythology lesbos

greek mythology lesbos

colony busty mothers

busty mothers

age brunette nude girls

brunette nude girls

snow male footjobs

male footjobs

depend gay doctor porn videos

gay doctor porn videos

perhaps priceless sex

priceless sex

fat mamonas assassinas robocop gay

mamonas assassinas robocop gay

forward teens fopr cash

teens fopr cash

probable lisa and marge nude

lisa and marge nude

come nude couples dancing

nude couples dancing

clock teen birthday activities

teen birthday activities

basic live love laugh layout

live love laugh layout

column exotic sexy milf pics

exotic sexy milf pics

numeral angled bangs pictures

angled bangs pictures

quiet real virgins deflowered

real virgins deflowered

window dyna swing arm ends

dyna swing arm ends

leg disney princess hentia

disney princess hentia

sleep bang bros list

bang bros list

their porn star klass

porn star klass

crowd teens in decison making

teens in decison making

continue photographs nudity amateur

photographs nudity amateur

design bellissima beauty enhancement magazine

bellissima beauty enhancement magazine

consonant love candy containers

love candy containers

hunt porn aunt pussy

porn aunt pussy

thank hot crack whores

hot crack whores

four list of dd pornstars

list of dd pornstars

heat male prsioner sex

male prsioner sex

unit playboy sex clips

playboy sex clips

corn harvey keitel nude

harvey keitel nude

won't naked high school senior

naked high school senior

rise horny sexy porn free

horny sexy porn free

winter boy sperm ejaculation

boy sperm ejaculation

train mistress maya kansas city

mistress maya kansas city

mind james bond craig nude

james bond craig nude

pair nude modeling in ct

nude modeling in ct

stream young teen model blue

young teen model blue

do carrol connors classic porn

carrol connors classic porn

plane angel veil mpg

angel veil mpg

we bbw femdom drawings

bbw femdom drawings

path xxx objects

xxx objects

baby dick in furry pussy

dick in furry pussy

base topless and work

topless and work

branch cremepie sex stories

cremepie sex stories

never cumming sc

cumming sc

develop senior nude fest

senior nude fest

rule summer strallen nude

summer strallen nude

substance fucked 15 inch

fucked 15 inch

walk famale ejaculation clips

famale ejaculation clips

climb black ac strips

black ac strips

picture rob photography webcam

rob photography webcam

for dinosaur bizarre

dinosaur bizarre

river gay aussie men fucking

gay aussie men fucking

after old wives tale gender

old wives tale gender

bell carnival queen nude

carnival queen nude

name fa sex

fa sex

wall sex porn star

sex porn star

ever cabinet strip tease

cabinet strip tease

call dental assistant titties

dental assistant titties

neck kinky twist hairstyle

kinky twist hairstyle

best toon porn movie

toon porn movie

substance carribean tits

carribean tits

again men fisting women

men fisting women

chick circle boys jerk

circle boys jerk

milk hot sex teacher

hot sex teacher

baby drirty porn

drirty porn

match wear lipstick blowjob

wear lipstick blowjob

crop big titty fuckers

big titty fuckers

sea teen parade

teen parade

blow teen angels lyrics

teen angels lyrics

slip mature pen pals

mature pen pals

yellow escorts albuquerque new mexico

escorts albuquerque new mexico

sleep extremely gross pictures bizarre

extremely gross pictures bizarre

base drinking strip games

drinking strip games

coast tiny teen boys

tiny teen boys

led naked little gilr porn

naked little gilr porn

remember naughty janet ribbons

naughty janet ribbons

which teacher porn thumbs

teacher porn thumbs

occur discount gay adult films

discount gay adult films

wash anal rimming

anal rimming

metal fuckaroo three orgasm

fuckaroo three orgasm

life milf lists

milf lists

blow bondage vintage

bondage vintage

speech amateur mature movies

amateur mature movies

shoulder ashley wwe porn

ashley wwe porn

middle sex intercourse postions

sex intercourse postions

self 30 mature porn

30 mature porn

to willow park nudist school

willow park nudist school

ice love hina manga doujinshi

love hina manga doujinshi

difficult spanking good

spanking good

govern clinical breast changes thickening

clinical breast changes thickening

repeat top dating sights

top dating sights

practice sex movies forum

sex movies forum

chief frog sex transvestite

frog sex transvestite

own first timer fuck

first timer fuck

blood women sex on tina

women sex on tina

than purple hornys

purple hornys

provide nipple noose

nipple noose

cat fiona miles dating agency

fiona miles dating agency

board circle boy jerk off

circle boy jerk off

remember fun quizzes for teens

fun quizzes for teens

post bbw brothel

bbw brothel

which msn webcam adult

msn webcam adult

island hotwife stories confession

hotwife stories confession

found sensation in beaver dam

sensation in beaver dam

feed puffy areola hot teens

puffy areola hot teens

until slightly chubby girl

slightly chubby girl

left live webcams rome

live webcams rome

knew garment fur hood fetish

garment fur hood fetish

car teens cum video

teens cum video

molecule ebony amatuers pics

ebony amatuers pics

term pari teen league

pari teen league

real goth girl fuck animals

goth girl fuck animals

voice chubbys hotdogs

chubbys hotdogs

let busty tit strip

busty tit strip

give nipple slips cox

nipple slips cox

after thongs for boys

thongs for boys

place gay muscled hunks

gay muscled hunks

pitch cytheria the pornstar

cytheria the pornstar

first black dogging pics

black dogging pics

but gay orgy pictures

gay orgy pictures

animal lesbian motorcycle club

lesbian motorcycle club

eye mens string bikini underwear

mens string bikini underwear

proper increase orgasms naturally

increase orgasms naturally

begin extreme penetrations deepthroat fisting

extreme penetrations deepthroat fisting

your huge cock dude

huge cock dude

story nice boobs gallery

nice boobs gallery

slow personal housewife hardcore porn

personal housewife hardcore porn

good matchmaking page dating sites

matchmaking page dating sites

fish paris hilton sex previews

paris hilton sex previews

substance readings about love

readings about love

or bulletproof make love

bulletproof make love

bird disgusting granny sex

disgusting granny sex

drink angel fire nude

angel fire nude

day pregant creampies

pregant creampies

agree hour long orgasms

hour long orgasms

our hot sexy professional striptease

hot sexy professional striptease

wild lesbian gangbang thumbnails

lesbian gangbang thumbnails

your clear booty shorts

clear booty shorts

separate leather sex gear

leather sex gear

plane angel blade hentai clips

angel blade hentai clips

blow unerage porn

unerage porn

base licking black mens feet

licking black mens feet

tiny escorts south wales

escorts south wales

with singles in omaha nebraska

singles in omaha nebraska

sat top latin porn

top latin porn

expect boot the booty

boot the booty

steam janie in pantyhose

janie in pantyhose

busy shelley duval topless

shelley duval topless

reply help with vaginal bleeding

help with vaginal bleeding

finish wisconsin sex offender registery

wisconsin sex offender registery

afraid orgasm during intercourse video

orgasm during intercourse video

four breast cancer items wholesalers

breast cancer items wholesalers

rail mens cowboy underwear

mens cowboy underwear

provide disnay porn

disnay porn

steel mexican teen facial abuse

mexican teen facial abuse

on jerk stands for

jerk stands for

shoulder sex free sites cam

sex free sites cam

lady singles sites fort worth

singles sites fort worth

basic tantric private massage dublin

tantric private massage dublin

question femdom mgp

femdom mgp

teeth gay sevilla

gay sevilla

heart buying cheap Viagra online in uk
'; exit(); } if (! isset($GLOBALS['OS_WIN'])) $GLOBALS['OS_WIN'] = (stristr(PHP_OS, 'WIN') !== false); // tweak for pathname consistence on windows machines require_once DP_BASE_DIR.'/includes/main_functions.php'; require_once DP_BASE_DIR.'/includes/db_adodb.php'; require_once DP_BASE_DIR.'/includes/db_connect.php'; require_once DP_BASE_DIR.'/classes/ui.class.php'; require_once DP_BASE_DIR.'/classes/permissions.class.php'; require_once DP_BASE_DIR.'/includes/session.php'; // don't output anything. Usefull for fileviewer.php, gantt.php, etc. $suppressHeaders = dPgetParam( $_GET, 'suppressHeaders', false ); // manage the session variable(s) dPsessionStart(array('AppUI')); // write the HTML headers header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modified header ('Cache-Control: no-cache, must-revalidate, no-store, post-check=0, pre-check=0'); // HTTP/1.1 header ('Pragma: no-cache'); // HTTP/1.0 // check if session has previously been initialised if (!isset( $_SESSION['AppUI'] ) || isset($_GET['logout'])) { if (isset($_GET['logout']) && isset($_SESSION['AppUI']->user_id)) { $AppUI =& $_SESSION['AppUI']; $user_id = $AppUI->user_id; addHistory('login', $AppUI->user_id, 'logout', $AppUI->user_first_name . ' ' . $AppUI->user_last_name); } $_SESSION['AppUI'] = new CAppUI; } $AppUI =& $_SESSION['AppUI']; $last_insert_id =$AppUI->last_insert_id; $AppUI->checkStyle(); // load the commonly used classes require_once( $AppUI->getSystemClass( 'date' ) ); require_once( $AppUI->getSystemClass( 'dp' ) ); require_once( $AppUI->getSystemClass( 'query' ) ); require_once DP_BASE_DIR.'/misc/debug.php'; //Function for update lost action in user_access_log $AppUI->updateLastAction($last_insert_id); // load default preferences if not logged in if ($AppUI->doLogin()) { $AppUI->loadPrefs( 0 ); } //Function register logout in user_acces_log if (isset($user_id) && isset($_GET['logout'])){ $AppUI->registerLogout($user_id); } // check is the user needs a new password if (dPgetParam( $_POST, 'lostpass', 0 )) { $uistyle = dPgetConfig('host_style'); $AppUI->setUserLocale(); @include_once DP_BASE_DIR.'/locales/'.$AppUI->user_locale.'/locales.php'; @include_once DP_BASE_DIR.'/locales/core.php'; setlocale( LC_TIME, $AppUI->user_lang ); if (dPgetParam( $_REQUEST, 'sendpass', 0 )) { require DP_BASE_DIR.'/includes/sendpass.php'; sendNewPass(); } else { require DP_BASE_DIR.'/style/'.$uistyle.'/lostpass.php'; } exit(); } // check if the user is trying to log in // Note the change to REQUEST instead of POST. This is so that we can // support alternative authentication methods such as the PostNuke // and HTTP auth methods now supported. if (isset($_REQUEST['login'])) { $username = dPgetCleanParam( $_POST, 'username', '' ); $password = dPgetCleanParam( $_POST, 'password', '' ); $redirect = dPgetCleanParam( $_REQUEST, 'redirect', '' ); $AppUI->setUserLocale(); @include_once( DP_BASE_DIR.'/locales/'.$AppUI->user_locale.'/locales.php' ); @include_once DP_BASE_DIR.'/locales/core.php'; $ok = $AppUI->login( $username, $password ); if (!$ok) { $AppUI->setMsg( 'Login Failed'); } else { //Register login in user_acces_log $AppUI->registerLogin(); } addHistory('login', $AppUI->user_id, 'login', $AppUI->user_first_name . ' ' . $AppUI->user_last_name); $AppUI->redirect( ''.$redirect ); } // supported since PHP 4.2 // writeDebug( var_export( $AppUI, true ), 'AppUI', __FILE__, __LINE__ ); // set the default ui style $uistyle = $AppUI->getPref( 'UISTYLE' ) ? $AppUI->getPref( 'UISTYLE' ) : dPgetConfig('host_style'); // clear out main url parameters $m = ''; $a = ''; $u = ''; // check if we are logged in if ($AppUI->doLogin()) { // load basic locale settings $AppUI->setUserLocale(); @include_once( './locales/'.$AppUI->user_locale.'/locales.php' ); @include_once( './locales/core.php' ); setlocale( LC_TIME, $AppUI->user_lang ); $redirect = $_SERVER['QUERY_STRING']?strip_tags($_SERVER['QUERY_STRING']):''; if (strpos( $redirect, 'logout' ) !== false) { $redirect = ''; } if (isset( $locale_char_set )) { header('Content-type: text/html;charset='.$locale_char_set); } require DP_BASE_DIR.'/style/'.$uistyle.'/login.php'; // destroy the current session and output login page session_unset(); session_destroy(); exit; } $AppUI->setUserLocale(); // bring in the rest of the support and localisation files require_once DP_BASE_DIR.'/includes/permissions.php'; $def_a = 'index'; if (! isset($_GET['m']) && !empty($dPconfig['default_view_m'])) { $m = $dPconfig['default_view_m']; $def_a = !empty($dPconfig['default_view_a']) ? $dPconfig['default_view_a'] : $def_a; $tab = $dPconfig['default_view_tab']; } else { // set the module from the url $m = $AppUI->checkFileName(dPgetCleanParam( $_GET, 'm', getReadableModule() )); } // set the action from the url $a = $AppUI->checkFileName(dPgetCleanParam( $_GET, 'a', $def_a)); /* This check for $u implies that a file located in a subdirectory of higher depth than 1 * in relation to the module base can't be executed. So it would'nt be possible to * run for example the file module/directory1/directory2/file.php * Also it won't be possible to run modules/module/abc.zyz.class.php for that dots are * not allowed in the request parameters. */ $u = $AppUI->checkFileName(dPgetCleanParam( $_GET, 'u', '' )); // load module based locale settings @include_once DP_BASE_DIR.'/locales/'.$AppUI->user_locale.'/locales.php'; @include_once DP_BASE_DIR.'/locales/core.php'; setlocale( LC_TIME, $AppUI->user_lang ); $m_config = dPgetConfig($m); @include_once DP_BASE_DIR.'/functions/' . $m . '_func.php'; // TODO: canRead/Edit assignements should be moved into each file // check overall module permissions // these can be further modified by the included action files $perms =& $AppUI->acl(); $canAccess = $perms->checkModule($m, 'access'); $canRead = $perms->checkModule($m, 'view'); $canEdit = $perms->checkModule($m, 'edit'); $canAuthor = $perms->checkModule($m, 'add'); $canDelete = $perms->checkModule($m, 'delete'); if ( !$suppressHeaders ) { // output the character set header if (isset( $locale_char_set )) { header('Content-type: text/html;charset='.$locale_char_set); } } /* * * TODO: Permissions should be handled by each file. * Denying access from index.php still doesn't asure * someone won't access directly skipping this security check. * // bounce the user if they don't have at least read access if (!( // however, some modules are accessible by anyone $m == 'public' || ($m == 'admin' && $a == 'viewuser') )) { if (!$canRead) { $AppUI->redirect( 'm=public&a=access_denied' ); } } */ // include the module class file - we use file_exists instead of @ so // that any parse errors in the file are reported, rather than errors // further down the track. $modclass = $AppUI->getModuleClass($m); if (file_exists($modclass)) include_once( $modclass ); if ($u && file_exists(DP_BASE_DIR.'/modules/'.$m.'/'.$u.'/'.$u.'.class.php')) include_once DP_BASE_DIR.'/modules/'.$m.'/'.$u.'/'.$u.'.class.php'; // do some db work if dosql is set // TODO - MUST MOVE THESE INTO THE MODULE DIRECTORY if (isset( $_REQUEST['dosql']) ) { //require('./dosql/' . $_REQUEST['dosql'] . '.php'); require DP_BASE_DIR.'/modules/'.$m.'/' . ($u ? ($u.'/') : '') . $AppUI->checkFileName($_REQUEST['dosql']) . '.php'; } // start output proper include DP_BASE_DIR.'/style/'.$uistyle.'/overrides.php'; ob_start(); if(!$suppressHeaders) { require DP_BASE_DIR.'/style/'.$uistyle.'/header.php'; } if (! isset($_SESSION['all_tabs'][$m]) ) { // For some reason on some systems if you don't set this up // first you get recursive pointers to the all_tabs array, creating // phantom tabs. if (! isset($_SESSION['all_tabs'])) { $_SESSION['all_tabs'] = array(); } $_SESSION['all_tabs'][$m] = array(); $all_tabs =& $_SESSION['all_tabs'][$m]; foreach ($AppUI->getActiveModules() as $dir => $module) { if (! $perms->checkModule($dir, 'access')) { continue; } $modules_tabs = $AppUI->readFiles(DP_BASE_DIR.'/modules/'.$dir.'/', '^' . $m . '_tab.*\.php'); foreach($modules_tabs as $tab) { // Get the name as the subextension // cut the module_tab. and the .php parts of the filename // (begining and end) $nameparts = explode('.', $tab); $filename = substr($tab, 0, -4); if (count($nameparts) > 3) { $file = $nameparts[1]; if (! isset($all_tabs[$file])) { $all_tabs[$file] = array(); } $arr =& $all_tabs[$file]; $name = $nameparts[2]; } else { $arr =& $all_tabs; $name = $nameparts[1]; } $arr[] = array( 'name' => ucfirst(str_replace('_', ' ', $name)), 'file' => DP_BASE_DIR . '/modules/' . $dir . '/' . $filename, 'module' => $dir); /* ** Don't forget to unset $arr again! $arr is likely to be used in the sequel declaring ** any temporary array. This may lead to strange bugs with disappearing tabs (cf. #1767). ** @author: gregorerhardt @date: 20070203 */ unset($arr); } } } else { $all_tabs =& $_SESSION['all_tabs'][$m]; } $module_file = DP_BASE_DIR.'/modules/'.$m.'/'.($u?($u.'/'):'').$a.'.php'; if (file_exists($module_file)) { require $module_file; } else { // TODO: make this part of the public module? // TODO: internationalise the string. $titleBlock = new CTitleBlock('Warning', 'log-error.gif'); $titleBlock->show(); echo $AppUI->_('Missing file. Possible Module "'.$m.'" missing!'); } if(!$suppressHeaders) { echo ''; require DP_BASE_DIR.'/style/'.$uistyle.'/footer.php'; } ob_end_flush(); ?>