X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_wr.php;h=b266abb662e191bdb1ba6ca33864c4eeee2b184f;hb=f95117c9e5506c4cb00e1b5ee02b2e566c837874;hp=b0c9ac025aff849d0dabf97195f88fcc58971ee4;hpb=2a36c945e6c9107f400dfb24d57c682f1c7f49e2;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index b0c9ac0..b266abb 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -117,6 +117,8 @@ Ti sei registrato col nickname \'%s\',
Ciò è necessario per ottenere la password.

Saluti e buone partite, mop.
', 'en' => 'EN mhtml [%s] [%s]'), + 'info_err' => array( 'it' => 'E\' occorso un errore (%d), riprova più tardi.', + 'en' => 'Some error occurs (%d), retry later.') ); define('LICMGR_CHO_ACCEPT', 0); @@ -351,6 +353,20 @@ function index_wr_main(&$brisk, $remote_addr_full, $get, $post, $cookie) if ($argz[0] == 'ping') { log_wr("PING RECEIVED"); } + else if ($argz[0] == 'info') { + if ($argz[1] == 'save') { + if (!isset($post['info'])) { + return FALSE; + } + if (($ret = $brisk->info_save($user, $post['info'])) == 0) { + echo "1"; + return TRUE; + } + + printf($mlang_indwr['info_err'][$G_lang], $ret); + return FALSE; + } + } else if ($argz[0] == 'prefs') { if ($argz[1] == 'save') { if (!isset($post['prefs'])) {