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

angular.module('Discuss.EditComment', [ 'Discuss.paths', 'Discuss.templates', 'Discuss.Utils.Localization.LocalizeFilter', 'JetRichtextEditor', 'Discuss.SubmitButton', 'Discuss.AttachFile', 'Discuss.PostDetail.Svc', 'Discuss.CleanWysiwyg' ]) .directive('editComment', [ '$log', 'DiscussRestAPIEndpoints', 'DISCUSS_ROOT_PATH', 'DiscussPostDetailSvc', '$filter', '$timeout', function($log, DiscussRestAPIEndpoints, DISCUSS_ROOT_PATH, DiscussPostDetailSvc, $filter, $timeout) { 'use strict'; return { restrict: 'EA', scope: { post: '=', attachmentsEnabled: '=?' }, templateUrl: DISCUSS_ROOT_PATH + '/components/edit-comment/edit-comment.html', controller: ['$scope', function($scope) { var ctrl = this, cleanWysiwygFilter = $filter('cleanWysiwyg'); $scope.fileAttachSuccess = false; $scope.attachmentsEnabled = $scope.attachmentsEnabled || false; $scope.post.body = cleanWysiwygFilter($scope.post.body); $scope.originalBody = $scope.post.body; $scope.originalAttachment = $scope.post.attachment || {}; $scope.originalPost = { post: $scope.originalBody, attachment: $scope.originalAttachment }; $scope.cancel = function() { $scope.post.body = $scope.originalBody; $scope.post.attachment = $scope.originalAttachment; $scope.$emit('discussion.editComment.cancel', $scope.post); $log.debug('Event emitted: discussion.editComment.cancel, Source: editComment'); }; $scope.hasChanged = function() { return !angular.equals($scope.post.attachment, $scope.originalAttachment) ||                         !angular.equals($scope.post.body, $scope.originalBody); }; $scope.submit = function() { if ($scope.hasChanged() && $scope.editCommentForm.$valid) { $scope.$emit('discussion.editComment.submit', $scope.post); $log.debug('Event emitted: discussion.editComment.update, Source: editComment, Post: ', $scope.post); // if attachments are enabled, emit to host that there is attachment data // then wait $on discussion.editComment.postUpdated // otherwise update the post as normal if ($scope.attachmentsEnabled) { $scope.$emit('discussion.editComment.updatePost', $scope.post); } else { $scope.updatePost($scope.post); } } }; $scope.updatePost = function(updatedPost) { return DiscussRestAPIEndpoints.editPost($scope.post.boardId, $scope.post.id, updatedPost) .then(ctrl.emitUpdateSuccessfulEvent, ctrl.emitUpdateFailedEvent); }; $scope.isSubmitDisabled = function() { return !!$scope.isUpdateInProgress || $scope.editCommentForm.$invalid || !$scope.hasChanged(); }; ctrl.emitUpdateSuccessfulEvent = function(post) { $scope.$emit('discussion.editComment.updateSuccessful', post); $log.debug('Event emitted: editComment.updateSuccessful, Source: editComment'); }; ctrl.emitUpdateFailedEvent = function(err) { $scope.$emit('discussion.editComment.updateFailed', err); $log.debug('Event emitted: editComment.updateFailed, Source: editComment'); }; ctrl.enableUpdateSpinner = function(isUpdateInProgress) { $scope.isUpdateInProgress = isUpdateInProgress; }; $scope.$on('discussion.editComment.postUpdated', function(event, updatedPost) { $scope.updatePost(updatedPost); }); $scope.$on('discussion.editComment.edit', function(event, id) { $scope.post.showEditForm = $scope.post.id === id ? true : false; if ($scope.post.showEditForm) { $timeout(function() { $('#comment-' + id).focus(); }, 0); } else { $scope.cancel(); } }); $scope.$on('discussion.editComment.enableUpdateSpinner', function(event, isUpdateInProgress) { ctrl.enableUpdateSpinner(isUpdateInProgress); }); $scope.$on('attachment.button.triggered', function() { $scope.$emit('attachment.link.clicked'); }); $scope.$on('discussion.attach.file.success', function(event, selectedFile) { $scope.post.attachment = { id: selectedFile.id, name: selectedFile.name }; $scope.$broadcast('attach.file.success', selectedFile); }); }] }; } ]);