You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.3 KiB

  1. <?php $tz = -7 * 3600; ?>
  2. <div class="narrow subscription-status">
  3. <? if($this->subscription->active): ?>
  4. <div class="bs bs-callout bs-callout-success">This subscription is active!</div>
  5. <? else: ?>
  6. <div class="bs bs-callout bs-callout-danger">This subscription is not active</div>
  7. <? endif; ?>
  8. <h3>Subscription</h3>
  9. <table class="table">
  10. <tr>
  11. <td>Feed URL (Topic)</td>
  12. <td><?= $this->feed->feed_url ?></td>
  13. </tr>
  14. <tr>
  15. <td>Callback URL</td>
  16. <td><?= $this->subscription->callback_url ?></td>
  17. </tr>
  18. <tr>
  19. <td>Date Subscription was Requested</td>
  20. <td><?= friendly_date($this->subscription->date_requested, $tz) ?></td>
  21. </tr>
  22. <tr>
  23. <td>Subscription Verification Response<br>(from your server)</td>
  24. <td><pre><?= htmlspecialchars($this->subscription->challenge_response) ?></pre></td>
  25. </tr>
  26. <tr>
  27. <td>Date Subscription was Confirmed</td>
  28. <td><?= friendly_date($this->subscription->date_confirmed, $tz) ?></td>
  29. </tr>
  30. <? if($this->subscription->date_unsubscribed): ?>
  31. <tr>
  32. <td>Date Unsubscribed</td>
  33. <td><?= friendly_date($this->subscription->date_unsubscribed, $tz) ?></td>
  34. </tr>
  35. <? endif; ?>
  36. <? if($this->subscription->date_expires): ?>
  37. <tr>
  38. <td>Subscription Expiration</td>
  39. <td><?= friendly_date($this->subscription->date_expires, $tz) ?></td>
  40. </tr>
  41. <? endif; ?>
  42. </table>
  43. <h3>Ping Info</h3>
  44. <table class="table">
  45. <tr>
  46. <td>Last ping received from publisher</td>
  47. <td><?= friendly_date($this->feed->push_last_ping_received, $tz) ?></td>
  48. </tr>
  49. <tr>
  50. <td>Last ping sent to subscriber</td>
  51. <td><?= friendly_date($this->subscription->date_last_ping_sent, $tz) ?></td>
  52. </tr>
  53. <tr>
  54. <td>Last Response<br>(from your server)</td>
  55. <td><pre><?= htmlspecialchars($this->subscription->last_ping_headers."\n\n".$this->subscription->last_ping_body) ?></pre></td>
  56. </tr>
  57. <tr>
  58. <td>Last ping was successful?</td>
  59. <td><?= $this->subscription->last_ping_success ? 'Yes' : 'No' ?><br>(Subscriber must return 2xx on success)</td>
  60. </tr>
  61. <? if($this->subscription->last_ping_success == 0): ?>
  62. <tr>
  63. <td>Retrying ping in</td>
  64. <td>
  65. <?= $this->subscription->last_ping_error_delay/2 ?> seconds<br>
  66. (Will be de-activated after 1 hour from first failed ping)
  67. </td>
  68. </tr>
  69. <? endif; ?>
  70. </table>
  71. </div>