/** * Singleton pattern * * @return pspDashboard Singleton instance */ public static function getInstance() { if (!self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
<?php /** * Return as json_encode * http://www.aa-team.com * ====================== * * @author Andrei Dinca, AA-Team * @version 1.0 */ global $psp; $pspDashboard = pspDashboard::getInstance($psp->cfg, $module); echo json_encode(array($tryed_module['db_alias'] = 'html_validation' => $psp->get_plugin_status() != 'valid_hash' ? array('validation' => array('title' => 'Unlock - Premium SEO Pack', 'icon' => '{plugin_folder_uri}assets/validation_icon.png', 'size' => 'grid_4', 'header' => true, 'toggler' => false, 'buttons' => false, 'style' => 'panel', 'elements' => array(array('type' => 'message', 'status' => 'info', 'html' => 'You need to log into your CodeCanyon account and go to your “Downloads” page. Locate this plugin you purchased in your “Downloads” list and click on the “License Certificate” link next to the download link. After you have downloaded the certificate you can open it in a text editor such as Notepad and copy the Item Purchase Code. How to image: <a href="{plugin_folder_uri}assets/ipc.png" target="_blank">link</a>'), 'productKey' => array('type' => 'text', 'std' => '', 'size' => 'small', 'title' => 'Item Purchase Code', 'desc' => 'Get it from CodeCanyon account and go to your “Downloads” page.'), 'yourEmail' => array('type' => 'text', 'std' => get_option('admin_email'), 'size' => 'small', 'title' => 'Your Email', 'desc' => 'We will notify you via this email about this product update and bug fix.'), 'sendActions' => array('type' => 'buttons', 'options' => array(array('action' => 'psp_activate_product', 'width' => '100px', 'type' => 'submit', 'color' => 'green', 'pos' => 'left', 'value' => 'Activate now')))))) : $pspDashboard->getBoxes()));