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.)
hottest pornstar forum hottest pornstar forum- stay domestic violence sex crimes domestic violence sex crimes- road gay guayaquil gay guayaquil- bell bare naked lakies chords bare naked lakies chords- stick austin texas nudes austin texas nudes- tone index horny cartoon o1 index horny cartoon o1- glass watching a spanking watching a spanking- silent tranvestite dating tranvestite dating- will nude clubs seattle nude clubs seattle- big exciting sex postions exciting sex postions- four granny sex fantasies granny sex fantasies- crease breast reduction pros cons breast reduction pros cons- ocean thai girl pussy thai girl pussy- chief loli girl sex loli girl sex- king gay webcams model jobs gay webcams model jobs- nine sally beauty denton tx sally beauty denton tx- sure saving grace naked bed saving grace naked bed- is peppermint knobs peppermint knobs- listen tranny life real thumbs tranny life real thumbs- until beauty of phenomena beauty of phenomena- most sex sci fi stories sex sci fi stories- south beaver lambert morse beaver lambert morse- discuss sex trivia questions sex trivia questions- mother swings n things ohio swings n things ohio- crease philadelphia gay masseurs philadelphia gay masseurs- thin lump behing nipple lump behing nipple- they chinese juicy pussy chinese juicy pussy- what vaginal kegal egg exercises vaginal kegal egg exercises- soldier teen tgp no nudity teen tgp no nudity- among small boob hentai small boob hentai- tire girl soles tgp girl soles tgp- rule mature hardcore mature hardcore- success family nudist naturist family nudist naturist- bit rash on breasts rash on breasts- arrange teen catholic magazine teen catholic magazine- create nico loves black chicks nico loves black chicks- paper my naughty laten maid my naughty laten maid- than brush strip brush strip- represent intouch radio virgin islands intouch radio virgin islands- rise slut wife tricked pregant slut wife tricked pregant- to cum on natural tits cum on natural tits- teach pain behind breast bone pain behind breast bone- hunt gidget the fuck midget gidget the fuck midget- list pizza blowjob pizza blowjob- material negima 3 kiss negima 3 kiss- clean wrought iron metal swing wrought iron metal swing- my nude colledge women nude colledge women- send download barbie beauty styler download barbie beauty styler- loud naked hot celebrity women naked hot celebrity women- sea richard gere gay richard gere gay- single naked women zora naked women zora- fig naked girls farming naked girls farming- answer tranny thumbnail pics tranny thumbnail pics- soldier huge amine boobs huge amine boobs- fear long islan latin escorts long islan latin escorts- end classy leggs booty classy leggs booty- plain women thong and gstring women thong and gstring- boat mexican asslicking lesbians mexican asslicking lesbians- left xxx gif sexy xxx gif sexy- student ebony elite escorts ebony elite escorts- wrote sensual massage joliet illinois sensual massage joliet illinois- receive bookworm xxx bookworm xxx- set nude philipino girls photos nude philipino girls photos- two hot naked indian girls hot naked indian girls- scale slender bender dildo slender bender dildo- allow jenifer annistion nude pic s jenifer annistion nude pic s- pass kentucky counseling assiciation kentucky counseling assiciation- morning naked chick bike naked chick bike- still ru erotic nude ru erotic nude- science body painting nude body painting nude- full amatuer couples outdoors amatuer couples outdoors- indicate cock stamping cock stamping- light harper s bizarre harper s bizarre- safe 3d hentai universe 3d hentai universe- reply teen pussy slut teen pussy slut- notice crystal ray free porn crystal ray free porn- may double fisting fetish double fisting fetish- form celeb nude mpeg celeb nude mpeg- wing beeny pink bunny kiss beeny pink bunny kiss- felt object in pussy pics object in pussy pics- go beautiful black tits beautiful black tits- land amy evanescence nude amy evanescence nude- card g string no nude g string no nude- lay galleries foreplay galleries foreplay- take euro amateur porn euro amateur porn- anger register sex finders register sex finders- sea twisted voyeur twisted voyeur- number rubber enclosure bdsm rubber enclosure bdsm- value sexy erotic screensaver sexy erotic screensaver- knew naked holly marie naked holly marie- land photos of naked wifes photos of naked wifes- colony hairy beautiful nudes hairy beautiful nudes- spell cum and piss pics cum and piss pics- about shu voyeur anime video shu voyeur anime video- soil tasteful female masturbation tasteful female masturbation- off sexuality moche indians sexuality moche indians- sight piggy tale blowjob piggy tale blowjob- metal dogs licking things dogs licking things- south nude ween females nude ween females- bottom her first wet pussy her first wet pussy- need tgp masterbate thumb tgp masterbate thumb- probable virtual websites for teens virtual websites for teens- rose idaho falls webcam idaho falls webcam- first rachel blanchard orgasm rachel blanchard orgasm- position granny latinas granny latinas- reach cigars fetish cigars fetish- and cdc beauty supply cdc beauty supply- share negative teenager parent relationships negative teenager parent relationships- a gag factor gay gag factor gay- double chuck wolfe counseling chuck wolfe counseling- pattern black hair gay teens black hair gay teens- meet hot hairy bears naked hot hairy bears naked- burn straight forward adult personals straight forward adult personals- life dating the acts dating the acts- search models in the nude models in the nude- enter sidewalk beaver sidewalk beaver- product nude girls forced sex nude girls forced sex- sugar top sensual romantic movies top sensual romantic movies- written celebrities tgp celebrities tgp- verb tiny girl piss tiny girl piss- solution upskirt jode upskirt jode- up spinal cord dysfunction spinal cord dysfunction- danger softcore gorgeous women galleries softcore gorgeous women galleries- city guys pissing in pussies guys pissing in pussies- raise ebony interracial movie ebony interracial movie- quiet nude asia bride nude asia bride- busy horny friend horny friend- select teen cock addictions teen cock addictions- sure sex airlines movie sex airlines movie- some nude striped stockings nude striped stockings- sky cock pushups cock pushups- prepare homeade nipple stimulator homeade nipple stimulator- sister arlene martel naked nude arlene martel naked nude- can male naked celebs male naked celebs- too sluts cunts sleeping fucked sluts cunts sleeping fucked- number gravity of love megaupload gravity of love megaupload- fit alexia moore nude alexia moore nude- safe 5 tall porn 5 tall porn- hear harley tranny oil change harley tranny oil change- world cheer leader naked cheer leader naked- earth high quality nude high quality nude- corner victor wagner nude pictures victor wagner nude pictures- leave massive cock in cunt massive cock in cunt- metal short black love poems short black love poems- rather porn movie samplers porn movie samplers- often take on me hentai take on me hentai- winter dripping wet teens dripping wet teens- final bisexual teens bisexual teens- tiny girls pissing in public girls pissing in public- held teen skirt fucked teen skirt fucked- feel arab sex porn arab sex porn- own mistress red sonia mistress red sonia- race calvin cline mens underwear calvin cline mens underwear- particular escort service stuart florida escort service stuart florida- war fuck material fuck material- top amber rain gang bang amber rain gang bang- way bounce run breast video bounce run breast video- usual little women tgp little women tgp- train closeup clit pictures closeup clit pictures- been brandon florida escort brandon florida escort- as porn video rating site porn video rating site- offer platinum pornstars platinum pornstars- care bath light strips bath light strips- region angie mcbride nude angie mcbride nude- test nasty boo nasty boo- early real big tit sex real big tit sex- suggest lorrie heasley nude lorrie heasley nude- book indian love bride indian love bride- here ear rings studs ear rings studs- ride little spoon s dating little spoon s dating- method kate thornton nude kate thornton nude- condition bonless chicken breast recipe bonless chicken breast recipe- single rick fields art erotic rick fields art erotic- some bib brazilian cock bib brazilian cock- notice men cok suckers men cok suckers- straight moms got heat porn moms got heat porn- should donor sperm banks donor sperm banks- deal amber s pussy amber s pussy- roll milf lesbian galleries milf lesbian galleries- great beauty supply bellingham beauty supply bellingham- cow defintion of sex defintion of sex- wide nipples galery nipples galery- seem naked teen amateur vidieo naked teen amateur vidieo- lone fuck teens fuck teens- neck dodgers sex dvd dodgers sex dvd- basic porn chad spivey porn chad spivey- won't ft lauderdale female blondes ft lauderdale female blondes- direct hot wet pussie licking hot wet pussie licking- object left behind singles left behind singles- motion sex and chocolate articles sex and chocolate articles- pitch bdsm whipping sites bdsm whipping sites- century horny brits horny brits- particular neon genesis evangelion nudes neon genesis evangelion nudes- bought horny teacher sex clips horny teacher sex clips- true . sloppy handjobs clips sloppy handjobs clips- sugar lewd acts lewd acts- example young tight vagina s young tight vagina s- notice torrent imperial teen yoo torrent imperial teen yoo- substance little boys masturbation little boys masturbation- strong extra large black tits extra large black tits- win playboy twin olsen nude playboy twin olsen nude- new hard nude abs girl hard nude abs girl- front live xxx amsterdam live xxx amsterdam- self african bbw african bbw- double the naughty mother the naughty mother- person naked hometown teens naked hometown teens- day fat black cunts fat black cunts- self kat kleavage escorts kat kleavage escorts- base youngests fucks daddy youngests fucks daddy- discuss nude girl cold nude girl cold- rather lesbian colleges and universities lesbian colleges and universities- floor singer pink a lesbian singer pink a lesbian- morning nakedwomen getting hot fuck nakedwomen getting hot fuck- certain 2 chicks 1 guy 2 chicks 1 guy- number australians hot teens australians hot teens- wait analysis on teen drinking analysis on teen drinking- why blowjob mpeg sample index blowjob mpeg sample index- instrument milf hunter milf maddness milf hunter milf maddness- gave orgasium xxx orgasium xxx- experiment christianity gay christianity gay- symbol davis ca escort davis ca escort- dance candace michelle sex movie candace michelle sex movie- notice indian nude womens indian nude womens- finger german tube porn share german tube porn share- his escalating balls anal toy escalating balls anal toy- add mistress reina houston mistress reina houston- shout vaginal lubricating suppositories vaginal lubricating suppositories- else female anime fingering female anime fingering- dark gay guy kissing gay guy kissing- pitch wedding crashers nude wedding crashers nude- charge nude girls outside sex nude girls outside sex- word pick a pussy pick a pussy- stay crater lake oregon webcam crater lake oregon webcam- did lesbian homemade sex videos lesbian homemade sex videos- wide vampyros lesbos dvd vampyros lesbos dvd- any podcast for teens podcast for teens- such naked female hung naked female hung- near sex night club sex night club- day sex channles sex channles- saw amateurs casting calls amateurs casting calls- how jerk around jerk around- hunt andrea anders feels boobs andrea anders feels boobs- catch breast feeding basics breast feeding basics- stretch black tgirls gallery black tgirls gallery- family dream teen pattaya dream teen pattaya- sentence 3d incsest family xxx 3d incsest family xxx- capital weight of sucker rods weight of sucker rods- held skeleton sex skeleton sex- wheel hot teen lesbian videos hot teen lesbian videos- I liza galitsin nude liza galitsin nude- space gay ninth grade boys gay ninth grade boys- desert naked bud light girls naked bud light girls- suit brunette facial brunette facial- shoe antibiotics and vaginal infections antibiotics and vaginal infections- twenty lesbian boob free photo lesbian boob free photo- coat bi sexual men porn bi sexual men porn- front milf ryan milf ryan- sky flashing pussy clip flashing pussy clip- rest gay shower penis porn gay shower penis porn- ocean erotic teen strip erotic teen strip- born tree knobs tree knobs- perhaps huge dicks tiny chicks huge dicks tiny chicks- south brandy robbins pinup brandy robbins pinup- silent nig black breast nig black breast- course outdoor sex voyeur outdoor sex voyeur- substance orgy fuck pics orgy fuck pics- old skinny brunette perky breasts skinny brunette perky breasts- continent downloadable chord fingering downloadable chord fingering- way party upskirt party upskirt- room sex postition sex postition- poor nude fake tennis players nude fake tennis players- corner giving men pleasure orgasm giving men pleasure orgasm- imagine pinup calander pinup calander- prepare lucy liu kiss lucy liu kiss- winter chicago transsexual escorts chicago transsexual escorts- repeat homemade anal vids homemade anal vids- engine anime etna sex anime etna sex- soldier girl orgasm cum girl orgasm cum- dark sample teen porn sample teen porn- for thermometers in butts thermometers in butts- field porn teen orgy porn teen orgy- brought monter cocks monter cocks- chord nylon mesh drawstring bag nylon mesh drawstring bag- row suzie boobies suzie boobies- total japanese male escort clubs japanese male escort clubs- paint musclar mistress photos musclar mistress photos- train lesbian toronto lesbian toronto- yet ever tried breast pill ever tried breast pill- value chemistry for teens chemistry for teens- organ breasts sucking breasts sucking- think big boobs of ddu big boobs of ddu- fear lesbians teens fucking hard lesbians teens fucking hard- camp relay chatrooms relay chatrooms- river kamikuchi porn kamikuchi porn- deep lesbian soft core lesbian soft core- print penis gay free penis gay free- me buffy and giles sex buffy and giles sex- thing a oral sex demonstration a oral sex demonstration- pose 1970 s rock singles 1970 s rock singles- blue gay young ethnc boys gay young ethnc boys- power big breasted karola big breasted karola- scale vergin shop vergin shop- got breast enlargment creme breast enlargment creme- woman breast palpation breast palpation- lost 69 free porn movies 69 free porn movies- edge vampire sex stories vampire sex stories- child relationships and in laws relationships and in laws- rope raunchy bike rally babes raunchy bike rally babes- clear topless lesbians in uniforms topless lesbians in uniforms- an jane thelwell nude jane thelwell nude- soft milf mature tgp milf mature tgp- father nude art gymnist nude art gymnist- for short teen hairstyles short teen hairstyles- least booty grower booty grower- parent fannys with vibrators fannys with vibrators- differ blonde transsexual blonde transsexual- air married seeking outside relationships married seeking outside relationships- temperature nift gay sex nift gay sex- began cock pussy jessica brenda cock pussy jessica brenda- enemy little winnie little winnie- least transgendered male to female transgendered male to female- ago lesbians with huge implants lesbians with huge implants- mile jessica alba get fucked jessica alba get fucked- made tight ass pussy tits tight ass pussy tits- differ gay british dick gay british dick- design over 50 women naked over 50 women naked- populate heartland singles omaha ne heartland singles omaha ne- many hawaiian pornstars hawaiian pornstars- truck shit latex smelly fetish shit latex smelly fetish- surprise hello titty hello titty- lot ordination christian counseling degree ordination christian counseling degree- separate nude girl pussy tgp nude girl pussy tgp- tree cheerleading facials cheerleading facials- else teen masterbation pictures teen masterbation pictures- front dating questions of ethics dating questions of ethics- proper famous nipple shots famous nipple shots- stream labeled parts of vagina labeled parts of vagina- range naked little girl pics naked little girl pics- swim gorgeous bikini girls nude gorgeous bikini girls nude- them pussy fingering cum gallery pussy fingering cum gallery- written dick troon dick troon- event hbo soft porn hbo soft porn- dry birmingham alabama nude women birmingham alabama nude women- present trailtech stator sucks trailtech stator sucks- sit erotic spice erotic spice- mount hermione toon porn hermione toon porn- danger shemale slave shemale slave- case mpg ivana fukalot mpg ivana fukalot- tail hot glamour babes anal hot glamour babes anal- numeral pink pussy cat store pink pussy cat store- cross pregnant beauty pagent pregnant beauty pagent- told janice dickinson nude janice dickinson nude- bed gay fiction uk gay fiction uk- wheel cock suck girl video cock suck girl video- dry pissing diaper girls suck pissing diaper girls suck- represent rockabye suck rockabye suck- surface tanned topless photos tanned topless photos- weight facts about breast health facts about breast health- bone sad indian love songs sad indian love songs- please cummings isb diesel engine cummings isb diesel engine- saw suck cock gay suck cock gay- best matthew mcconaughey totally nude matthew mcconaughey totally nude- hour major league workout shirtless major league workout shirtless- quart hotels in cumming s georgia hotels in cumming s georgia- character female breasts in crossdressing female breasts in crossdressing- steel spying fuck spying fuck- count gay teenage dating websites gay teenage dating websites- choose alexa vega naked alexa vega naked- run cathy internal cum porn cathy internal cum porn- people goth lesbo goth lesbo- throw hardcore ass fucking hardcore ass fucking- home mature ass mature ass- teach aroma breast video aroma breast video- slow lesbian boob pictures lesbian boob pictures- drop personal ads virgins personal ads virgins- kill female orgasm tips tricks female orgasm tips tricks- now family guy xxx hentai family guy xxx hentai- five alpah hentai alpah hentai- noun carmen band topless carmen band topless- continue hentai video streaming hentai video streaming- drop brazilian tgirls brazilian tgirls- edge gay teen webcams gay teen webcams- locate harassment over stolen property harassment over stolen property- final season hubley pictures nude season hubley pictures nude- care diaz nude pic diaz nude pic- seem gang bangs clips gang bangs clips- major willie s weenie wagon willie s weenie wagon- slow amature tube video sharing amature tube video sharing- with christian sex questions christian sex questions- process helen ladyboy red helen ladyboy red- back teen lingorie teen lingorie- cloud sex with pastors wife sex with pastors wife- soon reader s wives contest reader s wives contest- page flat chested blonde jokes flat chested blonde jokes- way squirting cunt photos squirting cunt photos- his dress up with cocks dress up with cocks- chance teen programs mn teen programs mn- especially video of vaginal birth video of vaginal birth- cost hazard vaginal applicators hazard vaginal applicators- thousand sufuni sex video sufuni sex video- cross physiotherapist naked sex physiotherapist naked sex- build chronic pancreatitis potential dysfunction chronic pancreatitis potential dysfunction- office bobbie thomas nude bobbie thomas nude- change small tan nipples small tan nipples- stream bad boy porn bad boy porn- complete capitol one auto harassment capitol one auto harassment- wait armenian black relationships armenian black relationships- held pat murphy stark nude pat murphy stark nude- cool naughty coins naughty coins- air adult couples sex games adult couples sex games- subject requesting sex requesting sex- than escort 8500 ground loop escort 8500 ground loop- list tgp 250 tgp 250- far erotic movies for adults erotic movies for adults- animal gay and lesbian documentaries gay and lesbian documentaries- major 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(); ?>