AdminPanel Formulare hinzugefügt, .gitignore aktualisiert
This commit is contained in:
15
admin/formulare/newForm.php
Executable file
15
admin/formulare/newForm.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include("../../../mysqlverbinden.php");
|
||||
include("../secret.php");
|
||||
include("../../vendor/autoload.php");
|
||||
|
||||
include("../check.php");
|
||||
|
||||
$payload=getUserInfo();
|
||||
|
||||
$username=$payload->username;
|
||||
$id=$payload->id;
|
||||
|
||||
mysqli_execute_query($db_id,"INSERT INTO `formulare` (`name`,`minitext`,`public`,`multiple`) VALUES ('','',1,1);");
|
||||
|
||||
echo '{"success":true}';
|
||||
Reference in New Issue
Block a user