Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 644

Přidáno uživatelem Jiří Sviták před více než 14 roky(ů)

Pridan .htaccess pro staticke html stranky pro presmerovani. Pridana moznost videt zadavatele financni transakce. Pridan uzivatel, ktery pridal clena. Upravy databaze pro presmerovani. Pridany systemove presmerovani do databaze. Opravy chyb.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php
'activated number has not been changed' => 'Aktivované číslo již nelze změnit',
'active' => 'Aktivní',
'active message' => 'Aktivní zpráva',
'active redirections' => 'Aktivní přesměrování',
'add' => 'Přidat',
'add admin to redirection module' => 'Přidat správce do modulu přesměrování',
'add backup' => 'Přidat zálohu',
......
'add smokeping record' => 'Přidat záznam smokepingu',
'add voip account' => 'Přidat VoIP účet',
'add wireless setting' => 'Přidat bezdrátové nastavení',
'added by' => 'Přidal',
'additional_contacts_infotext' => 'Další kontaktní informace',
'additional information' => 'Doplňkové informace',
'address' => 'Adresa',
......
'message has been successfully updated' => 'Zpráva byla úspěšně aktualizována',
'message is already active' => 'Zpráva je již aktivní',
'message is active, cannot be deleted' => 'Zpráva je aktivní, nemůže být smazána',
'messages for redirection' => 'Zprávy pro přesměrování',
'middle name' => 'Prostřední jméno',
'minimal duration of interrupt is one month' => 'Minimální délka přerušení je jeden měsíc',
'mode' => 'Mód',
freenetis/trunk/kohana/application/models/subnet.php
public function get_subnets_to_redirect()
{
return self::$db->query("SELECT
CONCAT(network_address, '/', 32-log2((~inet_aton(netmask) & 0xffffffff) + 1)) AS range
CONCAT(network_address, '/', 32-log2((~inet_aton(netmask) & 0xffffffff) + 1)) AS network_range
FROM subnets
WHERE redirect = 1
");
freenetis/trunk/kohana/application/models/transfer.php
public function get_transfer($trans_id = null)
{
return self::$db->query("SELECT
t.id, t.previous_transfer_id, t.datetime, t.creation_datetime, t.text, t.amount, t.member_id,
t.id, t.previous_transfer_id, t.datetime, t.creation_datetime, t.text, t.amount,
t.member_id, t.user_id,
oa.id AS oa_id,
oa.name AS oa_name,
da.id AS da_id,
da.name AS da_name
da.name AS da_name,
u.name, u.surname
FROM transfers t
LEFT JOIN accounts oa ON oa.id = t.origin_id
LEFT JOIN accounts da ON da.id = t.destination_id
LEFT JOIN users u ON t.user_id = u.id
WHERE t.id = $trans_id"
)->current();
}
freenetis/trunk/kohana/application/models/message.php
<?php
class Message_Model extends ORM
{
// types of messages
public static $normal_message = 1;
public static $cancel_message = 2;
public static $contact_information = 3;
/**
* Counts all active redirections from junction table messages_ip_addresses.
* @author Jiri Svitak
* @return unknown_type
*/
public function count_all_redirections()
{
return self::$db->count_records('messages_ip_addresses');
}
/**
* Gets all active redirections from junction table messages_ip_addresses.
* @return unknown_type
*/
public function get_all_redirections($limit_from = 0, $limit_results = 20, $order_by = 'ip_address_id', $order_by_direction = 'DESC', $filter_values = array())
{
return self::$db->query("
SELECT *
FROM messages_ip_addresses mip
LEFT JOIN ip_addresses ip ON ip.id = mip.ip_address_id
ORDER BY $order_by $order_by_direction
LIMIT $limit_from, $limit_results
");
}
/**
* Counts all messages.
* @return unknown_type
*/
public function count_all_messages()
{
return self::$db->count_records('messages');
}
/**
* Gets all redirection messages.
* @author Jiri Svitak
* @param $limit_from
* @param $limit_results
* @param $order_by
* @param $order_by_direction
* @param $filter_values
* @return unknown_type
*/
public function get_all_messages($limit_from = 0, $limit_results = 20, $order_by = 'ip_address_id', $order_by_direction = 'DESC', $filter_values = array())
{
return self::$db->query("
SELECT *
FROM messages m
ORDER BY $order_by $order_by_direction
LIMIT $limit_from, $limit_results
");
}
}
?>
freenetis/trunk/kohana/application/controllers/members.php
* @param $page
* @return unknown_type
*/
function show_all($limit_results = 500, $order_by = 'id', $order_by_direction = 'ASC', $page_word = null, $page = 1)
function show_all($limit_results = 100, $order_by = 'id', $order_by_direction = 'ASC', $page_word = null, $page = 1)
{
// access rights
if (!$this->acl_check_view(get_class($this),'members'))
......
//'use_paginator' => false,
//'use_selector' => false,
'current' => $limit_results, // current selected 'records_per_page' value
'selector_increace' => 500, // increace
'selector_min' => 500, // minimum where selector start
'selector_max_multiplier' => 10,
'selector_increace' => 50, // increace
'selector_min' => 100, // minimum where selector start
'selector_max_multiplier' => 20,
'base_url' => Config::get('lang').'/members/show_all/'.$limit_results.'/'.$order_by.'/'.$order_by_direction ,
'uri_segment' => 'page', // pass a string as uri_segment to trigger former 'label' functionality
'total_items' => $total_members, // use db count query here of course
......
{
$arr_contact_types[$i] = $enum_type_model->get_value($contact->type);
}
// engineer who added member
$member = new Member_Model($member_id);
$engineer_id = $member->user_id;
$engineer = new User_Model($engineer_id);
$engineer_name = $engineer->name.' '.$engineer->surname;
// users of member
$model_users = new User_Model();
$users = $model_users->orderby($order_by,$order_by_direction)->find_all_by_member_id($member_id);
......
$view->content->expiration_date = $expiration_date;
$view->content->contact_types = $arr_contact_types;
$view->content->contacts = $contacts;
$view->content->engineer_id = $engineer_id;
$view->content->engineer_name = $engineer_name;
$view->content->message = $this->session->get_once('message');
$view->render(TRUE);
} // end of show function
......
$user->type = User_Model::$member;
$user->application_password = security::generate_password();
// id of user who added member
$member->user_id = $this->session->get('user_id');
$member->comment = $form_data['comment'];
$member->variable_symbol = $form_data['phone'];
$member->entrance_date = date("Y-m-d",$form_data['entrance_date']);
......
$arr_towns[$town->id] .= ', '.$town->zip_code;
}
asort($arr_towns, SORT_LOCALE_STRING);
// engineers
$user_model = new User_Model();
$member = new Member_Model($member_id);
$engineers = $user_model->select('id','name','surname','login')->orderby('id')->find_all();
$arr_engineers[0] = '----- '.url_lang::lang('texts.select user').' -----';
foreach ($engineers as $engineer)
{
$arr_engineers[$engineer->id] = $engineer->surname.' '.$engineer->name.' - '.$engineer->login;
}
asort($arr_engineers, SORT_LOCALE_STRING);
$form = new Forge(url_lang::base().'members/edit/'.$member_id, '', 'POST', array('id' => 'article_form'));
$form->set_attr('class', 'form_class')->set_attr('method', 'post');
......
if ($member_data->member_id != 1)
if ($this->acl_check_edit(get_class($this),'locked',$member_id))
$form->dropdown('locked')->label(url_lang::lang('texts.Access to system'))->options(array('0'=> url_lang::lang('texts.Unlocked'), '1'=> url_lang::lang('texts.Locked')))->selected($member_data->locked);
if ($this->acl_check_edit('Members_Controller', 'user_id'))
$form->dropdown('user_id')->label(url_lang::lang('texts.Added by'))->options($arr_engineers)->selected(isset($member->user_id) ? $member->user_id : 0);
if ($this->acl_check_edit(get_class($this),'comment',$member_id))
$form->textarea('comment')->label(url_lang::lang('texts.Comment').':')->rules('length[0,250]')->value($member_data->comment);
......
if ($this->acl_check_edit(get_class($this),'locked',$member_id))
if ($member_id != 1)
$member_data->locked = $form_data['locked'];
if ($this->acl_check_edit('Members_Controller', 'user_id'))
$member_data->user_id = $form_data['user_id'];
if ($this->acl_check_edit(get_class($this),'comment',$member_id))
$member_data->comment = $form_data['comment'];
freenetis/trunk/kohana/application/controllers/messages.php
<?php
class Messages_Controller extends Controller
{
function show_all()
function show_all($limit_results = 500, $order_by = 'id', $order_by_direction = 'desc', $page_word = null, $page = 1)
{
// access rights
if (!$this->acl_check_view('Redirection_Controller', 'redirection'))
Controller::error(ACCESS);
if (is_numeric($this->input->get('record_per_page')))
$limit_results = (int) $this->input->get('record_per_page');
$allowed_order_type = array('id', 'from', 'to', 'extension', 'opening_balance', 'closing_balance');
if (!in_array(strtolower($order_by), $allowed_order_type))
$order_by = 'id';
if (strtolower($order_by_direction) != 'asc' && strtolower($order_by_direction) != 'desc')
$order_by_direction = 'desc';
// model
$message_model = new Message_Model();
$total_messages = $message_model->count_all_messages();
if (($sql_offset = ($page - 1) * $limit_results) > $total_messages)
$sql_offset = 0;
$messages = $message_model->get_all_messages($sql_offset, (int)$limit_results, $order_by, $order_by_direction);
$headline = url_lang::lang('texts.Messages for redirection');
$grid = new Grid(url_lang::base().'messages', null, array(
//'separator' => '<br />-----------',
//'use_paginator' => false,
//'use_selector' => false,
'current' => $limit_results, // current selected 'records_per_page' value
'selector_increace' => 500, // increace
'selector_min' => 500, // minimum where selector start
'selector_max_multiplier' => 10,
'base_url' => Config::get('lang').'/messages/show_all/'.$limit_results.'/'.$order_by.'/'.$order_by_direction ,
'uri_segment' => 'page', // pass a string as uri_segment to trigger former 'label' functionality
'total_items' => $total_messages, // use db count query here of course
'items_per_page' => $limit_results, // it may be handy to set defaults for stuff like this in config/pagination.php
'style' => 'classic',
'order_by' => $order_by,
'order_by_direction' => $order_by_direction,
'limit_results' => $limit_results,
'url_array_ofset' => 1,
));
$grid->add_new_button(url_lang::base().'redirect/show_all', url_lang::lang('texts.Active Redirections'));
$grid->add_new_button(url_lang::base().'messages/show_all', url_lang::lang('texts.Messages for redirection'));
$grid->add_new_button(url_lang::base().'redirect/settings', url_lang::lang('texts.Settings'));
$grid->order_field('id')->label('ID');
/*
$grid->order_field('from')->label(url_lang::lang('texts.Date from'));
$grid->order_field('to')->label(url_lang::lang('texts.Date to'));
$grid->order_field('extension')->label(url_lang::lang('texts.Type'));
$grid->order_field('opening_balance')->label(url_lang::lang('texts.Opening balance'));
$grid->order_field('closing_balance')->label(url_lang::lang('texts.Closing balance'));
if ($this->acl_check_view('Accounts_Controller', 'bank_transfers'))
$grid->action_field('id') ->label(url_lang::lang('texts.Bank transfers'))->url(url_lang::base().'bank_transfers/show_by_bank_statement')->action(url_lang::lang('texts.Show'));
*/
$grid->datasource($messages);
$view = new View('main');
$view->title = $headline;
$view->content = new View('show_all');
$view->content->headline = $headline;
$view->content->message = $this->session->get_once('message');
$view->content->table = $grid;
$view->render(TRUE);
}
function edit($message_id)
freenetis/trunk/kohana/application/controllers/redirect.php
<?php
/**
* This controller handles redirection of members for certain reasons.
*
* Bits for redirection, from the least significant.
* 0 - member with interrupted membership
* 1 - debtor
* 2 - payment notice
* 3 - optional message (like general meeting invitation)
*
* Handles redirection of members for certain reasons.
* @author Jiri Svitak
*
*/
......
/**
* This is the address where are members of network redirected to.
* @todo old version
* @return unknown_type
*/
function index()
......
}
/**
* Shows all active redirections.
* @author Jiri Svitak
* @param $limit_results
* @param $order_by
* @param $order_by_direction
* @param $page_word
* @param $page
* @return unknown_type
*/
function show_all($limit_results = 500, $order_by = 'id', $order_by_direction = 'desc', $page_word = null, $page = 1)
{
// access rights
if (!$this->acl_check_view('Redirection_Controller', 'redirection'))
Controller::error(ACCESS);
if (is_numeric($this->input->get('record_per_page')))
$limit_results = (int) $this->input->get('record_per_page');
$allowed_order_type = array('id', 'from', 'to', 'extension', 'opening_balance', 'closing_balance');
if (!in_array(strtolower($order_by), $allowed_order_type))
$order_by = 'id';
if (strtolower($order_by_direction) != 'asc' && strtolower($order_by_direction) != 'desc')
$order_by_direction = 'desc';
// model
$message_model = new Message_Model();
$total_redirections = $message_model->count_redirections();
if (($sql_offset = ($page - 1) * $limit_results) > $total_redirections)
$sql_offset = 0;
$redirections = $message_model->get_redirections($sql_offset, (int)$limit_results, $order_by, $order_by_direction);
$headline = url_lang::lang('texts.Active redirections');
$grid = new Grid(url_lang::base().'redirect', null, array(
//'separator' => '<br />-----------',
//'use_paginator' => false,
//'use_selector' => false,
'current' => $limit_results, // current selected 'records_per_page' value
'selector_increace' => 500, // increace
'selector_min' => 500, // minimum where selector start
'selector_max_multiplier' => 10,
'base_url' => Config::get('lang').'/redirect/show_all/'.$limit_results.'/'.$order_by.'/'.$order_by_direction ,
'uri_segment' => 'page', // pass a string as uri_segment to trigger former 'label' functionality
'total_items' => $total_redirections, // use db count query here of course
'items_per_page' => $limit_results, // it may be handy to set defaults for stuff like this in config/pagination.php
'style' => 'classic',
'order_by' => $order_by,
'order_by_direction' => $order_by_direction,
'limit_results' => $limit_results,
'url_array_ofset' => 1,
));
$grid->add_new_button(url_lang::base().'redirect/show_all', url_lang::lang('texts.Active Redirections'));
$grid->add_new_button(url_lang::base().'messages/show_all', url_lang::lang('texts.Messages for redirection'));
$grid->add_new_button(url_lang::base().'redirect/settings', url_lang::lang('texts.Settings'));
$grid->order_field('ip_address_id')->label('ID');
/*
$grid->order_field('from')->label(url_lang::lang('texts.Date from'));
$grid->order_field('to')->label(url_lang::lang('texts.Date to'));
$grid->order_field('extension')->label(url_lang::lang('texts.Type'));
$grid->order_field('opening_balance')->label(url_lang::lang('texts.Opening balance'));
$grid->order_field('closing_balance')->label(url_lang::lang('texts.Closing balance'));
if ($this->acl_check_view('Accounts_Controller', 'bank_transfers'))
$grid->action_field('id') ->label(url_lang::lang('texts.Bank transfers'))->url(url_lang::base().'bank_transfers/show_by_bank_statement')->action(url_lang::lang('texts.Show'));
*/
$grid->datasource($redirections);
$view = new View('main');
$view->title = $headline;
$view->content = new View('show_all');
$view->content->headline = $headline;
$view->content->message = $this->session->get_once('message');
$view->content->table = $grid;
$view->render(TRUE);
}
/**
* Shows redirection settings and enables their editing.
* @author Jiri Svitak
* @return unknown_type
*/
function settings()
{
}
/**
* Function tests redirection.
* @todo old version
* @author Jiri Svitak
* @param $redir
* @return unknown_type
......
$subnets = $subnet_model->get_subnets_to_redirect();
foreach ($subnets as $subnet)
{
echo "$subnet->range\n";
echo "$subnet->network_range\n";
}
break;
}
freenetis/trunk/kohana/application/controllers/import.php
$transfer->text= $text;
$transfer->previous_transfer_id = $prev_id;
$transfer->member_id = $member_id;
$transfer->user_id = $this->session->get('user_id');
$transfer->save();
return $transfer->id;
}
......
$transfer->destination_id = $dst_acc->id;
$transfer->text= $data->comment;
$transfer->previous_transfer_id=$prev_id;
$transfer->member_id = $member_id;
$transfer->member_id = $member_id;
$transfer->user_id = $this->session->get('user_id');
$transfer->save();
$bank_transfer->clear();
freenetis/trunk/kohana/application/controllers/bank_statements.php
if (is_numeric($this->input->get('record_per_page')))
$limit_results = (int) $this->input->get('record_per_page');
$allowed_order_type = array('id', 'name', 'amount', 'datetime', 'trans_type', 'account_number', 'variable_symbol');
$allowed_order_type = array('id', 'from', 'to', 'extension', 'opening_balance', 'closing_balance');
if (!in_array(strtolower($order_by), $allowed_order_type))
$order_by = 'id';
if (strtolower($order_by_direction) != 'asc' && strtolower($order_by_direction) != 'desc')
......
$bank_statements = $bs_model->get_bank_statements($bank_account_id, $sql_offset, (int)$limit_results, $order_by, $order_by_direction);
$headline = url_lang::lang('texts.Bank statements');
$grid = new Grid(url_lang::base().'transfers', null, array(
$grid = new Grid(url_lang::base().'bank_statements', null, array(
//'separator' => '<br />-----------',
//'use_paginator' => false,
//'use_selector' => false,
......
'selector_increace' => 500, // increace
'selector_min' => 500, // minimum where selector start
'selector_max_multiplier' => 10,
'base_url' => Config::get('lang').'/bank_transfers/show_by_bank_account/'.$bank_account_id.'/'.$limit_results.'/'.$order_by.'/'.$order_by_direction ,
'base_url' => Config::get('lang').'/bank_statements/show_by_bank_account/'.$bank_account_id.'/'.$limit_results.'/'.$order_by.'/'.$order_by_direction ,
'uri_segment' => 'page', // pass a string as uri_segment to trigger former 'label' functionality
'total_items' => $total_bank_statements, // use db count query here of course
'items_per_page' => $limit_results, // it may be handy to set defaults for stuff like this in config/pagination.php
freenetis/trunk/kohana/application/upgrade_sql/upgrade_sql.php
// array of sql queries that upgrade database
$upgrade_sql[get_SVN_rev()] = array(
"ALTER TABLE `voip_voicemail_users` ADD `active` TINYINT NOT NULL DEFAULT '1' AFTER `customer_id` ;"
"ALTER TABLE `ip_addresses` ADD `whitelisted` TINYINT NULL DEFAULT NULL COMMENT 'IP address with whitelisted flag is never redirected' AFTER `service` ",
"ALTER TABLE `messages_ip_addresses` ADD `datetime` DATETIME NOT NULL COMMENT 'Date and time of setting redirection'",
"ALTER TABLE `messages` ADD `name` VARCHAR( 100 ) NOT NULL COMMENT 'Name of the redirection message' AFTER `id` ",
"INSERT INTO `axo` (
`id` ,
`section_value` ,
`value` ,
`order_value` ,
`name` ,
`hidden`
)
VALUES (
'153', 'Members_Controller', 'user_id', '0', 'User who added member to system', '0'
);",
"INSERT INTO `axo_map` (
`acl_id` ,
`section_value` ,
`value`
)
VALUES (
'38', 'Members_Controller', 'user_id'
), (
'51', 'Members_Controller', 'user_id'
);",
"INSERT INTO `messages` (
`id` ,
`name` ,
`text` ,
`type` ,
`priority` ,
`system` ,
`self_cancel`
)
VALUES (
NULL , 'Contact information', 'Side panel with contacts', '3', NULL , '1', NULL
), (
NULL , 'Page after canceling redirection', 'Content of page after redirection', '2', NULL , '1', NULL
), (
NULL , 'Unknown device', 'Content of unknown device page', '1', NULL , '1', '0'
), (
NULL , 'Interrupted membership message', 'Content of page for interrupted membership', '1', '1', '1', '0'
), (
NULL , 'Debtor message', 'Content of page for debtors', '1', '2', '1', '0'
), (
NULL , 'Payment notice', 'Content of page for payment notice', '1', '3', '1', '1'
);
"
);
?>
freenetis/trunk/kohana/application/upgrade_sql/upgrade_sql_639.php
<?php
// array of sql queries that upgrade database
$upgrade_sql[639] = array(
"ALTER TABLE `voip_voicemail_users` ADD `active` TINYINT NOT NULL DEFAULT '1' AFTER `customer_id` ;"
);
?>
freenetis/trunk/kohana/application/views/members_show.php
<td><?php echo $member_data->qos_rate ?></td>
</tr>
<?php } ?>
<?php if (isset($engineer_id)) { ?>
<tr>
<th><?php echo url_lang::lang('texts.Added by') ?></th>
<td><?php echo html::anchor(url_lang::base().'users/show/'.$engineer_id, $engineer_name) ?></td>
</tr>
<?php } ?>
<?php if ($this->acl_check_view('Members_Controller', 'comment', $member_data->member_id)) { ?>
<tr>
<th><?php echo url_lang::lang('texts.Comment') ?></th>
......
<br />
<?php
unset($links);
if(!$former && ($this->acl_check_edit('Users_Controller','users') || ($member_data->id == $this->session->get('user_id') && $this->acl_check_edit('Users_Controller','users',$member_data->member_id))))
if ($this->acl_check_view('Users_Controller', 'users'))
$links[] = html::anchor(url_lang::base().'users/show/'.$member_data->id, url_lang::lang('texts.Show'));
if (!$former && ($this->acl_check_edit('Users_Controller','users') || ($member_data->id == $this->session->get('user_id') && $this->acl_check_edit('Users_Controller','users',$member_data->member_id))))
$links[] = html::anchor(url_lang::base().'users/edit/'.$member_data->id, url_lang::lang('texts.Edit'));
if ($this->acl_check_view('Devices_Controller', 'devices', $member_data->member_id))
$links[] = html::anchor(url_lang::base().'devices/show_by_user/'.$member_data->id,url_lang::lang('texts.Show devices'));
freenetis/trunk/kohana/application/views/menu.php
</ul>
</li>
<?/**
* @author Lubomir Buben
* Menu for Redirection module
*/?>
<?/**
* @author Lubomir Buben
* Menu for Redirection module
*/?>
<?php
/*
<?php if ($this->acl_check_view('Redirection_Controller', 'redirection')) { ?>
<li class="redirection"><h2><?php echo url_lang::lang('texts.Redirection') ?></h2>
<ul>
......
<li><?php echo html::anchor(url_lang::base().'redirection/log', url_lang::lang('texts.Redirection logs')) ?></li>
</ul>
</li><?php } ?>
*/
?>
<?php if ($this->acl_check_view('Accounts_Controller', 'accounts') || $this->acl_check_view('Accounts_Controller', 'unidentified_transfers')) { ?>
<li class="transfer"><h2><?php echo url_lang::lang('texts.Finances') ?></h2>
<ul>
......
<?php if ($this->acl_check_view('Address_points_Controller', 'address_point')) {?>
<li><?php echo html::anchor(url_lang::base().'address_points', url_lang::lang('texts.Address points')) ?></li>
<?php } ?>
<?php if ($this->acl_check_view('Redirection_Controller', 'redirection')) {?>
<li><?php echo html::anchor(url_lang::base().'redirect/show_all', url_lang::lang('texts.Redirection')) ?></li>
<?php } ?>
<?php if ($this->acl_check_view('Settings_Controller', 'system')) { ?>
<li><?php echo html::anchor(url_lang::base().'login_logs', url_lang::lang('texts.Login logs')) ?></li>
<li><?php echo html::anchor(url_lang::base().'stats', url_lang::lang('texts.Stats')) ?></li>
<li><?php echo html::anchor(url_lang::base().'settings', url_lang::lang('texts.Settings')) ?></li>
<li><?php echo html::anchor(url_lang::base().'access_rights', url_lang::lang('texts.Access rights')) ?></li>
<li><?php echo html::anchor(url_lang::base().'fees', url_lang::lang('texts.Fees')) ?></li>
<li><?php echo html::anchor(url_lang::base().'access_rights', url_lang::lang('texts.Access rights')) ?></li>
<li><?php echo html::anchor(url_lang::base().'login_logs', url_lang::lang('texts.Login logs')) ?></li>
<li><?php echo html::anchor(url_lang::base().'stats', url_lang::lang('texts.Stats')) ?></li>
<li><?php echo html::anchor(url_lang::base().'translations', url_lang::lang('texts.Translations')) ?></li>
<li><?php echo html::anchor(url_lang::base().'enum_types', url_lang::lang('texts.Enumerations')) ?></li>
<?php } ?>
freenetis/trunk/kohana/application/views/login.php
<?php echo form::open(url_lang::base().'login', array('class' => 'login_form')) ?>
<table cellspacing="0" class="form" style="width: auto;">
<tr>
<th><?php echo form::label('username', url_lang::lang('texts.Login name').':') ?></th>
<th><?php echo form::label('username', url_lang::lang('texts.Login name').':') ?></th>
<td><?php echo form::input('username','',' maxlength="50"') ?></td>
</tr>
<tr>
<th><?php echo form::label('password', url_lang::lang('texts.Password').':') ?></th>
<td><?php echo form::password('password','',' maxlength="50"') ?></td>
freenetis/trunk/kohana/application/views/transfers_show.php
<th><?php echo url_lang::lang('texts.Amount') ?></th>
<td><?php echo number_format((float)$transfer->amount, 2, ',', ' ').' '.$this->settings->get('currency') ?></td>
</tr>
<?php if (isset($transfer->user_id)) { ?>
<tr>
<th><?php echo url_lang::lang('texts.Added by') ?></th>
<td><?php echo html::anchor(url_lang::base().'users/show/'.$transfer->user_id, $transfer->name.' '.$transfer->surname) ?></td>
</tr>
<?php } ?>
<?php if (isset($transfer->previous_transfer_id)) { ?>
<tr>
<th><?php echo url_lang::lang('texts.Previous transfer') ?></th>
freenetis/trunk/kohana/html/.htaccess.sample
Order deny,allow
# access from internet is denied
Deny from all
# allow access from localhost through IPv6 and IPv4, useful for development
Allow from ::1
Allow from 127.0.0.1
# allow access from your local network, for example network 10.0.0.0/8
Allow from 10.0.0.0/8
RewriteEngine On
# condition if requested URL contains in the end html or html/
RewriteCond %{REQUEST_URI} html/?$
# this rule causes opening of html file with name of visitor's IP address
# visitor is shown his personalised redirection message (static html page)
RewriteRule .* /freenetis/html/%{REMOTE_ADDR} [L]
# if visitor's IP address has not file with its name, then document is not found
# in this case not found page has the meaning that IP address is unidentified
ErrorDocument 404 /freenetis/html/response404

Také k dispozici: Unified diff