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
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
$config_db_name
=
'barbass_typos'
;
$config_db_host
=
'localhost'
;
$config_db_user
=
'barbass'
;
$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'
;
$db_name
=
'barbass_typos'
;
$db_host
=
'localhost'
;
$db_user
=
'barbass'
;
$db_pass
=
'fKrfQRhrQ9CeCY5F'
;
?>
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
/* Цель: Скрипт обработки опечаток
* @
author: barbass@etersoft.ru
*
date
: 2012-04-24
* @
автор: barbass@
*
@дата
: 2012-04-24
*/
header
(
'Access-Control-Allow-Origin: *'
);
$db_name
=
'barbass_typos'
;
$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,'');
header
(
'Access-Control-Allow-Origin: *'
);
require_once
(
'configuration.php'
);
try
{
$DBH
=
new
PDO
(
"mysql:host=
$db_host
;dbname=
$db_name
"
,
$db_user
,
$db_pass
);
...
...
@@ -133,7 +124,7 @@ if (count($email_users) != 0) {
$subject
=
'=?utf-8?B?'
.
base64_encode
(
"Сообщение об опечатке"
)
.
'?='
;
/*FIXED !!!!!!!!*/
$to
=
/*$email; //*
/
to_email
(
$email_users
);
$to
=
$email
;
/
/to_email($email_users);
/*FIXED какая почта?*/
$from_email
=
"typos@etersoft.ru"
;
$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