mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
renaming and moving from security to Model/Item and BaseModule
This commit is contained in:
parent
e7f4dc8454
commit
0bb8fdfde2
5 changed files with 15 additions and 11 deletions
|
@ -6,6 +6,7 @@
|
|||
* Author: Keith Fernie <http://friendika.me4.it/profile/keith>
|
||||
*/
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -143,7 +144,7 @@ function public_server_login($a, $b)
|
|||
|
||||
function public_server_addon_admin_post(&$a)
|
||||
{
|
||||
Security::check_form_security_token_redirectOnErr('/admin/addons/publicserver', 'publicserver');
|
||||
BaseModule::checkFormSecurityTokenRedirectOnError('/admin/addons/publicserver', 'publicserver');
|
||||
$expiredays = (x($_POST, 'expiredays') ? notags(trim($_POST['expiredays'])) : '');
|
||||
$expireposts = (x($_POST, 'expireposts') ? notags(trim($_POST['expireposts'])) : '');
|
||||
$nologin = (x($_POST, 'nologin') ? notags(trim($_POST['nologin'])) : '');
|
||||
|
@ -161,7 +162,7 @@ function public_server_addon_admin_post(&$a)
|
|||
|
||||
function public_server_addon_admin(&$a, &$o)
|
||||
{
|
||||
$token = Security::get_form_security_token("publicserver");
|
||||
$token = BaseModule::getFormSecurityToken("publicserver");
|
||||
$t = get_markup_template("admin.tpl", "addon/public_server");
|
||||
$o = replace_macros($t, [
|
||||
'$submit' => L10n::t('Save Settings'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue