-
-
-
+
+ 'Appearance Settings',
+ 'id' => 'appearance_settings',
+ 'submitAction' => 'update-appearance',
+ 'tabs' => array(
+ array(
+ 'title' => 'Colours',
+ 'id' => 'theme_colours',
+ 'image' => 'images/paint.png',
+ 'fields' => array(
+ array(
+ array(
+ 'type' => 'button',
+ 'labelTranslate' => 'CHOOSE_THEME',
+ 'icon' => 'css3',
+ 'id' => 'themeSelector',
+ 'buttonType' => 'dark',
+ 'buttonDrop' => '
+
+ ',
+ ),
+ ),
+ array(
+ 'type' => 'header',
+ 'labelTranslate' => 'TITLE',
+ ),
+ array(
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'labelTranslate' => 'TITLE',
+ 'name' => 'title',
+ 'id' => 'title',
+ 'value' => $title,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'TITLE_TEXT',
+ 'name' => 'topbartext',
+ 'id' => 'topbartext',
+ 'value' => $topbartext,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'LOADING_COLOR',
+ 'name' => 'loading',
+ 'id' => 'loading',
+ 'value' => $loading,
+ ),
+ ),
+ array(
+ 'type' => 'header',
+ 'labelTranslate' => 'NAVIGATION_BARS',
+ ),
+ array(
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'TOP_BAR',
+ 'name' => 'topbar',
+ 'id' => 'topbar',
+ 'value' => $topbar,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'BOTTOM_BAR',
+ 'name' => 'bottombar',
+ 'id' => 'bottombar',
+ 'value' => $bottombar,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'SIDE_BAR',
+ 'name' => 'sidebar',
+ 'id' => 'sidebar',
+ 'value' => $sidebar,
+ ),
+ ),
+ array(
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'HOVER_BG',
+ 'name' => 'hoverbg',
+ 'id' => 'hoverbg',
+ 'value' => $hoverbg,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'HOVER_TEXT',
+ 'name' => 'hovertext',
+ 'id' => 'hovertext',
+ 'value' => $hovertext,
+ ),
+ ),
+ array(
+ 'type' => 'header',
+ 'labelTranslate' => 'ACTIVE_TAB',
+ ),
+ array(
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'ACTIVE_TAB_BG',
+ 'name' => 'activetabBG',
+ 'id' => 'activetabBG',
+ 'value' => $activetabBG,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'ACTIVE_TAB_ICON',
+ 'name' => 'activetabicon',
+ 'id' => 'activetabicon',
+ 'value' => $activetabicon,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'ACTIVE_TAB_TEXT',
+ 'name' => 'activetabtext',
+ 'id' => 'activetabtext',
+ 'value' => $activetabtext,
+ ),
+ ),
+ array(
+ 'type' => 'header',
+ 'labelTranslate' => 'INACTIVE_TAB',
+ ),
+ array(
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'INACTIVE_ICON',
+ 'name' => 'inactiveicon',
+ 'id' => 'inactiveicon',
+ 'value' => $inactiveicon,
+ ),
+ array(
+ 'type' => 'text',
+ 'format' => 'colour',
+ 'class' => 'jscolor {hash:true}',
+ 'labelTranslate' => 'INACTIVE_TEXT',
+ 'name' => 'inactivetext',
+ 'id' => 'inactivetext',
+ 'value' => $inactivetext,
+ ),
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Custom CSS',
+ 'id' => 'theme_css',
+ 'image' => 'images/gear.png',
+ 'fields' => array(
+ array(
+ 'type' => 'header',
+ 'label' => 'Custom CSS',
+ ),
+ array(
+ 'type' => 'textarea',
+ 'name' => 'customCSS',
+ 'value' => (file_exists('./custom.css')?file_get_contents('./custom.css'):''),
+ 'rows' => 25,
+ 'style' => 'background: #000; color: #FFF;',
+ ),
+ ),
+ ),
+ ),
+ )
+);
+?>
+
+
+ 'false',
+ 'User' => 'user|admin',
+ 'Admin' => 'admin',
+);
+
+// Build Homepage Settings
+echo buildSettings(
+ array(
+ 'title' => 'Homepage Settings',
+ 'id' => 'homepage_settings',
+ 'onready' => '',
+ 'tabs' => array(
+ array(
+ 'title' => 'General',
+ 'id' => 'home_general',
+ 'image' => 'images/gear.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_HOMEPAGE',
+ 'name' => 'homePageAuthNeeded',
+ 'value' => HOMEPAGEAUTHNEEDED,
+ 'options' => $userTypes,
+ ),
+ /*
+ array(
+ 'type' => 'custom',
+ 'labelTranslate' => 'SHOW_HOMEPAGE',
+ 'html' => 'homePageAuthNeeded',
+ 'name' => 'homePagelayout',
+ 'value' => '',
+ ),
+ */
+ ),
+ ),
+ array(
+ 'title' => 'Plex',
+ 'id' => 'plex',
+ 'image' => 'images/plex.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'plexHomeAuth',
+ 'value' => PLEXHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:32400',
+ 'labelTranslate' => 'PLEX_URL',
+ 'assist' => 'http://hostname:32400',
+ 'name' => 'plexURL',
+ 'pattern' => $urlPattern,
+ 'value' => PLEXURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(20),
+ 'labelTranslate' => 'PLEX_TOKEN',
+ 'name' => 'plexToken',
+ 'pattern' => '[a-zA-Z0-9]{20}',
+ 'value' => PLEXTOKEN,
+ ),
+ array(
+ 'type' => 'custom',
+ 'html' => '
Plex Token Wiki Article',
+ ),
+ array(
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'RECENT_MOVIES',
+ 'name' => 'plexRecentMovie',
+ 'value' => PLEXRECENTMOVIE,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'RECENT_TV',
+ 'name' => 'plexRecentTV',
+ 'value' => PLEXRECENTTV,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'RECENT_MUSIC',
+ 'name' => 'plexRecentMusic',
+ 'value' => PLEXRECENTMUSIC,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'PLAYING_NOW',
+ 'name' => 'plexPlayingNow',
+ 'value' => PLEXPLAYINGNOW,
+ ),
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Emby',
+ 'id' => 'emby',
+ 'image' => 'images/emby.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'embyHomeAuth',
+ 'value' => EMBYHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:8096/emby',
+ 'labelTranslate' => 'EMBY_URL',
+ 'assist' => 'http://hostname:8096 | https://hostname/emby | http://hostname:8096/emby',
+ 'name' => 'embyURL',
+ 'pattern' => $urlPattern,
+ 'value' => EMBYURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(32),
+ 'labelTranslate' => 'EMBY_TOKEN',
+ 'name' => 'embyToken',
+ 'pattern' => '[a-zA-Z0-9]{32}',
+ 'value' => EMBYTOKEN,
+ ),
+ array(
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'RECENT_MOVIES',
+ 'name' => 'embyRecentMovie',
+ 'value' => EMBYRECENTMOVIE,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'RECENT_TV',
+ 'name' => 'embyRecentTV',
+ 'value' => EMBYRECENTTV,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'RECENT_MUSIC',
+ 'name' => 'embyRecentMusic',
+ 'value' => EMBYRECENTMUSIC,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'PLAYING_NOW',
+ 'name' => 'embyPlayingNow',
+ 'value' => EMBYPLAYINGNOW,
+ ),
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Sonarr',
+ 'id' => 'sonarr',
+ 'image' => 'images/sonarr.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'sonarrHomeAuth',
+ 'value' => SONARRHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:8989',
+ 'labelTranslate' => 'SONARR_URL',
+ 'assist' => 'http://hostname:8989 | hostname/sonarr | http://hostname:8989/sonarr',
+ 'name' => 'sonarrURL',
+ 'pattern' => $urlPattern,
+ 'value' => SONARRURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(32),
+ 'labelTranslate' => 'SONARR_KEY',
+ 'name' => 'sonarrKey',
+ 'pattern' => '[a-zA-Z0-9]{32}',
+ 'value' => SONARRKEY,
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Radarr',
+ 'id' => 'radarr',
+ 'image' => 'images/radarr.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'radarrHomeAuth',
+ 'value' => RADARRHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:7878',
+ 'labelTranslate' => 'RADARR_URL',
+ 'assist' => 'http://hostname:7878 | hostname/radarr | http://hostname:7878/radarr',
+ 'name' => 'radarrURL',
+ 'pattern' => $urlPattern,
+ 'value' => RADARRURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(32),
+ 'labelTranslate' => 'RADARR_KEY',
+ 'name' => 'radarrKey',
+ 'pattern' => '[a-zA-Z0-9]{32}',
+ 'value' => RADARRKEY,
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Sickbeard/Sickrage',
+ 'id' => 'sick',
+ 'image' => 'images/sickrage.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'sickrageHomeAuth',
+ 'value' => SICKRAGEHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:8081/sick',
+ 'labelTranslate' => 'SICK_URL',
+ 'assist' => 'http://hostname:8081 | hostname/sick | http://hostname:8081/sick',
+ 'name' => 'sickrageURL',
+ 'pattern' => $urlPattern,
+ 'value' => SICKRAGEURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(32),
+ 'labelTranslate' => 'SICK_KEY',
+ 'name' => 'sickrageKey',
+ 'value' => SICKRAGEKEY,
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Headphones',
+ 'id' => 'headphones',
+ 'image' => 'images/headphones.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'headphonesHomeAuth',
+ 'value' => HEADPHONESHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:8181',
+ 'labelTranslate' => 'HEADPHONES_URL',
+ 'assist' => 'http://hostname:8181',
+ 'name' => 'headphonesURL',
+ 'pattern' => $urlPattern,
+ 'value' => HEADPHONESURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(32),
+ 'labelTranslate' => 'HEADPHONES_KEY',
+ 'name' => 'headphonesKey',
+ 'value' => HEADPHONESKEY,
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Sabnzbd',
+ 'id' => 'sabnzbd',
+ 'image' => 'images/sabnzbd.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'sabnzbdHomeAuth',
+ 'value' => SABNZBDHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:8080/sabnzbd',
+ 'labelTranslate' => 'SABNZBD_URL',
+ 'assist' => 'http://hostname:8080 | http://hostname/sabnzbd | http://hostname:8080/sabnzbd',
+ 'name' => 'sabnzbdURL',
+ 'pattern' => $urlPattern,
+ 'value' => SABNZBDURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(32),
+ 'labelTranslate' => 'SABNZBD_KEY',
+ 'name' => 'sabnzbdKey',
+ 'value' => SABNZBDKEY,
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'nzbGET',
+ 'id' => 'nzbget',
+ 'image' => 'images/nzbget.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'nzbgetHomeAuth',
+ 'value' => NZBGETHOMEAUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:6789',
+ 'labelTranslate' => 'NZBGET_URL',
+ 'assist' => 'http://hostname:6789',
+ 'name' => 'nzbgetURL',
+ 'pattern' => $urlPattern,
+ 'value' => NZBGETURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'USERNAME',
+ 'name' => 'nzbgetUsername',
+ 'value' => NZBGETUSERNAME,
+ ),
+ array(
+ 'type' => 'password',
+ 'labelTranslate' => 'PASSWORD',
+ 'name' => 'nzbgetPassword',
+ 'value' => (empty(NZBGETPASSWORD)?'':randString(20)),
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Calendar',
+ 'id' => 'calendar',
+ 'image' => 'images/calendar.png',
+ 'fields' => array(
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'CALENDAR_START_DAY',
+ 'name' => 'calendarStart',
+ 'value' => CALENDARSTART,
+ 'options' => array(
+ explode('|', translate('DAYS'))[0] => '0',
+ explode('|', translate('DAYS'))[1] => '1',
+ explode('|', translate('DAYS'))[2] => '2',
+ explode('|', translate('DAYS'))[3] => '3',
+ explode('|', translate('DAYS'))[4] => '4',
+ explode('|', translate('DAYS'))[5] => '5',
+ explode('|', translate('DAYS'))[6] => '6',
+ ),
+ ),
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'DEFAULT',
+ 'name' => 'calendarView',
+ 'value' => CALENDARVIEW,
+ 'options' => array(
+ translate('MONTH') => 'month',
+ translate('DAY') => 'basicDay',
+ translate('WEEK') => 'basicWeek',
+ ),
+ ),
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'CALTIMEFORMAT',
+ 'name' => 'calTimeFormat',
+ 'value' => CALTIMEFORMAT,
+ 'options' => array(
+ '6p' => 'h(:mm)t',
+ '6:00p' => 'h:mmt',
+ '6:00' => 'h:mm',
+ '18' => 'H(:mm)',
+ '18:00' => 'H:mm',
+ ),
+ ),
+ array(
+ 'type' => 'number',
+ 'placeholder' => '10',
+ 'labelTranslate' => 'CALENDAR_START_DATE',
+ 'name' => 'calendarStartDay',
+ 'pattern' => '[1-9][0-9]+',
+ 'value' => CALENDARSTARTDAY,
+ ),
+ array(
+ 'type' => 'number',
+ 'placeholder' => '10',
+ 'labelTranslate' => 'CALENDAR_END_DATE',
+ 'name' => 'calendarEndDay',
+ 'pattern' => '[1-9][0-9]+',
+ 'value' => CALENDARENDDAY,
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Custom HTML 1',
+ 'id' => 'customhtml1',
+ 'image' => 'images/gear.png',
+ 'fields' => array(
+ array(
+ 'type' => $userSelectType,
+ 'labelTranslate' => 'SHOW_ON_HOMEPAGE',
+ 'name' => 'homepageCustomHTML1Auth',
+ 'value' => HOMEPAGECUSTOMHTML1AUTH,
+ 'options' => $userTypes,
+ ),
+ array(
+ 'type' => 'textarea',
+ 'labelTranslate' => 'CUSTOMHTML',
+ 'name' => 'homepageCustomHTML1',
+ 'value' => HOMEPAGECUSTOMHTML1,
+ 'rows' => 10,
+ 'style' => 'background: #000; color: #FFF;',
+ ),
+ ),
+ ),
+ ),
+ )
+);
+?>
+
+
+ randString(),
+ 'disabled' => true,
+ );
+ }
+}
+ksort($backendOptions);
+
+echo buildSettings(
+ array(
+ 'title' => 'Advanced Settings',
+ 'id' => 'advanced_settings',
+ 'onready' => '$(\'#authType_id\').trigger(\'change\')',
+ 'tabs' => array(
+ array(
+ 'title' => 'Backend Authentication',
+ 'id' => 'be_auth',
+ 'image' => 'images/security.png',
+ 'fields' => array(
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'AUTHTYPE',
+ 'name' => 'authType',
+ 'value' => AUTHTYPE,
+ 'onchange' => 'if (this.value == \'internal\') { $(\'.be-auth, #authBackend_id, #authBackendCreate_id\').parent().hide(); } else { $(\'#authBackend_id, #authBackendCreate_id\').trigger(\'change\').parent().show(); }',
+ 'options' => array(
+ 'Organizr' => 'internal',
+ 'Organizr & Backend' => 'both',
+ // 'Backend' => 'external',
+ ),
+ ),
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'AUTHBACKEND',
+ 'name' => 'authBackend',
+ 'onchange' => '$(\'.be-auth\').each(function() { $(this).parent().hide(); }); $(\'.be-auth-\'+this.value).each(function() { $(this).parent().show(); });',
+ 'value' => AUTHBACKEND,
+ 'options' => $backendOptions,
+ ),
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'AUTHBACKENDCREATE',
+ 'name' => 'authBackendCreate',
+ 'value' => AUTHBACKENDCREATE,
+ 'options' => array(
+ translate('YES_CREATE') => 'true',
+ translate('NO_CREATE') => 'false',
+ ),
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:8181',
+ 'labelTranslate' => 'AUTHBACKENDHOST',
+ 'assist' => 'http(s)://hostname:8181 | Ldap(s)://localhost:389 | ftp(s)://localhost:21',
+ 'name' => 'authBackendHost',
+ 'class' => 'be-auth be-auth-ftp be-auth-ldap',
+ 'pattern' => '((?:[hH][tT][tT][pP]|[lL][dD][aA][pP]|[fF][tT][pP])[sS]?):\/\/([\w\.]{1,250})(?::(\d{1,5}))?((?:\/[^?.\s]+))?',
+ 'value' => AUTHBACKENDHOST,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'domain',
+ 'labelTranslate' => 'AUTHBACKENDDOMAIN',
+ 'name' => 'authBackendDomain',
+ 'class' => 'be-auth be-auth-ldap',
+ 'value' => AUTHBACKENDDOMAIN,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'http://hostname:8096/emby',
+ 'labelTranslate' => 'EMBY_URL',
+ 'assist' => 'http://hostname:8096 | https://hostname/emby | http://hostname:8096/emby',
+ 'class' => 'be-auth be-auth-emby_local be-auth-emby_all be-auth-emby_connect',
+ 'name' => 'embyURL',
+ 'pattern' => $urlPattern,
+ 'value' => EMBYURL,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => randString(32),
+ 'labelTranslate' => 'EMBY_TOKEN',
+ 'name' => 'plexToken',
+ 'class' => 'be-auth be-auth-emby_all be-auth-emby_connect',
+ 'pattern' => '[a-zA-Z0-9]{32}',
+ 'value' => EMBYTOKEN,
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'PLEX_USERNAME',
+ 'name' => 'plexUsername',
+ 'class' => 'be-auth be-auth-plex',
+ 'value' => PLEXUSERNAME,
+ ),
+ array(
+ 'type' => 'password',
+ 'labelTranslate' => 'PLEX_PASSWORD',
+ 'name' => 'plexPassword',
+ 'class' => 'be-auth be-auth-plex',
+ 'value' => (empty(PLEXPASSWORD)?'':randString(20)),
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Super Advanced',
+ 'id' => 'super_advanced',
+ 'image' => 'images/gear.png',
+ 'fields' => array(
+ array(
+ 'type' => 'text',
+ 'placeholder' => '/home/www-data/',
+ 'labelTranslate' => 'DATABASE_PATH',
+ 'name' => 'database_Location',
+ 'value' => DATABASE_LOCATION,
+ ),
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'SET_TIMEZONE',
+ 'name' => 'timezone',
+ 'value' => TIMEZONE,
+ 'options' => timezoneOptions(),
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'REGISTER_PASSWORD',
+ 'name' => 'registerPassword',
+ 'value' => REGISTERPASSWORD,
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'COOKIE_DOMAIN',
+ 'name' => 'domain',
+ 'value' => DOMAIN,
+ ),
+ array(
+ 'type' => 'password',
+ 'labelTranslate' => 'COOKIE_PASSWORD',
+ 'name' => 'cookiePassword',
+ 'value' => (empty(COOKIEPASSWORD)?'':randString(20)),
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'GIT_BRANCH',
+ 'placeholder' => 'Default: \'master\' - Development: \'develop\' OR \'cero-dev\'',
+ 'id' => 'git_branch_id',
+ 'name' => 'git_branch',
+ 'value' => GIT_BRANCH,
+ ),
+ array(
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'GIT_CHECK',
+ 'name' => 'git_check',
+ 'value' => GIT_CHECK,
+ ),
+ array(
+ 'type' => 'button',
+ 'id' => 'gitForceInstall',
+ 'labelTranslate' => 'GIT_FORCE',
+ 'icon' => 'gear',
+ 'onclick' => 'if ($(\'#git_branch_id[data-changed]\').length) { alert(\'Branch was altered, save settings first!\') } else { if (confirm(\''.translate('GIT_FORCE_CONFIRM').'\')) { ajax_request(\'POST\', \'forceBranchInstall\'); } }',
+ ),
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'MULTIPLE_LOGINS',
+ 'name' => 'multipleLogin',
+ 'value' => MULTIPLELOGIN,
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Mail Settings',
+ 'id' => 'mail_settings',
+ 'image' => 'images/mail.png',
+ 'fields' => array(
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'mail.provider.com',
+ 'labelTranslate' => 'SMTP_HOST',
+ 'name' => 'smtpHost',
+ 'pattern' => '([\w\.]{1,250})',
+ 'value' => SMTPHOST,
+ ),
+ array(
+ 'type' => 'number',
+ 'placeholder' => '465',
+ 'labelTranslate' => 'SMTP_HOST_PORT',
+ 'name' => 'smtpHostPort',
+ 'value' => SMTPHOSTPORT,
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'SMTP_HOST_USERNAME',
+ 'name' => 'smtpHostUsername',
+ 'value' => SMTPHOSTUSERNAME,
+ ),
+ array(
+ 'type' => 'password',
+ 'labelTranslate' => 'SMTP_HOST_PASSWORD',
+ 'name' => 'smtpHostPassword',
+ 'value' => (empty(SMTPHOSTPASSWORD)?'':randString(20)),
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'SMTP_HOST_SENDER_NAME',
+ 'name' => 'smtpHostSenderName',
+ 'value' => SMTPHOSTSENDERNAME,
+ ),
+ array(
+ 'type' => 'text',
+ 'labelTranslate' => 'SMTP_HOST_SENDER_EMAIL',
+ 'name' => 'smtpHostSenderEmail',
+ 'value' => SMTPHOSTSENDEREMAIL,
+ ),
+ array(
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'SMTP_HOST_AUTH',
+ 'name' => 'smtpHostAuth',
+ 'value' => SMTPHOSTAUTH,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'ENABLE_MAIL',
+ 'name' => 'enableMail',
+ 'value' => ENABLEMAIL,
+ ),
+ ),
+ ),
+ ),
+ array(
+ 'title' => 'Advanced Visual',
+ 'id' => 'advanced_visual',
+ 'image' => 'images/paint.png',
+ 'fields' => array(
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'images/organizr.png',
+ 'labelTranslate' => 'LOADING_ICON_URL',
+ 'name' => 'loadingIcon',
+ 'value' => LOADINGICON,
+ ),
+ array(
+ 'type' => 'text',
+ 'placeholder' => 'images/organizr.png',
+ 'labelTranslate' => 'LOGO_URL_TITLE',
+ 'name' => 'titleLogo',
+ 'value' => TITLELOGO,
+ ),
+ array(
+ 'type' => 'select',
+ 'labelTranslate' => 'NOTIFICATION_TYPE',
+ 'name' => 'notifyEffect',
+ 'onchange' => 'parent.notify(\'This is an example popup!\', \'bullhorn\', \'success\', 4000, this.value.split(\'-\')[0], this.value.split(\'-\')[1]);',
+ 'value' => NOTIFYEFFECT,
+ 'options' => array(
+ 'Slide From Top' => 'bar-slidetop',
+ 'Exploader From Top' => 'bar-exploader',
+ 'Flip' => 'attached-flip',
+ 'Bouncy Flip' => 'attached-bouncyflip',
+ 'Growl Scale' => 'growl-scale',
+ 'Growl Genie' => 'growl-genie',
+ 'Growl Jelly' => 'growl-jelly',
+ 'Growl Slide' => 'growl-slide',
+ 'Spinning Box' => 'other-boxspinner',
+ 'Sliding' => 'other-thumbslider',
+ ),
+ ),
+ array(
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'ENABLE_LOADING_SCREEN',
+ 'name' => 'loadingScreen',
+ 'value' => LOADINGSCREEN,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'ENABLE_SLIMBAR',
+ 'name' => 'slimBar',
+ 'value' => SLIMBAR,
+ ),
+ array(
+ 'type' => 'checkbox',
+ 'labelTranslate' => 'GRAVATAR',
+ 'name' => 'gravatar',
+ 'value' => GRAVATAR,
+ ),
+ ),
+ ),
+ ),
+ ),
+ )
+);
+?>
+
-
-
-
-
-
-
-
-
-
-
translate("DELETE_DATABASE");?>
-
-
-
-
translate("DELETE_WARNING");?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-