Sindbad~EG File Manager
<?php
/**
* @file qtrUtils.php
* @brief This module contains utility and helper functions
*
* @author Quttera (qtr), contactus@quttera.com
*
* @internal
* Created 01/13/2016
* Compiler gcc/g++
* Company Quttera
* Copyright Copyright (c) 2016, Quttera
*
* This source code is released for free distribution under the terms of the
* GNU General Public License as published by the Free Software Foundation.
* =====================================================================================
*/
class CQtrUtils
{
public static function PluginRootDir()
{
return plugin_dir_url( __FILE__ );
}
public static function GetDomainName()
{
$domain_name = network_site_url( '/' );
$parse = parse_url($domain_name);
return $parse['host']; // prints 'google.com'
}
}
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists