mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-14 07:32:16 +00:00
Removing random comments
This commit is contained in:
parent
2ddb7946b7
commit
94563eb6f4
2 changed files with 9 additions and 30 deletions
|
@ -384,32 +384,17 @@ if (isset($_POST['submit_signup'])) {
|
||||||
$param_token = $_POST['token'];
|
$param_token = $_POST['token'];
|
||||||
|
|
||||||
if (mysqli_stmt_execute($stmt)) {
|
if (mysqli_stmt_execute($stmt)) {
|
||||||
//
|
|
||||||
// Hey fluffy why didn't you do this
|
|
||||||
// Hey fluffy, thats not how you do this
|
|
||||||
// Thats wrong! Do this instead!!!!!!
|
|
||||||
//
|
|
||||||
// I DON'T KNOW HOW TO DO THIS, BUT IT WORKS
|
|
||||||
// SO LEAVE ME ALONEEEEEEEEEE
|
|
||||||
// anyway....
|
|
||||||
|
|
||||||
// Generate Token
|
// Generate Token
|
||||||
$token_array = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz';
|
$token_array = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz';
|
||||||
$new_token = substr(str_shuffle($token_array), 0, 15);
|
$new_token = substr(str_shuffle($token_array), 0, 15);
|
||||||
|
|
||||||
// Prepare sql
|
mysqli_query($conn, "INSERT INTO tokens (code, used) VALUES('$new_toke', False)");
|
||||||
$sql = "INSERT INTO tokens (code, used) VALUES(?, False)";
|
|
||||||
$stmt = mysqli_prepare($conn, $sql);
|
|
||||||
mysqli_stmt_bind_param($stmt, "s", $param_new_token);
|
|
||||||
$param_new_token = $new_token;
|
|
||||||
mysqli_stmt_execute($stmt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Yupeee! Account was made
|
// Yupeee! Account was made
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
sniffleAdd('Success!', 'You account made for <?php echo $username; ?>!!!!! You must now login', 'var(--green)', 'assets/icons/hand-waving.svg');
|
sniffleAdd('Success!', 'You account made for <?php echo $username; ?>!!!!! You must now login', 'var(--green)', 'assets/icons/hand-waving.svg');
|
||||||
//setTimeout(function(){window.location.href = "../account/login.php";}, 2000);
|
|
||||||
loginShow();
|
loginShow();
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
@ -711,12 +696,6 @@ if (isset($_POST['account_delete_submit'])) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($_POST['full']) || !isset($_POST['full'])) {
|
if (empty($_POST['full']) || !isset($_POST['full'])) {
|
||||||
?>
|
|
||||||
<script>
|
|
||||||
sniffleAdd('Oopsie', 'Some error occured, unsure what to delete', 'var(--red)', 'assets/icons/cross.svg');
|
|
||||||
flyoutClose();
|
|
||||||
</script>
|
|
||||||
<?php
|
|
||||||
$error += 1;
|
$error += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -771,5 +750,12 @@ if (isset($_POST['account_delete_submit'])) {
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<script>
|
||||||
|
sniffleAdd('Oopsie', 'Some error occured, working on fixing these things', 'var(--red)', 'assets/icons/cross.svg');
|
||||||
|
flyoutClose();
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -48,13 +48,6 @@
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--
|
|
||||||
<div class="gallery-order">
|
|
||||||
<button class="btn btn-neutral">Grid</button>
|
|
||||||
<button class="btn btn-neutral">List</button>
|
|
||||||
</div>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<div class="gallery-root">
|
<div class="gallery-root">
|
||||||
<?php
|
<?php
|
||||||
// Reading images from table
|
// Reading images from table
|
||||||
|
|
Loading…
Add table
Reference in a new issue