Merge pull request #267 from tomtom84/master

add link "remove account" to /mod/settings.php
This commit is contained in:
friendica 2012-04-26 15:33:34 -07:00
commit 3ee998dbaf
2 changed files with 11 additions and 1 deletions

View file

@ -75,6 +75,11 @@ EOT;
'label' => t('Export personal data'), 'label' => t('Export personal data'),
'url' => $a->get_baseurl(true) . '/uexport', 'url' => $a->get_baseurl(true) . '/uexport',
'selected' => '' 'selected' => ''
),
array(
'label' => t('Remove account'),
'url' => $a->get_baseurl(true) . '/removeme',
'selected' => ''
) )
); );

View file

@ -14,12 +14,17 @@ $a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version);
//change css on network and profilepages //change css on network and profilepages
$cssFile = null; $cssFile = null;
$resolution=false; $resolution=false;
$resolution = get_pconfig(local_user(), "diabook", "resolution"); $resolution = get_pconfig(local_user(), "diabook", "resolution");
if ($resolution===false) $resolution="normal"; if ($resolution===false) $resolution="normal";
$color = false; $color = false;
$color = get_pconfig(local_user(), "diabook", "color"); $site_color = get_config("diabook", "color" );
if (local_user()) {$color = get_pconfig(local_user(), "diabook", "color");}
if ($color===false) $color=$site_color;
if ($color===false) $color="diabook"; if ($color===false) $color="diabook";
if ($color=="diabook") $color_path = "/"; if ($color=="diabook") $color_path = "/";
if ($color=="aerith") $color_path = "/diabook-aerith/"; if ($color=="aerith") $color_path = "/diabook-aerith/";
if ($color=="blue") $color_path = "/diabook-blue/"; if ($color=="blue") $color_path = "/diabook-blue/";