Lines Matching refs:functions

35     public $functions = null;  variable in action_plugin_siteexport_ajax
93 $this->functions->debug->message("========================================", null, 1);
94 $this->functions->debug->message("Starting export from URL call", null, 1);
95 $this->functions->debug->message("----------------------------------------", null, 1);
102 $_REQUEST['sectok'] = $this->functions->getSecurityToken();
119 if ( count($data) == 0 && !$this->functions->settings->hasValidCacheFile ) {
132 … $this->functions->debug->message("----------------------------------------", null, 1);
133 … $this->functions->debug->message("Errors during export from URL call", null, 1);
134 … $this->functions->debug->message("========================================", null, 1);
135 print $this->functions->debug->runtimeErrors;
143 $this->functions->debug->message("Will Redirect", null, 1);
145 $this->functions->startRedirctProcess($counter);
149 $this->functions->debug->message("----------------------------------------", null, 1);
150 $this->functions->debug->message("Finishing export from URL call", null, 1);
151 $this->functions->debug->message("========================================", null, 1);
155 …his->functions->settings->origZipFile, array('cache' => 'nocache', 'siteexport' => $this->function…
156 $this->functions->debug->message("Redirecting to final file", $URL, 2);
165 if (!empty($this->functions->debug->runtimeErrors))
167 …$this->filewriter->__moveDataToZip($this->functions->debug->runtimeErrors, '_runtime_error/' . tim…
177 $this->functions = new siteexport_functions(true, $isAJAX);
178 $this->filewriter = new siteexport_zipfilewriter($this->functions);
182 $this->functions->settings->fileType = 'pdf';
197 $this->functions->debug->message("Prepared URL and POST from Request:", $_REQUEST, 2);
198 $url = $this->functions->prepare_POSTData($_REQUEST);
199 $combined = $this->functions->urlToPathAndParams($url);
203 $this->functions->debug->message("Prepared URL and POST data:", $return, 2);
223 $this->functions->debug->message("Generating Direct Download URL", $url, 2);
226 if (!$this->functions->debug->firstRE()) {
227 …$this->functions->debug->message("There have been errors while generating the download URLs.", nul…
241 $this->functions->debug->message("Checking for Cron parameters: ", $combined, 1);
262 … $this->functions->debug->runtimeException("No data generated. List of Files is 'false'.");
266 if (empty($data) && !$this->functions->settings->hasValidCacheFile)
268 $this->functions->debug->runtimeException("Generated list is empty.");
273 if (!$this->functions->debug->firstRE())
275 … $this->functions->debug->message("There have been errors while generating site list.", null, 4);
279 echo "{$this->functions->settings->pattern}\n";
280 echo $this->functions->downloadURL() . "\n";
292 $this->functions->debug->message("Had a valid cache file and will use it.", null, 2);
293 print $this->functions->downloadURL();
299 $this->functions->debug->message("Will create a new cache thing.", null, 2);
315 $this->functions->debug->message("========================================", null, 1);
316 $this->functions->debug->message("Starting export from AJAX call", null, 1);
317 $this->functions->debug->message("----------------------------------------", null, 1);
321 $this->functions->debug->message("----------------------------------------", null, 1);
322 $this->functions->debug->message("Errors during export from AJAX call", null, 1);
323 $this->functions->debug->message("========================================", null, 1);
327 $this->functions->debug->message("----------------------------------------", null, 1);
328 $this->functions->debug->message("Finishing export from AJAX call", null, 1);
329 $this->functions->debug->message("========================================", null, 1);
335 if (!$this->functions->debug->firstRE()) {
336 $this->functions->debug->message("There have been errors during the export.", null, 4);
340 print $this->functions->downloadURL();
351 $NS = $this->namespace = $this->functions->getNamespaceFromID($NS, $PAGE);
352 …$this->functions->debug->message("ROOT Namespace to export from: '{$NS}' / {$this->namespace}", nu…
360 $PAGE = $this->functions->cleanID(str_replace(":", "/", $NS . ':' . $PAGE));
367 $this->functions->debug->message("Checking for Cache, depthType:0", null, 2);
373 $this->functions->debug->message("Exporting the following sites: ", $data, 2);
385 $this->functions->debug->message("Options", $opts, 2);
391 if (!$this->functions->settings->useTOCFile) {
394 $this->functions->debug->message("Using TOC for data", null, 2);
417 $this->functions->debug->message("Checking for Cache after lookup of pages", null, 2);
423 $this->functions->debug->message("Exporting the following sites: ", $data, 2);
431 $this->functions->debug->runtimeException("Can't remove old files.");
439 $this->functions->debug->message("List is empty I guess. Used NS: '{$NS}' ", null, 1);
449 $toc = new siteexport_toc($this->functions, $NS);
450 $this->functions->debug->message("Generating eclipseDocZip", null, 2);
455 $toc = new siteexport_javahelp($this->functions, $this->filewriter, $NS);
477 $this->functions->debug->message("========================================", null, 2);
478 $this->functions->debug->message("Adding Site: '$ID'", null, 2);
479 $this->functions->debug->message("----------------------------------------", $_REQUEST, 2);
481 $request = $this->functions->settings->additionalParameters;
510 $this->functions->debug->message("REQUEST for add_site:", $request, 2);
512 $ID = $this->functions->cleanID($ID);
513 $url = $this->functions->wl($ID, $request, true, '&');
516 $CURRENT_PARENT = $fileName = $this->functions->getSiteName($ID, true);
517 $this->functions->debug->message("Filename could be:", $fileName, 2);
520 $this->functions->settings->depth = str_repeat('../', count(explode('/', $fileName))-1);
525 …$this->functions->debug->runtimeException("Creating temporary download file failed for '$url'. See…
533 … $this->functions->debug->message("Will replace old filename '{$fileName}' with {$ID}", null, 1);
538 …$fileName = $dirname . '/' . $this->functions->cleanID($this->functions->getSiteTitle($ID)) . '.' …
541 …$this->functions->debug->message("Will replace old filename '{$fileName}' with {$dirname}/{$tmpFil…
549 $this->functions->debug->message("Could not remove temporary file", $tmpFile[0], 1);
562 $EXCLUDE = $this->functions->settings->excludePattern;
566 $this->functions->debug->message("Checking for exclude: ", array(
575 $http = new HTTPProxy($this->functions);
579 $this->functions->addAdditionalParametersToURL($URL, $newAdditionalParameters);
581 $this->functions->debug->message("Fetching URL: '$URL'", null, 2);
586 if ( $http->status != 200 && $this->functions->settings->ignoreNon200 ) {
587 …$this->functions->debug->message("HTTP status was '{$http->status}' - but I was told to ignore it …
591 …$this->functions->debug->message("Sending request failed with error, HTTP status was '{$http->stat…
596 $this->functions->debug->message("No data fetched", $URL, 4);
600 $this->functions->debug->message("Headers received", $http->resp_headers, 2);
604 $this->functions->debug->message("========================================", null, 1);
605 $this->functions->debug->message("Starting to recurse file '$URL'", null , 1);
606 $this->functions->debug->message("----------------------------------------", null, 1);
608 $this->functions->debug->message("----------------------------------------", null, 1);
609 $this->functions->debug->message("Finished to recurse file '$URL'", null , 1);
610 $this->functions->debug->message("========================================", null, 1);
613 …$tmpFile = tempnam($this->functions->settings->tmpDir , 'siteexport__') ?: $this->functions->setti…
614 $this->functions->debug->message("Temporary filename", $tmpFile, 1);
618 $this->functions->debug->message("Can't open temporary File '$tmpFile'.", null , 4);
631 $this->functions->debug->message("Found new image extension:", $extension, 2);
645 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);
1048 $this->functions->debug->message("The fetched file looks good.", $tmpFile, 2);
1055 $this->functions->debug->message("Changed filename.", $DATA[2], 2);
1061 $this->functions->debug->message("Added extension provided from Server.", $DATA[2], 2);
1069 $this->functions->debug->message("Could not delete temporary file.", $tmpFile[0], 2);
1073 $this->functions->debug->message("Returning final Link to document: '$newURL'", null, 2);
1082 …$this->functions->debug->message("Don't like http, mailto, data or javascript links here", null, 1…
1089 $this->functions->debug->message("This is an HTTP like somewhere else", $DATA, 1);
1094 $this->functions->debug->message("This is a refercence only", null, 1);
1105 …$this->functions->debug->message("Did not match '$^(" . DOKU_BASE . ")?lib/$' userewrite == {$conf…
1112 $this->functions->debug->message("This file must be inside lib ...", null, 2);
1123 if (is_null($DEPTH)) $DEPTH = $this->functions->settings->depth;
1124 …$DATA[2] .= (!empty($DATA['PARAMS']) && $this->functions->settings->addParams ? '?' . $DATA['PARAM…
1131 …$this->functions->debug->message("OK, this is not to be absolute: ", array($intermediateURL, $CURR…
1132 …$intermediateURL = $this->functions->getRelativeURL($intermediateURL, $CURRENT_PARENT, $existingPa…
1136 $this->functions->debug->message("Re-created URL: '$newURL'", $DEPTH, 2);
1152 $FILENAMEID = $this->functions->settings->origZipFile;
1163 $this->functions->authenticate();
1174 $fn = $this->functions->getSpecialExportFileName(noNS($FILENAMEID), '.+');
1182 $cache = $this->functions->settings->cachetime;
1276 if (!$this->functions->settings->addParams && !empty($PARAMS) && $addHash) {
1278 } else if (!$this->functions->settings->addParams) {
1282 …$internalParams) ? '' : '.' . $this->functions->cleanID($internalParams)) . ($EXT == '.php' ? '.' …
1284 $this->functions->debug->message("Rebuilding Data for normal file.", $DATA[2], 1);
1314 $this->functions->debug->message('Could not remove file', $cache, 1 );
1318 $this->functions->debug->message('Could not remove file', $cache . '.gz', 1 );