$latest, 'pending' => false ); if (version_compare(AM_VERSION, $latest, '<')) { $data['pending'] = true; } return $Response->setData($data); } /** * System updates. * * @return Response the response object */ public static function update(): Response { $Response = new Response(); $data = array( 'state' => 'upToDate', 'current' => AM_VERSION, 'latest' => '', 'items' => Update::items() ); if (strpos(AM_BASE_DIR, '/automad-dev') !== false) { $data['state'] = 'disabled'; return $Response->setData($data); } if (!Update::supported()) { $data['state'] = 'notSupported'; return $Response->setData($data); } if (!empty($_POST['update'])) { $Messenger = new Messenger(); if (Update::run($Messenger)) { $Response->setData($Messenger->getData()); } return $Response ->setError($Messenger->getError()) ->setSuccess($Messenger->getSuccess()); } $latest = Update::getVersion(); if (empty($latest)) { $data['state'] = 'connectionError'; return $Response->setData($data); } $data['latest'] = $latest; if (version_compare(AM_VERSION, $latest, '<')) { $data['state'] = 'pending'; } return $Response->setData($data); } } __halt_compiler();----SIGNATURE:----yt6MTat6VfabTQTsvim3xkdOTkU2/usZ4pTIbsm3okZKjUuEoCbQTJW4HnhX3dAdI2RchHeCSyyWAw++/gLeW8UuoL5wai9xf5Jbpf+mRvd/z7rtRiAoHTzHRJLKzU7jEYWbFUa9nAE7dO6rV4pLnoJCu+d3bFLnR7Wl6A+VxvZluu+Ng+Rh7YtsImwcnfXJvVa+qACJsNOWuKd4myk2ZCl8uNMAhtqLxtwmLm3T1d2a0otB0yyQij66XoasniY8s1xBfH3ReVMlnstYojzJ+ra+02dNy8qc+/gQbLnukK6dWpxjS/08L5coLljgqj/FmK/ikrLsMo19vRrI6PkNFtp8QvEu7//mClSsVwY3nllo9B7Rcey5mdGFKn1IObbhXGjMlnPcVjIZpxOBrEedzHjlFLfG+zGTGT71wc/WODeqPz2cDGhO32oOxjDAS1yyUbixjfebHd/SEb1hF7agZ36SpxIueU0f202v9bHiL7sacvPo6zkE1Mq/1DPqZ/HN6RlPBhH07EJQbiM3lP0Hnp/eG/nH71ilpt6PBWGF33UVXkwTe7UdCVrn7VmVl6ffTk56VnzBm4BLG/BDqp03foZ7ihn4aJ9x00qfPpVXDJHTSl5/E3zCn19NZUeblIhhuryn4VrxabB9dRMn+5m331soJA/8CLvvy2a9KploXPA=----ATTACHMENT:----MjA3NTM1MTQxNzg0MTIzMSA0OTM0NzA0MjYxNDQwMTQ5IDY1ODkzNzMzNDQ2ODQxNQ==