[eluser]anis2505[/eluser]
Hi, I don't think that's possible. the best way -as I think- you just create a js script and create these two function and include this script at the top of you web pages
Code:
JS File
var baseUrl = "you/base/url";
var siteUrl ="your/site/url";
var index="yourindex.php";
function base_url(uri){
return baseUrl+uri;
}
function site_url(uri){
return siteUrl+index+"/"+uri;
}