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
b256adf2
You need to sign in or sign up before continuing.
Commit
b256adf2
authored
Apr 28, 2012
by
Владислав Большаков
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
barbass: поправка
parent
b24b90d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
34 deletions
+18
-34
.gitignore
.gitignore
+1
-0
configuration.php
configuration.php
+5
-19
configuration.php.orig
configuration.php.orig
+6
-0
server.php
server.php
+6
-15
No files found.
.gitignore
0 → 100644
View file @
b256adf2
configuration.php
configuration.php
View file @
b256adf2
<?php
<?php
$db_name
=
'barbass_typos'
;
$config_db_name
=
'barbass_typos'
;
$db_host
=
'localhost'
;
$config_db_host
=
'localhost'
;
$db_user
=
'barbass'
;
$config_db_user
=
'barbass'
;
$db_pass
=
'fKrfQRhrQ9CeCY5F'
;
$config_db_pass
=
'fKrfQRhrQ9CeCY5F'
;
?>
$config_offline
=
0
;
define
(
'_ISO'
,
'charset=utf-8'
);
$mosConfig_absolute_path
=
'/home/barbass/pvt/kladr'
;
$mosConfig_mailer
=
'mail'
;
$mosConfig_mailfrom
=
'pv@office.etersoft.ru'
;
$mosConfig_fromname
=
'efio'
;
$mosConfig_sendmail
=
'/usr/sbin/sendmail'
;
$mosConfig_smtpauth
=
'0'
;
$mosConfig_smtpuser
=
''
;
$mosConfig_smtppass
=
''
;
$mosConfig_smtphost
=
'localhost'
;
configuration.php.orig
0 → 100644
View file @
b256adf2
<?php
$db_name
=
'DB'
;
$db_host
=
'HOST'
;
$db_user
=
'USER'
;
$db_pass
=
'PASS'
;
?>
server.php
View file @
b256adf2
<?php
<?php
/* Цель: Скрипт обработки опечаток
/* Цель: Скрипт обработки опечаток
* @
author: barbass@etersoft.ru
* @
автор: barbass@
*
date
: 2012-04-24
*
@дата
: 2012-04-24
*/
*/
header
(
'Access-Control-Allow-Origin: *'
);
header
(
'Access-Control-Allow-Origin: *'
);
$db_name
=
'barbass_typos'
;
require_once
(
'configuration.php'
);
$db_host
=
'localhost'
;
$db_user
=
'barbass'
;
$db_pass
=
'fKrfQRhrQ9CeCY5F'
;
/*defined( '_ACCESS' );
define('_VALID_MOS',1);
require_once('configuration.php');
require_once('minimambo.php');
require_once('database.php');*/
//$database = new database($config_db_host,$config_db_user,$config_db_pass,$config_db_name,'');
try
{
try
{
$DBH
=
new
PDO
(
"mysql:host=
$db_host
;dbname=
$db_name
"
,
$db_user
,
$db_pass
);
$DBH
=
new
PDO
(
"mysql:host=
$db_host
;dbname=
$db_name
"
,
$db_user
,
$db_pass
);
...
@@ -133,7 +124,7 @@ if (count($email_users) != 0) {
...
@@ -133,7 +124,7 @@ if (count($email_users) != 0) {
$subject
=
'=?utf-8?B?'
.
base64_encode
(
"Сообщение об опечатке"
)
.
'?='
;
$subject
=
'=?utf-8?B?'
.
base64_encode
(
"Сообщение об опечатке"
)
.
'?='
;
/*FIXED !!!!!!!!*/
/*FIXED !!!!!!!!*/
$to
=
/*$email; //*
/
to_email
(
$email_users
);
$to
=
$email
;
/
/to_email($email_users);
/*FIXED какая почта?*/
/*FIXED какая почта?*/
$from_email
=
"typos@etersoft.ru"
;
$from_email
=
"typos@etersoft.ru"
;
$from_name
=
'=?utf-8?B?'
.
base64_encode
(
"Служба опечаток Etersoft"
)
.
'?='
;
$from_name
=
'=?utf-8?B?'
.
base64_encode
(
"Служба опечаток Etersoft"
)
.
'?='
;
...
...
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