mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-18 22:30:17 +00:00
first commit
This commit is contained in:
38
src/home.php
Executable file
38
src/home.php
Executable 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;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user