corrade-http-templates – Diff between revs 4 and 48
?pathlinks?
Rev 4 | Rev 48 | |||
---|---|---|---|---|
Line 38... | Line 38... | |||
38 | $params = array( |
38 | $params = array( |
|
39 | 'command' => 'notify', |
39 | 'command' => 'notify', |
|
40 | 'group' => $GROUP, |
40 | 'group' => $GROUP, |
|
41 | 'password' => $PASSWORD, |
41 | 'password' => $PASSWORD, |
|
42 | 'type' => 'group', |
42 | 'type' => 'group', |
|
43 | 'action' => 'set', # Set will discard other URLs |
43 | 'action' => 'add', # Set will discard other URLs |
|
- | 44 | 'tag' => $NOTIFICATION_TAG, |
||
44 | 'URL' => $STORE |
45 | 'URL' => $STORE |
|
45 | ); |
46 | ); |
|
Line 46... | Line 47... | |||
46 | |
47 | |
|
47 | #### |
48 | #### |
|
Line 77... | Line 78... | |||
77 | |
78 | |
|
78 | #### |
79 | #### |
|
79 | # V. Check the status of the command. |
80 | # V. Check the status of the command. |
|
80 | switch($status) { |
81 | switch($status) { |
|
81 | case "True": |
82 | case "True": |
|
82 | echo 'Group chat notification installed!'; |
83 | echo 'Group chat notification installed!'.PHP_EOL; |
|
83 | break; |
84 | break; |
|
84 | default: |
85 | default: |
|
85 | echo 'Corrade returned the error: '.urldecode( |
86 | echo 'Corrade returned the error: '.urldecode( |
|
86 | wasKeyValueGet( |
87 | wasKeyValueGet( |
|
87 | "error", |
88 | "error", |
|
88 | $result |
89 | $result |
|
89 | ) |
90 | ) |
|
90 | ); |
91 | ).PHP_EOL; |
|
91 | break; |
92 | break; |
|
Line 92... | Line 93... | |||
92 | } |
93 | } |
|
93 | |
94 | |