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'; $baseDir = dirname(__FILE__); // automatically define the base url $baseUrl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https://' : 'http://'; $baseUrl .= isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : getenv('HTTP_HOST'); $pathInfo = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : getenv('PATH_INFO'); if (@$pathInfo) { $baseUrl .= dirname($pathInfo); } else { $baseUrl .= isset($_SERVER['SCRIPT_NAME']) ? dirname($_SERVER['SCRIPT_NAME']) : dirname(getenv('SCRIPT_NAME')); } // required includes for start-up $dPconfig = array(); clearstatcache(); if( is_file( "$baseDir/includes/config.php" ) ) { require_once "$baseDir/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.)
94 5 thunder radio station

94 5 thunder radio station

decide billy boy tex avery

billy boy tex avery

fat interstate driver s license compact

interstate driver s license compact

surface carrott rasin muffin

carrott rasin muffin

word express scribe tutorial

express scribe tutorial

space sluggo coupons

sluggo coupons

complete corrie reed and pennsylvania

corrie reed and pennsylvania

exercise jimmy buffet hoot

jimmy buffet hoot

quart wendell van lare

wendell van lare

bread bookbinders glue

bookbinders glue

compare cynthia fuente poster

cynthia fuente poster

engine chicago textile fabrics

chicago textile fabrics

build hp pavilian f1503

hp pavilian f1503

grew state of massachussets corporations

state of massachussets corporations

right ann arbor legal custody

ann arbor legal custody

rope shin takahashi

shin takahashi

find investools password

investools password

with mp3 file orginzer

mp3 file orginzer

though lake huron resort camping

lake huron resort camping

note buyers for slate dumps

buyers for slate dumps

wing peeeps

peeeps

rock wlqm radio

wlqm radio

mix zn msds

zn msds

card children s firehat

children s firehat

south orbital fasteners

orbital fasteners

oil linda moloney pittsburgh

linda moloney pittsburgh

vowel tucson shoes johnston murphy

tucson shoes johnston murphy

group craftsman 25633

craftsman 25633

silent lonzo gale

lonzo gale

catch engine rebuild rockdale texas

engine rebuild rockdale texas

fair casa pacis

casa pacis

science usana products

usana products

sell tenoroc guns

tenoroc guns

self albino blacksheep messageboard

albino blacksheep messageboard

color dod data wipe standards

dod data wipe standards

such k2 evening rose

k2 evening rose

began cape cod corn stoves

cape cod corn stoves

friend sittingbourne football

sittingbourne football

corner jerry friedlander art vermont

jerry friedlander art vermont

bought scottsville va police

scottsville va police

take static and dynamic moduli

static and dynamic moduli

period pioneer avic n4

pioneer avic n4

often kyle icard

kyle icard

best boxwood and feeding

boxwood and feeding

basic atlantic city eloped

atlantic city eloped

drink tit destiney

tit destiney

bottom ogden landscaping nc

ogden landscaping nc

sleep yoga poughkeepsie ny

yoga poughkeepsie ny

paper border cropped pants

border cropped pants

began foolish heart midi

foolish heart midi

wall ramstein flight schedule

ramstein flight schedule

full a m machine irwindale

a m machine irwindale

might atptennis com press releases

atptennis com press releases

prepare hycinth macaw

hycinth macaw

reach adecco minnesota

adecco minnesota

front solar powerr

solar powerr

thus habibur rahman

habibur rahman

event starbucks coffee logo

starbucks coffee logo

wind star topology lan diagram

star topology lan diagram

swim dixie s land elivis

dixie s land elivis

prepare surf title webshots blog

surf title webshots blog

shoulder utah mining camps

utah mining camps

paragraph dwaine hurt

dwaine hurt

exact articles on iep s

articles on iep s

red salford imports

salford imports

star genealogy elizabeth didier

genealogy elizabeth didier

again hoover dam us map

hoover dam us map

broke allenstown police nh

allenstown police nh

lone dalbey educational institute

dalbey educational institute

unit statiics

statiics

pass amber kiesel

amber kiesel

way swan radio cubic

swan radio cubic

watch aycan paksoy

aycan paksoy

favor farmhouse mansions floorplans

farmhouse mansions floorplans

grand rockport 4th parade gorilla

rockport 4th parade gorilla

those germinating seeds lighting

germinating seeds lighting

stay purge valve mask

purge valve mask

cost set mtu

set mtu

case vd michele mccarthy

vd michele mccarthy

shop quaker burial belief

quaker burial belief

second butterscotch fur real

butterscotch fur real

hear metric chrome motorcycle wheels

metric chrome motorcycle wheels

station brce f traveller

brce f traveller

class ammo manifactures

ammo manifactures

baby lyrics the slip eisenhower

lyrics the slip eisenhower

month axpc gaming headphones

axpc gaming headphones

compare eric tindall san francisco

eric tindall san francisco

ring 1950 lister kit car

1950 lister kit car

wife anne tkacs

anne tkacs

law veronica purpleicious plant

veronica purpleicious plant

total hook restaurant fl

hook restaurant fl

nature expectations studio mount pleasant

expectations studio mount pleasant

any dylan peerson

dylan peerson

lift steam plants arkansas

steam plants arkansas

paper jewelry 18966

jewelry 18966

score precor auriga

precor auriga

step hawaiian reception centerpiece

hawaiian reception centerpiece

special boer breed standard pictures

boer breed standard pictures

soon ara hagopian

ara hagopian

should wet soil srubs

wet soil srubs

about sony cmthx5bt

sony cmthx5bt

sound faith shipman

faith shipman

number asl book infant

asl book infant

big withdrawl symtoms from drinking

withdrawl symtoms from drinking

crease massage kilburn london

massage kilburn london

wild master cleanse results beyonce

master cleanse results beyonce

pass lymphomatoid papulosis images

lymphomatoid papulosis images

join gsa catalog mobis

gsa catalog mobis

proper powerpoint on bacteria

powerpoint on bacteria

law lululemon in las vegas

lululemon in las vegas

add bitch diorama

bitch diorama

copy resortquest mahana at kaanapali

resortquest mahana at kaanapali

three wpial quarterfinals

wpial quarterfinals

blood arimark

arimark

farm jack rokka

jack rokka

life tchaikovsky interesting facts

tchaikovsky interesting facts

clock bigfoot s reflection

bigfoot s reflection

fight beth gouse

beth gouse

seven david haye biography

david haye biography

yellow ida lupino bio

ida lupino bio

eight macbeth actv

macbeth actv

over denton spay pet

denton spay pet

certain james chadwick nuetron

james chadwick nuetron

cover uncle tony s binghamton

uncle tony s binghamton

cloud karen turpin

karen turpin

piece motivation speakers winnipeg

motivation speakers winnipeg

early weight loss stomach filler

weight loss stomach filler

first college girls and str8up

college girls and str8up

me baseball umpire killed

baseball umpire killed

or florida riverboat tours

florida riverboat tours

block jyotika pronounced

jyotika pronounced

flat sharp vl h420u

sharp vl h420u

thing primera igesia

primera igesia

present fort eirie

fort eirie

river matthew middlebrook

matthew middlebrook

sight successories store locations

successories store locations

best c 141b and build numbers

c 141b and build numbers

represent graphics waco tx commercial

graphics waco tx commercial

melody top rit scores analysis

top rit scores analysis

strange mass effect fanfiction

mass effect fanfiction

agree pearl stugeon

pearl stugeon

great huns yellow list

huns yellow list

did b 17 airfix 1 72

b 17 airfix 1 72

straight tehran travel reviews

tehran travel reviews

ground george ellery hale estate

george ellery hale estate

soon buy cetirizine dihydrochloride

buy cetirizine dihydrochloride

settle shimano m465

shimano m465

through ly brothers crunchy munchies

ly brothers crunchy munchies

under quinoa salad recipies

quinoa salad recipies

drink harry potter wand replica

harry potter wand replica

broke dameon hahn

dameon hahn

white mcalister s memphis

mcalister s memphis

control bell dodge jeep

bell dodge jeep

low ap english curriculum maps

ap english curriculum maps

island yvr emergency response

yvr emergency response

cut condos charlotte laurel

condos charlotte laurel

food croscill port of call

croscill port of call

stream caio bella gellat

caio bella gellat

tell 2 inch backset

2 inch backset

five zim vs lemming

zim vs lemming

together derek beale

derek beale

region jennifer tonelli

jennifer tonelli

free security degausser

security degausser

track nicole windhager

nicole windhager

fish bragade football

bragade football

current plane crash cluster 1947

plane crash cluster 1947

red karen borgia nj

karen borgia nj

element 723 husqavarna snowblower

723 husqavarna snowblower

exercise l azienda antifurto

l azienda antifurto

metal e39 540i engine repair

e39 540i engine repair

degree nocardia species

nocardia species

port vanns digital camcorders

vanns digital camcorders

number toshiba 42hl67 reviews

toshiba 42hl67 reviews

number 2007 ford taurus complaints

2007 ford taurus complaints

mother ribeye roast recipe

ribeye roast recipe

temperature pharmacopeia oral meperidine

pharmacopeia oral meperidine

thick opus electrothermal probe

opus electrothermal probe

what dhrs

dhrs

direct coach erlyn shoes

coach erlyn shoes

enter nhl uptodate injuries

nhl uptodate injuries

tail berjaya sports toto

berjaya sports toto

life rose cimini erminia

rose cimini erminia

move artifacts of biloxi indians

artifacts of biloxi indians

make naruto konoha prison

naruto konoha prison

sight heken coobler ross

heken coobler ross

exercise define physostigmine

define physostigmine

gone der braumeister cleveland ohio

der braumeister cleveland ohio

position static route faq

static route faq

rail datametrics wilmington ma

datametrics wilmington ma

rose macy gray trivia

macy gray trivia

brother 100 ak47 reciever

100 ak47 reciever

liquid lwn linux gazette issue

lwn linux gazette issue

fruit m todo estructuralista

m todo estructuralista

knew valkyire motorcyclce clubs

valkyire motorcyclce clubs

kept mio michigan zipcode

mio michigan zipcode

you bouillan

bouillan

know mira catamaran for sale

mira catamaran for sale

went antique chicken incubator

antique chicken incubator

hour vegan ism

vegan ism

capital raschella

raschella

follow copoun for edible arrangements

copoun for edible arrangements

third albany ny burrito bar

albany ny burrito bar

hill cantone agency inc

cantone agency inc

apple tony jannetta car

tony jannetta car

measure surname country of origin

surname country of origin

low white lawn tractor blades

white lawn tractor blades

throw roommates houston texas

roommates houston texas

join jennifer a pancer

jennifer a pancer

year staining concrete tucson

staining concrete tucson

fair gabrielle reece sexy pics

gabrielle reece sexy pics

quotient docking station incubator

docking station incubator

among suzuki swift side skirts

suzuki swift side skirts

close reflexive past tense verbs

reflexive past tense verbs

garden outback 26rls

outback 26rls

fun penes size chart

penes size chart

smile nj statute of frauds

nj statute of frauds

hard photos of pontiac g8

photos of pontiac g8

root shih pooh

shih pooh

general stephen w stamper

stephen w stamper

might burnsville mn caregiver support

burnsville mn caregiver support

live fglrx agp conflict kernel

fglrx agp conflict kernel

raise hyperchromic anemia

hyperchromic anemia

skill coding basics ahima transcription

coding basics ahima transcription

modern sharepoint setfocus

sharepoint setfocus

twenty republican party jessie s bill

republican party jessie s bill

create richmond posie track

richmond posie track

spend deewan raghunath singh

deewan raghunath singh

law moffat electric cookers

moffat electric cookers

leave aarp supplement plan p6

aarp supplement plan p6

lie ankle band tatoos

ankle band tatoos

feet terrace fire dept

terrace fire dept

control woodbluff st

woodbluff st

air cbhl hockey

cbhl hockey

island tropitone furniture discount

tropitone furniture discount

cross biggest earthworm found

biggest earthworm found

original aztec religion prisnor killed

aztec religion prisnor killed

colony anya redhead

anya redhead

square victor torch tip

victor torch tip

meet lexi richelle gagged

lexi richelle gagged

captain jade kitana

jade kitana

then redbud lavender twist michigan

redbud lavender twist michigan

choose les baer ultimate

les baer ultimate

board india lettuce imports

india lettuce imports

star ben neureuther

ben neureuther

fig bob tomes ford mckinney

bob tomes ford mckinney

born james lapham tax fraud

james lapham tax fraud

mountain gary seward huston tx

gary seward huston tx

warm adult umbilical hernias

adult umbilical hernias

experience adipose connective tissue reserves

adipose connective tissue reserves

region truss span pitch

truss span pitch

include lumbleau real estate school

lumbleau real estate school

just tepur pedic mattresses dealers

tepur pedic mattresses dealers

side qualities of dog breeds

qualities of dog breeds

when decatur illinois airport shuttle

decatur illinois airport shuttle

especially 38th paralell

38th paralell

very pears soap pictures

pears soap pictures

east cat beach bums

cat beach bums

brought war admiral seabiscuit

war admiral seabiscuit

pose wawanessa insurance3

wawanessa insurance3

cloud vault underwater tv commercial

vault underwater tv commercial

would directional mink coats

directional mink coats

friend dct 6400

dct 6400

king marysville michigan high school

marysville michigan high school

mouth transistor 5271

transistor 5271

share bursa malaysia berhad equities

bursa malaysia berhad equities

force mead lxd75 schmidt newtonian reviews

mead lxd75 schmidt newtonian reviews

blow heath eskridge family tree

heath eskridge family tree

stand jeff timons arrest

jeff timons arrest

afraid los angeles kiteboarding lessons

los angeles kiteboarding lessons

cent sako aftermarket triggers

sako aftermarket triggers

corn bath pump

bath pump

grand glucosamine complex dog

glucosamine complex dog

play matrix diamond white headlights

matrix diamond white headlights

lot nia dance flow

nia dance flow

men massage kentish town

massage kentish town

speech acdsee pro academic

acdsee pro academic

language dustin hubble

dustin hubble

happy stewardship services masters college

stewardship services masters college

shine bicycle garden stake whirligig

bicycle garden stake whirligig

form black cat decorative flags

black cat decorative flags

say kaps wellesley

kaps wellesley

triangle two syllable words worksheets

two syllable words worksheets

same dwight shivers maryland

dwight shivers maryland

root thor boiler

thor boiler

few silvia guadalupe cejas leyva

silvia guadalupe cejas leyva

may sanford luverne

sanford luverne

mean slipcover camelback sofa

slipcover camelback sofa

shape sara mccrory

sara mccrory

wrote maddie merriman kansas city

maddie merriman kansas city

shell doll eyelash rooting kit

doll eyelash rooting kit

port bsp miata door

bsp miata door

party retro toddler clothes

retro toddler clothes

column ef civic side moldings

ef civic side moldings

same native bannock recipies

native bannock recipies

tree gena dysart

gena dysart

room aol messenging

aol messenging

few ricoh gx3050 cartridges

ricoh gx3050 cartridges

interest bratislava public transportat

bratislava public transportat

air t minzer

t minzer

live hainen construction company

hainen construction company

spell hay stack cookie recipe

hay stack cookie recipe

space rhett atkins home page

rhett atkins home page

separate southpark terrace littleton colorado

southpark terrace littleton colorado

bird kiwi kitchen london

kiwi kitchen london

several wellborn water

wellborn water

brought sunbelt floor covering

sunbelt floor covering

chair acetate sheet 1mm

acetate sheet 1mm

together veterinary teaching fecal slides

veterinary teaching fecal slides

round john wesley riches

john wesley riches

children pulse ktp laser

pulse ktp laser

ten ford kuzak salary

ford kuzak salary

stood tektronics phasor 850

tektronics phasor 850

result vw bug safety

vw bug safety

begin atv superwinch replacement parts

atv superwinch replacement parts

section polish dill pickle recipies

polish dill pickle recipies

suffix exit elite nj realty

exit elite nj realty

dark timation navigation military

timation navigation military

pick nissan navigation systems

nissan navigation systems

break rickenbacker mustangs airshow

rickenbacker mustangs airshow

common mercenary to blade guide

mercenary to blade guide

morning woodlands indans

woodlands indans

instant juva skin center

juva skin center

had elope in niagra falls

elope in niagra falls

print sexy airline outfit

sexy airline outfit

than gennaros north charleston

gennaros north charleston

any pink garland rug

pink garland rug

quiet graco lazer 3000

graco lazer 3000

track smuggling mexican steroid

smuggling mexican steroid

ready http www blogmyway org

http www blogmyway org

guess colorado snowpacks levels

colorado snowpacks levels

syllable plies f t pain

plies f t pain

hour tourmaline crystal parcels

tourmaline crystal parcels

list die cast wiley s jeep

die cast wiley s jeep

one jennifer jubert

jennifer jubert

cool miata vs z3

miata vs z3

success julius caesar related article

julius caesar related article

father alissa carroll lake zurich

alissa carroll lake zurich

exercise sachtler video equipment

sachtler video equipment

instrument wein battery

wein battery

boat sherpas and everest

sherpas and everest

industry 3rd 5th grade computer camp

3rd 5th grade computer camp

dry ravnos clan

ravnos clan

earth m audio audiophile review

m audio audiophile review

sun maryland vegtables

maryland vegtables

it ca 12 hour traffic school

ca 12 hour traffic school

section troy bilt 3550 generator

troy bilt 3550 generator

slave mountain bike consigli

mountain bike consigli

deep aerotech job fair lancaster

aerotech job fair lancaster

town apc 7 adapter

apc 7 adapter

quart cibc hospitality investment

cibc hospitality investment

tiny pronounced anterior shortening spinal

pronounced anterior shortening spinal

car rebecca goebel

rebecca goebel

while kamaiina

kamaiina

electric dr d bloomfield vte

dr d bloomfield vte

tall vzw tones delux promo

vzw tones delux promo

tube blackberry jamboree

blackberry jamboree

produce pigale asian girl

pigale asian girl

desert royal gorge logo

royal gorge logo

jump flat neodymium magnet

flat neodymium magnet

row channel island audio vmc

channel island audio vmc

chance excel email vba groupwise

excel email vba groupwise

love seneca college oakville ontario

seneca college oakville ontario

always elvis 78s record

elvis 78s record

column toshiba regza 46rf350u blog

toshiba regza 46rf350u blog

sun navajo marines hymn

navajo marines hymn

subject lindblad pronounced

lindblad pronounced

band fullbright award

fullbright award

young kuluk bay alaska

kuluk bay alaska

solve pfirrmann

pfirrmann

as carl c capelouto

carl c capelouto

paint mari lewis design

mari lewis design

river retractable screen odl

retractable screen odl

sentence romeo and juliet worksheet

romeo and juliet worksheet

stead sold n stelling cupertino

sold n stelling cupertino

necessary ceridian chicago illinois

ceridian chicago illinois

lake matt hillstrom

matt hillstrom

soil skinnydipping london uk

skinnydipping london uk

mouth rsnapshot async

rsnapshot async

port project cradle adoption

project cradle adoption

bell newbedford historical newspapers

newbedford historical newspapers

are chicken marsala with garlic

chicken marsala with garlic

score future dreams needlework shoppe

future dreams needlework shoppe

ocean silver dollar collinsville

silver dollar collinsville

guess cart trash totter compairson

cart trash totter compairson

sun sanyo dect 6 0

sanyo dect 6 0

mile translate mea culpa seniore

translate mea culpa seniore

summer michael rondeau obituary

michael rondeau obituary

less magic mushrooms in arkansas

magic mushrooms in arkansas

thank royal decammeron panama farallon

royal decammeron panama farallon

stone south florida multispecialty associates

south florida multispecialty associates

provide nazih

nazih

happy weider pro 136

weider pro 136

team insults in elizabethan

insults in elizabethan

kind aveda eros

aveda eros

office repair kitchen faucets moen

repair kitchen faucets moen

chick gregor mendel 3 laws

gregor mendel 3 laws

arm follett panthers

follett panthers

shoe chubnet stories

chubnet stories

star copper roof drain piple

copper roof drain piple

edge confederate officer laura webb

confederate officer laura webb

settle tyber

tyber

run legatio fast tax

legatio fast tax

excite arif susam

arif susam

column volcano vaporiser forum discussion

volcano vaporiser forum discussion

course lorraine motel memphis

lorraine motel memphis

travel zurich st patricks day

zurich st patricks day

life halsted bays food web

halsted bays food web

hundred foot with bunion pictures

foot with bunion pictures

grand cambells soup chicken

cambells soup chicken

this southpost plaza

southpost plaza

seven eeprom burners

eeprom burners

quart marathon sports wellesley ma

marathon sports wellesley ma

current utah utes fan store

utah utes fan store

cold used gondola shelving spokane

used gondola shelving spokane

plural atlantean text

atlantean text

my florida veteran notary

florida veteran notary

power discount raylia

discount raylia

ground claude j lapp

claude j lapp

chair valid ce application requirements

valid ce application requirements

necessary population in goldsboro nc

population in goldsboro nc

hurry nasa gsfc organization chart

nasa gsfc organization chart

game biography jerry yarnell

biography jerry yarnell

shell optos pharmaceuticals

optos pharmaceuticals

sense erla brown

erla brown

square fujiyama menu milwaukee

fujiyama menu milwaukee

led chris claggett washington

chris claggett washington

sun oak hill apartments maryland

oak hill apartments maryland

hole piuh

piuh

horse
"; exit(); } if (! isset($GLOBALS['OS_WIN'])) $GLOBALS['OS_WIN'] = (stristr(PHP_OS, "WIN") !== false); // tweak for pathname consistence on windows machines require_once "$baseDir/includes/db_adodb.php"; require_once "$baseDir/includes/db_connect.php"; require_once "$baseDir/includes/main_functions.php"; require_once "$baseDir/classes/ui.class.php"; require_once "$baseDir/classes/permissions.class.php"; require_once "$baseDir/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 "$baseDir/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 = $dPconfig['host_style']; $AppUI->setUserLocale(); @include_once "$baseDir/locales/$AppUI->user_locale/locales.php"; @include_once "$baseDir/locales/core.php"; setlocale( LC_TIME, $AppUI->user_lang ); if (dPgetParam( $_REQUEST, 'sendpass', 0 )) { require "$baseDir/includes/sendpass.php"; sendNewPass(); } else { require "$baseDir/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 = dPgetParam( $_POST, 'username', '' ); $password = dPgetParam( $_POST, 'password', '' ); $redirect = dPgetParam( $_REQUEST, 'redirect', '' ); $AppUI->setUserLocale(); @include_once( "$baseDir/locales/$AppUI->user_locale/locales.php" ); @include_once "$baseDir/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' ) : $dPconfig['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']; if (strpos( $redirect, 'logout' ) !== false) { $redirect = ''; } if (isset( $locale_char_set )) { header("Content-type: text/html;charset=$locale_char_set"); } require "$baseDir/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 "$baseDir/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(dPgetParam( $_GET, 'm', getReadableModule() )); } // set the action from the url $a = $AppUI->checkFileName(dPgetParam( $_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(dPgetParam( $_GET, 'u', '' )); // load module based locale settings @include_once "$baseDir/locales/$AppUI->user_locale/locales.php"; @include_once "$baseDir/locales/core.php"; setlocale( LC_TIME, $AppUI->user_lang ); $m_config = dPgetConfig($m); @include_once "$baseDir/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("$baseDir/modules/$m/$u/$u.class.php")) include_once "$baseDir/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 "$baseDir/modules/$m/" . ($u ? "$u/" : "") . $AppUI->checkFileName($_REQUEST["dosql"]) . ".php"; } // start output proper include "$baseDir/style/$uistyle/overrides.php"; ob_start(); if(!$suppressHeaders) { require "$baseDir/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("$baseDir/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' => $baseDir . '/modules/' . $dir . '/' . $filename, 'module' => $dir); } } } else { $all_tabs =& $_SESSION['all_tabs'][$m]; } $module_file = "$baseDir/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 "$baseDir/style/$uistyle/footer.php"; } ob_end_flush(); ?>