Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.0
- * @ Author : DeZender
- * @ Release on : 15.05.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function render_check_license()
- {
- global $limitMaxCalls;
- global $maxCallsPeak;
- global $maxCallsExceeded;
- global $maxCallsExceeded_days;
- global $missingCallStats;
- global $incompleteCallStats;
- global $keyInvalid;
- global $keyExpired;
- global $errorWriteLicenseKey;
- error_reporting(32759);
- echo '<html>' . "\r\n" . '<head>' . "\r\n" . ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\r\n" . ' <title>';
- global $APP_NAME;
- echo $APP_NAME;
- echo ' check licence</title>' . "\r\n" . ' <meta name="keywords" content="VoIP, recorder, monitoring, quality, qos, ITU-T G.107, linux, sniffer, packet capture, SIP, RTP, latency, jitter" />' . "\r\n" . ' <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\n" . ' <meta name="author" content="Martin Vit" />' . "\r\n" . ' <meta name="robots" content="index,follow" />' . "\r\n" . ' <link rel="shortcut icon" type="image/x-icon" href="';
- echo Handle_favicon();
- echo '" />' . "\r\n" . ' <link href="css/style.css" rel="stylesheet" type="text/css" media="screen">' . "\r\n" . '</head>' . "\r\n" . '<body>' . "\r\n" . ' <header>' . "\r\n\t" . '<a href="/" class="logo"><img src="images/';
- echo Get_brand_logo();
- echo '" alt="';
- global $APP_NAME;
- echo $APP_NAME;
- echo '" /></a>' . "\r\n" . ' </header>' . "\r\n" . ' <section>' . "\r\n\t" . '<article>' . "\r\n\t" . '<!-- [1] content -->' . "\r\n\t" . '<h1> ';
- global $APP_NAME;
- echo $APP_NAME;
- echo ' - check license </h1>' . "\r\n";
- 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 ' . $maxCallsPeak . ' 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 || $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 style="padding-right: 20px;">license key</td>';
- echo '<td>';
- echo '<table cellpadding=0 cellspacing=0>';
- $SITE = Get_brand_sitename();
- $licensekeyUrl = Get_brand_get_licensekey_url();
- if ($licensekeyUrl) {
- $hwid = NULL;
- exec('bin/hwid-' . php_uname('m'), $output_hwid, $return_var_hwid);
- if (count($output_hwid) && preg_match('/hardware id:(?P<hwid>.*)/', $output_hwid[0], $match_hwid)) {
- $hwid = $match_hwid['hwid'];
- }
- echo '<tr><td colspan=2 style="padding: 1px; padding-right: 20px;">' . ('<p style="color:black; word-wrap: break-word; white-space: normal; width: 550;">your server id is: ' . $hwid) . '</td></tr><tr>';
- echo '<td colspan=2 style="padding: 1px;"><br><h2>If you do not have account yet please create one on:</h2><a target="_blank" href="https://' . $SITE . '/getfreetrial" class="button button-blue" style="float: right; margin-right: 20px; padding: 4px 7px 5px 7px;">register</a><br><br>' . '</td></tr><tr>';
- echo '<td colspan=2 style="padding: 1px;"><br><h2>If you have already your license token insert it here</h2></td></tr><tr><td colspan=2 style="padding: 1px;"><span id="licensekey_alert" style="color: red; font-weight: bold;"></span></td></tr><tr><td style="padding: 1px; color: black;">license token:</td><td style="padding: 1px; padding-right: 20px; width: 470px;"><input type="text" name="license_token" id="license_token" value="' . (!empty($_POST['license_token']) ? $_POST['license_token'] : get_first_item('select content from system where type = \'license_token\'')) . '" style="width: 100%;">' . '</td></tr><tr>' . '<td colspan=2 style="padding: 1px; padding-top: 5px;">' . '<a target="_blank" onclick="getlicense(false, true)" class="button button-blue" style="float: right; margin-right: 20px; padding: 4px 7px 5px 7px;">get license key</a><br><br>' . '</td></tr><tr>';
- echo '<td colspan=2 style="padding: 1px;"><br><h2 style="padding-right: 20px;">If your machine does not have access to internet please paste your license key which you can get from:</h2><a target="_blank" href="http://' . $SITE . '/whmcs/clientarea.php?action=products" class="button button-blue" style="float: right; margin-right: 20px; padding: 4px 7px 5px 7px;">download license</a><br><br>' . '</td></tr>';
- }
- echo '<tr><td style="padding: 1px; color: black;">license key:</td><td style="padding: 1px; padding-right: 20px;"><textarea rows=6 name="licensekey" id="licensekey" style="width: 100%;">' . htmlspecialchars($_POST['licensekey']) . '</textarea>' . '</td></tr>';
- if (!empty($errorWriteLicenseKey)) {
- echo '<tr><td></td><td style="color: red; width: 470px; font-size: 90%;">Cannot write ' . dirname(__FILE__) . '/key.php file.<br>' . 'Please login to the machine via ssh (root) and run:<br>' . 'chown -R ' . get_www_user() . ' ' . dirname(__FILE__) . '<br>' . '</td></tr>';
- }
- echo '</table>';
- if ($licensekeyUrl) {
- echo '<script type="text/javascript">' . "\r\n\t\t\t\t" . 'function getlicense(useWget, tryWget) {' . "\r\n\t\t\t\t\t" . 'getlicense_alert("");' . "\r\n\t\t\t\t\t" . 'var elLicenseToken = document.getElementById("license_token");' . "\r\n\t\t\t\t\t" . 'if(!elLicenseToken.value) {' . "\r\n\t\t\t\t\t\t" . 'getlicense_alert("missing license token");' . "\r\n\t\t\t\t\t\t" . 'return;' . "\r\n\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t" . 'var elLicenseKey = document.getElementById("licensekey");' . "\r\n\t\t\t\t\t" . 'var xmlhttp;' . "\r\n\t\t\t\t\t" . 'if(window.XMLHttpRequest) {' . "\r\n\t\t\t\t\t\t" . 'xmlhttp = new XMLHttpRequest();' . "\r\n\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t" . 'xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");' . "\r\n\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t" . 'xmlhttp.onreadystatechange = function() {' . "\r\n\t\t\t\t\t\t" . 'if(xmlhttp.readyState == 4) {' . "\r\n\t\t\t\t\t\t\t" . 'if(xmlhttp.status == 200) {' . "\r\n\t\t\t\t\t\t\t\t" . 'result = JSON.parse(xmlhttp.responseText);' . "\r\n\t\t\t\t\t\t\t\t" . 'if(!result) {' . "\r\n\t\t\t\t\t\t\t\t\t" . 'getlicense_alert("unknown response");' . "\r\n\t\t\t\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t\t\t\t" . 'if(result.success) {' . "\r\n\t\t\t\t\t\t\t\t\t\t" . 'elLicenseKey.value = result.key;' . "\r\n\t\t\t\t\t\t\t\t\t\t" . 'var recheckButton = document.getElementById("submit_button");' . "\r\n\t\t\t\t\t\t\t\t\t\t" . 'if(recheckButton) {' . "\r\n\t\t\t\t\t\t\t\t\t\t\t" . 'recheckButton.click();' . "\r\n\t\t\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t\t\t\t\t" . 'getlicense_alert(result.error);' . "\r\n\t\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t\t\t" . 'if(xmlhttp.statusText) {' . "\r\n\t\t\t\t\t\t\t\t\t" . 'getlicense_alert(xmlhttp.statusText);' . "\r\n\t\t\t\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t\t\t\t" . 'getlicense_alert("unknown error");' . "\r\n\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t\t" . 'if(!useWget && tryWget) {' . "\r\n\t\t\t\t\t\t\t\t\t" . 'getlicense(true);' . "\r\n\t\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t" . '}' . "\r\n\t\t\t\t\t" . 'if(useWget) {' . "\r\n\t\t\t\t\t\t" . 'xmlhttp.open("POST", "php/lib/functions_open.php", true);' . "\r\n\t\t\t\t\t\t" . 'xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");' . "\r\n\t\t\t\t\t\t" . 'xmlhttp.send("function_open_task=wget_license" +' . "\r\n\t\t\t\t\t\t\t" . ' "&licensetoken=" + encodeURIComponent(elLicenseToken.value.trim()) +' . "\r\n\t\t\t\t\t\t\t" . ' "&hwid=" + "' . urlencode($hwid) . '");' . "\r\n\t\t\t\t\t" . '} else {' . "\r\n\t\t\t\t\t\t" . 'xmlhttp.open("POST", "' . $licensekeyUrl . '", true);' . "\r\n\t\t\t\t\t\t" . 'xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");' . "\r\n\t\t\t\t\t\t" . 'xmlhttp.send("licensetoken=" + encodeURIComponent(elLicenseToken.value.trim()) +' . "\r\n\t\t\t\t\t\t\t" . ' "&hwid=" + "' . urlencode($hwid) . '");' . "\r\n\t\t\t\t\t" . '}' . "\r\n\t\t\t\t" . '}' . "\r\n\t\t\t\t" . 'function getlicense_alert(text) {' . "\r\n\t\t\t\t\t" . 'var elLicenseKeyAlert = document.getElementById("licensekey_alert");' . "\r\n\t\t\t\t\t" . 'elLicenseKeyAlert.innerHTML = text;' . "\r\n\t\t\t\t" . '}' . "\r\n\t\t\t" . ' </script>';
- }
- echo '</table><br>';
- echo '<button type="post" id="submit_button" class="button button-blue">Submit</button>';
- echo '<input type="submit" name="unblock" value="try unblock" class="button button-blue" style="margin-left: 2px;">';
- }
- echo "\t" . '<!-- [2] content -->' . "\r\n\t" . '</article>' . "\r\n" . ' </section>' . "\r\n" . ' <footer>' . "\r\n" . ' </footer>' . "\r\n" . ' </body>' . "\r\n" . '</html>' . "\r\n";
- }
- function render_cloud_max_calls_exceeded()
- {
- global $limitMaxCalls;
- global $maxCallsPeak;
- global $maxCallsExceeded;
- global $maxCallsExceeded_days;
- error_reporting(32759);
- echo '<html>' . "\r\n" . '<head>' . "\r\n" . ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\r\n" . ' <title>';
- global $APP_NAME;
- echo $APP_NAME;
- echo ' check licence</title>' . "\r\n" . ' <meta name="keywords" content="VoIP, recorder, monitoring, quality, qos, ITU-T G.107, linux, sniffer, packet capture, SIP, RTP, latency, jitter" />' . "\r\n" . ' <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\n" . ' <meta name="author" content="Martin Vit" />' . "\r\n" . ' <meta name="robots" content="index,follow" />' . "\r\n" . ' <link rel="shortcut icon" type="image/x-icon" href="';
- echo Handle_favicon();
- echo '" />' . "\r\n" . ' <link href="css/style.css" rel="stylesheet" type="text/css" media="screen">' . "\r\n" . '</head>' . "\r\n" . '<body>' . "\r\n" . ' <header>' . "\r\n\t" . '<a href="/" class="logo"><img src="images/';
- echo Get_brand_logo();
- echo '" alt="';
- global $APP_NAME;
- echo $APP_NAME;
- echo '" /></a>' . "\r\n" . ' </header>' . "\r\n" . ' <section>' . "\r\n\t" . '<article>' . "\r\n\t" . '<!-- [1] content -->' . "\r\n\t" . '<h1> ';
- global $APP_NAME;
- echo $APP_NAME;
- echo ' - check license </h1>' . "\r\n";
- echo 'Number of concurrent calls was exceeded. ' . ('The average peak is ' . $maxCallsPeak . ' calls and the limit for this license is ' . $limitMaxCalls . '. ') . 'Please contact the support.';
- echo "\t" . '<!-- [2] content -->' . "\r\n\t" . '</article>' . "\r\n" . ' </section>' . "\r\n" . ' <footer>' . "\r\n" . ' </footer>' . "\r\n" . ' </body>' . "\r\n" . '</html>' . "\r\n";
- }
- function check_base()
- {
- $arch = php_uname('m');
- return (function_exists('mysql_connect') || function_exists('mysqli_connect')) && ((getPhpVersion() < 502) || function_exists('json_encode')) && function_exists('gd_info') && function_exists('mb_strlen') && function_exists('posix_getpwuid') && (function_exists('gzdecode') || function_exists('gzinflate')) && exists_is_set_executable_bin_util('phantomjs') && exists_is_set_executable_bin_util('sox') && exists_is_set_executable_bin_util('tshark') && exists_is_set_executable_bin_util('mergecap') && exists_is_set_executable_bin_util('t38_decode') && (!file_exists('bin/mscgen-' . $arch) || is_set_executable('bin/mscgen-' . $arch)) && (!file_exists('bin/charts-' . $arch) || is_set_executable('bin/charts-' . $arch)) && ((file_exists('bin/vm-' . $arch) && is_set_executable('bin/vm-' . $arch)) || (file_exists('bin/vm') && is_set_executable('bin/vm')) || !in_array($arch, ['i686', 'x86_64'])) && (!file_exists('bin/vmcodecs') || is_set_executable('bin/vmcodecs')) && check_fonts();
- }
- function check_fonts()
- {
- return file_exists('/usr/share/fonts/default/Type1') || file_exists('/usr/share/fonts/ghostscript') || file_exists('/usr/share/fonts/type1/gsfonts') || file_exists('/usr/share/fonts/urw-fonts') || file_exists('/usr/share/fonts/urw-base35');
- }
- function is_set_executable($file)
- {
- if (is_executable($file)) {
- return true;
- }
- exec('chmod +x ' . escapeshellarg($file));
- return is_executable($file);
- ....................................................................
- .................................
- ...........
Add Comment
Please, Sign In to add comment