-
Notifications
You must be signed in to change notification settings - Fork 1
/
How to Activate the Product.php
70 lines (62 loc) · 2.64 KB
/
How to Activate the Product.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
require_once 'vendor/autoload.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>How to Activate the Product</title>
<style>
html, body {
font-family: sans-serif;
}
code {
padding: 6px 8px;
margin: 10px 0;
font-size: 1.2em;
background: #eee;
border-radius: 6px;
display: inline-block;
}
</style>
<?php
// Creating and configuring a JavaScript deployment object for the dashboard engine
$js = new \Stimulsoft\StiJavaScript(\Stimulsoft\StiComponentType::Report);
// Rendering the JavaScript code required for the component to work
$js->renderHtml();
?>
<script type="text/javascript">
<?php
// Creating and configuring an event handler object
// By default, the event handler sends all requests to the 'handler.php' file
$handler = new \Stimulsoft\StiHandler();
// You can use one of the methods below to register your license key
// $handler->license->setKey('6vJhGtLLLz2GNviWmUTrhSqnO...');
// $handler->license->setFile('license.key');
// Rendering the JavaScript code necessary for the event handler to work
$handler->renderHtml();
?>
</script>
</head>
<body>
<h2>How to activate the Product</h2>
<hr/>
<br/>
The 30-day trial version of the product does not contain any restrictions, except for the Trial watermark on the report pages, and reminders about using the Trial
version.<br/>
After purchasing the product, you can download the license key from your <a href="https://devs.stimulsoft.com/" target="_blank">personal account</a> on the
website.<br/><br/>
You can activate the product in several ways:
<ul>
<li>Set the key as a Base64 string for the StiHandler() object:<br/>
<code>$handler = new StiHandler();<br/>$handler->license->setKey('6vJhGtLLLz2GNviWmUTrhSqnO...');</code><br/><br/></li>
<li>Set the key as a license file for the StiHandler() object:<br/>
<code>$handler = new StiHandler();<br/>$handler->license->setFile('license.key');</code><br/><br/></li>
<li>Using the special line of JavaScript code with a key as a Base64 string:<br/>
<code>Stimulsoft.Base.StiLicense.Key = '6vJhGtLLLz2GNviWmUTrhSqnO...';</code><br/><br/></li>
</ul>
<br/>For more details, please see the
<a href="https://www.stimulsoft.com/en/documentation/online/programming-manual/reports_and_dashboards_for_php_engine_activation.htm"
target="_blank">documentation</a>.
</body>