A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 551
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/system/core/Exceptions.php:271)

Filename: view/raw.php

Line Number: 2

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/themes/geocities/views/view/raw.php
Line: 2
Function: header

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 173
Function: include

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/core/MY_Loader.php
Line: 43
Function: _ci_load

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 558
Function: view

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

6 && strcasecmp($requestUri[2], 'euf') === 0 && strcasecmp($requestUri[3], 'development') === 0 && strcasecmp($requestUri[4], 'views') === 0 && strcasecmp($requestUri[5], 'pages') === 0 && strcasecmp(substr($requestUri[count($requestUri) - 1], -4) , '.php') === 0) { permanentRedirect('/ci/admin/developmentRedirect/' . substr(implode('/', array_slice($requestUri, 6)) , 0, -4)); } } function verifyOnlyOneModeDefineIsTrue($modeDefines) { $numModeDefinesEnabled = 0; foreach ($modeDefines as $modeDefine) { if (!defined($modeDefine)) { throw new Exception("There is no $modeDefine define."); } if (!is_bool(constant($modeDefine))) { throw new Exception("Mode defines must be true or false. The value of $modeDefine is not."); } if (constant($modeDefine)) { ++$numModeDefinesEnabled; } } if ($numModeDefinesEnabled != 1) { throw new Exception('Exactly one of the mode constants must be true.'); } } function fixHttpAuthenticationHeader() { if (!IS_HOSTED && isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { $_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; } } function fixScriptEnvironmentVariables() { if ($_SERVER['SCRIPT_FILENAME']) { $_SERVER['SCRIPT_NAME'] = substr($_SERVER['SCRIPT_FILENAME'], strpos($_SERVER['SCRIPT_FILENAME'], '/cgi-bin/')); } putenv("SCRIPT_NAME={$_SERVER['SCRIPT_NAME']}"); } function redirectToProperWebDavUrl($requestUri) { assert(strcasecmp($requestUri[1], 'ci') === 0); assert(strcasecmp($requestUri[2], 'webdav') === 0); permanentRedirect('/dav/' . implode('/', array_slice($requestUri, 3))); } function redirectToProperPageUrl($requestUri) { assert(strcasecmp($requestUri[1], 'ci') === 0); assert(strcasecmp($requestUri[2], 'page') === 0); $segmentsToSkip = 3; if (strcasecmp($requestUri[3], 'render') === 0) { $segmentsToSkip = 4; } permanentRedirect('/app/' . implode('/', array_slice($requestUri, $segmentsToSkip))); } function redirectWindowsAttemptToDiscoverWebDav($requestUri) { if (($_SERVER['REQUEST_METHOD'] === 'OPTIONS' || $_SERVER['REQUEST_METHOD'] === 'PROPFIND') && (($requestUri[0] === '') || (strcasecmp($requestUri[1], 'app') === 0 && $requestUri[2] === ''))) { permanentRedirect('/dav/'); } } function permanentRedirect($url) { header("Location: $url"); header('HTTP/1.1 301 Moved Permanently'); exit(' '); } function xssSanitize() { $serverGlobalsToEscape = array( 'QUERY_STRING', 'REQUEST_URI', 'HTTP_REFERER', 'REDIRECT_URL' ); foreach ($serverGlobalsToEscape as $value) { $_SERVER[$value] = xssSanitizeReplacer($_SERVER[$value]); } foreach ($_GET as $key => $value) { if (is_array($value)) { foreach ($value as $subKey => $subValue) { $cleanedSubKey = xssSanitizeReplacer($subKey); $value[$cleanedSubKey] = xssSanitizeReplacer($subValue); if ($cleanedSubKey != $subKey) unset($value[$subKey]); } continue; } $cleanedKey = xssSanitizeReplacer($key); $_GET[$cleanedKey] = $_REQUEST[$cleanedKey] = xssSanitizeReplacer($value); if ($cleanedKey !== $key) unset($_GET[$key], $_REQUEST[$key]); } foreach ($_POST as $key => $value) { if (is_array($value)) { foreach ($value as $subKey => $subValue) { $cleanedSubKey = xssSanitizeReplacer($subKey); $value[$cleanedSubKey] = xssSanitizeReplacer($subValue, false); if ($cleanedSubKey != $subKey) unset($value[$subKey]); } continue; } $cleanedKey = xssSanitizeReplacer($key); $_POST[$cleanedKey] = $_REQUEST[$cleanedKey] = xssSanitizeReplacer($value, false); if ($cleanedKey !== $key) unset($_POST[$key], $_REQUEST[$key]); } } function redirectDeployerRequests(&$requestUri) { $mapping = array( 'cmdline_deploy' => 'upgradeDeploy', 'deploy' => 'productionDeploy', 'prepare_deploy' => 'prepareDeploy', 'commit_deploy' => 'commitDeploy', 'servicepackdeploy' => 'servicePackDeploy', 'unittestdeploy' => 'unitTestDeploy', 'modifyclientworkflowviewsforclassicenduser' => 'modifyClientWorkflowViewsForClassicEnduser', 'modifyclientworkflowviewsforcustomerportal' => 'modifyClientWorkflowViewsForCustomerPortal', 'modifyproductionpagesetmappingfilestomatchdb' => 'modifyProductionPageSetMappingFilesToMatchDB' ); $mappedTo = $mapping[strtolower($requestUri[3]) ]; if (!$mappedTo) { return; } $requestUri[2] = 'deploy'; $requestUri[3] = $mappedTo; $_SERVER['REQUEST_URI'] = implode('/', $requestUri); } function xssSanitizeReplacer($value, $cleanQuotes = true) { $value = strtr($value, array( "\0" => '', "\t" => ' ', '%09' => ' ' )); $value = preg_replace('@javascript(:|:?|:?|%3A)@i', 'javascript ', $value); $value = str_ireplace(array( '%3C', '<' ) , '<', $value); $value = str_ireplace(array( '%3E', '>' ) , '>', $value); if ($cleanQuotes) { $value = str_replace(array( '%22', '"' ) , '"', $value); return str_replace(array( '%27', "'" ) , ''', $value); } return $value; }