ajout de la partie slam dans le dossier web
This commit is contained in:
		
							
								
								
									
										36
									
								
								ap23/web/doku/inc/Action/Source.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								ap23/web/doku/inc/Action/Source.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| <?php | ||||
|  | ||||
| namespace dokuwiki\Action; | ||||
|  | ||||
| /** | ||||
|  * Class Source | ||||
|  * | ||||
|  * Show the source of a page | ||||
|  * | ||||
|  * @package dokuwiki\Action | ||||
|  */ | ||||
| class Source extends AbstractAction { | ||||
|  | ||||
|     /** @inheritdoc */ | ||||
|     public function minimumPermission() { | ||||
|         return AUTH_READ; | ||||
|     } | ||||
|  | ||||
|     /** @inheritdoc */ | ||||
|     public function preProcess() { | ||||
|         global $TEXT; | ||||
|         global $INFO; | ||||
|         global $ID; | ||||
|         global $REV; | ||||
|  | ||||
|         if($INFO['exists']) { | ||||
|             $TEXT = rawWiki($ID, $REV); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /** @inheritdoc */ | ||||
|     public function tplContent() { | ||||
|         html_edit(); | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user