Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
66f7b34e
Commit
66f7b34e
authored
15 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: quoted_printable_encode is a new function in php 5.3
parent
fe6563b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/includes/vcard/vcard.class.php
+18
-18
18 additions, 18 deletions
htdocs/includes/vcard/vcard.class.php
with
18 additions
and
18 deletions
htdocs/includes/vcard/vcard.class.php
+
18
−
18
View file @
66f7b34e
...
...
@@ -29,16 +29,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/**
\file htdocs/includes/vcard/vcard.class.php
\brief Classe permettant de cr
e
r un fichier vcard.
\brief Classe permettant de cr
e
er un fichier vcard.
\author Kai Blankenhorn.
\version 2.0
Ensemble des fonctions permettant de cr
e
r un fichier vcard.
Ensemble des fonctions permettant de cr
e
er un fichier vcard.
*/
function
encode
(
$string
)
{
return
escape
(
quoted_printable_encode
(
$string
));
return
escape
(
dol_
quoted_printable_encode
(
$string
));
}
function
escape
(
$string
)
{
...
...
@@ -46,9 +46,9 @@ function escape($string) {
}
// taken from php documentation comments
function
quoted_printable_encode
(
$input
,
$line_max
=
76
)
{
function
dol_
quoted_printable_encode
(
$input
,
$line_max
=
76
)
{
$hex
=
array
(
'0'
,
'1'
,
'2'
,
'3'
,
'4'
,
'5'
,
'6'
,
'7'
,
'8'
,
'9'
,
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
);
$lines
=
preg_split
(
"/(?:
\r\n
|
\r
|
\n
)/"
,
$input
);
$lines
=
preg_split
(
"/(
\
?:
\r\n
|
\r
|
\n
)/"
,
$input
);
$eol
=
"
\r\n
"
;
$linebreak
=
"=0D=0A"
;
$escape
=
"="
;
...
...
@@ -80,9 +80,9 @@ function quoted_printable_encode($input, $line_max = 76) {
}
/** \class vCard
\brief Classe permettant de cr
e
r un fichier vcard
\brief Classe permettant de cr
�er
un fichier vcard
Ensemble des fonctions permettant de cr
e
r un fichier vcard
Ensemble des fonctions permettant de cr
�er
un fichier vcard
*/
class
vCard
{
...
...
@@ -90,8 +90,8 @@ class vCard {
var
$filename
;
/**
\brief mise en forme du num
r
o de tl
e
phone
\param number num
r
o de tl
pho
ne
\brief mise en forme du num
�ro
de t�l
eph
one
\param number num
�ro
de t�l
�phone
\param type
*/
...
...
@@ -100,7 +100,7 @@ class vCard {
$key
=
"TEL"
;
if
(
$type
!=
""
)
$key
.
=
";"
.
$type
;
$key
.
=
";ENCODING=QUOTED-PRINTABLE"
;
$this
->
properties
[
$key
]
=
quoted_printable_encode
(
$number
);
$this
->
properties
[
$key
]
=
dol_
quoted_printable_encode
(
$number
);
}
/**
...
...
@@ -116,12 +116,12 @@ class vCard {
}
/**
\brief mise en forme du nom format
\brief mise en forme du nom format
e
\param name
*/
function
setFormattedName
(
$name
)
{
$this
->
properties
[
"FN"
]
=
quoted_printable_encode
(
$name
);
$this
->
properties
[
"FN"
]
=
dol_
quoted_printable_encode
(
$name
);
}
/**
...
...
@@ -194,7 +194,7 @@ class vCard {
if
(
$region
!=
""
)
$label
.
=
"
$region
\r\n
"
;
if
(
$country
!=
""
)
$country
.
=
"
$country
\r\n
"
;
$this
->
properties
[
"LABEL;
$type
;ENCODING=QUOTED-PRINTABLE"
]
=
quoted_printable_encode
(
$label
);
$this
->
properties
[
"LABEL;
$type
;ENCODING=QUOTED-PRINTABLE"
]
=
dol_
quoted_printable_encode
(
$label
);
}
/**
...
...
@@ -212,7 +212,7 @@ class vCard {
*/
function
setNote
(
$note
)
{
$this
->
properties
[
"NOTE;ENCODING=QUOTED-PRINTABLE"
]
=
quoted_printable_encode
(
$note
);
$this
->
properties
[
"NOTE;ENCODING=QUOTED-PRINTABLE"
]
=
dol_
quoted_printable_encode
(
$note
);
}
/**
...
...
@@ -220,7 +220,7 @@ class vCard {
\param title
*/
function
setTitle
(
$title
)
{
$this
->
properties
[
"TITLE;ENCODING=QUOTED-PRINTABLE"
]
=
quoted_printable_encode
(
$title
);
$this
->
properties
[
"TITLE;ENCODING=QUOTED-PRINTABLE"
]
=
dol_
quoted_printable_encode
(
$title
);
}
...
...
@@ -229,7 +229,7 @@ class vCard {
\param org
*/
function
setOrg
(
$org
)
{
$this
->
properties
[
"ORG;ENCODING=QUOTED-PRINTABLE"
]
=
quoted_printable_encode
(
$org
);
$this
->
properties
[
"ORG;ENCODING=QUOTED-PRINTABLE"
]
=
dol_
quoted_printable_encode
(
$org
);
}
...
...
@@ -238,7 +238,7 @@ class vCard {
\param prodid
*/
function
setProdId
(
$prodid
)
{
$this
->
properties
[
"PRODID;ENCODING=QUOTED-PRINTABLE"
]
=
quoted_printable_encode
(
$prodid
);
$this
->
properties
[
"PRODID;ENCODING=QUOTED-PRINTABLE"
]
=
dol_
quoted_printable_encode
(
$prodid
);
}
...
...
@@ -247,7 +247,7 @@ class vCard {
\param uid
*/
function
setUID
(
$uid
)
{
$this
->
properties
[
"UID;ENCODING=QUOTED-PRINTABLE"
]
=
quoted_printable_encode
(
$uid
);
$this
->
properties
[
"UID;ENCODING=QUOTED-PRINTABLE"
]
=
dol_
quoted_printable_encode
(
$uid
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment