Revize 1589
Přidáno uživatelem David Raška před asi 12 roky(ů)
freenetis/branches/testing/media/css/style.css | ||
---|---|---|
position:absolute;
|
||
right:0;
|
||
top:43px;
|
||
width:110px;
|
||
width:85px;
|
||
}
|
||
#header .logout span {
|
||
#header .logout div {
|
||
background:url(../images/layout/ico_logout.jpg) right 0px no-repeat;
|
||
padding-right:22px;
|
||
padding-right:23px;
|
||
margin-right: 24px;
|
||
}
|
||
#header .logout a {
|
||
color:#FF833D;
|
freenetis/branches/testing/application/models/message.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$eq_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
throw $e;
|
||
}
|
||
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$sms->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
throw $e;
|
||
}
|
||
|
freenetis/branches/testing/application/models/members_traffic.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$this->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
return false;
|
||
}
|
||
}
|
freenetis/branches/testing/application/controllers/clouds.php | ||
---|---|---|
{
|
||
// roolback transaction
|
||
$cloud_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
// message
|
||
status::error('Error - cannot add cloud');
|
||
}
|
||
... | ... | |
{
|
||
// roolback transaction
|
||
$cloud_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
// message
|
||
status::error('Error - cannot add admin to cloud');
|
||
}
|
||
... | ... | |
{
|
||
// roolback transaction
|
||
$cloud_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
// message
|
||
status::error('Error - cannot add subnet to cloud');
|
||
}
|
freenetis/branches/testing/application/controllers/ifaces.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$iface->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - Cannot add interface.');
|
||
}
|
||
}
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$iface->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - Cannot edit interface');
|
||
}
|
||
}
|
freenetis/branches/testing/application/controllers/variable_symbols.php | ||
---|---|---|
$variable_symbol_model->transaction_commit();
|
||
status::success('Variable symbol has been successfully updated');
|
||
}
|
||
catch (Exception $e) {
|
||
catch (Exception $e)
|
||
{
|
||
$variable_symbol_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant update variable symbols');
|
||
}
|
||
|
freenetis/branches/testing/application/controllers/private_phone_contacts.php | ||
---|---|---|
catch (Exception $ex)
|
||
{
|
||
$user->transaction_rollback();
|
||
Log::add('error', $ex->getMessage());
|
||
echo json_encode($error['error_save']);
|
||
}
|
||
}
|
freenetis/branches/testing/application/controllers/transfers.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot add new transfer.');
|
||
}
|
||
url::redirect('transfers/show_by_account/' . $origin_account_id);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::success('Transfer hasnot been successfully added');
|
||
}
|
||
url::redirect('transfers/show_all');
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::success('Transfer has not been successfully added');
|
||
}
|
||
url::redirect('transfers/show_by_account/' . $origin_account);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$transfer->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant update transfer.');
|
||
url::redirect('transfers/show/' . $transfer_id);
|
||
}
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - some fees have not been deducted.');
|
||
}
|
||
url::redirect('transfers/show_all');
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - some fees have not been recounted.');
|
||
}
|
||
url::redirect('transfers/show_by_account/' . $account_id);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant deduct entrance fee.');
|
||
}
|
||
url::redirect('transfers/show_all');
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant deduct entrance fee.');
|
||
}
|
||
url::redirect('transfers/show_by_account/' . $account_id);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant deduct device fee.');
|
||
}
|
||
url::redirect('transfers/show_all');
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$account->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant recalculate device repayments.');
|
||
}
|
||
url::redirect('transfers/show_by_account/' . $account_id);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant add new transfer.');
|
||
}
|
||
$this->redirect(Path::instance()->previous());
|
freenetis/branches/testing/application/controllers/filter_queries.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$filter_query->transaction_rollback();
|
||
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot add new filter query.');
|
||
|
||
$this->redirect($url);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$filter_query->transaction_rollback();
|
||
|
||
Log::add('error', $e->getMessage());
|
||
if ($is_default)
|
||
status::error('Error - Cannot unset filter query as default.');
|
||
else
|
freenetis/branches/testing/application/controllers/subnets.php | ||
---|---|---|
{
|
||
// roolback
|
||
$subnet_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
// correct add
|
||
status::error('Error - cannot save subnet.');
|
||
$this->redirect('show_all');
|
freenetis/branches/testing/application/controllers/device_admins.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$device_admin_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot update device admin.');
|
||
}
|
||
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$device_admin_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot update device admin.');
|
||
}
|
||
url::redirect(url_lang::base().'users/show/'.$user->id);
|
freenetis/branches/testing/application/controllers/bank_transfers.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot assign transfer.');
|
||
}
|
||
url::redirect('bank_transfers/unidentified_transfers');
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot add bank transfer.');
|
||
}
|
||
url::redirect('bank_transfers/show_by_bank_account/'.$baa_id);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot add bank transfer.');
|
||
}
|
||
|
freenetis/branches/testing/application/controllers/ip_addresses.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$ip_address->transaction_rollback();
|
||
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - Cannot update ip address.');
|
||
}
|
||
|
freenetis/branches/testing/application/controllers/phone_invoices.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$phone_invoice->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
$form->parse->add_error('requied', nl2br($e->getMessage()));
|
||
}
|
||
}
|
freenetis/branches/testing/application/controllers/registration.php | ||
---|---|---|
{
|
||
status::error('Cannot complete registration.');
|
||
$user->transaction_rollback();
|
||
Log::add('error', $ex->getMessage());
|
||
}
|
||
}
|
||
|
freenetis/branches/testing/application/controllers/device_templates.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$device_templates->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
$bad++;
|
||
}
|
||
}
|
freenetis/branches/testing/application/controllers/aro_groups.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$aro_group->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot add new group.');
|
||
}
|
||
url::redirect('aro_groups/show_all');
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$aro_group->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot update access control group.');
|
||
}
|
||
url::redirect (url_lang::base().'aro_groups/show/'.$aro_group->id);
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$group->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot delete group.');
|
||
}
|
||
url::redirect('aro_groups/show_all');
|
freenetis/branches/testing/application/controllers/bank_statements.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cannot delete bank statement.');
|
||
}
|
||
url::redirect('bank_statements/show_by_bank_account/' . $statement->bank_account_id);
|
freenetis/branches/testing/application/controllers/members.php | ||
---|---|---|
{
|
||
// rollback transaction
|
||
$member->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant add new member.');
|
||
$this->redirect('members/show_all');
|
||
}
|
freenetis/branches/testing/application/controllers/vlans.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$vlan->transaction_rollback();
|
||
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - Cannot add new VLAN.');
|
||
|
||
$this->redirect('show_all');
|
freenetis/branches/testing/application/controllers/allowed_subnets_counts.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$member->transaction_rollback();
|
||
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - Cannot update count of allowed subnets');
|
||
}
|
||
|
freenetis/branches/testing/application/controllers/work_reports.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$work_report->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant add new work report.');
|
||
}
|
||
}
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$work_report->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant edit work report.');
|
||
}
|
||
}
|
freenetis/branches/testing/application/controllers/sms.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$sms->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Error - cant add new SMS message.');
|
||
}
|
||
}
|
freenetis/branches/testing/application/controllers/phone_operators.php | ||
---|---|---|
{
|
||
// roolback transaction
|
||
$phone_operator_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
// message
|
||
status::error('Error - cannot add phone operator');
|
||
}
|
||
... | ... | |
{
|
||
// roolback transaction
|
||
$phone_operator_model->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
// message
|
||
status::error('Error - cant edit phone operator');
|
||
}
|
freenetis/branches/testing/application/controllers/import.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error(
|
||
__('Import has failed') . '.<br>' . $e->getMessage(),
|
||
FALSE
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$db->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error(
|
||
__('Import has failed') . '.<br>' . $e->getMessage(),
|
||
FALSE
|
freenetis/branches/testing/application/controllers/devices.php | ||
---|---|---|
catch (Exception $e)
|
||
{
|
||
$dm->transaction_rollback();
|
||
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Device has not been successfully saved.');
|
||
}
|
||
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$dm->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
}
|
||
}
|
||
else
|
||
... | ... | |
catch (Exception $e)
|
||
{
|
||
$device->transaction_rollback();
|
||
Log::add('error', $e->getMessage());
|
||
status::error('Device has not been updated.');
|
||
}
|
||
} // end of validation
|
freenetis/branches/testing/application/views/main.php | ||
---|---|---|
</div>
|
||
|
||
<div class="logout">
|
||
<span><?php echo $this->user_id ? html::anchor('login/logout/', __('Logout')) : html::anchor('login', __('Login')) ?></span>
|
||
<div><?php echo $this->user_id ? html::anchor('login/logout/', __('Logout')) : html::anchor('login', __('Login')) ?></div>
|
||
</div>
|
||
|
||
</div>
|
Také k dispozici: Unified diff
Upravy:
- Pri vyjimkach v db transakci se nyni zapisuje chyba do Logu
- Uprava divne posunute ikonky odhlaseni