Added function to remove saved images.

This commit is contained in:
Unick Soft
2017-06-18 22:11:08 +03:00
parent 2c2e40a96f
commit 5fa10c12d8
4 changed files with 62 additions and 48 deletions

View File

@@ -1,21 +1,13 @@
<?php
$examples = array();
include ("./src/graphs_examples_func.php");
$examples = getAllExampleGraphs();
// Load from cvs
$examplesFilename = $g_config['graphSavePath'] . $g_config['graphExamplesFile'];
if (($handle = fopen($examplesFilename, "r")) !== FALSE)
foreach ($examples as $item)
{
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);
$g_lang["m_keyWords"] .= ", " . $item["title_" . $g_lang["current_language"]];
}
?>