Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 350400209c
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (19 sloc) 0.482 kB
<?php
require("star.php");
//echo "<pre>";
if (isset($_GET['id'])) {
$id = $_GET['id'];
$starlist = load_starlist();
//print_r($starlist);
if (in_array($id, $starlist)) {
$k = array_search($id, $starlist);
array_splice($starlist, $k, 1);
//echo "-- REMOVE $id\n --";
} else {
$starlist[] = $id;
//echo "-- INSERT $id\n --";
}
//print_r($starlist);
save_starlist($starlist);
}
?>
Jump to Line
Something went wrong with that request. Please try again.