alte Dateien gelöscht
This commit is contained in:
0
colorstringconvert.php
Normal file → Executable file
0
colorstringconvert.php
Normal file → Executable file
0
galerie/get_bilder.php
Normal file → Executable file
0
galerie/get_bilder.php
Normal file → Executable file
0
galerie/get_jahre.php
Normal file → Executable file
0
galerie/get_jahre.php
Normal file → Executable file
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
include("../mysqlverbinden.php");
|
||||
include("rowforeach.php");
|
||||
|
||||
if(!isset($_GET["formid"])) die("GET formid fehlt");
|
||||
$formid=$_GET["formid"];
|
||||
|
||||
if(srowforeach("SELECT COUNT(*) from `ritzenbergen-formulare` where `id`=?;",[$formid])[0][0]==0) die("Invalid Form ID");
|
||||
if(srowforeach("SELECT public from `ritzenbergen-formulare` where `id`=?;",[$formid])[0][0]==0) die("Diese Form ist nicht öffentlich!");
|
||||
|
||||
$result=[];
|
||||
|
||||
foreach (srowforeach("SELECT `labelone`,`labeltwo`,`timestamp` from `ritzenbergen-formular-ergebnisse` where `formularid`=?;",[$formid]) as $key => $value) {
|
||||
array_push($result,[
|
||||
"value1"=>$value[0],
|
||||
"value2"=>$value[1],
|
||||
"timestamp"=>$value[2]
|
||||
]);
|
||||
}
|
||||
|
||||
echo json_encode($result,JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE);
|
||||
|
||||
0
get_events.php
Normal file → Executable file
0
get_events.php
Normal file → Executable file
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
|
||||
include("rowforeach.php");
|
||||
include("../mysqlverbinden.php");
|
||||
|
||||
$result=[];
|
||||
|
||||
foreach (srowforeach("SELECT * from `ritzenbergen-formulare`;",[]) as $key => $value) {
|
||||
array_push($result, [
|
||||
"id" => $value[0],
|
||||
"ueberschrift" => $value[1],
|
||||
"minitext" => $value[2],
|
||||
"inhalt" => $value[3],
|
||||
"labelone" => $value[4],
|
||||
"labeltwo" => $value[5],
|
||||
"modalueberschrift" => $value[6],
|
||||
"public" => $value[7]==1,
|
||||
"timestamp" => $value[8]
|
||||
]);
|
||||
}
|
||||
|
||||
echo json_encode($result, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
|
||||
0
randomimage.php
Normal file → Executable file
0
randomimage.php
Normal file → Executable file
0
rowforeach.php
Normal file → Executable file
0
rowforeach.php
Normal file → Executable file
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
include("../mysqlverbinden.php");
|
||||
if(!isset($_GET["formid"])) die("GET formid fehlt");
|
||||
$formid=$_GET["formid"];
|
||||
|
||||
if(!isset($_GET["value1"])) die("GET value1 fehlt");
|
||||
$value1=$_GET["value1"];
|
||||
|
||||
if(!isset($_GET["value2"])) die("GET value2 fehlt");
|
||||
$value2=$_GET["value2"];
|
||||
|
||||
mysqli_execute_query($db_id,"INSERT INTO `ritzenbergen-formular-ergebnisse` (`formularid`, `labelone`, `labeltwo`) VALUES (?,?,?);",[$formid,$value1,$value2]);
|
||||
Reference in New Issue
Block a user