dbConnect(); $langs = array(); foreach($core->dbselect('SELECT `lang_id`, `local_name`, `iso_2` FROM '.T_LANGUAGES) as $l){ $langs[$l['iso_2']]['id'] = $l['lang_id']; $langs[$l['iso_2']]['name'] = $l['local_name']; } if(empty($parts[0]) || !array_key_exists($parts[0], $langs)){ $_SESSION['language']['iso_2'] = 'ua'; $language = $_SESSION['language']['id'] = 2; $_SESSION['language']['name'] = 'Українська'; $core->redirect('/'.$_SESSION['language']['iso_2'].'/'); }else{ $_SESSION['language']['iso_2'] = $parts[0]; $language = $_SESSION['language']['id'] = $langs[$parts[0]]['id']; $_SESSION['language']['name'] = $langs[$parts[0]]['name']; } if(!empty($parts[1])){ if($parts[1] == 'limitations.html' || $parts[1] == 'domainnamesale.html' || $parts[1] == 'downloads.html' || $parts[1] == 'tenders.html' || $parts[1] == 'sections.html'){ $pageMode = 'inner'; }else{ $core->redirect('/'.$_SESSION['language']['iso_2'].'/'); } } $languageISO = $_SESSION['language']['iso_2']; if($_SESSION['language']['iso_2'] == 'ua') $languageISO = 'uk'; if($_SESSION['language']['iso_2'] == 'ge') $languageISO = 'ka'; include_once $_SERVER['DOCUMENT_ROOT'].'/langs/'.$_SESSION['language']['iso_2'].'.php'; global $langMonths; $OPTIONS = array(); foreach($core->dbselect('SELECT `key`, `value` FROM '.T_OPTIONS) as $o) $OPTIONS[$o['key']] = $o['value']; $tenders = $core->dbselect('SELECT * FROM '.T_TENDERS.' LEFT JOIN '.T_TENDERS_TO_LANGS.' on ('.T_TENDERS.'.tender_id = '.T_TENDERS_TO_LANGS.'.tender_ref AND '.T_TENDERS_TO_LANGS.'.lang_ref = '.$language.') WHERE '.T_TENDERS.'.until > NOW() ORDER BY '.T_TENDERS.'.until'); ?> */ ?>






'.$OPTIONS['limitations-'.$language].'
'; }elseif($parts[1] == 'domainnamesale.html'){ echo '
'.$OPTIONS['domains-'.$language].'
'; }elseif($parts[1] == 'downloads.html'){ $catfiles = array(); foreach($core->dbselect('SELECT * FROM '.T_CATFILES.' LEFT JOIN '.T_CATFILES_TO_LANGS.' ON ('.T_CATFILES.'.catfile_id = '.T_CATFILES_TO_LANGS.'.catfile_ref AND '.T_CATFILES_TO_LANGS.'.lang_ref = '.$language.') ORDER BY '.T_CATFILES.'.order ASC') as $cf){ $catfiles[] = $cf; } $files = array(); foreach($core->dbselect('SELECT * FROM '.T_FILES.' LEFT JOIN '.T_FILES_TO_LANGS.' ON ('.T_FILES.'.file_id = '.T_FILES_TO_LANGS.'.file_ref AND '.T_FILES_TO_LANGS.'.lang_ref = '.$language.') ORDER BY '.T_FILES_TO_LANGS.'.name') as $f){ $files[] = $f; } echo '
'; if(count($catfiles) && count($files)){ foreach($catfiles as $cf){ echo '

'.$cf['name'].'

'; foreach($files as $f){ if($f['category_ref'] == $cf['catfile_id']){ $fsize = filesize(PATH_DOWNLOADS.'/'.$f['filename']); $fileExt = trim(strrchr(strtolower($f['filename']), '.'),'.'); echo ' '.(strlen($f['name']) ? $f['name'] : $f['filename']).' ('.formatSizeUnits($fsize).')
'; } } echo '
'; } } echo '
'; }elseif($parts[1] == 'tenders.html'){ echo '
'; echo showTenders($tenders, $langMonths); echo '
'; }elseif($parts[1] == 'sections.html'){ echo ' '; echo '

'.HEADER_PARTNERS.'

'; echo '
'.$OPTIONS['partners-'.$language].'
'; echo '

'.HEADER_PLATFORMS.'

'; echo '
'; } ?>


MAIN_SLOGAN


HEADER_ABOUT

HEADER_FACTS

HEADER_ADVANCES

SUBHEADER_ADVANCE_1

SUBHEADER_ADVANCE_2

SUBHEADER_ADVANCE_3

SUBHEADER_ADVANCE_4

SUBHEADER_ADVANCE_5

SUBHEADER_ADVANCE_6

SUBHEADER_ADVANCE_7

HEADER_SERVICES

SUBTITLE_SERVICE_1

SUBTITLE_SERVICE_2

SUBTITLE_SERVICE_3

SUBTITLE_SERVICE_4

SUBTITLE_SERVICE_5

HEADER_PORTFOLIO
HEADER_CLIENTS
HEADER_VALUES

SUBHEADER_VALUE_1

SUBHEADER_VALUE_2

SUBHEADER_VALUE_3

HEADER_CONTACTS

SUBHEADER_ADDRESS

SUBHEADER_PHONE


SUBHEADER_FEEDBACK

TEXT_FEEDBACK

FORM_OR

FORM_ERROR
FORM_SUCCESS
dbClose(); function formatSizeUnits($bytes){ if($bytes >= 1073741824) $bytes = number_format($bytes / 1073741824, 2) . ' Gb'; elseif($bytes >= 1048576) $bytes = number_format($bytes / 1048576, 2) . ' Mb'; elseif($bytes >= 1024) $bytes = number_format($bytes / 1024, 2) . ' Kb'; elseif($bytes >= 1) $bytes = $bytes . ' bytes'; else $bytes = '0 bytes'; return $bytes; } function showTenders($tenders, $langMonths){ $output = ''; if(is_array($tenders) && count($tenders)){ $output .= ''; }else{ $output .= '

'.TENDER_NOT_FOUND.'

'; } return $output; } ?>