/micrograph

Fairly comprehensive blogging system for PHP

Primary LanguagePHP

micrograph

Tiny blog system built to sit behind your website, letting you take full control.

How it works

  • 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.

Backend functions

  • mg_getPosts($amountperpage, $currentpage, $order = "asc", $tagfilter = false) returns an object containing all posts that match the paramaters PLUS a paginate object for paged results
  • mg_getPostById($id) returns an array with a single post's data

Security

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/