Skip to content

Instantly share code, notes, and snippets.

@twodayslate
Created August 4, 2015 15:37
Show Gist options
  • Save twodayslate/db5fa938023a7b9eae11 to your computer and use it in GitHub Desktop.
Save twodayslate/db5fa938023a7b9eae11 to your computer and use it in GitHub Desktop.
<!-- by @bensge -->
<!DOCTYPE html>
<html lang="en" class="cydia depiction">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" href="//cdn.hbang.ws/css/ios7.css">
</head>
<body>
<h2>Tweak_name</h2><ul><li><p>Package_description</p></li></ul>
<?php
$files = glob('/a/b/c/repofiles/changelog/*.txt');
usort($files, function($a,$b){ return filemtime($a) < filemtime($b); });
foreach($files as $file){
echo "<h2>".str_replace(".txt", "", basename($file))." </h2> <ul><li> <p>" . file_get_contents($file) . "</p> </li></ul>";
}
echo "</ul></body></html>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment