ajax
4 years ago
databases
4 years ago
migrations
4 years ago
models
4 years ago
queries
4 years ago
utils
4 years ago
chart.php
4 years ago
chart_geo.php
4 years ago
db.php
4 years ago
filters.php
4 years ago
freemius.php
4 years ago
independent_analytics.php
4 years ago
known_referrers.php
4 years ago
quick_stats.php
4 years ago
rest_api.php
4 years ago
settings.php
4 years ago
table.php
4 years ago
table_geo.php
4 years ago
table_referrers.php
4 years ago
table_views.php
4 years ago
track_resource_changes.php
4 years ago
freemius.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP; |
| 4 | |
| 5 | class Freemius |
| 6 | { |
| 7 | use Singleton; |
| 8 | |
| 9 | private $fs; |
| 10 | |
| 11 | private function __construct() |
| 12 | { |
| 13 | require_once path_to('freemius/start.php'); |
| 14 | |
| 15 | $this->fs = fs_dynamic_init([ |
| 16 | 'id' => '9944', |
| 17 | 'slug' => 'independent-analytics', |
| 18 | 'type' => 'plugin', |
| 19 | 'public_key' => 'pk_c228acaa28759b55d58766b1076d4', |
| 20 | 'is_premium' => false, |
| 21 | 'has_addons' => false, |
| 22 | 'has_paid_plans' => false, |
| 23 | 'menu' => [ |
| 24 | 'slug' => 'independent-analytics', |
| 25 | ], |
| 26 | ]); |
| 27 | } |
| 28 | |
| 29 | public static function fs() |
| 30 | { |
| 31 | return self::getInstance()->fs; |
| 32 | } |
| 33 | } |
| 34 |