Revize 228
Přidáno uživatelem Roman Ševčík před více než 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'back to interfaces list' => 'Zpět na seznam rozhraní',
|
||
'back to ip addresses list' => 'Zpět na seznam IP adres',
|
||
'back to list of all devices' => 'Zpět na seznam všech zařízení',
|
||
'back to list of groups' => 'Zpět na seznam skupin',
|
||
'back to list of members' => 'Zpět na seznam členů',
|
||
'back to list of translations' => 'Zpět na seznam překladů',
|
||
'back to login' => 'Zpět na přihlášení',
|
||
... | ... | |
'edit account' => 'Upravit účet',
|
||
'edit device' => 'Upravit zařízení',
|
||
'edit device admin' => 'Upravit správce zařízení',
|
||
'edit group' => 'Upravit skupinu',
|
||
'edit groups' => 'Upravit skupiny',
|
||
'edit interface' => 'Upravit rozhraní',
|
||
'edit interrupt of membership' => 'Upravit přerušení členství',
|
||
'edit ip address' => 'Upravit IP adresu',
|
||
... | ... | |
'suppliers account' => '',
|
||
'surname' => 'Příjmení',
|
||
'system settings' => 'Nastavení systému',
|
||
'system users' => 'Systémový uživatelé',
|
||
'system variables' => 'Systémové proměnné',
|
||
'system variables were successfully updated' => 'Systémové proměnné byly úspěšně aktualizovány',
|
||
'system variables werent successfully updated' => 'Systémové proměnné nebyly úspěšně aktualizovány',
|
||
... | ... | |
'username or password do not match' => 'Uživatelské jméno nebo heslo nesouhlasí',
|
||
'username' => 'Login',
|
||
'users' => 'Uživatelé',
|
||
'users in group' => 'Uživatelé ve skupině',
|
||
'vacating member' => 'Přerušené členství',
|
||
'variable symbol' => 'variabilní symbol',
|
||
'vlan detail' => 'Detail VLANu',
|
freenetis/trunk/kohana/application/models/group_aro_map.php | ||
---|---|---|
<?php
|
||
|
||
class Group_aro_map_Model extends Model {
|
||
|
||
public function insert_data($data, $where = false)
|
||
{
|
||
if ($where)
|
||
{
|
||
$query=$this->db->select('group_id')->where('aro_id', $where)->from('groups_aro_map')->get()->current();
|
||
if ($query->group_id == 23) $this->db->update('groups_aro_map', $data, array('aro_id' => $where));
|
||
}
|
||
else
|
||
{
|
||
$this->db->insert('groups_aro_map', $data);
|
||
}
|
||
}
|
||
|
||
}
|
||
?>
|
freenetis/trunk/kohana/application/models/aro.php | ||
---|---|---|
}
|
||
}
|
||
|
||
/**
|
||
* Funkce vraci zaznamy serazene dle value.
|
||
*/
|
||
public function get_all_values()
|
||
{
|
||
return $this->db->query('select * from aro order by value');
|
||
}
|
||
|
||
/**
|
||
* Funkce vraci vsechny zaznamy.
|
||
*/
|
||
public function get_all()
|
||
{
|
||
return $this->db->query('select * from aro');
|
||
}
|
||
|
||
/**
|
||
* Funkce vraci vsechny zaznamy ktere jsou v dane aro skupine (dle id skupiny).
|
||
*/
|
||
public function get_all_by_aro_broup_id($id)
|
||
{
|
||
return $this->db->query('SELECT * FROM aro WHERE id IN ( SELECT aro_id from groups_aro_map WHERE group_id='.$id.' GROUP BY aro_id);');
|
||
}
|
||
|
||
/**
|
||
* Funkce vraci vsechny zaznamy ktere nejsou v dane aro skupine (dle id skupiny).
|
||
*/
|
||
public function get_all_not_in_by_aro_broup_id($id)
|
||
{
|
||
return $this->db->query('SELECT * FROM aro WHERE id NOT IN ( SELECT aro_id from groups_aro_map WHERE group_id='.$id.' GROUP BY aro_id);');
|
||
}
|
||
|
||
}
|
||
?>
|
freenetis/trunk/kohana/application/controllers/access_denied.php | ||
---|---|---|
<?php
|
||
|
||
class Access_denied_Controller extends Controller {
|
||
|
||
function _remap()
|
||
{
|
||
// Attempted access path, with "access_denied/" removed
|
||
$path = preg_replace('|^access_denied/|', '', $this->uri->string());
|
||
// Display an error page
|
||
throw new Kohana_User_Exception
|
||
(
|
||
'Direct Access Denied',
|
||
'The file or directory you are attempting to access, <tt>'.$path.'</tt>, cannot be accessed directly. '.
|
||
'You may return to the '.html::anchor('', 'home page').' at any time.'
|
||
);
|
||
}
|
||
|
||
}
|
||
?>
|
freenetis/trunk/kohana/application/controllers/settings.php | ||
---|---|---|
$view->header->title = url_lang::lang('texts.System settings');
|
||
$view->render(TRUE);
|
||
}
|
||
|
||
}
|
||
?>
|
freenetis/trunk/kohana/application/controllers/email.php | ||
---|---|---|
$te->setWidth(656);
|
||
$te->setHeight(480);
|
||
$te->setFieldName('editor');
|
||
$te->setContent(($this->input->post('editor') == NULL) ? '<h1>Ahoooooooooj.</h1>' : $this->input->post('editor') );
|
||
$te->setContent(($this->input->post('editor') == NULL) ? '' : $this->input->post('editor') );
|
||
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
freenetis/trunk/kohana/application/libraries/MY_Controller.php | ||
---|---|---|
$message = url_lang::lang('states.Failed to connect to database').'<br />'.url_lang::lang('states.Please check settings.');
|
||
$this->showbox($message, $this->ICON_ERROR, $content);
|
||
break;
|
||
|
||
case 4:
|
||
$message = url_lang::lang('states.This group do not exist.');
|
||
$this->showbox( $message, $this->ICON_ERROR, $content);
|
||
break;
|
||
}
|
||
// must be die() - else it will be render twice !
|
||
die();
|
||
... | ... | |
public function insert_phpgacl($user_id,$username,$value,$group, $is_edit = false)
|
||
{
|
||
// $aro_data = new Aro_Model();
|
||
$aro_group_data = new Group_aro_map_Model();
|
||
$aro_group_data = new Groups_aro_map_Model();
|
||
switch ($group) {
|
||
case 'member':
|
||
$group_id = 22;
|
freenetis/trunk/kohana/application/views/base/header.php | ||
---|---|---|
<?php echo isset($other_styles) ? $other_styles : '' ?>
|
||
</head>
|
||
|
||
<body>
|
||
<body <?php echo isset($onload) ? 'onload="'.$onload.'"' : '' ?> >
|
||
|
||
<div id="main">
|
||
<div id="header">
|
Také k dispozici: Unified diff
Integrace PHPGACL Přidán kontroler pro přiřazzení uživatelů do skupin PHPGACL.