mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +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
|
<?php
|
||||||
if(isset($_POST['thisUrl']))
|
if(isset($_POST['thisUrl']))
|
||||||
{
|
{
|
||||||
@@ -10,10 +7,6 @@
|
|||||||
$data = json_decode($file);
|
$data = json_decode($file);
|
||||||
unset($file);//prevent memory leaks for large json.
|
unset($file);//prevent memory leaks for large json.
|
||||||
//insert data here
|
//insert data here
|
||||||
?>
|
|
||||||
<script>
|
|
||||||
console.log("in save.php");
|
|
||||||
</script><?php
|
|
||||||
if($data[0] == $string)
|
if($data[0] == $string)
|
||||||
{
|
{
|
||||||
array_push($data, $string);
|
array_push($data, $string);
|
||||||
@@ -26,5 +19,5 @@
|
|||||||
{
|
{
|
||||||
echo "You're a bad boy";
|
echo "You're a bad boy";
|
||||||
}
|
}
|
||||||
die();
|
die();
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user