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
/****************************************** */ | |
// Funzione per l'autologin | |
/****************************************** */ | |
function autologin($user_name){ | |
$user = get_user_by('login', $user_name ); | |
// Redirect URL // | |
if ( !is_wp_error( $user ) ) |
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
/****************************************** */ | |
// Funzione per manipolare le stringhe | |
/****************************************** */ | |
function tdm_get_string_between($string, $start, $end){ | |
$string = ' ' . $string; | |
$ini = strpos($string, $start); | |
if ($ini == 0) return ''; | |
$ini += strlen($start); | |
$len = strpos($string, $end, $ini) - $ini; |
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
/****************************************** */ | |
// Funzione per richiamare le API | |
/****************************************** */ | |
// Method: POST, PUT, GET etc | |
// Data: array("param" => "value") ==> index.php?param=value | |
function CallAPI($method, $url, $data = false){ | |
$url_c = 'http://95.110.166.40/API/v1'.$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 | |
/** | |
* Post rendering content according to caller of get_template_part. | |
* | |
* @package understrap | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
?> |
NewerOlder