prüft, ob der Account bereits für Messages genutzt werden kann
This commit is contained in:
parent
70a195d5f9
commit
981e3937e7
1 changed files with 32 additions and 0 deletions
32
ready.php
Normal file
32
ready.php
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* smzint/Messages (c) schmamazon.com 2025
|
||||||
|
*/
|
||||||
|
|
||||||
|
include('../Auth/index.php');
|
||||||
|
|
||||||
|
include('/smzint/Auth/db.ini.php');
|
||||||
|
|
||||||
|
$conn = new mysqli($dbservername, $dbusername, $dbpassword, $dbname);
|
||||||
|
if ($conn->connect_error) {
|
||||||
|
die("Connection failed: " . $conn->connect_error);
|
||||||
|
}
|
||||||
|
|
||||||
|
$sql = "SELECT * FROM smz_messages_users WHERE uid='$uid'";
|
||||||
|
$result = $conn->query($sql);
|
||||||
|
if ($result->num_rows > 0) {
|
||||||
|
while($row = $result->fetch_assoc()) {
|
||||||
|
$unique_name = $row["unique_name"];
|
||||||
|
$f_name = $row["f_name"];
|
||||||
|
$l_name = $row["l_name"];
|
||||||
|
$phone = $row["phone"];
|
||||||
|
$init_date = $row["init_date"];
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$conn->close();
|
||||||
|
|
||||||
|
?>
|
Loading…
Add table
Reference in a new issue