Revize 942
Přidáno uživatelem Michal Kliment před více než 13 roky(ů)
freenetis/branches/testing/application/controllers/devices.php | ||
---|---|---|
$device = new Device_Model($device_id);
|
||
if ($device->id == 0)
|
||
Controller::error(RECORD);
|
||
if ($this->session->get('ssUser_id'))
|
||
$linkback = url_lang::base()."devices/show_by_user/".$device->user_id;
|
||
else
|
||
$linkback = url_lang::base()."devices/show_all";
|
||
if (!$this->acl_check_delete('Devices_Controller', 'devices', $device->user->member_id))
|
||
Controller::error(ACCESS);
|
||
|
||
$linkback = Path::instance()->previous()->current();
|
||
|
||
if (url::slice(url_lang::uri($linkback),1,1) == 'show')
|
||
$linkback = Path::instance()->previous()->current();
|
||
|
||
// count of deleted interfaces
|
||
$deleted_ifaces = 0;
|
||
// count of deleted ip adresses
|
freenetis/branches/testing/application/controllers/comments.php | ||
---|---|---|
if (!$this->acl_check_new (get_class($this),'works',$parent->user->member_id))
|
||
Controller::error (ACCESS);
|
||
|
||
if (url::slice(url_lang::uri(Path::instance()->previous()->current()),1,1) == 'show_work')
|
||
if (url::slice(url_lang::uri(Path::instance()->previous()->current()),0,1) == 'comments_threads')
|
||
Path::instance()->previous();
|
||
|
||
if (url::slice(url_lang::uri(Path::instance()->current()),1,1) == 'show_work')
|
||
{
|
||
$link_back_url = url_lang::base().'users/show_work/'.$parent->id;
|
||
|
freenetis/branches/testing/application/views/devices_show_by_user.php | ||
---|---|---|
<h2><?php echo $headline ?></h2><br />
|
||
<?php
|
||
$message = $this->session->get('message');
|
||
echo empty($message) ? '' : '<div class="message">'.$message.'</div>';
|
||
?>
|
||
<?php
|
||
if ($this->acl_check_new ('Devices_Controller', 'device', $member_id))
|
||
echo html::anchor (url_lang::base().'devices/add_whole/'.$user_id, url_lang::lang('texts.Add new device'))
|
||
?>
|
Také k dispozici: Unified diff
Jeste mensi opravy.