@@ -209,15 +209,15 @@ discard block |
||
209 | 209 | 'index.php' |
210 | 210 | ); |
211 | 211 | |
212 | - $quiPart = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details') ? '&qid_details=' . intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details')) : ''; |
|
212 | + $quiPart = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details') ? '&qid_details='.intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('qid_details')) : ''; |
|
213 | 213 | |
214 | 214 | $setId = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('setID')); |
215 | 215 | |
216 | 216 | $h_func .= '<hr/>'. |
217 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.display').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[log_display]', $this->pObj->MOD_SETTINGS['log_display'], $this->pObj->MOD_MENU['log_display'], 'index.php', '&setID='.$setId) . ' - ' . |
|
218 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showresultlog').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_resultLog]', $this->pObj->MOD_SETTINGS['log_resultLog'], 'index.php', '&setID='.$setId . $quiPart) . ' - ' . |
|
219 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showfevars').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_feVars]', $this->pObj->MOD_SETTINGS['log_feVars'], 'index.php', '&setID='.$setId . $quiPart) . ' - ' . |
|
220 | - $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.itemsPerPage').': ' . |
|
217 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.display').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[log_display]', $this->pObj->MOD_SETTINGS['log_display'], $this->pObj->MOD_MENU['log_display'], 'index.php', '&setID='.$setId).' - '. |
|
218 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showresultlog').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_resultLog]', $this->pObj->MOD_SETTINGS['log_resultLog'], 'index.php', '&setID='.$setId.$quiPart).' - '. |
|
219 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.showfevars').': '.\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[log_feVars]', $this->pObj->MOD_SETTINGS['log_feVars'], 'index.php', '&setID='.$setId.$quiPart).' - '. |
|
220 | + $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.itemsPerPage').': '. |
|
221 | 221 | \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu( |
222 | 222 | $this->pObj->id, |
223 | 223 | 'SET[itemsPerPage]', |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $theOutput .= $this->pObj->doc->section($LANG->getLL('title'), $h_func, 0, 1); |
232 | 232 | |
233 | 233 | // Branch based on type: |
234 | - switch ((string)$this->pObj->MOD_SETTINGS['crawlaction']) { |
|
234 | + switch ((string) $this->pObj->MOD_SETTINGS['crawlaction']) { |
|
235 | 235 | case 'start': |
236 | 236 | if (empty($this->pObj->id)) { |
237 | 237 | $this->addErrorMessage($GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.noPageSelected')); |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | $this->downloadCrawlUrls = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('_download'); |
279 | 279 | $this->makeCrawlerProcessableChecks(); |
280 | 280 | |
281 | - switch ((string)\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('tstamp')) { |
|
281 | + switch ((string) \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('tstamp')) { |
|
282 | 282 | case 'midnight': |
283 | 283 | $this->scheduledTime = mktime(0, 0, 0); |
284 | 284 | break; |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | tx_crawler_domain_events_dispatcher::getInstance()->post( |
322 | 322 | 'invokeQueueChange', |
323 | 323 | $this->findCrawler()->setID, |
324 | - [ 'reason' => $reason ] |
|
324 | + ['reason' => $reason] |
|
325 | 325 | ); |
326 | 326 | } |
327 | 327 | |
@@ -405,11 +405,11 @@ discard block |
||
405 | 405 | $this->pObj->MOD_SETTINGS['depth'], |
406 | 406 | 0 |
407 | 407 | ); |
408 | - $availableConfigurations = $this->crawlerObj->getConfigurationsForBranch($this->pObj->id, $this->pObj->MOD_SETTINGS['depth']?$this->pObj->MOD_SETTINGS['depth']:0); |
|
408 | + $availableConfigurations = $this->crawlerObj->getConfigurationsForBranch($this->pObj->id, $this->pObj->MOD_SETTINGS['depth'] ? $this->pObj->MOD_SETTINGS['depth'] : 0); |
|
409 | 409 | |
410 | 410 | // Configurations |
411 | 411 | $cell[] = $this->selectorBox( |
412 | - empty($availableConfigurations)?[]:array_combine($availableConfigurations, $availableConfigurations), |
|
412 | + empty($availableConfigurations) ? [] : array_combine($availableConfigurations, $availableConfigurations), |
|
413 | 413 | 'configurationSelection', |
414 | 414 | $this->incomingConfigurationSelection, |
415 | 415 | 1 |
@@ -538,12 +538,12 @@ discard block |
||
538 | 538 | // Print rudimentary details: |
539 | 539 | $output .= ' |
540 | 540 | <br /><br /> |
541 | - <input type="submit" value="' . $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.back') . '" name="_back" /> |
|
542 | - <input type="hidden" value="' . $this->pObj->id . '" name="id" /> |
|
543 | - <input type="hidden" value="' . $showSetId . '" name="setID" /> |
|
541 | + <input type="submit" value="' . $GLOBALS['LANG']->sL('LLL:EXT:crawler/modfunc1/locallang.xml:labels.back').'" name="_back" /> |
|
542 | + <input type="hidden" value="' . $this->pObj->id.'" name="id" /> |
|
543 | + <input type="hidden" value="' . $showSetId.'" name="setID" /> |
|
544 | 544 | <br /> |
545 | - Current server time: ' . date('H:i:s', time()) . '<br />' . |
|
546 | - 'Status: ' . $resStatus . '<br />' . |
|
545 | + Current server time: ' . date('H:i:s', time()).'<br />'. |
|
546 | + 'Status: '.$resStatus.'<br />'. |
|
547 | 547 | \TYPO3\CMS\Core\Utility\DebugUtility::viewArray($q_entry); |
548 | 548 | } else { // Show list: |
549 | 549 | |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | foreach ($tree->tree as $data) { |
574 | 574 | $code .= $this->drawLog_addRows( |
575 | 575 | $data['row'], |
576 | - $data['HTML'] . \TYPO3\CMS\Backend\Utility\BackendUtility::getRecordTitle('pages', $data['row'], true), |
|
576 | + $data['HTML'].\TYPO3\CMS\Backend\Utility\BackendUtility::getRecordTitle('pages', $data['row'], true), |
|
577 | 577 | intval($this->pObj->MOD_SETTINGS['itemsPerPage']) |
578 | 578 | ); |
579 | 579 | if (++$count == 1000) { |
@@ -627,7 +627,7 @@ discard block |
||
627 | 627 | $cc = 0; |
628 | 628 | foreach ($setList as $set) { |
629 | 629 | $code .= ' |
630 | - <tr class="bgColor'.($cc % 2 ? '-20':'-10').'"> |
|
630 | + <tr class="bgColor'.($cc % 2 ? '-20' : '-10').'"> |
|
631 | 631 | <td><a href="'.htmlspecialchars('index.php?setID='.$set['set_id']).'">'.$set['set_id'].'</a></td> |
632 | 632 | <td>'.$set['count_value'].'</td> |
633 | 633 | <td>'.\TYPO3\CMS\Backend\Utility\BackendUtility::dateTimeAge($set['scheduled']).'</td> |
@@ -767,14 +767,14 @@ discard block |
||
767 | 767 | } |
768 | 768 | |
769 | 769 | $setId = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('setID')); |
770 | - $refreshIcon = $GLOBALS['BACK_PATH'] . 'sysext/t3skin/extjs/images/grid/refresh.gif'; |
|
770 | + $refreshIcon = $GLOBALS['BACK_PATH'].'sysext/t3skin/extjs/images/grid/refresh.gif'; |
|
771 | 771 | |
772 | 772 | // Put rows together: |
773 | 773 | $content .= ' |
774 | - <tr class="bgColor'.($c % 2 ? '-20':'-10').'"> |
|
774 | + <tr class="bgColor'.($c % 2 ? '-20' : '-10').'"> |
|
775 | 775 | '.$titleClm.' |
776 | - <td><a href="' . $this->getModuleUrl(['qid_details' => $vv['qid'], 'setID' => $setId]) . '">'.htmlspecialchars($vv['qid']).'</a></td> |
|
777 | - <td><a href="' . $this->getModuleUrl(['qid_read' => $vv['qid'], 'setID' => $setId]) . '"><img src="' . $refreshIcon . '" width="14" hspace="1" vspace="2" height="14" border="0" title="'.htmlspecialchars('Read').'" alt="" /></a></td>'; |
|
776 | + <td><a href="' . $this->getModuleUrl(['qid_details' => $vv['qid'], 'setID' => $setId]).'">'.htmlspecialchars($vv['qid']).'</a></td> |
|
777 | + <td><a href="' . $this->getModuleUrl(['qid_read' => $vv['qid'], 'setID' => $setId]).'"><img src="'.$refreshIcon.'" width="14" hspace="1" vspace="2" height="14" border="0" title="'.htmlspecialchars('Read').'" alt="" /></a></td>'; |
|
778 | 778 | foreach ($rowData as $fKey => $value) { |
779 | 779 | if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList('url', $fKey)) { |
780 | 780 | $content .= ' |
@@ -999,7 +999,7 @@ discard block |
||
999 | 999 | |
1000 | 1000 | $exitCode = 0; |
1001 | 1001 | $out = []; |
1002 | - exec(escapeshellcmd($this->extensionSettings['phpPath'] . ' -v'), $out, $exitCode); |
|
1002 | + exec(escapeshellcmd($this->extensionSettings['phpPath'].' -v'), $out, $exitCode); |
|
1003 | 1003 | if ($exitCode > 0) { |
1004 | 1004 | $this->addErrorMessage(sprintf($LANG->sL('LLL:EXT:crawler/modfunc1/locallang.xml:message.phpBinaryNotFound'), htmlspecialchars($this->extensionSettings['phpPath']))); |
1005 | 1005 | } |
@@ -1207,10 +1207,10 @@ discard block |
||
1207 | 1207 | $options = []; |
1208 | 1208 | foreach ($optArray as $key => $val) { |
1209 | 1209 | $options[] = ' |
1210 | - <option value="'.htmlspecialchars($key).'"'.((!$multiple && !strcmp($value, $key)) || ($multiple && in_array($key, (array)$value))?' selected="selected"':'').'>'.htmlspecialchars($val).'</option>'; |
|
1210 | + <option value="'.htmlspecialchars($key).'"'.((!$multiple && !strcmp($value, $key)) || ($multiple && in_array($key, (array) $value)) ? ' selected="selected"' : '').'>'.htmlspecialchars($val).'</option>'; |
|
1211 | 1211 | } |
1212 | 1212 | |
1213 | - $output = '<select name="'.htmlspecialchars($name.($multiple?'[]':'')).'"'.($multiple ? ' multiple="multiple" size="'.count($options).'"' : '').'>'.implode('', $options).'</select>'; |
|
1213 | + $output = '<select name="'.htmlspecialchars($name.($multiple ? '[]' : '')).'"'.($multiple ? ' multiple="multiple" size="'.count($options).'"' : '').'>'.implode('', $options).'</select>'; |
|
1214 | 1214 | |
1215 | 1215 | return $output; |
1216 | 1216 | } |