Lines Matching +full:- +full:- +full:debug
5 require_once(DOKU_PLUGIN . 'siteexport/inc/debug.php');
12 public $debug = null; variable in siteexport_functions
19 $this->debug = new siteexport_debug();
20 $this->debug->isAJAX = $isAJAX;
22 $this->settings = new settings_plugin_siteexport_settings($this);
23 $this->debug->message("Settings completed: zipFile", $this->settings->zipFile, 1);
34 $params = array('cache' => 'nocache', 'siteexport' => $this->settings->pattern);
36 if ($this->debug->debugLevel() < 5) {
37 // If debug, then debug!
38 $params['debug'] = $this->debug->debugLevel();
41 return ml($this->settings->origZipFile, $params, true, '&');
49 $this->debug->message("'{$file}' does not exist. Checking original ZipFile", null, 3);
50 … $newCacheFile = mediaFN($this->getSpecialExportFileName($this->settings->origZipFile, $pattern));
54 …is->debug->message("The export must have gone wrong. The cached file does not exist.", array("patt…
58 …$this->debug->message("had to move another original file over. Did it work? " . ($status ? 'Yes, i…
60 $this->debug->message("The file does exist!", $file, 2);
72 // Check current page - if its an NS add the startpage
73 $NS = (new PageResolver($NS))->resolveId($NS);
77 $NS = (new PageResolver($NS))->resolveId($NS);
99 …$url = $this->wl($this->cleanID($ID), null, true, null, null, $overrideRewrite); // this must be d…
105 return $this->shortenName($uri['path'] . '.' . $this->settings->fileType);
120 return $this->xmlEntities($heading);
124 return ucwords($this->xmlEntities(array_pop($elements)));
128 * Encoding ()taken from DW - but without needing the renderer
131 return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
139 $NS = $this->settings->exportNamespace;
145 $this->debug->message("Shortening file to '$NAME'", null, 1);
178 // NO LowerCase for us! - Preserve it, that is why the call is missing here.
189 if ($conf['deaccent'] || $ascii) $id = utf8_deaccent($id, -1);
205 $id = ($media ? trim($id, ':.-') : trim($id, ':._-'));
206 $id = preg_replace('#:[:\._\-]+#', ':', $id);
214 * This builds a link to a wikipage - changed for internal use here
225 $this->debug->message("Starting to build WL-URL for '$id'", $more, 1);
270 …// $this->debug->message("internal WL function Before Replacing: '$xlink'", array(DOKU_REL, DOKU_U…
272 $this->debug->message("'$xlink'", array(DOKU_REL, DOKU_URL, DOKU_BASE, $xlink), 2);
275 $this->debug->message("Override enabled.", null, 1);
296 $this->debug->message("internal WL function result: '$xlink'", null, 2);
302 * Create the export file name - this is the file where everything is being stored
304 * @param $PATTERN String additional pattern for re-using old files
310 $FILE = $this->settings->origZipFile;
313 if (empty($PATTERN) && empty($this->settings->pattern)) {
314 …$this->debug->message("Generating an internal md5 pattern. This will go wrong - and won't cache pr…
319 if (empty($this->settings->pattern)) {
320 $this->settings['pattern'] = $PATTERN;
322 $PATTERN = $this->settings->pattern;
332 $this->debug->message("Export Filename for '$FILE' will be: '$fileName'", null, 2);
339 $PATTERN = $this->settings->pattern;
342 …turn getCacheName($this->getSpecialExportFileName($this->settings->origZipFile, $PATTERN), '.' . b…
355 $additionalParameters['pattern'] = $this->settings->pattern;
363 $this->addAdditionalParametersToURL($URL, $additionalParameters);
364 $this->debug->message("Redirecting to '$URL'", null, 2);
402 $this->removeWikiVariables($data);
408 $this->debug->message("Prepared POST data:", $data, 1);
413 $this->debug->message("Found inner Array:", $value, 1);
453 // This is needed if we do want to calculate $_REQUEST for a non HTTP-Request
461 if ( substr($key, -2) == '[]' ) {
462 $key = substr($key, 0, -2);
477 foreach ($plugin_controller->getList(null, true) as $plugin) {
500 $removeArray = $this->parseStringToRequestArray($removeArray);
503 // 2010-08-23 - If there is still the media set, retain the id for e.g. detail.php
530 for ($index = count($removeArray['customoptionname']); $index >= 0; $index--)
543 // 2010-08-25 - Need fakeMedia for some _detail cases with rewrite = 2
566 $removeKeys[] = 'debug';
620 $params = $this->urlToPathAndParams($this->prepare_POSTData($request));
621 $this->debug->message("Calculated the following Cache Hash URL: ", $params, 2);
622 return $this->hashNameForParameters($params);
626 * Check a replaceURL against a baseURL - and make the replaceURL relative against it
635 $this->debug->message("The baseURL was not absolute.", $baseURL, 1);
644 $this->debug->message("The replaceURL was already absolute.", $replaceURL, 1);
654 $this->debug->message("State before kicking.", array($replaceParts, $baseParts), 1);
672 …$this->debug->message("Found URL '{$replaceURL}' that is relative to current page '{$baseURL}'.", …
689 $offsiteTemplate = $this->getConf("offSiteLinkTemplate");
690 $this->debug->message("Checking for offsite links", array(
706 $mapID = $this->getMapID($existingPageID, null, $check);
710 …$this->debug->message("Replacing finalLink '${finalLink}' with offsiteLink '${offsiteTemplate}'", …
720 $n .= '-' . $postfix;
728 $title = empty($meta['title']) ? $this->getSiteTitle($elemID) : $meta['title'];
729 $meta['id'] = sectionID($this->cleanId($title), $check);
739 $user = $this->getConf('defaultAuthenticationUser');
740 $password = $this->getConf('defaultAuthenticationPassword');
748 if (!isset($_SERVER['HTTP_AUTHORIZATION']) && $this->hasAuthentication()) {
749 $authentication = $this->hasAuthentication();
751 …$this->debug->message("Re-authenticating with default user from configuration", $authentication['u…
767 $secToken = $this->getSecurityToken();
770 … if ( $softfail !== true ) msg('Security Token did not match. Possible CSRF attack.', -1);
781 * @link http://en.wikipedia.org/wiki/Cross-site_request_forgery
782 * @link http://christ1an.blogspot.com/2007/04/preventing-csrf-efficiently.html