forked from friendica/friendica-addons
SN admin panel with application name
This commit is contained in:
parent
e587631eeb
commit
d5f5263a16
1 changed files with 5 additions and 1 deletions
|
@ -704,6 +704,7 @@ function statusnet_plugin_admin_post(&$a){
|
||||||
$apiurl=trim($_POST['apiurl'][$id]);
|
$apiurl=trim($_POST['apiurl'][$id]);
|
||||||
$secret=trim($_POST['secret'][$id]);
|
$secret=trim($_POST['secret'][$id]);
|
||||||
$key=trim($_POST['key'][$id]);
|
$key=trim($_POST['key'][$id]);
|
||||||
|
$applicationname = ((x($_POST, 'applicationname')) ? notags(trim($_POST['applicationname'][$id])):'');
|
||||||
if ($sitename!="" &&
|
if ($sitename!="" &&
|
||||||
$apiurl!="" &&
|
$apiurl!="" &&
|
||||||
$secret!="" &&
|
$secret!="" &&
|
||||||
|
@ -714,7 +715,8 @@ function statusnet_plugin_admin_post(&$a){
|
||||||
'sitename' => $sitename,
|
'sitename' => $sitename,
|
||||||
'apiurl' => $apiurl,
|
'apiurl' => $apiurl,
|
||||||
'consumersecret' => $secret,
|
'consumersecret' => $secret,
|
||||||
'consumerkey' => $key
|
'consumerkey' => $key,
|
||||||
|
'applicationname' => $applicationname
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -734,6 +736,7 @@ function statusnet_plugin_admin(&$a, &$o){
|
||||||
'apiurl' => Array("apiurl[$id]", "Api url", $s['apiurl'], ""),
|
'apiurl' => Array("apiurl[$id]", "Api url", $s['apiurl'], ""),
|
||||||
'secret' => Array("secret[$id]", "Secret", $s['consumersecret'], ""),
|
'secret' => Array("secret[$id]", "Secret", $s['consumersecret'], ""),
|
||||||
'key' => Array("key[$id]", "Key", $s['consumerkey'], ""),
|
'key' => Array("key[$id]", "Key", $s['consumerkey'], ""),
|
||||||
|
'applicationname' => Array("applicationname[$id]", "Application name", $s['applicationname'], ""),
|
||||||
'delete' => Array("delete[$id]", "Delete", False , "Check to delete this preset"),
|
'delete' => Array("delete[$id]", "Delete", False , "Check to delete this preset"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -745,6 +748,7 @@ function statusnet_plugin_admin(&$a, &$o){
|
||||||
'apiurl' => Array("apiurl[$id]", t("API URL"), "", ""),
|
'apiurl' => Array("apiurl[$id]", t("API URL"), "", ""),
|
||||||
'secret' => Array("secret[$id]", t("Consumer Secret"), "", ""),
|
'secret' => Array("secret[$id]", t("Consumer Secret"), "", ""),
|
||||||
'key' => Array("key[$id]", t("Consumer Key"), "", ""),
|
'key' => Array("key[$id]", t("Consumer Key"), "", ""),
|
||||||
|
'applicationname' => Array("applicationname[$id]", t("Application name"), "", ""),
|
||||||
);
|
);
|
||||||
|
|
||||||
$t = get_markup_template( "admin.tpl", "addon/statusnet/" );
|
$t = get_markup_template( "admin.tpl", "addon/statusnet/" );
|
||||||
|
|
Loading…
Reference in a new issue