Revision dbsite.class.php- Admin folder rename
Add variable in bl-kernel/boot/init.php that allows User to rename bl-kernel/admin folder. User can then define variable in bl-kernel/boot/init.php and change the foldername itself to effect the rename. Add global variable as necessary and replace 'admin' strings with $adminfolder throughout bl-kernel folder. Lines 71-75 // Admin folder variable global $adminfolder; // Replace Admin string with folder variable. $filters['admin'] = '/'.$adminfolder.'/'; $filters['admin'] = '/admin/';
This commit is contained in:
parent
890c10ed39
commit
6e3741d675
@ -68,7 +68,11 @@ class dbSite extends dbJSON
|
||||
// Returns an array with the filters for the url.
|
||||
public function uriFilters($filter='')
|
||||
{
|
||||
$filters['admin'] = '/admin/';
|
||||
// Admin folder variable
|
||||
global $adminfolder;
|
||||
|
||||
// Replace Admin string with folder variable.
|
||||
$filters['admin'] = '/'.$adminfolder.'/';
|
||||
$filters['post'] = $this->getField('uriPost');
|
||||
$filters['page'] = $this->getField('uriPage');
|
||||
$filters['tag'] = $this->getField('uriTag');
|
||||
|
Loading…
x
Reference in New Issue
Block a user