Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-webclient
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-webclient
Commits
e2eb2ded
Commit
e2eb2ded
authored
Jun 08, 2012
by
Владислав Большаков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barbass: поправки к учету браезра
parent
4b3249ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
etersoft_typos.js
etersoft_typos.js
+3
-3
server.php
server.php
+10
-1
No files found.
etersoft_typos.js
View file @
e2eb2ded
...
...
@@ -98,7 +98,7 @@ var ETY = {
if
(
request
.
withCredentials
==
undefined
)
{
var
old_url
=
window
.
location
.
href
;
newWin
=
window
.
open
(
url
,
'_blank'
);
newWin
=
window
.
open
(
url
+
'&e_typos_oldbrowser=1'
,
'_blank'
);
window
.
parent
.
focus
();
//setTimeout('newWin.close()', 1000);
...
...
@@ -119,8 +119,8 @@ var ETY = {
request
.
open
(
"POST"
,
url
,
true
);
request
.
onload
=
function
()
{
var
data
=
request
.
responseText
.
split
(
' '
)
;
switch
(
data
[
0
]
)
{
var
data
=
request
.
responseText
;
switch
(
data
)
{
case
'10robot'
:
ETY
.
error
(
"red"
,
"Есть подозрения что вы робот"
);
break
;
...
...
server.php
View file @
e2eb2ded
...
...
@@ -34,6 +34,12 @@ if (check_header() === 0 || get_ip() === 0) {
$url
=
trim
(
htmlspecialchars
(
substr
(
$_REQUEST
[
'e_typos_url'
],
0
,
300
)));
$error_text
=
trim
(
htmlspecialchars
(
substr
(
$_REQUEST
[
'e_typos_error_text'
],
0
,
30
)));
if
(
!
isset
(
$_REQUEST
[
'e_typos_oldbrowser'
]))
{
$oldbrowser
=
0
;
}
else
{
$oldbrowser
=
intval
(
$_REQUEST
[
'e_typos_oldbrowser'
]);
}
if
(
$url
==
''
||
$error_text
==
''
||
strlen
(
$error_text
)
<
5
)
{
$ajax_mess
=
"10dataerror"
;
...
...
@@ -180,7 +186,10 @@ function get_ip() {
}
function
print_text
(
$text
)
{
global
$oldbrowser
;
echo
$text
;
echo
" <script type='text/javascript'>window.close();</script>"
;
if
(
$oldbrowser
==
1
)
{
echo
" <script type='text/javascript'>window.close();</script>"
;
}
exit
;
}
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