00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00109 class t3lib_pageSelect {
00110 var $urltypes = Array('','http:
00111 var $where_hid_del = ' AND pages.deleted=0';
00112 var $where_groupAccess = '';
00113 var $sys_language_uid = 0;
00114
00115
00116 var $versioningPreview = FALSE;
00117 var $versioningWorkspaceId = 0;
00118
00119
00120
00121
00122 var $error_getRootLine = '';
00123 var $error_getRootLine_failPid = 0;
00124
00125
00134 function init($show_hidden) {
00135 $this->where_groupAccess = '';
00136 $this->where_hid_del = ' AND pages.deleted=0 ';
00137 if (!$show_hidden) {
00138 $this->where_hid_del.= 'AND pages.hidden=0 ';
00139 }
00140 $this->where_hid_del.= 'AND (pages.starttime<='.$GLOBALS['SIM_EXEC_TIME'].') AND (pages.endtime=0 OR pages.endtime>'.$GLOBALS['SIM_EXEC_TIME'].') ';
00141
00142
00143 if (!$this->versioningPreview) {
00144 $this->where_hid_del.= ' AND NOT(pages.t3ver_state=1)';
00145 } else {
00146
00147 $this->versioningPreview_where_hid_del = $this->where_hid_del;
00148 $this->where_hid_del = ' AND pages.deleted=0 ';
00149 }
00150 }
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00184 function getPage($uid, $disableGroupAccessCheck=FALSE) {
00185 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages', 'uid='.intval($uid).$this->where_hid_del.($disableGroupAccessCheck ? '' : $this->where_groupAccess));
00186 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00187 $this->versionOL('pages',$row);
00188 if (is_array($row)) return $this->getPageOverlay($row);
00189 }
00190 return Array();
00191 }
00192
00200 function getPage_noCheck($uid) {
00201 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages', 'uid='.intval($uid).$this->deleteClause('pages'));
00202 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00203 $this->versionOL('pages',$row);
00204 if (is_array($row)) return $this->getPageOverlay($row);
00205 }
00206 return Array();
00207 }
00208
00216 function getFirstWebPage($uid) {
00217 $output = '';
00218 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'pages', 'pid='.intval($uid).$this->where_hid_del.$this->where_groupAccess, '', 'sorting', '1');
00219 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00220 $this->versionOL('pages',$row);
00221 if (is_array($row)) $output = $this->getPageOverlay($row);
00222 }
00223 $GLOBALS['TYPO3_DB']->sql_free_result($res);
00224 return $output;
00225 }
00226
00234 function getPageIdFromAlias($alias) {
00235 $alias = strtolower($alias);
00236 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'alias='.$GLOBALS['TYPO3_DB']->fullQuoteStr($alias, 'pages').' AND pid>=0 AND pages.deleted=0');
00237 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00238 return $row['uid'];
00239 }
00240 return 0;
00241 }
00242
00250 function getPageOverlay($pageInput,$lUid=-1) {
00251
00252
00253 if ($lUid<0) $lUid = $this->sys_language_uid;
00254 $row = NULL;
00255
00256
00257 if ($lUid) {
00258 $fieldArr = explode(',', $GLOBALS['TYPO3_CONF_VARS']['FE']['pageOverlayFields']);
00259 if (is_array($pageInput)) {
00260 $page_id = $pageInput['uid'];
00261 $fieldArr = array_intersect($fieldArr,array_keys($pageInput));
00262 } else {
00263 $page_id = $pageInput;
00264 }
00265
00266 if (count($fieldArr)) {
00267
00268
00269
00270
00271
00272
00273
00274 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
00275 implode(',',$fieldArr),
00276 'pages_language_overlay',
00277 'pid='.intval($page_id).'
00278 AND sys_language_uid='.intval($lUid).
00279 $this->enableFields('pages_language_overlay'),
00280 '',
00281 '',
00282 '1'
00283 );
00284 $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
00285 $this->versionOL('pages_language_overlay',$row);
00286
00287 if (is_array($row)) {
00288 $row['_PAGES_OVERLAY'] = TRUE;
00289
00290
00291 unset($row['uid']);
00292 unset($row['pid']);
00293 }
00294 }
00295 }
00296
00297
00298 if (is_array($pageInput)) {
00299 return is_array($row) ? array_merge($pageInput,$row) : $pageInput;
00300 } else {
00301 return is_array($row) ? $row : array();
00302 }
00303 }
00304
00314 function getRecordOverlay($table,$row,$sys_language_content,$OLmode='') {
00315 global $TCA;
00316
00317 if ($row['uid']>0 && $row['pid']>0) {
00318 if ($TCA[$table] && $TCA[$table]['ctrl']['languageField'] && $TCA[$table]['ctrl']['transOrigPointerField']) {
00319 if (!$TCA[$table]['ctrl']['transOrigPointerTable']) {
00320
00321
00322 if ($sys_language_content>0) {
00323
00324
00325 if ($row[$TCA[$table]['ctrl']['languageField']]<=0) {
00326
00327
00328 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
00329 '*',
00330 $table,
00331 'pid='.intval($row['pid']).
00332 ' AND '.$TCA[$table]['ctrl']['languageField'].'='.intval($sys_language_content).
00333 ' AND '.$TCA[$table]['ctrl']['transOrigPointerField'].'='.intval($row['uid']).
00334 $this->enableFields($table),
00335 '',
00336 '',
00337 '1'
00338 );
00339 $olrow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
00340 $this->versionOL($table,$olrow);
00341 #debug($row);
00342 #debug($olrow);
00343
00344 if (is_array($olrow)) {
00345 foreach($row as $fN => $fV) {
00346 if ($fN!='uid' && $fN!='pid' && isset($olrow[$fN])) {
00347
00348 if ($GLOBALS['TSFE']->TCAcachedExtras[$table]['l10n_mode'][$fN]!='exclude'
00349 && ($GLOBALS['TSFE']->TCAcachedExtras[$table]['l10n_mode'][$fN]!='mergeIfNotBlank' || strcmp(trim($olrow[$fN]),''))) {
00350 $row[$fN] = $olrow[$fN];
00351 }
00352 } elseif ($fN=='uid') {
00353 $row['_LOCALIZED_UID'] = $olrow['uid'];
00354 }
00355 }
00356 } elseif ($OLmode==='hideNonTranslated' && $row[$TCA[$table]['ctrl']['languageField']]==0) {
00357 unset($row);
00358 }
00359
00360
00361 } elseif ($sys_language_content!=$row[$TCA[$table]['ctrl']['languageField']]) {
00362 unset($row);
00363 }
00364 } else {
00365
00366 if ($row[$TCA[$table]['ctrl']['languageField']]>0) {
00367 unset($row);
00368 }
00369 }
00370 }
00371 }
00372 }
00373
00374 return $row;
00375 }
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00413 function getMenu($uid,$fields='*',$sortField='sorting',$addWhere='',$checkShortcuts=1) {
00414
00415 $output = Array();
00416 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($fields, 'pages', 'pid='.intval($uid).$this->where_hid_del.$this->where_groupAccess.' '.$addWhere, '', $sortField);
00417 while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00418 $this->versionOL('pages',$row);
00419
00420 if (is_array($row)) {
00421
00422 $origUid = $row['uid'];
00423 $mount_info = $this->getMountPointInfo($origUid, $row);
00424 if (is_array($mount_info) && $mount_info['overlay']) {
00425 $mp_row = $this->getPage($mount_info['mount_pid']);
00426 if (count($mp_row)) {
00427 $row = $mp_row;
00428 $row['_MP_PARAM'] = $mount_info['MPvar'];
00429 } else unset($row);
00430 }
00431
00432
00433 if ($row['doktype'] == 4 && ($row['shortcut'] || $row['shortcut_mode']) && $checkShortcuts) {
00434 if ($row['shortcut_mode'] == 0) {
00435 $searchField = 'uid';
00436 $searchUid = intval($row['shortcut']);
00437 } else {
00438 $searchField = 'pid';
00439
00440 $searchUid = intval($row['shortcut'])?intval($row['shortcut']):$row['uid'];
00441 }
00442 $res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', $searchField.'='.$searchUid.$this->where_hid_del.$this->where_groupAccess.' '.$addWhere, '', $sortField);
00443 if (!$GLOBALS['TYPO3_DB']->sql_num_rows($res2)) {
00444 unset($row);
00445 }
00446 $GLOBALS['TYPO3_DB']->sql_free_result($res2);
00447 } elseif ($row['doktype'] == 4 && $checkShortcuts) {
00448
00449 unset($row);
00450 }
00451
00452
00453 if (is_array($row)) {
00454 $output[$origUid] = $this->getPageOverlay($row);
00455 }
00456 }
00457 }
00458 return $output;
00459 }
00460
00471 function getDomainStartPage($domain, $path='',$request_uri='') {
00472 $domain = explode(':',$domain);
00473 $domain = strtolower(ereg_replace('\.$','',$domain[0]));
00474
00475 $path = trim(ereg_replace('\/[^\/]*$','',$path));
00476
00477 $domain.= $path;
00478 $domain = ereg_replace('\
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492
00493
00494
00495
00496
00497
00498
00499
00500
00501
00502
00503
00504
00505
00506
00519
00520
00521
00522
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539
00540
00541
00542
00543
00544
00545
00546
00547
00548
00549
00550
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568
00569
00570
00571
00572
00573
00574
00575
00576
00577
00578
00579
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599
00600
00601
00602
00603
00604
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622
00623
00624
00625
00626
00627
00628
00629
00630
00640
00641
00642
00643
00644
00645
00646
00647
00648
00649
00650
00651
00652
00661
00662
00663
00664
00665
00666
00667
00668
00669
00670
00671
00672
00673
00685
00686
00687
00688
00689
00690
00691
00692
00693
00694
00695
00696
00697
00698
00699
00700
00701
00702
00703
00704
00705
00706
00707
00708
00709
00710
00711
00712
00713
00714
00715
00716
00717
00718
00719
00720
00721
00722
00723
00724
00725
00726
00727
00728
00729
00730
00731
00732
00733
00734
00735
00736
00737
00738
00739
00740
00741
00742
00743
00744
00745
00746
00747
00748
00749
00750
00751
00752
00762 function checkRecord($table,$uid,$checkPage=0) {
00763 global $TCA;
00764 $uid = intval($uid);
00765 if (is_array($TCA[$table])) {
00766 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $table, 'uid='.intval($uid).$this->enableFields($table));
00767 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00768 $this->versionOL($table,$row);
00769 $GLOBALS['TYPO3_DB']->sql_free_result($res);
00770
00771 if (is_array($row)) {
00772 if ($checkPage) {
00773 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'uid='.intval($row['pid']).$this->enableFields('pages'));
00774 if ($GLOBALS['TYPO3_DB']->sql_num_rows($res)) {
00775 return $row;
00776 } else {
00777 return 0;
00778 }
00779 } else {
00780 return $row;
00781 }
00782 }
00783 }
00784 }
00785 }
00786
00797 function getRawRecord($table,$uid,$fields='*',$noWSOL=FALSE) {
00798 global $TCA;
00799 $uid = intval($uid);
00800 if (is_array($TCA[$table]) || $table=='pages') {
00801 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($fields, $table, 'uid='.intval($uid).$this->deleteClause($table));
00802 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00803 if (!$noWSOL) {
00804 $this->versionOL($table,$row);
00805 }
00806 if (is_array($row)) return $row;
00807 }
00808 }
00809 }
00810
00823 function getRecordsByField($theTable,$theField,$theValue,$whereClause='',$groupBy='',$orderBy='',$limit='') {
00824 global $TCA;
00825 if (is_array($TCA[$theTable])) {
00826 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
00827 '*',
00828 $theTable,
00829 $theField.'='.$GLOBALS['TYPO3_DB']->fullQuoteStr($theValue, $theTable).
00830 $this->deleteClause($theTable).' '.
00831 $whereClause,
00832 $groupBy,
00833 $orderBy,
00834 $limit
00835 );
00836 $rows = array();
00837 while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00838 #$this->versionOL($theTable,$row); // not used since records here are fetched based on other fields than uid!
00839 if (is_array($row)) $rows[] = $row;
00840 }
00841 $GLOBALS['TYPO3_DB']->sql_free_result($res);
00842 if (count($rows)) return $rows;
00843 }
00844 }
00845
00846
00847
00848
00849
00850
00851
00852
00853
00854
00855
00856
00857
00858
00859
00860
00861
00862
00863
00864
00875 function getHash($hash,$expTime=0) {
00876
00877 $expTime = intval($expTime);
00878 if ($expTime) {
00879 $whereAdd = ' AND tstamp > '.(time()-$expTime);
00880 }
00881 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('content', 'cache_hash', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($hash, 'cache_hash').$whereAdd);
00882 if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00883 $GLOBALS['TYPO3_DB']->sql_free_result($res);
00884 return $row['content'];
00885 }
00886 }
00887
00898 function storeHash($hash,$data,$ident) {
00899 $insertFields = array(
00900 'hash' => $hash,
00901 'content' => $data,
00902 'ident' => $ident,
00903 'tstamp' => time()
00904 );
00905 $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_hash', 'hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($hash, 'cache_hash'));
00906 $GLOBALS['TYPO3_DB']->exec_INSERTquery('cache_hash', $insertFields);
00907 }
00908
00916 function deleteClause($table) {
00917 global $TCA;
00918 if (!strcmp($table,'pages')) {
00919 return ' AND pages.deleted=0';
00920 } else {
00921 return $TCA[$table]['ctrl']['delete'] ? ' AND '.$table.'.'.$TCA[$table]['ctrl']['delete'].'=0' : '';
00922 }
00923 }
00924
00936 function enableFields($table,$show_hidden=-1,$ignore_array=array(),$noVersionPreview=FALSE) {
00937 global $TYPO3_CONF_VARS;
00938
00939 if ($show_hidden==-1 && is_object($GLOBALS['TSFE'])) {
00940 $show_hidden = $table=='pages' ? $GLOBALS['TSFE']->showHiddenPage : $GLOBALS['TSFE']->showHiddenRecords;
00941 }
00942 if ($show_hidden==-1) $show_hidden=0;
00943
00944 $ctrl = $GLOBALS['TCA'][$table]['ctrl'];
00945 $query='';
00946 if (is_array($ctrl)) {
00947
00948
00949 if ($ctrl['delete']) {
00950 $query.=' AND '.$table.'.'.$ctrl['delete'].'=0';
00951 }
00952
00953
00954 if ($ctrl['versioningWS'] && !$this->versioningPreview) {
00955 $query.=' AND '.$table.'.t3ver_state!=1';
00956 }
00957
00958
00959 if (is_array($ctrl['enablecolumns'])) {
00960 if (!$this->versioningPreview || !$ctrl['versioningWS'] || $noVersionPreview) {
00961 if ($ctrl['enablecolumns']['disabled'] && !$show_hidden && !$ignore_array['disabled']) {
00962 $field = $table.'.'.$ctrl['enablecolumns']['disabled'];
00963 $query.=' AND '.$field.'=0';
00964 }
00965 if ($ctrl['enablecolumns']['starttime'] && !$ignore_array['starttime']) {
00966 $field = $table.'.'.$ctrl['enablecolumns']['starttime'];
00967 $query.=' AND ('.$field.'<='.$GLOBALS['SIM_EXEC_TIME'].')';
00968 }
00969 if ($ctrl['enablecolumns']['endtime'] && !$ignore_array['endtime']) {
00970 $field = $table.'.'.$ctrl['enablecolumns']['endtime'];
00971 $query.=' AND ('.$field.'=0 OR '.$field.'>'.$GLOBALS['SIM_EXEC_TIME'].')';
00972 }
00973 if ($ctrl['enablecolumns']['fe_group'] && !$ignore_array['fe_group']) {
00974 $field = $table.'.'.$ctrl['enablecolumns']['fe_group'];
00975 $query.= $this->getMultipleGroupsWhereClause($field, $table);
00976 }
00977
00978
00979
00980 if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_page.php']['addEnableColumns'])) {
00981 $_params = array(
00982 'table' => $table,
00983 'show_hidden' => $show_hidden,
00984 'ignore_array' => $ignore_array,
00985 'ctrl' => $ctrl
00986 );
00987 foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_page.php']['addEnableColumns'] as $_funcRef) {
00988 $query .= t3lib_div::callUserFunction($_funcRef,$_params,$this);
00989 }
00990 }
00991 }
00992 }
00993 } else {
00994 die ('NO entry in the $TCA-array for the table "'.$table.'". This means that the function enableFields() is called with an invalid table name as argument.');
00995 }
00996
00997 return $query;
00998 }
00999
01008 function getMultipleGroupsWhereClause($field, $table) {
01009 $memberGroups = t3lib_div::intExplode(',',$GLOBALS['TSFE']->gr_list);
01010 $orChecks=array();
01011 $orChecks[]=$field.'=\'\'';
01012 $orChecks[]=$field.' IS NULL';
01013 $orChecks[]=$field.'=\'0\'';
01014
01015 foreach($memberGroups as $value) {
01016 $orChecks[] = $GLOBALS['TYPO3_DB']->listQuery($field, $value, $table);
01017 }
01018
01019 return ' AND ('.implode(' OR ',$orChecks).')';
01020 }
01021
01022
01023
01024
01025
01026
01027
01028
01029
01030
01031
01032
01033
01034
01035
01036
01037
01038
01039
01040
01041
01054 function fixVersioningPid($table,&$rr) {
01055 global $TCA;
01056
01057 if ($this->versioningPreview && is_array($rr) && $rr['pid']==-1 && ($table=='pages' || $TCA[$table]['ctrl']['versioningWS'])) {
01058
01059
01060 if (isset($rr['t3ver_oid']) && isset($rr['t3ver_wsid'])) {
01061 $oid = $rr['t3ver_oid'];
01062 $wsid = $rr['t3ver_wsid'];
01063 } else {
01064 $newPidRec = $this->getRawRecord($table,$rr['uid'],'t3ver_oid,t3ver_wsid',TRUE);
01065 if (is_array($newPidRec)) {
01066 $oid = $newPidRec['t3ver_oid'];
01067 $wsid = $newPidRec['t3ver_wsid'];
01068 }
01069 }
01070
01071
01072 if ($oid && !strcmp((int)$wsid,$this->versioningWorkspaceId)) {
01073 $oidRec = $this->getRawRecord($table,$oid,'pid',TRUE);
01074
01075 if (is_array($oidRec)) {
01076 # SWAP uid as well? Well no, because when fixing a versioning PID happens it is assumed that this is a "branch" type page and therefore the uid should be kept (like in versionOL()). However if the page is NOT a branch version it should not happen - but then again, direct access to that uid should not happen!
01077 $rr['_ORIG_pid'] = $rr['pid'];
01078 $rr['pid'] = $oidRec['pid'];
01079 }
01080 }
01081 }
01082 }
01083
01095 function versionOL($table,&$row) {
01096 global $TCA;
01097
01098 if ($this->versioningPreview && is_array($row)) {
01099 if ($wsAlt = $this->getWorkspaceVersionOfRecord($this->versioningWorkspaceId, $table, $row['uid'], implode(',',array_keys($row)))) {
01100 if (is_array($wsAlt)) {
01101
01102
01103 $wsAlt['_ORIG_pid'] = $wsAlt['pid'];
01104 $wsAlt['pid'] = $row['pid'];
01105
01106
01107
01108
01109 if ($table!=='pages' || $wsAlt['t3ver_swapmode']<=0) {
01110 $wsAlt['_ORIG_uid'] = $wsAlt['uid'];
01111 $wsAlt['uid'] = $row['uid'];
01112
01113
01114 if ($table==='pages') {
01115 $wsAlt['alias'] = $row['alias'];
01116 }
01117 } else {
01118
01119
01120 $wsAlt['_ONLINE_uid'] = $row['uid'];
01121 }
01122
01123
01124 $row = $wsAlt;
01125
01126
01127 if ((int)$row['t3ver_state']===2) {
01128 $row = FALSE;
01129 }
01130 } else {
01131
01132 if ($wsAlt==-1 || (int)$row['t3ver_state']===1) {
01133 $row = FALSE;
01134 }
01135 }
01136 }
01137 }
01138 }
01139
01150 function getWorkspaceVersionOfRecord($workspace, $table, $uid, $fields='*') {
01151 global $TCA;
01152
01153 if ($workspace!==0 && ($table=='pages' || $TCA[$table]['ctrl']['versioningWS'])) {
01154
01155
01156 if ($table=='pages') {
01157 $enFields = $this->versioningPreview_where_hid_del;
01158 } else {
01159 $enFields = $this->enableFields($table,-1,array(),TRUE);
01160 }
01161
01162
01163 list($newrow) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
01164 $fields,
01165 $table,
01166 'pid=-1 AND
01167 t3ver_oid='.intval($uid).' AND
01168 t3ver_wsid='.intval($workspace).
01169 $this->deleteClause($table)
01170 );
01171
01172
01173 if (is_array($newrow)) {
01174 if ($GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
01175 'uid',
01176 $table,
01177 'pid=-1 AND
01178 t3ver_oid='.intval($uid).' AND
01179 t3ver_wsid='.intval($workspace).
01180 $enFields
01181 )) {
01182 return $newrow;
01183 } else {
01184 return -1;
01185 }
01186 } else {
01187
01188 if ($GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
01189 'uid',
01190 $table,
01191 'uid='.intval($uid).$enFields
01192 )) {
01193 return 1;
01194 } else {
01195 return -1;
01196 }
01197 }
01198 }
01199
01200 return FALSE;
01201 }
01202 }
01203
01204
01205
01206 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_page.php']) {
01207 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_page.php']);
01208 }
01209 ?>