init
This commit is contained in:
16
module/api/sendTokenToDB.php
Normal file
16
module/api/sendTokenToDB.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$token = $_POST['token'];
|
||||
$user = $_POST['user'];
|
||||
$domain = $_POST['domain'];
|
||||
|
||||
$pdo = new PDO('mysql:host=localhost;dbname=web4_intranet;charset=utf8', "web4_intranet", "WewJedjuAbEynk3");
|
||||
$GLOBALS["pdo_conn"] = $pdo;
|
||||
|
||||
$noPublish = "CALL insertToken('$token', '$user')";
|
||||
|
||||
$stmt = $pdo->prepare($noPublish);
|
||||
$stmt->execute();
|
||||
|
||||
$count = $stmt->fetchColumn();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user