|
@@ -507,18 +507,26 @@ function getSettingsMain()
|
|
|
'href' => '#auth-plex-machine-form',
|
|
'href' => '#auth-plex-machine-form',
|
|
|
'attr' => 'data-effect="mfp-3d-unfold"'
|
|
'attr' => 'data-effect="mfp-3d-unfold"'
|
|
|
),
|
|
),
|
|
|
|
|
+ array(
|
|
|
|
|
+ 'type' => 'input',
|
|
|
|
|
+ 'name' => 'plexAdmin',
|
|
|
|
|
+ 'label' => 'Admin Username',
|
|
|
|
|
+ 'class' => 'plexAuth switchAuth',
|
|
|
|
|
+ 'value' => $GLOBALS['plexAdmin'],
|
|
|
|
|
+ 'placeholder' => 'Admin username for Plex'
|
|
|
|
|
+ ),
|
|
|
array(
|
|
array(
|
|
|
'type' => 'switch',
|
|
'type' => 'switch',
|
|
|
'name' => 'plexoAuth',
|
|
'name' => 'plexoAuth',
|
|
|
'label' => 'Enable Plex oAuth',
|
|
'label' => 'Enable Plex oAuth',
|
|
|
- 'class' => 'popup-with-form plexAuth switchAuth',
|
|
|
|
|
|
|
+ 'class' => 'plexAuth switchAuth',
|
|
|
'value' => $GLOBALS['plexoAuth']
|
|
'value' => $GLOBALS['plexoAuth']
|
|
|
),
|
|
),
|
|
|
array(
|
|
array(
|
|
|
'type' => 'switch',
|
|
'type' => 'switch',
|
|
|
'name' => 'plexStrictFriends',
|
|
'name' => 'plexStrictFriends',
|
|
|
'label' => 'Strict Plex Friends ',
|
|
'label' => 'Strict Plex Friends ',
|
|
|
- 'class' => 'popup-with-form plexAuth switchAuth',
|
|
|
|
|
|
|
+ 'class' => 'plexAuth switchAuth',
|
|
|
'value' => $GLOBALS['plexStrictFriends'],
|
|
'value' => $GLOBALS['plexStrictFriends'],
|
|
|
'help' => 'Enabling this will only allow Friends that have shares to the Machine ID entered above to login, Having this disabled will allow all Friends on your Friends list to login'
|
|
'help' => 'Enabling this will only allow Friends that have shares to the Machine ID entered above to login, Having this disabled will allow all Friends on your Friends list to login'
|
|
|
),
|
|
),
|