first commit

This commit is contained in:
/usr/bin/nano
2017-04-15 01:34:36 +03:00
commit c715e2a604
5325 changed files with 329700 additions and 0 deletions

21
src/graphs_examples.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
$examples = array();
// Load from cvs
$examplesFilename = $g_config['graphSavePath'] . $g_config['graphExamplesFile'];
if (($handle = fopen($examplesFilename, "r")) !== FALSE)
{
while (($data = fgetcsv($handle, 1000, "|")) !== FALSE)
{
$item = array();
$item["id"] = $data[0];
$item["title_ru"] = $data[1];
$item["title_en"] = $data[2];
$g_lang["m_keyWords"] .= ", " . $item["title_" . $g_lang["current_language"]];
$examples[] = $item;
}
fclose($handle);
}
?>