HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux aritmodecarnaval.es 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //home/www/aritmodecarnaval/comprar/googlespreadsender.php
<!DOCTYPE HTML>

<?php

include_once "/home/www/aritmodecarnaval/comprar/google-api-php-client-services-0.266.0/autoload.php";


$client = new Google_Client();
$client = Google_Spreadsheet::getClient('watchdog-123456-d8b7ad1057ee.json');
// Get the sheet instance by sheets_id and sheet name
$sheet = $client->file('1Pjh0nu5rrR_CwTK6LDYBllqd9I4qP7eR_jWP9KB6X5c')->sheet('Web');

$sheet->init(array(
  'id',
  'cliente',
  'contacto',
  'seleccion'
));


?>

<html><head>
  <meta charset='UTF-8'>

  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">

  <title><?=$title?> - aritmodecarnaval.es</title>
  <link rel='stylesheet' type='text/css' href='style.css'>
  <style type='text/css'>
  html,body {
      margin: 0;
      padding: 0;
      height: 100%;
      color: #fff;
      text-align: center;
      font-family:arial;
      font-size:18px;
  }
  </style>
</head>
<body>
  <div id='contenedor'>
    <p><br><br></p>
    <img id='logo' class='center' src='https://www.aritmodecarnaval.es/wp-content/uploads/2018/03/cropped-A-Ritmo-de-Carnaval-Mosca-1.png'>
    <p><br><br></p>
    <div class="resultado_envio">
<?php





if($_POST["client_selection"]) {
//mail("aritmodecarnaval@gmail.com; miguel.a.sanz@gmail.com", "Nuevo Pedido de ".$_POST["client_name"], "Nombre: ".$_POST["client_name"]."\nContacto: ".$_POST["client_contact"]."\nFotos seleccionadas:\n".$_POST["client_selection"]);
// Insert a new row
$sheet->insert(array(
  'cliente' => $_POST["client_name"],
  'contacto' => $_POST["client_contact"],
  'seleccion' => $_POST["client_selection"]
));

?>

<span class="resultado_envio">Tu pedido ha sido enviado a los chicos de A Ritmo de Carnaval. En unos días, dependiendo de la carga de trabajo, nos pondremos en contacto contigo. Si has elegido tu correo electrónico como método de contacto, por favor, revisa a diario tu carpeta de SPAM. Usaremos como remitente aritmodecarnaval@gmail.com para responderte. Ningún otro. Muchas gracias!<br><br> <a class="myButton" href="https://www.aritmodecarnaval.es/comprar">Volver</a></span>

<?php
}
else {
?>
<span class="resultado_envio">Algo ha funcionado mal. Por favor, ponde en contacto con nosotros para avisarnos de este problema: <a class="myButton" href="https://www.aritmodecarnaval.es/contacto">CONTACTO</a></span>
<?php
}


?>
    </div>
  </div>

</body>
</html>