Lines Matching refs:functions

36     public $functions = null;  variable in action_plugin_siteexport_ajax
94 $this->functions->debug->message("========================================", null, 1);
95 $this->functions->debug->message("Starting export from URL call", null, 1);
96 $this->functions->debug->message("----------------------------------------", null, 1);
103 $_REQUEST['sectok'] = $this->functions->getSecurityToken();
120 if ( count($data) == 0 && !$this->functions->settings->hasValidCacheFile ) {
133 … $this->functions->debug->message("----------------------------------------", null, 1);
134 … $this->functions->debug->message("Errors during export from URL call", null, 1);
135 … $this->functions->debug->message("========================================", null, 1);
136 print $this->functions->debug->runtimeErrors;
144 $this->functions->debug->message("Will Redirect", null, 1);
146 $this->functions->startRedirctProcess($counter);
150 $this->functions->debug->message("----------------------------------------", null, 1);
151 $this->functions->debug->message("Finishing export from URL call", null, 1);
152 $this->functions->debug->message("========================================", null, 1);
156 …his->functions->settings->origZipFile, array('cache' => 'nocache', 'siteexport' => $this->function…
157 $this->functions->debug->message("Redirecting to final file", $URL, 2);
166 if (!empty($this->functions->debug->runtimeErrors))
168 …$this->filewriter->__moveDataToZip($this->functions->debug->runtimeErrors, '_runtime_error/' . tim…
178 $this->functions = new siteexport_functions(true, $isAJAX);
179 $this->filewriter = new siteexport_zipfilewriter($this->functions);
183 $this->functions->settings->fileType = 'pdf';
198 $this->functions->debug->message("Prepared URL and POST from Request:", $_REQUEST, 2);
199 $url = $this->functions->prepare_POSTData($_REQUEST);
200 $combined = $this->functions->urlToPathAndParams($url);
204 $this->functions->debug->message("Prepared URL and POST data:", $return, 2);
224 $this->functions->debug->message("Generating Direct Download URL", $url, 2);
227 if (!$this->functions->debug->firstRE()) {
228 …$this->functions->debug->message("There have been errors while generating the download URLs.", nul…
242 $this->functions->debug->message("Checking for Cron parameters: ", $combined, 1);
263 … $this->functions->debug->runtimeException("No data generated. List of Files is 'false'.");
267 if (empty($data) && !$this->functions->settings->hasValidCacheFile)
269 $this->functions->debug->runtimeException("Generated list is empty.");
274 if (!$this->functions->debug->firstRE())
276 … $this->functions->debug->message("There have been errors while generating site list.", null, 4);
280 echo "{$this->functions->settings->pattern}\n";
281 echo $this->functions->downloadURL() . "\n";
293 $this->functions->debug->message("Had a valid cache file and will use it.", null, 2);
294 print $this->functions->downloadURL();
300 $this->functions->debug->message("Will create a new cache thing.", null, 2);
316 $this->functions->debug->message("========================================", null, 1);
317 $this->functions->debug->message("Starting export from AJAX call", null, 1);
318 $this->functions->debug->message("----------------------------------------", null, 1);
322 $this->functions->debug->message("----------------------------------------", null, 1);
323 $this->functions->debug->message("Errors during export from AJAX call", null, 1);
324 $this->functions->debug->message("========================================", null, 1);
328 $this->functions->debug->message("----------------------------------------", null, 1);
329 $this->functions->debug->message("Finishing export from AJAX call", null, 1);
330 $this->functions->debug->message("========================================", null, 1);
336 if (!$this->functions->debug->firstRE()) {
337 $this->functions->debug->message("There have been errors during the export.", null, 4);
341 print $this->functions->downloadURL();
352 $NS = $this->namespace = $this->functions->getNamespaceFromID($NS, $PAGE);
353 …$this->functions->debug->message("ROOT Namespace to export from: '{$NS}' / {$this->namespace}", nu…
361 $PAGE = $this->functions->cleanID(str_replace(":", "/", $NS . ':' . $PAGE));
368 $this->functions->debug->message("Checking for Cache, depthType:0", null, 2);
374 $this->functions->debug->message("Exporting the following sites: ", $data, 2);
386 $this->functions->debug->message("Options", $opts, 2);
392 if (!$this->functions->settings->useTOCFile) {
395 $this->functions->debug->message("Using TOC for data", null, 2);
418 $this->functions->debug->message("Checking for Cache after lookup of pages", null, 2);
424 $this->functions->debug->message("Exporting the following sites: ", $data, 2);
432 $this->functions->debug->runtimeException("Can't remove old files.");
440 $this->functions->debug->message("List is empty I guess. Used NS: '{$NS}' ", null, 1);
450 $toc = new siteexport_toc($this->functions, $NS);
451 $this->functions->debug->message("Generating eclipseDocZip", null, 2);
456 $toc = new siteexport_javahelp($this->functions, $this->filewriter, $NS);
478 $this->functions->debug->message("========================================", null, 2);
479 $this->functions->debug->message("Adding Site: '$ID'", null, 2);
480 $this->functions->debug->message("----------------------------------------", $_REQUEST, 2);
482 $request = $this->functions->settings->additionalParameters;
511 $this->functions->debug->message("REQUEST for add_site:", $request, 2);
513 $ID = $this->functions->cleanID($ID);
514 $url = $this->functions->wl($ID, $request, true, '&');
517 $CURRENT_PARENT = $fileName = $this->functions->getSiteName($ID, true);
518 $this->functions->debug->message("Filename could be:", $fileName, 2);
521 $this->functions->settings->depth = str_repeat('../', count(explode('/', $fileName))-1);
526 …$this->functions->debug->runtimeException("Creating temporary download file failed for '$url'. See…
534 … $this->functions->debug->message("Will replace old filename '{$fileName}' with {$ID}", null, 1);
539 …$fileName = $dirname . '/' . $this->functions->cleanID($this->functions->getSiteTitle($ID)) . '.' …
542 …$this->functions->debug->message("Will replace old filename '{$fileName}' with {$dirname}/{$tmpFil…
550 $this->functions->debug->message("Could not remove temporary file", $tmpFile[0], 1);
563 $EXCLUDE = $this->functions->settings->excludePattern;
567 $this->functions->debug->message("Checking for exclude: ", array(
576 $http = new HTTPProxy($this->functions);
580 $this->functions->addAdditionalParametersToURL($URL, $newAdditionalParameters);
582 $this->functions->debug->message("Fetching URL: '$URL'", null, 2);
587 if ( $http->status != 200 && $this->functions->settings->ignoreNon200 ) {
588 …$this->functions->debug->message("HTTP status was '{$http->status}' - but I was told to ignore it …
592 …$this->functions->debug->message("Sending request failed with error, HTTP status was '{$http->stat…
597 $this->functions->debug->message("No data fetched", $URL, 4);
601 $this->functions->debug->message("Headers received", $http->resp_headers, 2);
605 $this->functions->debug->message("========================================", null, 1);
606 $this->functions->debug->message("Starting to recurse file '$URL'", null , 1);
607 $this->functions->debug->message("----------------------------------------", null, 1);
609 $this->functions->debug->message("----------------------------------------", null, 1);
610 $this->functions->debug->message("Finished to recurse file '$URL'", null , 1);
611 $this->functions->debug->message("========================================", null, 1);
614 …$tmpFile = tempnam($this->functions->settings->tmpDir , 'siteexport__') ?: $this->functions->setti…
615 $this->functions->debug->message("Temporary filename", $tmpFile, 1);
619 $this->functions->debug->message("Can't open temporary File '$tmpFile'.", null , 4);
632 $this->functions->debug->message("Found new image extension:", $extension, 2);
646 if (!$this->functions->settings->exportLinkedPages) {
667 $this->functions->debug->message("SRCSET", $DATA, 2);
677 $this->functions->debug->message("SRCSET: URL before: '$url'", null, 2);
680 $this->functions->debug->message("SRCSET: URL after: '$url'", null, 2);
695 $newAdditionalParameters = $this->functions->settings->additionalParameters;
696 $newDepth = $this->functions->settings->depth;
702 …$this->functions->debug->message("Starting Link Replacement", array('data' => $DATA, 'additional P…
712 $this->functions->debug->message("OrigDATA is:", $ORIGDATA2, 1);
739 …$this->functions->debug->message("URL before rewriting option for others than 1", array($DATA, $PA…
745 $this->functions->debug->message("URL before rewriting option", array($DATA, $PARAMS), 2);
762 $ID = $this->functions->cleanID($DATA[2], null, $ISMEDIA);
771 $this->functions->debug->message("Resolving ID: '$ID'", null, 2);
775 … $this->functions->debug->message("Current mediaID to filename: '" . mediaFN($ID) . "'", null, 2);
779 … $this->functions->debug->message("Current ID to filename: '" . wikiFN($ID) . "'", null, 2);
782 …$this->functions->debug->message("Current ID after resolvement: '$ID' the ID does exist: '" . ($ID…
797 $this->functions->removeWikiVariables($PARAMS, false, true);
799 …$url = $this->functions->wl($ID, null, true, null, null, true, $hadBase) . (!empty($ANCHOR) ? '#' …
800 $this->functions->debug->message("URL from ID: '$url'", null, 2);
806 $this->functions->debug->message("DATA after parsing.", $DATA, 2);
815 …$this->functions->debug->message("DATA after second rewrite with UseRewrite = 2", array($DATA, $ma…
828 …$this->functions->debug->message("DATA after SWITCH CASE decision", array($DATA, $noDeepReplace, $…
831 $this->functions->addAdditionalParametersToURL($url, $newAdditionalParameters);
836 $this->functions->debug->message("Creating PDF with URL '$url'", null, 2);
849 …$DATA[2] .= '.' . $this->functions->cleanID(preg_replace("/(=|\?|&)/", ".", $PARAMS)) . '.css'…
853 $fileName = $this->functions->getSiteName($ID, true);
859 …$this->functions->debug->message("This is CSS file", array($DATA, $noDeepReplace, $fileName, $newD…
864 …$DATA[2] .= '.t.' . $this->functions->cleanID($_REQUEST['template']) . '.js'; // allways put param…
873 …$this->functions->debug->message("This is JS file", array($DATA, $url, $newAdditionalParameters), …
878 $this->functions->debug->message("Skipping indexer", null, 2);
884 … $ID = $this->functions->cleanID(str_replace('/', ':', $DATA[2]), null, strstr($DATA[2], 'media'));
885 …$fileName = $this->functions->getSiteName($ID, true); // 2010-09-03 - rewrite with override enabled
891 …$this->functions->debug->message("This is detail.php file with addParams", array($DATA, $ID, $file…
897 $ID = $this->functions->cleanID($DATA[2], null, strstr($DATA[2], 'id'));
899 …$this->functions->debug->message("Current ID to filename (doku.php): '" . wikiFN($ID) . "'", null,…
901 … $fileName = $this->functions->getSiteName($ID); // 2010-09-03 - rewrite with override enabled
908 …$this->functions->debug->message("This is doku.php file with addParams", array($DATA, $ID, $fileNa…
916 $ID = $this->functions->cleanID($DATA[2], null, strstr($DATA[2], 'media'));
920 $DATA[2] = $this->functions->wl($ID, null, null, null, $IDexists, true);
926 … $this->functions->debug->message("This is fetch.php file", array($DATA, $ID, $PARAMS), 2);
939 …$fileIDPart = isset($backlinkID[1]) && !empty($backlinkID[1]) ? $this->functions->cleanID(urldecod…
942 …$DATA[2] .= ':' . $fileIDPart . '.' . $this->functions->settings->fileType; // add namespace and s…
945 $fileName = $this->functions->shortenName($DATA[2]);
951 …$this->functions->debug->message("This is something with '_detail' file", array($DATA, $backlinkID…
962 … $this->functions->debug->message("This is something with '_export' file", $DATA, 2);
966functions->settings->addParams || empty($PARAMS) ? '' : '.' . $this->functions->cleanID(preg_repla…
968 $DATA[2] = $this->functions->shortenName($DATA[2]);
971 if ($this->functions->settings->addParams) $DATA['PARAMS'] = "";
973 $this->functions->debug->message("This page really exists", $DATA, 1);
993 $DATA[2] = $this->functions->shortenName($DATA[2]);
1000 … $this->functions->debug->message("File has been checked before.", array($DATA, $url), 2);
1006 $this->functions->debug->message("File with DATA exists in ZIP.", $DATA, 3);
1014 $origDepth = $this->functions->settings->depth;
1015 $this->functions->settings->depth = $newDepth;
1021 …$this->functions->debug->message("Going to get the file", array($url, $noDeepReplace, $newAddition…
1023 …$this->functions->debug->message("The getHTTPFile result is still empty", $tmpFile === false ? 'YE…
1027 $this->functions->settings->depth = $origDepth; // 2010-09-03 - Reset depth at the very end
1032 $this->functions->debug->message("The fetched file '$url' is 'false'", null, 3);
1034 … $this->functions->debug->message("The file does not exist, fallback to ORIGDATA", $ORIGDATA2, 2);
1035 $DATA[2] = $this->functions->shortenName($ORIGDATA2[2]); // get Origdata Path
1040 $this->functions->debug->message("Final Link after empty file from '$url'", null, 2);
1045 $this->functions->debug->message("The fetched file looks good.", $tmpFile, 2);
1052 $this->functions->debug->message("Changed filename.", $DATA[2], 2);
1058 $this->functions->debug->message("Added extension provided from Server.", $DATA[2], 2);
1066 $this->functions->debug->message("Could not delete temporary file.", $tmpFile[0], 2);
1070 $this->functions->debug->message("Returning final Link to document: '$newURL'", null, 2);
1079 …$this->functions->debug->message("Don't like http, mailto, data or javascript links here", null, 1…
1086 $this->functions->debug->message("This is an HTTP like somewhere else", $DATA, 1);
1091 $this->functions->debug->message("This is a refercence only", null, 1);
1102 …$this->functions->debug->message("Did not match '$^(" . DOKU_BASE . ")?lib/$' userewrite == {$conf…
1109 $this->functions->debug->message("This file must be inside lib ...", null, 2);
1120 if (is_null($DEPTH)) $DEPTH = $this->functions->settings->depth;
1121 …$DATA[2] .= (!empty($DATA['PARAMS']) && $this->functions->settings->addParams ? '?' . $DATA['PARAM…
1128 …$this->functions->debug->message("OK, this is not to be absolute: ", array($intermediateURL, $CURR…
1129 …$intermediateURL = $this->functions->getRelativeURL($intermediateURL, $CURRENT_PARENT, $existingPa…
1133 $this->functions->debug->message("Re-created URL: '$newURL'", $DEPTH, 2);
1149 $FILENAMEID = $this->functions->settings->origZipFile;
1160 $this->functions->authenticate();
1171 $fn = $this->functions->getSpecialExportFileName(noNS($FILENAMEID), '.+');
1179 $cache = $this->functions->settings->cachetime;
1270 if (!$this->functions->settings->addParams && !empty($PARAMS) && $addHash) {
1272 } else if (!$this->functions->settings->addParams) {
1276 …$internalParams) ? '' : '.' . $this->functions->cleanID($internalParams)) . ($EXT == '.php' ? '.' …
1278 $this->functions->debug->message("Rebuilding Data for normal file.", $DATA[2], 1);
1308 $this->functions->debug->message('Could not remove file', $cache, 1 );
1312 $this->functions->debug->message('Could not remove file', $cache . '.gz', 1 );