Итак, имеется установленный SmartCJ, например, в директорию /scj/.
Самописный движок шлет аут на /video/100500/, где мы получаем все необходимые данные аута и инклюдим аут смарта:
Code: Select all
$_REQUEST['link']=$_GET['link']='video';
$_REQUEST['fc']=$_GET['fc']=1;
$_REQUEST['url']=$_GET['url']=$url;
$_SERVER['QUERY_STRING']='link=video&fc=1&url='.urldecode($url);
$_SERVER['SCRIPT_NAME']=$_SERVER['PHP_SELF']=$_SERVER['DOCUMENT_URI']='/scj/cgi/out.php';
$_SERVER['SCRIPT_FILENAME']='/absolut/path/to/home/dir'.$_SERVER['SCRIPT_NAME'];
$_SERVER['REQUEST_URI']=$_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING'];
include($_SERVER['SCRIPT_FILENAME']);
Редирект на контент срабатывает, данные считаются, за исключением одного но - скрипт никогда не шлет на трейд.
Для проверки создал промежуточный файл /o.php:
Code: Select all
include('scj/cgi/out.php');
Code: Select all
header('Location: /o.php?'.$_SERVER['QUERY_STRING']);
Ок, пошел разбираться с логами/хедерами - ставлю в настройках "Add out.php debug comments" и вижу следующее:
Code: Select all
2022-04-18 11:29:27 :: click at /scj/cgi/out.php?link=video&fc=1&url=https%3A%2F%2Fwww.xvideos.com%2Fvideo9191832%2Fhow_i_fucked_your_lonely_mother ref: https://www.domain.com/
2022-04-18 11:29:27 :: X-trader: trader1.com
2022-04-18 11:29:27 :: Current-Click: 2
2022-04-18 11:29:27 :: X-Current-Trader: trader1.com
2022-04-18 11:29:27 :: Last-key: default skimming (proxy_url)
2022-04-18 11:29:27 :: X-Set-skim: 50 ()
2022-04-18 11:29:27 :: URL-Redirect: https://www.xvideos.com/video9191832/how_i_fucked_your_lonely_mother at 50 % ( rand 78)
2022-04-18 11:29:27 :: Script-group: ff (q: 1) (28 70) (70, 15, 15)
2022-04-18 11:29:27 :: Get-traderQ1: field ff, total traders 98
2022-04-18 11:29:27 :: Field-Set: No traders so this set, change it to main
2022-04-18 11:29:27 :: Get-traderQ1: field main, total traders 98
2022-04-18 11:29:27 :: Rand: 0 (0)
2022-04-18 11:29:27 :: Script-group: nbf (q: 1) (28 85) (70, 15, 15)
2022-04-18 11:29:27 :: Get-traderQ1: field nbf, total traders 98
2022-04-18 11:29:27 :: Field-Set: No traders so this set, change it to main
2022-04-18 11:29:27 :: Get-traderQ1: field main, total traders 98
2022-04-18 11:29:27 :: Rand: 0 (0)
2022-04-18 11:29:27 :: Script-group: pbf (q: 1) (28 100) (70, 15, 15)
2022-04-18 11:29:27 :: Get-traderQ1: field pbf, total traders 98
2022-04-18 11:29:27 :: Field-Set: No traders so this set, change it to main
2022-04-18 11:29:27 :: Get-traderQ1: field main, total traders 98
2022-04-18 11:29:27 :: Rand: 0 (0)
2022-04-18 11:29:27 :: Script-group: main (q: 1) (28 100) (70, 15, 15)
2022-04-18 11:29:27 :: Get-traderQ1: field main, total traders 98
2022-04-18 11:29:27 :: Rand: 0 (0)
2022-04-18 11:29:27 :: Traffic-Trade: out of traders, sending to url
2022-04-18 11:29:27 :: Traffic-sell-set: trader1.com .. 0
2022-04-18 11:29:27 :: Traffic-sell-X: check trader1.com sell_skim = 0
2022-04-18 11:29:27 :: Redirect-to-location: to content
2022-04-18 11:29:27 :: Load-tube: get params
2022-04-18 11:29:27 :: Click-count-action-start: res count 4
2022-04-18 11:29:27 :: Click-count-action: count caz link parameter
2022-04-18 11:29:27 :: Rotation-off: rotation is off
2022-04-18 11:29:27 :: Tube-action: return result
2022-04-18 11:29:27 :: Load-tube: done
2022-04-18 11:29:27 :: Script-select: result
2022-04-18 11:29:27 :: Script-location: url
2022-04-18 11:29:27 :: Add-click: started
2022-04-18 11:29:27 :: Write-hits: done
Меняем аут на тестовый:
Code: Select all
2022-04-18 11:30:43 :: click at /o.php?link=video&fc=1&url=https%3A%2F%2Fwww.xvideos.com%2Fvideo9191832%2Fhow_i_fucked_your_lonely_mother ref: https://www.domain.com/
2022-04-18 11:30:43 :: X-trader: trader1.com
2022-04-18 11:30:43 :: Current-Click: 5
2022-04-18 11:30:43 :: X-Current-Trader: trader1.com
2022-04-18 11:30:43 :: Last-key: default skimming (proxy_url)
2022-04-18 11:30:43 :: X-Set-skim: 50 ()
2022-04-18 11:30:43 :: URL-Redirect: https://www.xvideos.com/video9191832/how_i_fucked_your_lonely_mother at 50 % ( rand 79)
2022-04-18 11:30:43 :: Script-group: nbf (q: 1) (79 85) (70, 15, 15)
2022-04-18 11:30:43 :: Get-traderQ1: field nbf, total traders 99
2022-04-18 11:30:43 :: Field-Set: No traders so this set, change it to main
2022-04-18 11:30:43 :: Get-traderQ1: field main, total traders 99
2022-04-18 11:30:43 :: Rand: 1745 (3444)
2022-04-18 11:30:43 :: Got-member: trader2.com (https://www.trader2.com/)
2022-04-18 11:30:43 :: Traffic-sell-X: check trader1.com sell_skim = 0
2022-04-18 11:30:43 :: Traffic-Trade: Sending to trade
2022-04-18 11:30:43 :: Redirect-to-location: to trade
2022-04-18 11:30:43 :: Load-tube: get params
2022-04-18 11:30:43 :: Click-count-action-start: res count 4
2022-04-18 11:30:43 :: Click-count-action: count caz link parameter
2022-04-18 11:30:43 :: Rotation-off: rotation is off
2022-04-18 11:30:43 :: Tube-action: return result
2022-04-18 11:30:43 :: Load-tube: done
2022-04-18 11:30:43 :: Script-select: result
2022-04-18 11:30:43 :: Show-member: true
2022-04-18 11:30:43 :: Add-click: started
2022-04-18 11:30:43 :: Write-hits: done
Чистил куки, в разной последовательности пробовал и т.д. - колдовал как мог, но закономерность в логах только такая, как описал выше.
Что можно сделать в данной ситуации ?