Revize 503
Přidáno uživatelem Jiří Sviták před asi 15 roky(ů)
freenetis/trunk/kohana/application/controllers/bank_transfers.php | ||
---|---|---|
if ($baa->id == 0 || $baa->member_id != 1)
|
||
Controller::error(RECORD);
|
||
|
||
// destination bank account
|
||
// destination bank account
|
||
/*
|
||
$ba_model = new Bank_account_Model();
|
||
$bas = $ba_model->get_destination_bank_accounts($baa_id);
|
||
... | ... | |
// identification of transfer and bank fee
|
||
$transfer->member_id = $member->id;
|
||
$transfer_saved = $transfer->save();
|
||
$btf->member_id = $member->id;
|
||
$btf_saved = $btf->save();
|
||
if ($form_data['bank_transfer_fee'] > 0)
|
||
{
|
||
$btf->member_id = $member->id;
|
||
$btf_saved = $btf->save();
|
||
}
|
||
}
|
||
}
|
||
|
||
// everything successful - setting message and redirection
|
||
if ($transfer_saved && $bank_transfer_saved && $bank_transfer_fee_saved && $identified_transfer_saved && $transfer_fee_saved)
|
||
{
|
||
... | ... | |
$view->render(TRUE);
|
||
}
|
||
|
||
/**
|
||
* Function adds bank transfer without counteraccount.
|
||
* @param $baa_id
|
||
* @return unknown_type
|
||
*/
|
||
function add_fee($baa_id = null)
|
||
{
|
||
// access rights
|
freenetis/trunk/kohana/application/controllers/scheduler.php | ||
---|---|---|
<?php defined('SYSPATH') or die('No direct script access.');
|
||
class Scheduler_Controller extends Controller
|
||
{
|
||
|
||
function index()
|
||
{
|
||
url::redirect(url::base());
|
||
url::redirect(url_lang::base());
|
||
}
|
||
|
||
public function run()
|
||
{
|
||
|
||
}
|
||
/**
|
||
* This function is regularly launched by scheduler.
|
||
* @param $type
|
||
* @return unknown_type
|
||
*/
|
||
public function run($type = null)
|
||
{
|
||
if (!isset($type))
|
||
Controller::warning(PARAMETER);
|
||
if (server::remote_addr() != '127.0.0.1')
|
||
if (!$this->acl_check_edit('Devices_Controller', 'redirect'))
|
||
die();
|
||
switch($type)
|
||
{
|
||
case 'payment_notice':
|
||
|
||
break;
|
||
}
|
||
}
|
||
}
|
freenetis/trunk/kohana/application/views/main.php | ||
---|---|---|
<?php echo html::stylesheet('media/css/print.css', 'print') ?>
|
||
<?php echo html::stylesheet('media/css/tables.css', 'screen') ?>
|
||
<?php echo html::stylesheet('media/css/forms.css') ?>
|
||
<?php echo html::stylesheet('media/css/jquery.autocomplete.css') ?>
|
||
<?php echo html::script('media/js/js', FALSE) ?>
|
||
<?php echo html::script('media/js/jquery.min', FALSE) ?>
|
||
<?php echo html::script('media/js/jquery.autocomplete.min', FALSE) ?>
|
||
<?php echo isset($other_styles) ? $other_styles : '' ?>
|
||
</head>
|
||
<body <?php echo isset($onload) ? 'onload="'.$onload.'"' : '' ?> >
|
freenetis/trunk/kohana/application/views/redirect.php | ||
---|---|---|
<h2><?php echo url_lang::lang('texts.Information about you') ?></h2>
|
||
<table>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.IP address').':' ?></td>
|
||
<td class="bold"> <?php echo server::remote_addr() ?></td>
|
||
<td class="orange"><span style="color:red"><?php echo url_lang::lang('texts.IP address').':' ?></span></td>
|
||
<td class="bold"><span style="color:red"><?php echo server::remote_addr() ?></span></td>
|
||
</tr>
|
||
<?php if (!empty($member_name)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Member').':' ?></td>
|
||
<td class="bold"> <?php echo $member_name ?></td>
|
||
<td class="bold"><?php echo $member_name ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php if (!empty($login)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Login name').':' ?></td>
|
||
<td class="bold"> <?php echo $login ?></td>
|
||
<td class="bold"><?php echo $login ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php if (!empty($subnet_name)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Subnet').':' ?></td>
|
||
<td class="bold"> <?php echo $subnet_name ?></td>
|
||
<td class="bold"><?php echo $subnet_name ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php foreach ($device_admins as $admin) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Admin').':' ?></td>
|
||
<td class="bold"> <?php echo $admin->name.' '.$admin->surname ?></td>
|
||
<td class="bold"><?php echo $admin->name.' '.$admin->surname ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php foreach ($device_engineers as $engineer) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Engineer').':' ?></td>
|
||
<td class="bold"> <?php echo $engineer->name.' '.$engineer->surname ?></td>
|
||
<td class="bold"><?php echo $engineer->name.' '.$engineer->surname ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
Také k dispozici: Unified diff
Opravy chyb.