mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-10-31 07:56:23 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			579 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			579 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * CHANGELOG viewer
 | |
|  *
 | |
|  * @package   MyAAC
 | |
|  * @author    Slawkens <slawkens@gmail.com>
 | |
|  * @author    Lee
 | |
|  * @copyright 2020 MyAAC
 | |
|  * @link      https://my-aac.org
 | |
|  */
 | |
| defined('MYAAC') or die('Direct access not allowed!');
 | |
| $title = 'MyAAC Changelog';
 | |
| 
 | |
| if (!file_exists(BASE . 'CHANGELOG-1.x.md')) {
 | |
| 	echo 'File CHANGELOG.md doesn\'t exist.';
 | |
| 	return;
 | |
| }
 | |
| 
 | |
| $changelog = file_get_contents(BASE . 'CHANGELOG-1.x.md');
 | |
| 
 | |
| $Parsedown = new Parsedown();
 | |
| 
 | |
| $changelog = $Parsedown->text($changelog); # prints: <p>Hello <em>Parsedown</em>!</p>
 | |
| 
 | |
| echo '<div>' . $changelog . '</div>';
 | 
