1f21dad39SAndreas Gohr<?php 2f21dad39SAndreas Gohr 3f21dad39SAndreas Gohrnamespace dokuwiki\Action; 4f21dad39SAndreas Gohr 5ab583a1bSAndreas Gohr/** 6ab583a1bSAndreas Gohr * Class Source 7ab583a1bSAndreas Gohr * 8ab583a1bSAndreas Gohr * Show the source of a page 9ab583a1bSAndreas Gohr * 10ab583a1bSAndreas Gohr * @package dokuwiki\Action 11ab583a1bSAndreas Gohr */ 12f21dad39SAndreas Gohrclass Source extends AbstractAction { 13f21dad39SAndreas Gohr 14f21dad39SAndreas Gohr /** @inheritdoc */ 15ec701221SAndreas Gohr public function minimumPermission() { 16f21dad39SAndreas Gohr return AUTH_READ; 17f21dad39SAndreas Gohr } 18f21dad39SAndreas Gohr 19ab583a1bSAndreas Gohr /** @inheritdoc */ 20*9ba47898SAndreas Gohr public function preProcess() { 21*9ba47898SAndreas Gohr global $TEXT; 22*9ba47898SAndreas Gohr global $INFO; 23*9ba47898SAndreas Gohr global $ID; 24*9ba47898SAndreas Gohr global $REV; 25*9ba47898SAndreas Gohr 26*9ba47898SAndreas Gohr if($INFO['exists']) { 27*9ba47898SAndreas Gohr $TEXT = rawWiki($ID, $REV); 28*9ba47898SAndreas Gohr } 29*9ba47898SAndreas Gohr } 30*9ba47898SAndreas Gohr 31*9ba47898SAndreas Gohr /** @inheritdoc */ 32f21dad39SAndreas Gohr public function tplContent() { 33*9ba47898SAndreas Gohr html_edit(); 34f21dad39SAndreas Gohr } 35f21dad39SAndreas Gohr 36f21dad39SAndreas Gohr} 37