diff options
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/config.inc | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc index 4586397b..c2c777a1 100644 --- a/frontends/php/include/config.inc +++ b/frontends/php/include/config.inc @@ -468,6 +468,21 @@ ?> </font> </td> + <td colspan=1 bgcolor=FFFFFF align=center valign="top" width="15%"> + <font face="Arial,Helvetica" size=2> + <a href="srv_status.html"> +<? + if($page["file"]=="srv_status.html") + { + echo "<b>[SERVICES]</b></a>"; + } + else + { + echo "SERVICES</a>"; + } +?> + </font> + </td> </tr> <tr> <td colspan=2 bgcolor=FFFFFF align=center valign="top" width="15%"> @@ -485,7 +500,7 @@ ?> </font> </td> - <td colspan=2 bgcolor=FFFFFF align=center valign="top" width="15%"> + <td colspan=3 bgcolor=FFFFFF align=center valign="top" width="15%"> <font face="Arial,Helvetica" size=2> <a href="report1.html"> <? @@ -626,6 +641,21 @@ ?> </font> </td> + <td colspan=1 bgcolor=FFFFFF align=center valign="top" width="15%"> + <font face="Arial,Helvetica" size=2> + <a href="services.html"> +<? + if($page["file"]=="services.html") + { + echo "<b>[SERVICES]</b></a>"; + } + else + { + echo "SERVICES</a>"; + } +?> + </font> + </td> </tr> </table> </td> @@ -860,6 +890,25 @@ return DBexecute($sql); } + function add_service($name,$triggerid,$linktrigger) + { + if( isset($linktrigger)&&($linktrigger=="on") ) + { + $sql="insert into services (serviceid,name,triggerid) values (NULL,'$name',$triggerid)"; + } + else + { + $sql="insert into services (serviceid,name) values (NULL,'$name')"; + } + return DBexecute($sql); + } + + function add_service_link($servicedownid,$serviceupid) + { + $sql="insert into services_links (servicedownid,serviceupid) values ($servicedownid,$serviceupid)"; + return DBexecute($sql); + } + # Update Action function update_action( $actionid, $userid, $good, $delay, $subject, $message ) |
