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
1df18f1e
Commit
1df18f1e
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Function GETPOST not found
parent
4d379e57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/public/paypal/paymentko.php
+5
-5
5 additions, 5 deletions
htdocs/public/paypal/paymentko.php
htdocs/public/paypal/paymentok.php
+5
-5
5 additions, 5 deletions
htdocs/public/paypal/paymentok.php
with
10 additions
and
10 deletions
htdocs/public/paypal/paymentko.php
+
5
−
5
View file @
1df18f1e
...
...
@@ -29,16 +29,16 @@
define
(
"NOLOGIN"
,
1
);
// This means this output page does not require to be logged.
define
(
"NOCSRFCHECK"
,
1
);
// We accept to go on this page from external web site.
// For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
$entity
=
GETPOST
(
'entity'
)
?
GETPOST
(
'entity'
,
'int'
)
:
1
;
if
(
is_int
(
$entity
))
define
(
"DOLENTITY"
,
$entity
);
require
'../../main.inc.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/paypal/lib/paypal.lib.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/paypal/lib/paypalfunctions.lib.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/core/lib/company.lib.php'
;
// For MultiCompany module.
// TODO This should be useless. Because entity must be retreive from object ref and not from url.
$entity
=
GETPOST
(
'entity'
)
?
GETPOST
(
'entity'
,
'int'
)
:
1
;
if
(
is_int
(
$entity
))
define
(
"DOLENTITY"
,
$entity
);
// Security check
if
(
empty
(
$conf
->
paypal
->
enabled
))
accessforbidden
(
''
,
1
,
1
,
1
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/public/paypal/paymentok.php
+
5
−
5
View file @
1df18f1e
...
...
@@ -29,16 +29,16 @@
define
(
"NOLOGIN"
,
1
);
// This means this output page does not require to be logged.
define
(
"NOCSRFCHECK"
,
1
);
// We accept to go on this page from external web site.
// For MultiCompany module. This should be useless. Because entity must be retreive from object ref and not from url.
$entity
=
GETPOST
(
'entity'
)
?
GETPOST
(
'entity'
,
'int'
)
:
1
;
if
(
is_int
(
$entity
))
define
(
"DOLENTITY"
,
$entity
);
require
'../../main.inc.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/paypal/lib/paypal.lib.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/paypal/lib/paypalfunctions.lib.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/core/lib/company.lib.php'
;
// For MultiCompany module
// TODO This should be useless. Because entity must be retreive from object ref and not from url.
$entity
=
GETPOST
(
'entity'
)
?
GETPOST
(
'entity'
,
'int'
)
:
1
;
if
(
is_int
(
$entity
))
define
(
"DOLENTITY"
,
$entity
);
// Security check
if
(
empty
(
$conf
->
paypal
->
enabled
))
accessforbidden
(
''
,
1
,
1
,
1
);
...
...
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