PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 6.6.0
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v6.6.0
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / includes / openai / plugin-upgrader / config.php

config.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 6.6.0, at includes/openai/plugin-upgrader/config.php

114 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 define('openaiaddon_LICENSING_PLUGIN_SLUG', 'chatbot-openai-addon/qcld-bot-openai.php');
3 define('openaiaddon_LICENSING_PLUGIN_NAME', 'chatbot-openai-addon');
4 define('openaiaddon_LICENSING_DIR', plugin_dir_path(__DIR__));
5 define('openaiaddon_LICENSING_URL', plugin_dir_url( __FILE__ ));
6 define('openaiaddon_LICENSING_REMOTE_PATH', 'https://www.ultrawebmedia.com/li/plugins/chatbot-openai-addon/update.php');
7 define('openaiaddon_LICENSING_PRODUCT_DEV_URL', 'https://quantumcloud.com/products/');
8
9 //start new-update-for-codecanyon
10 define('openaiaddon_ENVATO_PLUGIN_ID', -1);
11 //end new-update-for-codecanyon
12
13 function get_openaiaddon_licensing_plugin_data(){
14 include_once(ABSPATH.'wp-admin/includes/plugin.php');
15 return get_plugin_data(openaiaddon_LICENSING_DIR.'/qcld-bot-openai.php', false);
16 }
17
18 //License Options
19 function get_openaiaddon_licensing_key(){
20 return get_option('qcld_openaiaddon_enter_license_key');
21 }
22
23 function get_openaiaddon_envato_key(){
24 return get_option('qcld_openaiaddon_enter_envato_key');
25 }
26
27 function get_openaiaddon_licensing_buy_from(){
28 return get_option('qcld_openaiaddon_buy_from_where');
29 }
30
31
32 //Update Transients
33 function get_openaiaddon_update_transient(){
34 return get_transient('qcld_update_openaiaddon_');
35 }
36
37 function set_openaiaddon_update_transient($plugin_object){
38 return set_transient( 'qcld_update_openaiaddon_', serialize($plugin_object), 1 * DAY_IN_SECONDS );
39 }
40
41 function delete_openaiaddon_update_transient(){
42 return delete_transient( 'qcld_update_openaiaddon_' );
43 }
44
45
46 //Renewal Transients
47 function get_openaiaddon_renew_transient(){
48 return get_transient('qcld_renew_openaiaddon__subscription');
49 }
50
51 function set_openaiaddon_renew_transient($plugin_object){
52 return set_transient( 'qcld_renew_openaiaddon__subscription', serialize($plugin_object), 1 * DAY_IN_SECONDS );
53 }
54
55 function delete_openaiaddon_renew_transient(){
56 return delete_transient( 'qcld_renew_openaiaddon__subscription' );
57 }
58
59
60 //Invalid License Options
61 function get_openaiaddon_invalid_license(){
62 return get_option('openaiaddon_invalid_license');
63 }
64
65 function set_openaiaddon_invalid_license(){
66 return update_option('openaiaddon_invalid_license', 1);
67 }
68
69 function delete_openaiaddon_invalid_license(){
70 return delete_option('openaiaddon_invalid_license');
71 }
72 function openaiaddon__get_licensing_url(){
73 return admin_url('admin.php?page=openai-panel_help');
74 }
75
76 //Valid License
77 function get_openaiaddon_valid_license(){
78 return get_option('openaiaddon_valid_license');
79 }
80 function set_openaiaddon_valid_license(){
81 return update_option('openaiaddon_valid_license', 1);
82 }
83 function delete_openaiaddon_valid_license(){
84 return delete_option('openaiaddon_valid_license');
85 }
86
87 //staging or live
88 function get_openaiaddon_site_type(){
89 return get_option('qcld_openaiaddon_site_type');
90 }
91
92
93
94 //start new-update-for-codecanyon
95 function get_openaiaddon_license_purchase_code(){
96 return get_option('qcld_openaiaddon_enter_license_or_purchase_key');
97 }
98
99 function get_openaiaddon_enter_license_notice_dismiss_transient(){
100 return get_transient('get_openaiaddon_enter_license_notice_dismiss_transient');
101 }
102
103 function set_openaiaddon_enter_license_notice_dismiss_transient(){
104 return set_transient('get_openaiaddon_enter_license_notice_dismiss_transient', 1, DAY_IN_SECONDS);
105 }
106
107 function get_openaiaddon_invalid_license_notice_dismiss_transient(){
108 return get_transient('get_openaiaddon_invalid_license_notice_dismiss_transient');
109 }
110
111 function set_openaiaddon_invalid_license_notice_dismiss_transient(){
112 return set_transient('get_openaiaddon_invalid_license_notice_dismiss_transient', 1, DAY_IN_SECONDS);
113 }
114 //end new-update-for-codecanyon