mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
User role support
User role support
This commit is contained in:
parent
b47cf3e363
commit
c7c23866bb
15 changed files with 235 additions and 79 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue