Revize 373
Přidáno uživatelem Michal Kliment před asi 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/states.php | ||
---|---|---|
'please check settings' => 'Prosím zkontrolujte nastavení.',
|
||
'parameter is required' => 'Je vyžadován parametr.',
|
||
'this group do not exist' => 'Tato skupina neexistuje.',
|
||
'page not found' => 'Strana nenalezena.'
|
||
|
||
);
|
freenetis/trunk/kohana/application/hooks/err404.php | ||
---|---|---|
die();
|
||
}
|
||
}
|
||
Event::replace('system.404', array('Kohana', 'show_404'), array('Power', 'show_error'));
|
||
*/
|
||
|
||
function show_404($page = FALSE, $template = FALSE)
|
||
{
|
||
url::redirect(url_lang::base().'errors/e404');
|
||
die();
|
||
}
|
||
|
||
Event::replace('system.404', array('Kohana', 'show_404'), 'show_404');
|
||
// */
|
||
?>
|
||
|
freenetis/trunk/kohana/application/config/version.php | ||
---|---|---|
<?php defined('SYSPATH') or die('No direct script access.');
|
||
|
||
$config['version'] = 176;
|
||
freenetis/trunk/kohana/application/controllers/members.php | ||
---|---|---|
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
$view->content = new View('members_registration');
|
||
$view->content = new View('members/registration');
|
||
$view->footer = new View('base/footer');
|
||
|
||
$view->header->menu = Controller::render_menu();
|
freenetis/trunk/kohana/application/controllers/errors.php | ||
---|---|---|
<?php
|
||
/**
|
||
* Errors controller.
|
||
*
|
||
* @author Kliment Michal
|
||
* @copyright (c) 2009 Kliment Michal
|
||
* @license GNU GPLv3
|
||
* @license http://www.gnu.org/licenses/gpl.txt
|
||
*/
|
||
|
||
class Errors_Controller extends Controller {
|
||
|
||
|
||
/**
|
||
* @author Michal Kliment
|
||
* Function to display error 404
|
||
*/
|
||
function e404 ()
|
||
{
|
||
$this->error(5);
|
||
}
|
||
|
||
}
|
freenetis/trunk/kohana/application/controllers/segments.php | ||
---|---|---|
$view->header->title = url_lang::lang('texts.Segment detail').' - '.$segment->name;
|
||
$view->header->menu = Controller::render_menu();
|
||
|
||
$view->content = new View('show_segment');
|
||
$view->content = new View('segments/show');
|
||
$view->content->segment = $segment;
|
||
$view->content->link_back = html::anchor(url_lang::base().'segments/show_all', url_lang::lang('texts.Back to segments list'));
|
||
$view->content->headline = url_lang::lang('texts.Segment detail').' - '.$segment->name;
|
||
... | ... | |
//=============================================================================
|
||
//----- EDIT ------------------------------------------------------------------
|
||
//=============================================================================
|
||
function icontrol ()
|
||
{
|
||
|
||
}
|
||
function edit($segment_id = null)
|
||
{
|
||
$segment = new Segment_Model($segment_id);
|
freenetis/trunk/kohana/application/libraries/MY_Controller.php | ||
---|---|---|
$message = url_lang::lang('states.This group do not exist.');
|
||
$this->showbox( $message, $this->ICON_ERROR, $content);
|
||
break;
|
||
|
||
case 5:
|
||
$message = url_lang::lang('states.Page not found.');
|
||
$this->showbox( $message, $this->ICON_ERROR, $content);
|
||
}
|
||
}
|
||
|
freenetis/trunk/kohana/application/views/show_segment.php | ||
---|---|---|
<h2><?php echo $headline ?></h2>
|
||
<?php echo ($message = $this->session->get('message')) ? '<div class="message">'.$message.'</div>' : '' ?>
|
||
<?php if (isset($submenu)) echo '<div class="submenu">'.$submenu.'</div>'; ?>
|
||
<?php echo $link_back ?>
|
||
<?php
|
||
if($this->acl_check_edit('Devices_Controller','segment'))
|
||
echo ' | '.html::anchor(url_lang::base().'segments/edit/'.$segment->id, url_lang::lang('texts.Edit')) ?><br /><br />
|
||
|
||
|
||
<table class="extended" cellspacing="0">
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.ID') ?></th>
|
||
<td><?php echo $segment->id ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Name') ?></th>
|
||
<td><?php echo $segment->name ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Technology') ?></th>
|
||
<td><?php echo $segment->technology ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Bitrate') ?></th>
|
||
<td><?php echo $segment->bitrate ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Duplex') ?></th>
|
||
<td><?php echo $segment->duplex ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Comment') ?></th>
|
||
<td><?php echo $segment->comment ?></td>
|
||
</tr>
|
||
|
||
</table><br />
|
||
|
||
|
||
|
freenetis/trunk/kohana/application/views/segments/show.php | ||
---|---|---|
<h2><?php echo $headline ?></h2>
|
||
<?php echo ($message = $this->session->get('message')) ? '<div class="message">'.$message.'</div>' : '' ?>
|
||
<?php if (isset($submenu)) echo '<div class="submenu">'.$submenu.'</div>'; ?>
|
||
<?php echo $link_back ?>
|
||
<?php
|
||
if($this->acl_check_edit('Devices_Controller','segment'))
|
||
echo ' | '.html::anchor(url_lang::base().'segments/edit/'.$segment->id, url_lang::lang('texts.Edit')) ?><br /><br />
|
||
|
||
|
||
<table class="extended" cellspacing="0">
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.ID') ?></th>
|
||
<td><?php echo $segment->id ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Name') ?></th>
|
||
<td><?php echo $segment->name ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Technology') ?></th>
|
||
<td><?php echo $segment->technology ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Bitrate') ?></th>
|
||
<td><?php echo $segment->bitrate ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Duplex') ?></th>
|
||
<td><?php echo $segment->duplex ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Comment') ?></th>
|
||
<td><?php echo $segment->comment ?></td>
|
||
</tr>
|
||
|
||
</table><br />
|
||
|
||
|
||
|
Také k dispozici: Unified diff
Pridan novy kontroler errors pro vypis chybovych hlasek, mensi debordelizace...