mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
g
This commit is contained in:
9
save.php
9
save.php
@@ -1,6 +1,3 @@
|
||||
<script>
|
||||
console.log("utenfor if")
|
||||
</script>
|
||||
<?php
|
||||
if(isset($_POST['thisUrl']))
|
||||
{
|
||||
@@ -10,10 +7,6 @@
|
||||
$data = json_decode($file);
|
||||
unset($file);//prevent memory leaks for large json.
|
||||
//insert data here
|
||||
?>
|
||||
<script>
|
||||
console.log("in save.php");
|
||||
</script><?php
|
||||
if($data[0] == $string)
|
||||
{
|
||||
array_push($data, $string);
|
||||
@@ -26,5 +19,5 @@
|
||||
{
|
||||
echo "You're a bad boy";
|
||||
}
|
||||
die();
|
||||
die();
|
||||
?>
|
||||
Reference in New Issue
Block a user