This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
var $citySelect = $('#city-select'), | |
STORAGE_ITEM_NAME = 'saveCity'; | |
$citySelect.on('change', function () { | |
var url = $citySelect.val(); | |
if (url !== '') { | |
localStorage.setItem(STORAGE_ITEM_NAME, url); | |
window.location = url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* 401 Response | |
* | |
* Sends a 401 Response Unauthorized | |
* | |
* @author Camilo Castro | |
* | |
* @date 29/07/2014 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$out = ''; | |
// create a new form field (also field wrapper) | |
$form = $modules->get("InputfieldForm"); | |
$form->action = "./"; | |
$form->method = "post"; | |
$form->attr("id+name",'subscribe-form'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$start = $input->get->$from; | |
$start = $input->get->$from_name; | |
$start = $input->get->$to; | |
$start = $input->get->$to_name; | |
$subject = $input->get->subject; | |
$start = $input->get-> $message; | |
email_classic($from, $from_name, $to, $to_name, $subject, $message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Añade el cliente para Newsletters de un determinado municipio | |
* Si el cliente existe lo añade a la suscripcion del municipio seleccionado | |
* Si el cliente NO existe crea el usuario y la suscripcion | |
* | |
* IN: |