@ -428,12 +434,19 @@ function admin_page_site(&$a) {
if(file_exists($file.'/mobile')){
$theme_choices_mobile[$f]=$theme_name;
}
else{
else{
$theme_choices[$f]=$theme_name;
}
}
}
/* get user names to make the install a personal install of X */
$user_names=array();
$user_names['---']=t('Multi user instance');
$users=q("SELECT username, nickname FROM `user`");
foreach($usersas$user){
$user_names[$user['nickname']]=$user['username'];
}
/* Banner */
$banner=get_config('system','banner');
@ -477,6 +490,7 @@ function admin_page_site(&$a) {
'$ssl_policy'=>array('ssl_policy',t("SSL link policy"),(string)intval(get_config('system','ssl_policy')),t("Determines whether generated links should be forced to use SSL"),$ssl_choices),
'$new_share'=>array('new_share',t("'Share' element"),get_config('system','new_share'),t("Activates the bbcode element 'share' for repeating items.")),
'$hide_help'=>array('hide_help',t("Hide help entry from navigation menu"),get_config('system','hide_help'),t("Hides the menu entry for the Help pages from the navigation menu. You can still access it calling /help directly.")),
'$singleuser'=>array('singleuser',t("Single user instance"),get_config('system','singleuser'),t("Make this instance multi-user or single-user for the named user"),$user_names),
'$maximagesize'=>array('maximagesize',t("Maximum image size"),get_config('system','maximagesize'),t("Maximum size in bytes of uploaded images. Default is 0, which means no limits.")),
'$maximagelength'=>array('maximagelength',t("Maximum image length"),get_config('system','max_image_length'),t("Maximum length in pixels of the longest side of uploaded images. Default is -1, which means no limits.")),
'$jpegimagequality'=>array('jpegimagequality',t("JPEG image quality"),get_config('system','jpeg_quality'),t("Uploaded JPEGS will be saved at this quality setting [0-100]. Default is 100, which is full quality.")),