Tiny blog system built to sit behind your website, letting you take full control.
- insert the files into a directory in your website
- then include("micrograph/micrograph.php"); into any php files on your website that need it.
- after that, make calls wherever needed to grab content from the backend.
mg_getPosts($amountperpage, $currentpage, $order = "asc", $tagfilter = false)
returns an object containing all posts that match the paramaters PLUS a paginate object for paged resultsmg_getPostById($id)
returns an array with a single post's data
Your server should be configured to block outside access to everything except:
- micrograph.php
- index.php
- content/images/
- views/css/
- views/fonts/
- views/js/
- system/ajax/