Edit Tabs
'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/css.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',
);
$branchTypes = array(
'Master' => 'master',
'Develop' => 'develop',
'Pre-Develop' => 'cero-dev',
);
$refreshSeconds = array(
'1 sec' => '1000',
'5 secs' => '5000',
'10 secs' => '10000',
'15 secs' => '15000',
'30 secs' => '30000',
'60 secs' => '60000',
'90 secs' => '90000',
'120 secs' => '120000',
);
// 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' => 'checkbox',
'labelTranslate' => 'SPEED_TEST',
'name' => 'speedTest',
'value' => SPEEDTEST,
),
/*
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' => '',
),
array(
'type' => 'text',
'placeholder' => "",
'labelTranslate' => 'RECENT_ITEMS_LIMIT',
'name' => 'plexRecentItems',
'pattern' => '[0-9]+',
'value' => PLEXRECENTITEMS,
),
array(
'type' => 'text',
'placeholder' => "Name of Plex Tab i.e. Plex",
'labelTranslate' => 'PLEX_TAB_NAME',
'name' => 'plexTabName',
'value' => PLEXTABNAME,
),
array(
array(
'type' => 'checkbox',
'labelTranslate' => 'ALLOW_SEARCH',
'name' => 'plexSearch',
'value' => PLEXSEARCH,
),
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' => 'PLAYLISTS',
'name' => 'plexPlaylists',
'value' => PLEXPLAYLISTS,
),
array(
'type' => 'checkbox',
'labelTranslate' => 'PLAYING_NOW',
'name' => 'plexPlayingNow',
'value' => PLEXPLAYINGNOW,
),
array(
'type' => 'checkbox',
'labelTranslate' => 'SHOW_NAMES',
'name' => 'plexShowNames',
'value' => PLEXSHOWNAMES,
),
),
),
),
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(
'type' => 'text',
'placeholder' => "",
'labelTranslate' => 'RECENT_ITEMS_LIMIT',
'name' => 'embyRecentItems',
'pattern' => '[0-9]+',
'value' => EMBYRECENTITEMS,
),
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(
'type' => 'checkbox',
'labelTranslate' => 'SHOW_NAMES',
'name' => 'embyShowNames',
'value' => EMBYSHOWNAMES,
),
),
),
),
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(
'type' => $userSelectType,
'labelTranslate' => 'DOWNLOAD_REFRESH',
'name' => 'downloadRefresh',
'value' => DOWNLOADREFRESH,
'options' => $refreshSeconds,
),
array(
'type' => $userSelectType,
'labelTranslate' => 'HISTORY_REFRESH',
'name' => 'historyRefresh',
'value' => HISTORYREFRESH,
'options' => $refreshSeconds,
),
),
),
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(
'type' => $userSelectType,
'labelTranslate' => 'DOWNLOAD_REFRESH',
'name' => 'downloadRefresh',
'value' => DOWNLOADREFRESH,
'options' => $refreshSeconds,
),
array(
'type' => $userSelectType,
'labelTranslate' => 'HISTORY_REFRESH',
'name' => 'historyRefresh',
'value' => HISTORYREFRESH,
'options' => $refreshSeconds,
),
),
),
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' => 'Notice',
'id' => 'notice',
'image' => 'images/pin.png',
'fields' => array(
array(
'type' => $userSelectType,
'labelTranslate' => 'SHOW_ON_HOMEPAGE',
'name' => 'homepageNoticeAuth',
'value' => HOMEPAGENOTICEAUTH,
'options' => $userTypes,
),
array(
'type' => $userSelectType,
'labelTranslate' => 'NOTICE_LAYOUT',
'name' => 'homepageNoticeLayout',
'value' => HOMEPAGENOTICELAYOUT,
'options' => array(
'Elegant' => 'elegant',
'Basic' => 'basic',
'Jumbotron' => 'jumbotron',
),
),
array(
'type' => $userSelectType,
'labelTranslate' => 'NOTICE_COLOR',
'name' => 'homepageNoticeType',
'value' => HOMEPAGENOTICETYPE,
'options' => array(
'Green' => 'success',
'Blue' => 'primary',
'Gray' => 'gray',
'Red' => 'danger',
'Yellow' => 'warning',
'Light Blue' => 'info',
),
),
array(
'type' => 'text',
'labelTranslate' => 'NOTICE_TITLE',
'name' => 'homepageNoticeTitle',
'value' => HOMEPAGENOTICETITLE,
),
/*array(
'type' => 'textarea',
'labelTranslate' => 'NOTICE_MESSAGE',
'name' => 'homepageNoticeMessage',
'value' => HOMEPAGENOTICEMESSAGE,
'rows' => 5,
'class' => 'material no-code',
),*/
array(
'type' => 'custom',
'labelTranslate' => 'NOTICE_MESSAGE',
'html' => '
'.HOMEPAGENOTICEMESSAGE.'
',
),
),
),
array(
'title' => 'Custom HTML 1',
'id' => 'customhtml1',
'image' => 'images/html.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' => 15,
'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(); }if (this.value == \'external\') { alert(\'ATTENTION! Before using this option, Make sure that the ADMIN account that you setup matches at least one username on your external backend. Otherwide you will lose Admin functionality. If something messes up, edit config/config.php and change authType to either internal or both.\') } ',
'options' => array(
'Organizr' => 'internal',
(AUTHBACKEND) ? 'Organizr & '.ucwords(AUTHBACKEND) : 'Organizr & Backend' => 'both',
(AUTHBACKEND) ? ucwords(AUTHBACKEND)." Only" : "Backend Only" => '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' => 'embyToken',
'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(
'type' => 'text',
'labelTranslate' => 'ORGANIZR_API_KEY',
'name' => 'organizrAPI',
'value' => ORGANIZRAPI,
),
array(
'type' => 'button',
'id' => 'generateAPI',
'labelTranslate' => 'GENERATE_API_KEY',
'icon' => 'key',
'onclick' => 'var code = generateCode(); $(\'#organizrAPI_id\').val(code); $(\'#organizrAPI_id\').attr(\'data-changed\', \'true\');',
),
),
),
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' => 'IPINFO_TOKEN',
'name' => 'ipInfoToken',
'value' => IPINFOTOKEN,
),
array(
'type' => 'select',
'labelTranslate' => 'GIT_BRANCH',
'placeholder' => 'Default: \'master\' - Development: \'develop\' OR \'cero-dev\'',
'id' => 'git_branch_id',
'name' => 'git_branch',
'value' => GIT_BRANCH,
'options' => $branchTypes,
),
array(
array(
'type' => 'checkbox',
'labelTranslate' => 'GIT_CHECK',
'name' => 'git_check',
'value' => GIT_CHECK,
),
array(
'type' => 'button',
'id' => 'gitForceInstall',
'style' => (extension_loaded("ZIP")) ? "" : "display : none",
'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').'\')) { performUpdate(); 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(
'type' => 'select',
'labelTranslate' => 'SMTP_HOST_AUTH',
'name' => 'smtpHostType',
'value' => SMTPHOSTTYPE,
'options' => array(
'ssl' => 'ssl',
'tls' => 'tls',
),
),
array(
array(
'type' => 'button',
'labelTranslate' => 'TEST_EMAIL',
'id' => 'testEmail',
'icon' => 'flask',
),
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_SPLASH_SCREEN',
'name' => 'splash',
'value' => SPLASH,
),
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,
),
),
),
),
array(
'title' => 'Backup Settings',
'id' => 'backup_settings',
'image' => 'images/backup.png',
'fields' => array(
array(
array(
'type' => 'button',
'labelTranslate' => 'BACKUP_NOW',
'id' => 'backupNow',
'icon' => 'database',
'style' => (extension_loaded("ZIP")) ? "margin-bottom: 5px;" : "display : none",
),
),
array(
'type' => 'textarea',
'labelTranslate' => 'BACKUP_LIST',
'name' => 'backupList',
'value' => (extension_loaded("ZIP")) ? implode("\n",getBackups()) : "PLEASE ENABLE PHP ZIP",
'rows' => 15,
'style' => 'background: #000; color: #FFF;pointer-events: none',
),
),
),
),
)
);
?>
Donate To Organizr
Hey There username);?>,
I had always said that I wouldn't take any donations for my work but some situations have changed in my life. By no means does anyone need to donate but if you choose to help out and show appreciation I would surely appreciate that very much. I do all of this for everyone and because I'm happy when i do it :)
I just want to take this time to thank you for even visiting this section of Organizr. Just by you clicking into this area makes me happy. Even the fact that you are still reading this makes me happy. I bet now you are wondering, why am I even still reading this... LOL, don't worry, I'm kinda laughing as I am typing this. Anywho, thank you for reading along and I hope you enjoy the rest of your day.
CauseFX
Users Management
Invite Management
Logs
| translate("DATE");?> | translate("USERNAME");?> | translate("IP_ADDRESS");?> | translate("TYPE");?> |
|---|---|---|---|
| =$val["date"];?> | =$val["username"];?> | =$val["ip"];?> | ">=$val["auth_type"];?> |









