###################### # OP: export # Language-file export. if ($site->fdat['op'] == 'export' && $site->fdat['op2'] == 'salvesta') { header("Content-Disposition: attachment; filename=\"language" . $keel_id . ".csv\""); header("Content-Type: plain/text"); header("cache-control: nocache"); echo export2file(); exit; } # / OP: export ###################### ############################### # START HTML ######### get adminpage name $adminpage_names = get_adminpage_name(array("script_name" => $site->script_name)); $parent_pagename = $adminpage_names['parent_pagename']; $pagename = $adminpage_names['pagename']; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><?php echo $site->title; ?> <?php echo $site->admin->cms_version; ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=<?php
$sites[] = $row; if ($row['on_default']) { $default_page_template_id = $row['page_ttyyp_id']; $default_content_template_id = $row['ttyyp_id']; } } //printr($sites); $encodings = array('ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-6-e', 'ISO-8859-6-i', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-8-e', 'ISO-8859-8-i', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'UTF-8', 'ISO-2022-JP', 'EUC-JP', 'Shift_JIS', 'GB2312', 'Big5', 'EUC-KR', 'windows-1250', 'windows-1251', 'windows-1252', 'windows-1253', 'windows-1254', 'windows-1255', 'windows-1256', 'windows-1257', 'windows-1258', 'KOI8-R', 'KOI8-U', 'cp866', 'cp874', 'TIS-620', 'VISCII', 'VPS', 'TCVN-5712'); $glossaries = array(); //$sql = "SELECT nimi, keel_id as glossary_id FROM keel WHERE keel_id < 500 ORDER BY nimi"; $sql = "select distinct keel.keel_id as glossary_id, keel.nimi from keel left join sys_sonad on keel.keel_id = sys_sonad.keel where sys_sonad.keel is not null and keel.keel_id < 500 order by keel.nimi"; $result = new SQL($sql); while ($row = $result->fetch('ASSOC')) { $glossaries[] = $row; } $adminpage_names = get_adminpage_name(array('script_name' => $site->script_name)); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Sites</title> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $site->encoding; ?> " /> <link rel="stylesheet" href="<?php