fix conflict __DIR__ constant

replace __DIR__ constant by $_SERVER['DOCUMENT_ROOT']