User role support

User role support
This commit is contained in:
Danang Probo Sayekti 2014-02-08 00:17:28 +07:00
commit c7c23866bb
15 changed files with 235 additions and 79 deletions

View file

@ -17,7 +17,12 @@
$oldcontent = ltrim($arr[0]);
}
$destination = $_GET['destination'];
if(isset($_GET['destination'])) {
$destination = $_GET['destination'];
}
else {
$destination = 'admin';
}
$dir = substr($url, 0, strrpos($url, '/'));
$oldurl = str_replace($dir . '/','',$url);
$oldmd = str_replace('.md','',$oldurl);