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

38
src/home.php Executable file
View File

@@ -0,0 +1,38 @@
<?php
include ("./src/donate.php");
$graphName = "";
if (isset($_GET["graph"]))
{
$graphId = $_GET["graph"];
$graphSampleListFile = $g_config['graphSavePath'] . $g_config['graphExamplesFile'];
$graphSampleList = array();
$cvsFile = fopen($graphSampleListFile, "r");
if ($cvsFile)
{
while (($data = fgetcsv($cvsFile, 1000, "|")) !== FALSE)
{
if ($graphId == $data[0])
{
$graphName = ($g_lang["current_language"] == "en") ? $data[2] : $data[1];
break;
}
}
fclose($cvsFile);
}
}
if (strlen($graphName) > 0)
{
$g_lang["m_title"] = $graphName;
$g_lang["m_keyWords"] = $graphName . ", " . $g_lang["m_keyWords"];
$g_lang["m_description"] = $g_lang["title_notg"] . ": " . $graphName;
}
?>