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
cf376127
Commit
cf376127
authored
May 16, 2012
by
Владислав Большаков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barbass: убрал из базы email
parent
9c6c713f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
4 deletions
+94
-4
barbass_typos (2).sql
barbass_typos (2).sql
+91
-0
etersoft_typos2.js
etersoft_typos2.js
+1
-1
server.php
server.php
+2
-3
typos.gif
typos.gif
+0
-0
No files found.
barbass_typos (2).sql
0 → 100644
View file @
cf376127
-- phpMyAdmin SQL Dump
-- version 3.3.10
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Май 16 2012 г., 17:20
-- Версия сервера: 5.1.56
-- Версия PHP: 5.3.10
SET
SQL_MODE
=
"NO_AUTO_VALUE_ON_ZERO"
;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */
;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */
;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */
;
/*!40101 SET NAMES utf8 */
;
--
-- База данных: `barbass_typos`
--
-- --------------------------------------------------------
--
-- Структура таблицы `admins`
--
CREATE
TABLE
IF
NOT
EXISTS
`admins`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`id_user`
int
(
11
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
AUTO_INCREMENT
=
21
;
-- --------------------------------------------------------
--
-- Структура таблицы `messages`
--
CREATE
TABLE
IF
NOT
EXISTS
`messages`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`id_site`
int
(
11
)
NOT
NULL
,
`link`
text
NOT
NULL
COMMENT
'Ссылка на страницу'
,
`error_text`
varchar
(
100
)
NOT
NULL
COMMENT
'Выделенный текст '
,
`comment`
varchar
(
50
)
DEFAULT
NULL
COMMENT
'комментарий пользователя'
,
`datetime`
datetime
NOT
NULL
,
`status`
tinyint
(
1
)
NOT
NULL
COMMENT
'1: исправлена, 0: нет'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
COMMENT
=
'Сообщения'
AUTO_INCREMENT
=
241
;
-- --------------------------------------------------------
--
-- Структура таблицы `responsible`
--
CREATE
TABLE
IF
NOT
EXISTS
`responsible`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`id_site`
int
(
11
)
NOT
NULL
,
`id_user`
int
(
11
)
NOT
NULL
,
`status`
tinyint
(
1
)
NOT
NULL
COMMENT
'Возможность отписать себя с рассылки'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
COMMENT
=
'Зависимость сайтов и ответственных'
AUTO_INCREMENT
=
22
;
-- --------------------------------------------------------
--
-- Структура таблицы `sites`
--
CREATE
TABLE
IF
NOT
EXISTS
`sites`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`site`
varchar
(
150
)
NOT
NULL
COMMENT
'Формат: mysite.ru'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
COMMENT
=
'Список сайтов'
AUTO_INCREMENT
=
6
;
-- --------------------------------------------------------
--
-- Структура таблицы `users`
--
CREATE
TABLE
IF
NOT
EXISTS
`users`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`email`
varchar
(
150
)
NOT
NULL
,
`firstname`
varchar
(
20
)
NOT
NULL
,
`middlename`
varchar
(
20
)
NOT
NULL
,
`lastname`
varchar
(
20
)
NOT
NULL
,
`datetime`
datetime
NOT
NULL
COMMENT
'Дата добавления'
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8
COMMENT
=
'Ответственные за сайты'
AUTO_INCREMENT
=
44
;
etersoft_typos2.js
View file @
cf376127
...
...
@@ -45,7 +45,7 @@ var ETY = {
document
.
getElementById
(
"e_typos_div"
).
style
.
left
=
left
+
"px"
;
document
.
getElementById
(
"e_typos_error"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"e_typos_user_text"
).
style
.
display
=
"none"
;
//
document.getElementById("e_typos_user_text").style.display = "none";
document
.
getElementById
(
"e_typos_comment"
).
value
=
""
;
document
.
getElementById
(
"e_typos_div"
).
style
.
display
=
"block"
;
...
...
server.php
View file @
cf376127
...
...
@@ -86,9 +86,8 @@ try {
}
if
(
$email_users
!==
0
)
{
try
{
//FIXED !!!удалить из таблицы поле email
$data
=
array
(
'NULL'
,
$email_users
[
0
][
'site'
],
$url
,
$error_text
,
'NULL'
,
$comment
,
0
);
$STH
=
$DBH
->
prepare
(
"INSERT INTO messages (id, id_site, link, error_text, email, comment, datetime, status) VALUES (?, ?, ?, ?, ?, ?, DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s'), ?)"
);
$data
=
array
(
'NULL'
,
$email_users
[
0
][
'site'
],
$url
,
$error_text
,
$comment
,
0
);
$STH
=
$DBH
->
prepare
(
"INSERT INTO messages (id, id_site, link, error_text, comment, datetime, status) VALUES (?, ?, ?, ?, ?, DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s'), ?)"
);
$STH
->
execute
(
$data
);
}
catch
(
PDOException
$e
)
{
$ajax_mess
=
"10inserterror"
;
...
...
typos.gif
deleted
100644 → 0
View file @
9c6c713f
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