30if (!defined(
'NOLOGIN')) {
33if (!defined(
'NOCSRFCHECK')) {
34 define(
"NOCSRFCHECK", 1);
36if (!defined(
'NOIPCHECK')) {
37 define(
'NOIPCHECK',
'1');
39if (!defined(
'NOBROWSERNOTIF')) {
40 define(
'NOBROWSERNOTIF',
'1');
46$entity = (!empty($_GET[
'e']) ? (int) $_GET[
'e'] : (!empty($_POST[
'e']) ? (int) $_POST[
'e'] : 1));
47if (is_numeric($entity)) {
48 define(
"DOLENTITY", $entity);
52require
'../../main.inc.php';
53require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
54require_once DOL_DOCUMENT_ROOT.
'/core/lib/payments.lib.php';
56if (isModEnabled(
'paypal')) {
57 require_once DOL_DOCUMENT_ROOT.
'/paypal/lib/paypal.lib.php';
58 require_once DOL_DOCUMENT_ROOT.
'/paypal/lib/paypalfunctions.lib.php';
61global $dolibarr_main_url_root, $mysoc;
63$langs->loadLangs(array(
"main",
"companies",
"install",
"other",
"eventorganization"));
71$securekeyreceived =
GETPOST(
"securekey");
74if ($securekeyreceived != $securekeytocompare) {
75 print $langs->trans(
'MissingOrBadSecureKey');
80if (empty($conf->eventorganization->enabled)) {
95function llxHeaderVierge($title, $head =
"", $disablejs = 0, $disablehead = 0, $arrayofjs = [], $arrayofcss = [])
97 global $user, $conf, $langs, $mysoc;
99 top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
101 print
'<body id="mainbody" class="publicnewmemberform">';
104 $urllogo = DOL_URL_ROOT.
'/theme/common/login_logo.png';
106 if (!empty($mysoc->logo_small) && is_readable($conf->mycompany->dir_output.
'/logos/thumbs/'.$mysoc->logo_small)) {
107 $urllogo = DOL_URL_ROOT.
'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode(
'logos/thumbs/'.$mysoc->logo_small);
108 } elseif (!empty($mysoc->logo) && is_readable($conf->mycompany->dir_output.
'/logos/'.$mysoc->logo)) {
109 $urllogo = DOL_URL_ROOT.
'/viewimage.php?cache=1&modulepart=mycompany&file='.urlencode(
'logos/'.$mysoc->logo);
110 } elseif (is_readable(DOL_DOCUMENT_ROOT.
'/theme/dolibarr_logo.svg')) {
111 $urllogo = DOL_URL_ROOT.
'/theme/dolibarr_logo.svg';
114 print
'<div class="center">';
117 print
'<div class="backgreypublicpayment">';
118 print
'<div class="logopublicpayment">';
119 print
'<img id="dolpaymentlogo" src="'.$urllogo.
'"';
123 print
'<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">'.$langs->trans(
"PoweredBy").
'<br><img class="poweredbyimg" src="'.DOL_URL_ROOT.
'/theme/dolibarr_logo.svg" width="80px"></a></div>';
129 print
'<div class="backimagepubliceventorganizationsubscription">';
130 print
'<img id="idEVENTORGANIZATION_IMAGE_PUBLIC_INTERFACE" src="' .
getDolGlobalString(
'EVENTORGANIZATION_IMAGE_PUBLIC_INTERFACE').
'">';
136 print
'<div class="divmainbodylarge">';
155foreach ($_POST as $k => $v) {
156 $tracepost .=
"$k - $v\n";
158dol_syslog(
"POST=".$tracepost, LOG_DEBUG, 0,
'_payment');
162 $head =
'<link rel="stylesheet" type="text/css" href="' .
getDolGlobalString(
'ONLINE_PAYMENT_CSS_URL').
'?lang='.$langs->defaultlang.
'">'.
"\n";
165$conf->dol_hide_topmenu = 1;
166$conf->dol_hide_leftmenu = 1;
172print
'<span id="dolpaymentspan"></span>'.
"\n";
173print
'<div id="dolpaymentdiv" class="center">'.
"\n";
178$logosmall = $mysoc->logo_small;
180$paramlogo =
'ONLINE_PAYMENT_LOGO_'.$suffix;
181if (!empty($conf->global->$paramlogo)) {
190if (!empty($logosmall) && is_readable($conf->mycompany->dir_output.
'/logos/thumbs/'.$logosmall)) {
191 $urllogo = DOL_URL_ROOT.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/thumbs/'.$logosmall);
192 $urllogofull = $dolibarr_main_url_root.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/thumbs/'.$logosmall);
193} elseif (!empty($logo) && is_readable($conf->mycompany->dir_output.
'/logos/'.$logo)) {
194 $urllogo = DOL_URL_ROOT.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/'.$logo);
195 $urllogofull = $dolibarr_main_url_root.
'/viewimage.php?modulepart=mycompany&entity='.$conf->entity.
'&file='.urlencode(
'logos/'.$logo);
200 print
'<div class="backgreypublicpayment">';
201 print
'<div class="logopublicpayment">';
202 print
'<img id="dolpaymentlogo" src="'.$urllogo.
'"';
206 print
'<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">'.$langs->trans(
"PoweredBy").
'<br><img class="poweredbyimg" src="'.DOL_URL_ROOT.
'/theme/dolibarr_logo.svg" width="80px"></a></div>';
212 print
'<div class="backimagepubliceventorganizationsubscription">';
213 print
'<img id="idEVENTORGANIZATION_IMAGE_PUBLIC_INTERFACE" src="' .
getDolGlobalString(
'EVENTORGANIZATION_IMAGE_PUBLIC_INTERFACE').
'">';
219print $langs->trans(
"SubscriptionOk");
228unset($_SESSION[
"FinalPaymentAmt"]);
229unset($_SESSION[
"TRANSACTIONID"]);
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined( 'NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined( 'NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) if(!defined( 'NOLOGIN')) if(!defined('NOCSRFCHECK')) if(!defined( 'NOIPCHECK')) llxHeaderVierge()
Header function.
htmlPrintOnlineFooter($fromcompany, $langs, $addformmessage=0, $suffix='', $object=null)
Show footer of company in HTML pages.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_now($mode='auto')
Return date for now.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs=array(), $arrayofcss=array(), $disableforlogin=0, $disablenofollow=0, $disablenoindex=0)
Output html header of a page.
httponly_accessforbidden($message='1', $http_response_code=403, $stringalreadysanitized=0)
Show a message to say access is forbidden and stop program.
dol_hash($chain, $type='0', $nosalt=0)
Returns a hash (non reversible encryption) of a string.