[PATCH] kannel-monitor gateway status different releases

José Héctor Galimberti <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization CICSA
Message-ID <[email protected]>
Hi list, this is my first post, i want to share a small patch that i made to
be able to see in kannel-monitor page both svn and 1.5 gateway releases,
SMSC connection details right:

--- index.php.jompi     2015-01-24 00:57:10.610246266 -0600
+++ index.php.svn       2015-01-23 23:57:00.000000000 -0600
@@ -360,19 +360,10 @@
     </td>
     <td><?php echo format_status($st) ?></td>
     <td><?php echo $uptime ?></td>
-<?
-if(stristr($status[$inst]['version'], 'svn') === FALSE) {
-    echo    "<td>" . nf($smsc['received']['sms']) . "</td>";
-    echo    "<td>" . nf($smsc['received']['dlr']) . "</td>";
-    echo    "<td>" . nf($smsc['sent']['sms']) . "</td>";
-    echo    "<td>" . nf($smsc['sent']['dlr']) . "</td>";
-}else{
-    echo    "<td>" . nf($smsc['sms'][0]['received']) . "</td>";
-    echo    "<td>" . nf($smsc['dlr'][0]['received']) . "</td>";
-    echo    "<td>" . nf($smsc['sms'][0]['sent']) . "</td>";
-    echo    "<td>" . nf($smsc['dlr'][0]['sent']) . "</td>";
-}
-?>
+    <td><?php echo nf($smsc['sms'][0]['received']) ?></td>
+    <td><?php echo nf($smsc['dlr'][0]['received']) ?></td>
+    <td><?php echo nf($smsc['sms'][0]['sent']) ?></td>
+    <td><?php echo nf($smsc['dlr'][0]['sent']) ?></td>
     <td><?php echo nf($smsc['failed']) ?></td>
     <td><?php echo nf($smsc['queued']) ?></td>
     <td>


Hope it can be added to the svn trunk

Regards, José





__________ Información de ESET Smart Security, versión de la base de datos
de firmas de virus 11065 (20150123) __________

El mensaje fue verificado por ESET Smart Security.

http://www.eset-la.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.