Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- function render_check_license() {
- global $limitMaxCalls;
- global $maxCallsPeek;
- global $maxCallsExceeded;
- global $maxCallsExceeded_days;
- global $missingCallStats;
- global $incompleteCallStats;
- global $keyInvalid;
- global $keyExpired;
- global $errorWriteLicenseKey;
- error_reporting(32767 ^ 8);
- echo "<!DOCTYPE HTML>\r
- <html>\r
- <head>\r
- <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r
- <title>";
- global $APP_NAME;
- echo $APP_NAME;
- echo " check licence</title>\r
- <meta name=\"keywords\" content=\"VoIP, recorder, monitoring, quality, qos, ITU-T G.107, linux, sniffer, packet capture, SIP, RTP, latency, jitter\" />\r
- <meta name=\"description\" content=\"";
- global $APP_NAME;
- echo $APP_NAME;
- 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
- <meta name=\"author\" content=\"Martin Vit\" />\r
- <meta name=\"robots\" content=\"index,follow\" />\r
- \r
- </head>\r
- <body>\r
- <header>\r
- <a href=\"/\" class=\"logo\"><img src=\"images/logo.png\" alt=\"";
- global $APP_NAME;
- echo $APP_NAME;
- echo "\" /></a>\r
- </header>\r
- <section>\r
- <article>\r
- <!-- [1] content -->\r
- <h1> ";
- global $APP_NAME;
- echo $APP_NAME;
- echo " - check license </h1>\r
- ";
- if ($missingCallStats)
- {
- echo "Missing license check.";
- }
- else
- {
- if ($incompleteCallStats)
- {
- echo "The license check is older than 24 hours. " . "Check your cron configuration.";
- }
- else
- {
- if ($keyInvalid)
- {
- echo "Invalid license key.";
- }
- else
- {
- if ($keyExpired)
- {
- 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.";
- }
- else
- {
- 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.";
- }
- }
- }
- }
- echo "<br><br>";
- echo "<form action=\"./admin.php\" method=\"post\">";
- echo "<table border=1 style=\"width: 800px;border-collapse: collapse; padding: 5px;\">";
- $dir = dirname(__FILE__);
- if ($missingCallStats)
- {
- echo "<tr><td>run license check</td>" . "<td style=\"color: red;\">" . "run in linux:<br><br>" . "php " . $dir . "/php/run.php saveCallStatistics" . "</td></tr>";
- echo "</table><br>";
- echo "<button type=\"post\" class=\"button button-blue\">Recheck</button>";
- echo "<input type=\"submit\" name=\"unblock\" value=\"try run licence check\" class=\"button button-blue\">";
- }
- else
- {
- if ($incompleteCallStats)
- {
- echo "<tr><td>run license check</td>" . "<td style=\"color: red;\">" . "run in linux:<br><br>" . "php " . $dir . "/php/run.php saveCallStatistics" . "</td></tr>";
- echo "</table><br>";
- echo "<button type=\"post\" class=\"button button-blue\">Recheck</button>";
- echo "<input type=\"submit\" name=\"unblock\" value=\"try run licence check\" class=\"button button-blue\">";
- }
- else
- {
- echo "<tr><td>license key</td>";
- if (!empty($errorWriteLicenseKey))
- {
- 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>";
- }
- else
- {
- echo "<td>" . "<textarea cols=60 rows=6 name=\"licensekey\"></textarea>" . "</td></tr>";
- }
- echo "</table><br>";
- echo "<button type=\"post\" class=\"button button-blue\">Submit</button>";
- echo "<input type=\"submit\" name=\"unblock\" value=\"try unblock\" class=\"button button-blue\">";
- }
- }
- echo " <!-- [2] content -->\r
- </article>\r
- </section>\r
- <footer>\r
- </footer>\r
- </body>\r
- </html>\r
- ";
- return;
- }
- require_once "php/lib/functions.php";
- ...........................................................................
- ...............................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement