/openshift/adei

To get this branch, use:
bzr branch http://darksoft.org/webbzr/openshift/adei

« back to all changes in this revision

Viewing changes to services/control.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-12-06 01:38:28 UTC
  • Revision ID: csa@dside.dyndns.org-20081206013828-lm3jqpc4fizd6cn7
XML+XSLT modules support, Alarms support in frontend (mozilla only)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
     break;
29
29
     case "alarms_summary":
30
30
        $res = $reader->GetAlarms();
 
31
        $title = $reader->GetSourceTitle();
31
32
     break;
32
33
     case "alarms_current":
33
34
        $res = $reader->GetCurrentAlarms();
42
43
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
43
44
if ($error) echo "<result><Error>$error</Error></result>";
44
45
else if ($res) {
45
 
    echo "<result>\n";
 
46
    $extra = "";
 
47
    if ($title) $extra .= " title=\"" . xml_escape($title) . "\"";
 
48
    
 
49
    echo "<result$extra>\n";
46
50
    foreach ($res as $control) {
47
51
        $extra = "";
48
52
        foreach ($control as $prop => $value) {