#CurrListeningAlcea
";
echo "";
foreach ($gifUrls as $gifUrl) {
$filename = basename($gifUrl);
echo ' | ';
$count++;
if ($count % $gridSize == 0) {
echo "
";
}
}
echo "
";
echo "";
}
?>
Load
|
Submit Edit
array("value" => $value));
$hashtags = array();
preg_match_all('/#(\w+)/', $value, $matches);
if (!empty($matches[1])) {
$hashtags = $matches[1];
}
if (!empty($hashtags)) {
$newData[$date]["hashtags"] = implode(", ", $hashtags);
}
$fullFilename = "data_" . $user . ".json";
$partFilename = "data_part_" . $user . ".json";
// Save all data to data_$user.json
if (file_exists($fullFilename)) {
$existingData = json_decode(file_get_contents($fullFilename), true);
} else {
$existingData = array();
}
array_unshift($existingData, $newData);
file_put_contents($fullFilename, json_encode($existingData, JSON_PRETTY_PRINT));
// Overwrite data_part_$user.json with the latest 60 entries
$partialData = array($newData);
if (file_exists($fullFilename)) {
$fullData = json_decode(file_get_contents($fullFilename), true);
$partialData = array_slice($fullData, 0, 60);
}
file_put_contents($partFilename, json_encode($partialData, JSON_PRETTY_PRINT));
}
?>
Post2Mtd TimeLine
RSS del
';
?>