Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1753

Přidáno uživatelem Ondřej Fibich před téměř 12 roky(ů)

Novinky:

- #143 - informacni zpravy o pripojeni se nezasilaji, pokud zpravu nevypolnuje sam uzivatel (typicky technik)

Zobrazit rozdíly:

freenetis/branches/1.1/application/i18n/cs_CZ/help.php
'clean_temp_whitelist' => 'Po importu vymaže členy z dočasné bílé listiny',
'connection_request_device_type' => 'Obvykle zařízení, se kterým se snažíte přistoupit na internet (PC, notebook, mobil).',
'connection_request_info' => 'Pro připojení neregistrované přípojky/zařízení vyplňte prosím tento formulář.<br/>Rozhodnutí o vyhovění/zamítnutí Vaší žádosti Vám bude zasláno na Vaši e-mailovou adresu.',
'connection_request_info_short' => 'Pro připojení neregistrované přípojky/zařízení vyplňte prosím tento formulář.',
'connection_request_mac_address' => 'Fyzická adresa zařízení, se kterým se snažíte přistoupit na internet (PC, notebook, mobil). Pokud nedokážete tuto vlastnost zjistit, použijte tlačítko u políčka, které se pokusí adresu načíst automaticky.',
'content_of_message' => 'Obsah zprávy pro přesměrování je možno díky zabudovanému editoru měnit jak ručně, tak s pomocí jeho palety formátování. V textu lze využít několik speciálních tagů ve složených závorkách, které se zobrazí podle IP adresy přesměrovaného člena. {member_name} zobrazí jméno člena, {member_id} ID člena, {ip_address} IP adresu, {subnet_name} název podsítě, {variable_symbol} variabilní symbol, {balance} zůstatek, {comment} osobní komentář.',
'credit_subaccounts' => 'Kreditní podúčty jsou jinde ve Freenetisu zmíněny jako kreditní účty, ovšem z pohledu účetního, jde spíše o podúčty. Z pohledu účetního jde stále o jeden účet 221100. Zde jsou ovšem vypsány podúčty, které vyjadřují vnitřní rozdělení peněz na účtu a jde o peníze na účtech jednotlivých členů.',
freenetis/branches/1.1/application/i18n/en_US/help.php
'clean_temp_whitelist' => 'Removes members from temporary whilelist after import',
'connection_request_device_type' => 'Typically the device that you are trying to access the internet (PC, laptop, mobile, ...).',
'connection_request_info' => 'To connect unregistered connections/device please fill out this form.<br/>Decision on the pass/rejection of your request will be sent to your e-mail address.',
'connection_request_info_short' => 'To connect unregistered connections/device please fill out this form.',
'connection_request_mac_address' => 'The physical address of the device that you are trying to access the internet (PC, laptop, mobile, ...). If you can not find this property, use the button near the field that tries to automatically load the address.',
'content_of_message' => 'The content of the message for redirection is possible thanks to the built-in editor to modify both manually and with its variety of formatting. In the text you can use some special tags in curly brackets, which are displayed by IP address redirected member. {member_name} display member\'s name, {member_id} Member ID, {ip_address} IP address, {subnet_name} subnet name, {variable_symbol} variable symbol, {balance} balance, {comment} personal commentary.',
'credit_subaccounts' => 'Credit sub-accounts are elsewhere in Freenetisu mentioned as credit accounts, but in terms of accounting, but rather a sub-accounts. From the perspective of accounting is still a single account 221100. Here, however, are sub-listed, which express the internal distribution of money in the account and the money goes to the accounts of individual members.',
freenetis/branches/1.1/application/controllers/connection_requests.php
$cr_model->save_throwable();
$cr_model->transaction_commit();
// create comment for user
$comment = NULL;
// trigger notice for member
Message_Model::activate_special_notice(
Message_Model::CONNECTION_REQUEST_INFO,
$cr_model->member_id, $this->session->get('user_id'),
Notifications_Controller::ACTIVATE,
Notifications_Controller::KEEP, $comment
);
// make next action
if ($this->acl_check_view('Connection_Requests_Controller', 'request') &&
$this->acl_check_new('Devices_Controller', 'devices'))
{
// redirect to add form
url::redirect('devices/add_from_connection_request/' . $cr_model->id);
url::redirect('connection_requests/approve_request/' . $cr_model->id);
}
else
{
// create comment for user
$comment = NULL;
// trigger notice for member
Message_Model::activate_special_notice(
Message_Model::CONNECTION_REQUEST_INFO,
$cr_model->member_id, $this->session->get('user_id'),
Notifications_Controller::ACTIVATE,
Notifications_Controller::KEEP, $comment
);
status::success(
__('Your request has been succesfully stored.') . ' ' .
__('You will be informed about it\'s result by email.'),
......
->text('Add new request for connection');
$headline = __('Add new request for connection');
$info = url_lang::lang('help.connection_request_info');
// do not inform engeneer
if ($this->acl_check_view('Connection_Requests_Controller', 'request'))
{
$info = url_lang::lang('help.connection_request_info_short');
}
// view
$view = new View('main');
......
$view->content = new View('form');
$view->content->form = $form->html();
$view->content->headline = $headline;
$view->content->link_back = url_lang::lang('help.connection_request_info');
$view->content->link_back = $info;
$view->render(TRUE);
}
......
$cr_model->transaction_commit();
// create comment for user
$comment = NULL;
// only if user sended request by him self
if ($cr_model->member_id == $cr_model->user->member_id)
{
// create comment for user
$comment = NULL;
// trigger notice for member (if request was not added by some other)
Message_Model::activate_special_notice(
Message_Model::CONNECTION_REQUEST_REFUSE,
$cr_model->member_id, $this->session->get('user_id'),
Notifications_Controller::ACTIVATE,
Notifications_Controller::ACTIVATE, $comment
);
}
// trigger notice for member
Message_Model::activate_special_notice(
Message_Model::CONNECTION_REQUEST_REFUSE,
$cr_model->member_id, $this->session->get('user_id'),
Notifications_Controller::ACTIVATE,
Notifications_Controller::ACTIVATE, $comment
);
status::success('Connection request has been rejected.');
}
catch (Exception $e)
......
status::error('Cannot reject connection request.');
}
$this->redirect('/connection_requests/show/'. $connection_request_id);
$this->redirect('connection_requests/show/'. $connection_request_id);
}
}

Také k dispozici: Unified diff