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:
Kim Keown 2016-10-25 04:41:33 -06:00 committed by GitHub
parent 890c10ed39
commit 6e3741d675

View File

@ -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');