29 $GLOBALS[
'LANG']->includeLLFile(
'EXT:indexed_search/modfunc2/locallang.xlf');
40 $theOutput = $this->pObj->doc->header(
$GLOBALS[
'LANG']->getLL(
'title'));
41 $theOutput .= $this->pObj->doc->section(
'', $this->
showStats(), 0, 1);
44 $menu[] = $functionMenu .
'<label for="checkTx_indexedsearch_modfunc2_check"' .
$GLOBALS[
'LANG']->getLL(
'checklabel') .
'</label>';
45 $theOutput .= $this->pObj->doc->spacer(5);
66 $addwhere2 =
' AND tstamp > ' . (
$GLOBALS[
'EXEC_TIME'] - 30 * 24 * 60 * 60);
69 $addwhere3 =
' AND tstamp > ' . (
$GLOBALS[
'EXEC_TIME'] - 24 * 60 * 60);
72 $content =
'<p class="lead">' .
$GLOBALS[
'LANG']->getLL(
'title2') .
'</p>';
73 $content .=
'<table cellpading="5" cellspacing="5" valign="top" class=""><tr><td valign="top">' . $this->
listSeveralStats(
$GLOBALS[
'LANG']->getLL(
'all'), $addwhere1, $conf) .
'</td><td valign="top">' . $this->
listSeveralStats(
$GLOBALS[
'LANG']->getLL(
'last30days'), $addwhere2, $conf) .
'</td><td valign="top">' . $this->
listSeveralStats(
$GLOBALS[
'LANG']->getLL(
'last24hours'), $addwhere3, $conf) .
'</td></tr></table>';
74 $content .=
'<p>' . $this->note .
'</p>';
77 if ($hookObj = $this->
hookRequest(
'additionalSearchStat')) {
78 $content .= $hookObj->additionalSearchStat();
94 $queryParts[
'SELECT'] =
'word, COUNT(*) AS c';
95 $queryParts[
'FROM'] =
'index_stat_word';
96 $queryParts[
'WHERE'] = sprintf(
'pageid= %d ' . $addwhere, $conf[
'bid']);
97 $queryParts[
'GROUPBY'] =
'word';
98 $queryParts[
'ORDERBY'] =
'c DESC,word';
99 $queryParts[
'LIMIT'] = $conf[
'words'];
100 $res =
$GLOBALS[
'TYPO3_DB']->exec_SELECTquery($queryParts[
'SELECT'], $queryParts[
'FROM'], $queryParts[
'WHERE'], $queryParts[
'GROUPBY'], $queryParts[
'ORDERBY'], $queryParts[
'LIMIT']);
102 $count =
$GLOBALS[
'TYPO3_DB']->sql_num_rows($res);
108 $this->note = $LANG->getLL(
'justthispage');
111 $secureaddwhere =
' AND pageid IN (' . $this->
extGetTreeList($conf[
'bid'], 100, 0,
'1=1') . $conf[
'bid'] .
') ';
112 $this->note = $LANG->getLL(
'allpages');
113 $queryParts[
'WHERE'] =
'1=1 ' . $addwhere . $secureaddwhere;
116 $res =
$GLOBALS[
'TYPO3_DB']->exec_SELECTquery($queryParts[
'SELECT'], $queryParts[
'FROM'], $queryParts[
'WHERE'], $queryParts[
'GROUPBY'], $queryParts[
'ORDERBY'], $queryParts[
'LIMIT']);
120 while ($row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res)) {
122 $table1 .=
'<tr class="bgColor4"><td>' . $i .
'.</td><td>' . htmlspecialchars($row[
'word']) .
'</td><td> ' . $row[
'c'] .
'</td></tr>';
126 $table1 =
'<tr class="bgColor4"><td callspan="3">' . $LANG->getLL(
'noresults') .
'</td></tr>';
128 $table1 =
'<table class="bgColor5" cellpadding="2" cellspacing="1"><tr class="tableheader"><td colspan="3">' . $title .
'</td></tr>' . $table1 .
'</table>';
129 return $note . $table1;
148 return GeneralUtility::makeInstance(
'TYPO3\\CMS\\Backend\\FrontendBackendUserAuthentication')->extGetTreeList($id, $depth, $begin, $perms_clause);
161 if (
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXTCONF'][
'indexed_search'][
'be_hooks'][$functionName]) {
163 if (method_exists($hookObj, $functionName)) {
164 $hookObj->pObj = $this;
static getFuncCheck($mainParams, $elementName, $currentValue, $script='', $addParams='', $tagParams='')
static getUserObj($classRef, $checkPrefix='', $silent=FALSE)
static makeInstance($className)
hookRequest($functionName)
extGetTreeList($id, $depth, $begin=0, $perms_clause)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
listSeveralStats($title, $addwhere, $conf)