Changeset 1674913
- Timestamp:
- 06/09/2017 04:41:10 PM (9 years ago)
- Location:
- nepirity-analytics/trunk
- Files:
-
- 7 edited
-
modules/admin.php (modified) (1 diff)
-
modules/settings.php (modified) (2 diffs)
-
modules/setup.php (modified) (2 diffs)
-
nepirity-analytics.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
sdk/classes/libs/vendor/autoload.php (modified) (1 diff)
-
sdk/classes/libs/vendor/composer/autoload_real.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nepirity-analytics/trunk/modules/admin.php
r1673045 r1674913 103 103 } 104 104 105 NP()->views()->print_tab_page($group_name, $tabs); 105 if (count($tabs)) { 106 NP()->views()->print_tab_page($group_name, $tabs); 107 } 106 108 } 107 109 -
nepirity-analytics/trunk/modules/settings.php
r1673045 r1674913 112 112 public function print_nepirity_summary() { 113 113 echo '<h3 class="title">'.np_translate("Nepirity Settings").'</h3>'; 114 echo '<p>'.np_translate("In order to use Nepirity Analysis Service, please enter your account information.").'</p>'; 114 echo '<p>'; 115 echo np_translate("License key to manage plug-in information."); 116 echo '<br />'; 117 echo np_translate("Please click the update button below when the license information is modified."); 118 echo '</p>'; 115 119 116 120 echo '<form method="post" enctype="multipart/form-data">'; … … 206 210 } 207 211 212 if (isset($option['value'])) { 213 $value = $option['value']; 214 } 215 208 216 if ($type == 'textarea') { 209 217 return '<textarea class="large-text code" rows="6" name="'.$option['name'].'" id="'.$option['name'].'">'.$value.'</textarea>'; -
nepirity-analytics/trunk/modules/setup.php
r1673045 r1674913 141 141 $fields = NP()->settings()->get_nepirity_option_fields(); 142 142 143 for ($i=0; $i<count($fields); $i++) { 144 if ($fields[$i]['name'] == Setting::FIELD_NEPIRITY_KEY) { 145 $fields[$i]['desc'] = ""; 146 $fields[$i]['desc'] .= np_translate('Nepirity Key'); 147 $fields[$i]['desc'] .= " / "; 148 $fields[$i]['desc'] .= np_translate('E-Mail'); 149 150 $defualt_value = NP()->settings()->get_nepirity_key(); 151 152 if ($defualt_value == '') { 153 $defualt_value = get_option('admin_email'); 154 } 155 156 $fields[$i]['value'] = $defualt_value; 157 } 158 } 159 160 $msg = ""; 161 $msg .= np_translate("Please, enter your Nepirity plugin key or E-mail address."); 162 $msg .= "<br />"; 163 $msg .= np_translate("If you enter an email address, the account will be created automatically with the nepirity key."); 164 143 165 self::print_wizard_pannel(self::get_wizard_title(np_translate("Nepirity Plugin Setting")), 144 np_translate("Please, enter your Nepirity plugin key."), $fields, 'nepirity_setup');166 $msg, $fields, 'nepirity_setup'); 145 167 } 146 168 … … 159 181 160 182 private static function update_nepirity_setting() { 183 if (isset($_POST[Setting::FIELD_NEPIRITY_KEY])) { 184 $value = $_POST[Setting::FIELD_NEPIRITY_KEY]; 185 186 if (filter_var($value, FILTER_VALIDATE_EMAIL)) { 187 $_POST[Setting::FIELD_NEPIRITY_KEY] 188 = NP()->jsonrpc()->account()->retrieve_service_key($value, get_option("siteurl")); 189 } 190 } 161 191 self::update_settings(NP()->settings()->get_nepirity_option_fields()); 162 192 } -
nepirity-analytics/trunk/nepirity-analytics.php
r1674112 r1674913 3 3 Plugin Name: Nepirity Analytics 4 4 Description: Nepirity Analytics is a plugin that provides web traffic data analysis feature with data gathered from Google Analytics. 5 Version: 1.0. 45 Version: 1.0.5 6 6 Author: Nepirity Corp. 7 7 Author URI: https://www.nepirity.com/ -
nepirity-analytics/trunk/readme.txt
r1674112 r1674913 5 5 Requires at least: 4.6.5 6 6 Tested up to: 4.8 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 60 60 61 61 == Changelog == 62 = 1.0.5 = 63 - The installation wizard has been changed. 64 62 65 = 1.0.4 = 63 66 - Tested in a new version of WordPress. … … 77 80 78 81 == Upgrade Notice == 79 = 1.0. 4=80 T ested in a new version of WordPress.82 = 1.0.5 = 83 The installation wizard has been changed. -
nepirity-analytics/trunk/sdk/classes/libs/vendor/autoload.php
r1666843 r1674913 5 5 require_once __DIR__ . '/composer' . '/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 1141a84b0b426f824f9fa56339560405::getLoader();7 return ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec::getLoader(); -
nepirity-analytics/trunk/sdk/classes/libs/vendor/composer/autoload_real.php
r1666843 r1674913 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 1141a84b0b426f824f9fa563395604055 class ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit 1141a84b0b426f824f9fa56339560405', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit 1141a84b0b426f824f9fa56339560405', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInita09a11f19ac3416d7c1f0ff2abf7e7ec', 'loadClassLoader')); 25 25 26 26 $map = require __DIR__ . '/autoload_namespaces.php';
Note: See TracChangeset
for help on using the changeset viewer.