You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
418 B
PHP
17 lines
418 B
PHP
<?php /* -*- php -*- */
|
|
|
|
function fulcrm_apiv2_install() {
|
|
try {
|
|
$url = $GLOBALS[ 'base_url' ];
|
|
$url = parse_url( $url, PHP_URL_HOST );
|
|
$url = explode( '.', $url );
|
|
$url = array_reverse( $url );
|
|
} catch ( Exception $e ) {
|
|
$url = array();
|
|
}
|
|
|
|
$url[] = fulcrm_uuid_uuid4();
|
|
$url = implode( '.', $url );
|
|
set_variable( 'fulcrm_apiv2_client_id', $url );
|
|
}
|