index 8ed7173a5fbae10552f0c43f28d4943136bc297f..74b530e0a726e821d5b6c0415cf2ef26d0db648b 100644 (file)
$ui = get_userinfo();
$this->parent = $parent;
- if(!isset($this->acl_module)){
- return("VERDAMMT");
- }
-
foreach($_POST as $name => $value){
/* Create a new snapshot, display a dialog */
{
$str= "";
$ui = get_userinfo();
- if($this->snapshotEnabled() && $ui->allow_snapshot_restore($base,$category)){
+ if($this->snapshotEnabled()){
+ if ($ui->allow_snapshot_restore($base,$category)){
- if(count($this->Available_SnapsShots($base))){
- $str.= "<input class='center' type='image' src='images/lists/restore.png'
- alt='"._("Restore snapshot")."' name='RestoreSnapShotDialog_".base64_encode($base)."' title='"._("Restore snapshot")."'> ";
- } else {
- $str = "<img class='center' src='images/lists/restore_grey.png' alt=''> ";
+ if(count($this->Available_SnapsShots($base))){
+ $str.= "<input class='center' type='image' src='images/lists/restore.png'
+ alt='"._("Restore snapshot")."' name='RestoreSnapShotDialog_".base64_encode($base)."' title='"._("Restore snapshot")."'> ";
+ } else {
+ $str = "<img class='center' src='images/lists/restore_grey.png' alt=''> ";
+ }
+ }
+ if($ui->allow_snapshot_create($base,$category)){
+ $str.= "<input class='center' type='image' src='images/snapshot.png'
+ alt='"._("Create snapshot")."' name='CreateSnapShotDialog_".base64_encode($base)."'
+ title='"._("Create a new snapshot from this object")."'> ";
+ }else{
+ $str = "<img class='center' src='images/empty.png' alt=' '> ";
}
- }
- if($this->snapshotEnabled() && $ui->allow_snapshot_create($base,$category)){
- $str.= "<input class='center' type='image' src='images/snapshot.png'
- alt='"._("Create snapshot")."' name='CreateSnapShotDialog_".base64_encode($base)."'
- title='"._("Create a new snapshot from this object")."'> ";
- }else{
- $str = "<img class='center' src='images/empty.png' alt=' '> ";
}
return($str);