Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
azbne
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andrew
azbne
Commits
c3cbd8a2
Commit
c3cbd8a2
authored
Oct 20, 2017
by
Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ip added
parent
706d1e09
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
index.php
index.php
+3
-1
ndsp.php
pages/ndsp.php
+9
-1
No files found.
index.php
View file @
c3cbd8a2
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
define
(
'INDEX'
,
'index'
);
define
(
'INDEX'
,
'index'
);
if
(
$_SERVER
[
'REQUEST_URI'
]
==
'/dsp'
)
if
(
$_SERVER
[
'REQUEST_URI'
]
==
'/dsp'
)
require
(
"pages/dsp.php"
);
require
(
"pages/dsp.php"
);
elseif
(
$_SERVER
[
'REQUEST_URI'
]
==
'/ndsp'
)
else
if
(
preg_match
(
"/^\/ndsp\?/"
,
$_SERVER
[
'REQUEST_URI'
]))
require
(
"pages/ndsp.php"
);
require
(
"pages/ndsp.php"
);
else
if
(
preg_match
(
"/^\/go\?/"
,
$_SERVER
[
'REQUEST_URI'
]))
else
if
(
preg_match
(
"/^\/go\?/"
,
$_SERVER
[
'REQUEST_URI'
]))
require
(
"pages/go.php"
);
require
(
"pages/go.php"
);
else
if
(
preg_match
(
"/^\/tgo\?/"
,
$_SERVER
[
'REQUEST_URI'
]))
else
if
(
preg_match
(
"/^\/tgo\?/"
,
$_SERVER
[
'REQUEST_URI'
]))
...
...
pages/ndsp.php
View file @
c3cbd8a2
...
@@ -591,10 +591,18 @@ array (
...
@@ -591,10 +591,18 @@ array (
),
),
);
);
$q
=
parse_url
(
$_SERVER
[
'REQUEST_URI'
])[
"query"
];
parse_str
(
$q
,
$_GET
);
$ip
=
ip2long
(
$_GET
[
'ip'
]);
if
(
!
$ip
)
die
;
$res
=
array
();
$res
=
array
();
foreach
(
$goods
as
$ads
)
{
foreach
(
$goods
as
$ads
)
{
$ad
=
$ads
[
mt_rand
(
1
,
10000
)
%
sizeof
(
$ads
)];
$ad
=
$ads
[
mt_rand
(
1
,
10000
)
%
sizeof
(
$ads
)];
$data
=
$ad
[
'data'
][
mt_rand
(
1
,
10000
)
%
sizeof
(
$ad
[
'data'
])];
$data
=
$ad
[
'data'
][
$ip
%
sizeof
(
$ad
[
'data'
])];
unset
(
$ad
[
'data'
]);
unset
(
$ad
[
'data'
]);
$ad
[
'price'
]
=
str_replace
(
'${price}'
,
$data
[
'price'
],
$ad
[
'price'
]);
$ad
[
'price'
]
=
str_replace
(
'${price}'
,
$data
[
'price'
],
$ad
[
'price'
]);
$ad
[
'ad_id'
]
.=
"_"
.
$data
[
'l_path'
];
$ad
[
'ad_id'
]
.=
"_"
.
$data
[
'l_path'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment