Changeset 2181646
- Timestamp:
- 10/28/2019 04:56:40 PM (6 years ago)
- Location:
- clickervolt/trunk
- Files:
-
- 6 edited
-
clickervolt.php (modified) (1 diff)
-
db/db.php (modified) (1 diff)
-
pixel/actionHandler.php (modified) (1 diff)
-
pixel/do.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
utils/arrayVars.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clickervolt/trunk/clickervolt.php
r2181413 r2181646 5 5 * Plugin URI: https://clickervolt.com/ 6 6 * Description: Advanced click tracking, link cloaking and affiliate campaigns management made easy. 7 * Version: 1.14 37 * Version: 1.144 8 8 * Author: ClickerVolt.com 9 9 * License: GPLv3 -
clickervolt/trunk/db/db.php
r2181413 r2181646 11 11 class DB 12 12 { 13 const VERSION = 1.14 3;13 const VERSION = 1.144; 14 14 15 15 const OPTION_VERSION = 'clickervolt-version'; -
clickervolt/trunk/pixel/actionHandler.php
r2165181 r2181646 15 15 const URL_PARAM_ACTION_NAME = 'name'; 16 16 const URL_PARAM_ACTION_REVENUE = 'amount'; 17 18 const URL_PARAM_ACTION_TYPE_OLD = 'action_type';19 const URL_PARAM_ACTION_NAME_OLD = 'action_name';20 const URL_PARAM_ACTION_REVENUE_OLD = 'action_revenue';21 17 22 18 /** -
clickervolt/trunk/pixel/do.php
r2165181 r2181646 5 5 require_once __DIR__ . '/actionHandler.php'; 6 6 require_once __DIR__ . '/../redirect/session/sessionClick.php'; 7 require_once __DIR__ . '/../utils/arrayVars.php';8 9 7 10 8 function processPixel() 11 9 { 10 $info = [ 11 ActionHandler::URL_PARAM_SLUG => empty($_GET[ActionHandler::URL_PARAM_SLUG]) ? '' : $_GET[ActionHandler::URL_PARAM_SLUG], 12 12 13 $info = [ 14 ActionHandler::URL_PARAM_SLUG => ArrayVars::queryGet(ActionHandler::URL_PARAM_SLUG, ''), 15 16 ActionHandler::URL_PARAM_ACTION_TYPE => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_TYPE, ''), 17 ActionHandler::URL_PARAM_ACTION_NAME => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_NAME, ''), 18 ActionHandler::URL_PARAM_ACTION_REVENUE => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_REVENUE, 0.0), 19 20 ActionHandler::URL_PARAM_ACTION_TYPE_OLD => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_TYPE_OLD, ''), 21 ActionHandler::URL_PARAM_ACTION_NAME_OLD => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_NAME_OLD, ''), 22 ActionHandler::URL_PARAM_ACTION_REVENUE_OLD => ArrayVars::queryGet(ActionHandler::URL_PARAM_ACTION_REVENUE_OLD, 0.0), 13 ActionHandler::URL_PARAM_ACTION_TYPE => empty($_GET[ActionHandler::URL_PARAM_ACTION_TYPE]) ? '' : $_GET[ActionHandler::URL_PARAM_ACTION_TYPE], 14 ActionHandler::URL_PARAM_ACTION_NAME => empty($_GET[ActionHandler::URL_PARAM_ACTION_NAME]) ? '' : $_GET[ActionHandler::URL_PARAM_ACTION_NAME], 15 ActionHandler::URL_PARAM_ACTION_REVENUE => empty($_GET[ActionHandler::URL_PARAM_ACTION_REVENUE]) ? 0.0 : $_GET[ActionHandler::URL_PARAM_ACTION_REVENUE], 23 16 ]; 24 17 … … 42 35 $actionHandler->addAction([ 43 36 'clickId' => $info[ActionHandler::URL_PARAM_CLICK_ID], 44 'actionType' => !empty($info[ActionHandler::URL_PARAM_ACTION_TYPE]) ? $info[ActionHandler::URL_PARAM_ACTION_TYPE] : $info[ActionHandler::URL_PARAM_ACTION_TYPE_OLD],45 'actionName' => !empty($info[ActionHandler::URL_PARAM_ACTION_NAME]) ? $info[ActionHandler::URL_PARAM_ACTION_NAME] : $info[ActionHandler::URL_PARAM_ACTION_NAME_OLD],46 'actionRevenue' => !empty($info[ActionHandler::URL_PARAM_ACTION_REVENUE]) ? $info[ActionHandler::URL_PARAM_ACTION_REVENUE] : $info[ActionHandler::URL_PARAM_ACTION_REVENUE_OLD],37 'actionType' => $info[ActionHandler::URL_PARAM_ACTION_TYPE], 38 'actionName' => $info[ActionHandler::URL_PARAM_ACTION_NAME], 39 'actionRevenue' => $info[ActionHandler::URL_PARAM_ACTION_REVENUE], 47 40 'clickTimestamp' => null, 48 41 'actionTimestamp' => time(), -
clickervolt/trunk/readme.txt
r2181413 r2181646 272 272 273 273 == Changelog == 274 = 1.144 = 275 * Fixed conversions not recorded when conversion amount is 0 (like email subscribers for example) 276 274 277 = 1.143 = 275 278 * Fixed issue with Cheetah Browser wrongly detected as Liebao -
clickervolt/trunk/utils/arrayVars.php
r2165181 r2181646 5 5 class ArrayVars 6 6 { 7 8 7 /** 9 8 * … … 11 10 static function queryGet($varKey, $default = null) 12 11 { 13 14 12 return self::get($_GET, $varKey, $default); 15 13 } … … 20 18 static function get(&$array, $varKey, $default = null) 21 19 { 22 23 20 return array_key_exists($varKey, $array) ? $array[$varKey] : $default; 24 21 } … … 36 33 static function getFromPath($array, $path, $default = null) 37 34 { 38 39 35 $val = $default; 40 36 … … 66 62 static function setFromPath(&$array, $path, $value) 67 63 { 68 69 64 $keys = explode('/', $path); 70 65 $nbKeys = count($keys);
Note: See TracChangeset
for help on using the changeset viewer.