I file php dove vi sono le funzioni sono un bel pò, l'errore me lo da su config.php e la funzione è la seguente:

Codice PHP:
function siteURL(){  $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" "http://";
$domainName $_SERVER['HTTP_HOST'].'/'.''// /foldername is subdirectory
return $protocol.$domainName;

Il problema è l'inclusione del file più di una volta, ma il file config.php è incluso solo in funzione.php

Codice PHP:
define('ROOT'$_SERVER['DOCUMENT_ROOT']);

//Files
include ROOT '/files/db.php';
include 
ROOT '/files/config.php';
include 
'session.php';
include 
'database.php';
include 
'email.php';
include 
'login.php';
include 
'register.php';
include 
'adduser.php';
include 
'user.php';
include 
'comment.php';

//Configurazione Database
$db = new ASDatabase("mysql"BKDB_HOSTBKDB_NAMEBKDB_USERBKDB_PASS);

ASSession::startSession();

$login        = new ASLogin();
$register     = new ASRegister();
$registeruser = new ASRegisteruser();
$mailer       = new ASEmail(); 
Mentre il file funzione.php è incluso più di una volta precisamente in tre file: index.php, login.php e ajax.php