raspberry pi add to lmce-admin global var
Add raspberry pi as a global variable to lmce-admin so that admin knows it's an MD and can treat it as such. Also the new global var as criteria in some if statements.
In /var/www/lmce-admin/include/config/hardCoded.php at line 60 I added
$GLOBALS[= 2216; // Raspberry PI Media Directors
That is the global variable needed as reference
In /var/www/lmce-admin/include/utils.inc.php at line 807 I changed
if($DeviceTemplate==$GLOBALS['rootMediaDirectorsID']('rootRPIMediaDirectorsID'])){
to
if($DeviceTemplate==$GLOBALS[|| $DeviceTemplate==$GLOBALS['rootRPIMediaDirectorsID']('rootMediaDirectorsID'])){
This is to give lmce-admin rpi as a choice in function
isMediaDirector
In same file at line 2879 I changed
if($row[|| $row['FK_DeviceTemplate']('FK_DeviceCategory']==$GLOBALS['CategoryCore'])==$GLOBALS[|| $row['FK_DeviceTemplate']('rootMediaDirectorsID']){
to
if($row['FK_DeviceCategory']==$GLOBALS['CategoryCore'])==$GLOBALS[|| $row['FK_DeviceTemplate']('rootMediaDirectorsID'])==$GLOBALS[is also to give lmce-admin rpi as a choice in function
getTopLevelParentIP
In same file at line 2903 I changed
if($row'FK_DeviceCategory'{
This)==$GLOBALS[|| $row['FK_DeviceTemplate']('CategoryCore'])==$GLOBALS[|| $row['FK_DeviceTemplate']('rootMediaDirectorsID']){
to
if($row['FK_DeviceCategory']==$GLOBALS['CategoryCore'])==$GLOBALS[|| $row['FK_DeviceTemplate']('rootMediaDirectorsID'])==$GLOBALS['rootRPIMediaDirectorsID']){
This is also to give lmce-admin rpi as a choice in function
getTopLevelParent
There are possibly other areas that may come up