xref: /dokuwiki/inc/Action/Preview.php (revision f21dad3906d4ec6b3d86685599409894630abdc1)
1*f21dad39SAndreas Gohr<?php
2*f21dad39SAndreas Gohr/**
3*f21dad39SAndreas Gohr * Created by IntelliJ IDEA.
4*f21dad39SAndreas Gohr * User: andi
5*f21dad39SAndreas Gohr * Date: 2/11/17
6*f21dad39SAndreas Gohr * Time: 10:26 AM
7*f21dad39SAndreas Gohr */
8*f21dad39SAndreas Gohr
9*f21dad39SAndreas Gohrnamespace dokuwiki\Action;
10*f21dad39SAndreas Gohr
11*f21dad39SAndreas Gohrclass Preview extends Edit {
12*f21dad39SAndreas Gohr
13*f21dad39SAndreas Gohr    public function preProcess() {
14*f21dad39SAndreas Gohr        header('X-XSS-Protection: 0'); // FIXME is it okay to send it right away here?
15*f21dad39SAndreas Gohr        act_draftsave('fixme'); // reimplement thisutility function and take of duplicate code in ajax.php
16*f21dad39SAndreas Gohr
17*f21dad39SAndreas Gohr        parent::preProcess();
18*f21dad39SAndreas Gohr    }
19*f21dad39SAndreas Gohr
20*f21dad39SAndreas Gohr    public function tplContent() {
21*f21dad39SAndreas Gohr        global $TEXT;
22*f21dad39SAndreas Gohr        html_edit();
23*f21dad39SAndreas Gohr        html_show($TEXT);
24*f21dad39SAndreas Gohr    }
25*f21dad39SAndreas Gohr
26*f21dad39SAndreas Gohr}
27