Viewing file: global.php (2.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
define('SITETITLE','Museo Mille Miglia');
define('SITENAME','<small>Viale della Bornata, 123 - 25135 S. Eufemia, Brescia - Italia</small><br>Museo Mille Miglia');
/** FAKE USER PAYMENT PAYPAL **/ // usr : sandbox_buy@test.it // pass : 12345678
$paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; // https://www.paypal.com/cgi-bin/webscr https://www.sandbox.paypal.com/cgi-bin/webscr
$paypal_email = 'pp_sandbox@essebinet.com'; $paypal_urlreturn_OK = 'http://www.museomillemiglia.it/pagamento/paypal_esito.php?ok=1'; $paypal_urlreturn_KO = 'http://www.museomillemiglia.it/pagamento/paypal_esito.php?ok=0';
$unicredit_notifyURL = 'http://www.museomillemiglia.it/pagamento/unicredit_esito.php'; $unicredit_errorURL = 'http://www.museomillemiglia.it/pagamento/error.php';
$email_from = 'essebinet.monitoring@gmail.com';
$email_subject = 'Museo Mille Miglia - Conferma richiesta di pagamento'; $email_pre = '<h2>Museo Mille Miglia - Conferma richiesta di pagamento</h2><hr>'; $email_post = '<b>Museo Mille Miglia</b><br> Viale della Bornata, 123 25135 S. Eufemia Brescia - Italia<br><br>
Telefono: +39 030 3365631 - Fax: +39 030 3366411<br> E-mail: segreteria@museomillemiglia.it<br><br> P.Iva 03387090172</br>';
//** FUNZIONI **//
function outputField($name,$fieldName,$value,$placeholder = 'placeholder',$validation = 'required length') { filter_var($value,FILTER_SANITIZE_STRING); echo '<div class="form-group">'.PHP_EOL;
echo ' <label class="col-sm-3 control-label" for="'.$fieldName.'">'.$name.'';
if(strpos($validation,"required") > -1 ) echo " (*)";
echo '</label>'.PHP_EOL;
echo ' <div class="col-sm-9">'.PHP_EOL;
echo ' <input class="form-control" name="'.$fieldName.'" placeholder="'.$placeholder.'" type="text" data-validation="'.$validation.'" data-validation-length="min1" data-validation-error-msg="Questo campo รจ obbligatorio" value="'.$value.'" '; if (!empty($value)) echo 'disabled data-collect=1 '; echo ' >'.PHP_EOL;
echo ' </div>'.PHP_EOL;
echo '</div>'.PHP_EOL; }
|