} /* ** call main classes */ $obj = new url_controll(); // url controlls /* ** important variables if more language edit this line */ $LANG = $obj->url("segment", 1); $get_ip = new get_ip(); $ip = $get_ip->ip; if (empty($LANG)) { // just domain name $country = new country(); $country_detect = $country->get($ip); $welcome_class = $country_detect == "GE" ? $c["welcome.page.slug"] : 'welcome'; $main_language = $country_detect == "GE" ? $c['main.language'] : 'en'; $redirect = new redirect(); $redirect->go(WEBSITE . $main_language . "/" . $welcome_class); } /* insert log */ // $file_manipulate = new file_manipulate(); // $file_manipulate->insertLog("[".$ip."][".date("d-m-Y G:m:s")."] - ".WEBSITE_.$actual_link); /* token */ $_SESSION["token_generator"] = ustring::random(10); /* ** some more define */