diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-24 05:35:45 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-10-24 05:35:45 +0000 |
| commit | 505acfb155eb4f9265fe1d803997cd0f2a24c569 (patch) | |
| tree | 20b3a736c0858e67cc379af7c54339274a5f694e /frontends/php/config.php | |
| parent | 9a1e779bc865fddde2adc39dde378f0a0439594a (diff) | |
- update images. Thanks to James Wells. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@2216 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/config.php')
| -rw-r--r-- | frontends/php/config.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php index c92d7f20..99ab67fe 100644 --- a/frontends/php/config.php +++ b/frontends/php/config.php @@ -72,6 +72,16 @@ } unset($_REQUEST["imageid"]); } + if($_REQUEST["register"]=="update image") + { + $result=update_image($_REQUEST["imageid"],$_REQUEST["name"],$_REQUEST["imagetype"],$_FILES); + show_messages($result, S_IMAGE_UPDATED, S_CANNOT_UPDATE_IMAGE); + if($result) + { + add_audit(AUDIT_ACTION_UPDATE,AUDIT_RESOURCE_ZABBIX_CONFIG,"Image updated"); + } + unset($_REQUEST["imageid"]); + } } if(isset($_REQUEST["register"])) { @@ -345,6 +355,7 @@ echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"add image\">"; if(isset($_REQUEST["imageid"])) { + echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"update image\" onClick=\"return Confirm('".S_UPDATE_SELECTED_IMAGE."');\">"; echo "<input class=\"button\" type=\"submit\" name=\"register\" value=\"delete image\" onClick=\"return Confirm('".S_DELETE_SELECTED_IMAGE."');\">"; } |
