Advertisement
Guest User

Untitled

a guest
Jun 5th, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function render_check_license() {
  15.  
  16. global $limitMaxCalls;
  17. global $maxCallsPeek;
  18. global $maxCallsExceeded;
  19. global $maxCallsExceeded_days;
  20. global $missingCallStats;
  21. global $incompleteCallStats;
  22. global $keyInvalid;
  23. global $keyExpired;
  24. global $errorWriteLicenseKey;
  25. error_reporting(32767 ^ 8);
  26. echo "<!DOCTYPE HTML>\r
  27. <html>\r
  28. <head>\r
  29. <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r
  30. <title>";
  31. global $APP_NAME;
  32. echo $APP_NAME;
  33. echo " check licence</title>\r
  34. <meta name=\"keywords\" content=\"VoIP, recorder, monitoring, quality, qos, ITU-T G.107, linux, sniffer, packet capture, SIP, RTP, latency, jitter\" />\r
  35. <meta name=\"description\" content=\"";
  36. global $APP_NAME;
  37. echo $APP_NAME;
  38. echo " is open source live network packet sniffer voip monitoring tool and call recorder which analyzes SIP and RTP protocol and predicts call quality\" />\r
  39. <meta name=\"author\" content=\"Martin Vit\" />\r
  40. <meta name=\"robots\" content=\"index,follow\" />\r
  41. \r
  42. </head>\r
  43. <body>\r
  44. <header>\r
  45. <a href=\"/\" class=\"logo\"><img src=\"images/logo.png\" alt=\"";
  46. global $APP_NAME;
  47. echo $APP_NAME;
  48. echo "\" /></a>\r
  49. </header>\r
  50. <section>\r
  51. <article>\r
  52. <!-- [1] content -->\r
  53. <h1> ";
  54. global $APP_NAME;
  55. echo $APP_NAME;
  56. echo " - check license </h1>\r
  57. ";
  58. if ($missingCallStats)
  59. {
  60. echo "Missing license check.";
  61. }
  62. else
  63. {
  64. if ($incompleteCallStats)
  65. {
  66. echo "The license check is older than 24 hours. " . "Check your cron configuration.";
  67. }
  68. else
  69. {
  70. if ($keyInvalid)
  71. {
  72. echo "Invalid license key.";
  73. }
  74. else
  75. {
  76. if ($keyExpired)
  77. {
  78. echo "This version cannot be used with the license key.php - license is valid for versions <= " . $keyExpired . ". " . "Please contact the support and enter new license key.";
  79. }
  80. else
  81. {
  82. echo "Number of concurrent calls was exceeded. " . ("The average peak is " . $maxCallsPeek . " calls and the limit for this license is " . $limitMaxCalls . ". ") . "Please contact the support and enter new license key.";
  83. }
  84. }
  85. }
  86. }
  87. echo "<br><br>";
  88. echo "<form action=\"./admin.php\" method=\"post\">";
  89. echo "<table border=1 style=\"width: 800px;border-collapse: collapse; padding: 5px;\">";
  90. $dir = dirname(__FILE__);
  91. if ($missingCallStats)
  92. {
  93. echo "<tr><td>run license check</td>" . "<td style=\"color: red;\">" . "run in linux:<br><br>" . "php " . $dir . "/php/run.php saveCallStatistics" . "</td></tr>";
  94. echo "</table><br>";
  95. echo "<button type=\"post\" class=\"button button-blue\">Recheck</button>";
  96. echo "<input type=\"submit\" name=\"unblock\" value=\"try run licence check\" class=\"button button-blue\">";
  97. }
  98. else
  99. {
  100. if ($incompleteCallStats)
  101. {
  102. echo "<tr><td>run license check</td>" . "<td style=\"color: red;\">" . "run in linux:<br><br>" . "php " . $dir . "/php/run.php saveCallStatistics" . "</td></tr>";
  103. echo "</table><br>";
  104. echo "<button type=\"post\" class=\"button button-blue\">Recheck</button>";
  105. echo "<input type=\"submit\" name=\"unblock\" value=\"try run licence check\" class=\"button button-blue\">";
  106. }
  107. else
  108. {
  109. echo "<tr><td>license key</td>";
  110. if (!empty($errorWriteLicenseKey))
  111. {
  112. echo "<td style=\"color: red;\">" . "Cannot write " . dirname(__FILE__) . "/key.php file. " . "please login to the machine via ssh (root) and run <br>chown -R " . get_www_user() . " " . dirname(__FILE__) . "<br>" . "<textarea cols=60 rows=6 name=\"licensekey\">" . htmlspecialchars($_POST["licensekey"]) . "</textarea>" . "</td></tr>";
  113. }
  114. else
  115. {
  116. echo "<td>" . "<textarea cols=60 rows=6 name=\"licensekey\"></textarea>" . "</td></tr>";
  117. }
  118. echo "</table><br>";
  119. echo "<button type=\"post\" class=\"button button-blue\">Submit</button>";
  120. echo "<input type=\"submit\" name=\"unblock\" value=\"try unblock\" class=\"button button-blue\">";
  121. }
  122. }
  123. echo " <!-- [2] content -->\r
  124. </article>\r
  125. </section>\r
  126. <footer>\r
  127. </footer>\r
  128. </body>\r
  129. </html>\r
  130. ";
  131. return;
  132. }
  133.  
  134.  
  135. require_once "php/lib/functions.php";
  136. ...........................................................................
  137. ...............................
  138. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement