';
echo '
';
echo '
^ '.$row_votes["amt"].' '.$row1["username"].'#'.$row1["discriminator"].' ';
$other_owner = "";
if(!($row["other_owner"] == null || $row["other_owner"] == '' || $row["other_owner"] == 'null')) {
$sql4 = "SELECT * FROM owner_meta WHERE user_id = ".$row["other_owner"];
$result4 = mysqli_query($pdo, $sql4);
while($row3 = mysqli_fetch_array($result4)) {
$other_owner = '+
'.$row3["username"]."#".$row3["discriminator"].' ';
}
}
echo '
Made by '.$row2["username"]."#".$row2["discriminator"].' '.$other_owner.'
';
echo '
';
echo '
';
echo '
';
if(!($row["github_repo"] == null || $row["github_repo"] == '' || $row["github_repo"] == 'null')) {
echo '
Github Repository';
}
if(!($row["website_url"] == null || $row["website_url"] == '' || $row["website_url"] == 'null')) {
echo '
Website';
}
echo '
';
if($isLoggedIn == true) {
if($row["owner_id"] == $user->id) {
echo '
';
}
}
echo '
';
if($row["tags"] != null) {
$tags_raw = $row["tags"];
$tags = explode(',', $tags_raw);
echo '';
}
echo ''.$row["description"].'
';
} else {
if(isset($_GET["type"])) {
if($_GET["type"] == "delete") {
if(!($isLoggedIn == false)) {
if(!($row["owner_id"] == $user->id)) {
echo 'You aren`t a owner of this Bot! ';
return;
} else {
$delete = ("DELETE FROM r WHERE bot_id = '".$_GET["bot"]."'");
mysqli_query($pdo, $delete);
require_once('../../bot/delete-success/index.php');
return;
}
}
}
}
if($_GET["type"] == "vote") {
if(isset($_POST['vote'])) {
if($isLoggedIn == false) {
?>
id."'";
$result66 = mysqli_query($pdo, $sql66);
while($row66 = mysqli_fetch_array($result66)) {
echo 'You already voted ';
return;
}
$sql77 = "SELECT * FROM queueVotes WHERE bot_id = '".$_GET["bot"]."' AND user_id = '".$user->id."'";
$result77 = mysqli_query($pdo, $sql77);
while($row77 = mysqli_fetch_array($result77)) {
echo 'You already voted ';
return;
}
$v1 = "INSERT INTO queueVotes(bot_id, user_id) VALUES ('".$_GET["bot"]."', '".$user->id."')";
mysqli_query($pdo, $v1);
echo 'Successfuly Voted ';
}
return;
} else {
?>
id)) {
echo 'You aren`t a owner of this bot! ';
return;
} else {
$setID = false;
$setDesc = false;
$setInvite = false;
$setSupport = false;
$setPrefix = false;
$setLib = false;
$setShortDesc = false;
$setWebsite = false;
$setGithub = false;
$setOtherOwner = false;
if(isset($_POST["submit"])) {
$description = trim($_POST["description"]);
$inviteLink = trim($_POST["invite"]);
$short_description = trim($_POST["short_description"]);
$supportcode = trim($_POST["supportcode"]);
$prefix = trim($_POST["prefix"]);
$library = trim($_POST["lib"]);
$website = trim($_POST["website"]);
$github = trim($_POST["github"]);
$other_owner = trim($_POST["other_owner"]);
$tag = $_POST["tags"];
if(!$description == "") {
$setDesc = true;
echo str_replace('\'', "\"", $description);
} else {
die('
You did something wrong OwO Error-Log which you can send to our support: Error-Title: The Description cannot be fetched Error-Desc: The Description cannot be fetched from the form -> Nothing is entered there -> Please resubmit with a Description
');
}
if(!$short_description == "") {
$setShortDesc = true;
} else {
die('
You did something wrong OwO Error-Log which you can send to our support: Error-Title: The Short Description cannot be fetched Error-Desc: The Short Description cannot be fetched from the form -> Nothing is entered there -> Please resubmit with a Short Description
');
}
if(!$library == "") {
$setLib = true;
} else {
die('
You did something wrong OwO Error-Log which you can send to our support: Error-Title: The Library cannot be fetched Error-Desc: The Library cannot be fetched from the form -> Nothing is entered there -> Please resubmit with a Library
');
}
if(!$prefix == "") {
$setPrefix = true;
} else {
die('
You did something wrong OwO Error-Log which you can send to our support: Error-Title: The Prefix cannot be fetched Error-Desc: The Prefix cannot be fetched from the form -> Nothing is entered there -> Please resubmit with a Prefix
');
}
if(!$supportcode == "") {
$setSupport = true;
} else {
$supportcode = '';
$setSupport = true;
}
if(!$inviteLink == "") {
$setInvite = true;
} else {
$invite = '';
$setInvite = true;
}
if(!$website == "") {
$setWebsite = true;
} else {
$website = null;
$setWebsite = true;
}
if(!$github == "") {
$setGithub = true;
} else {
$github = null;
$setGithub = true;
}
if(!$other_owner == "") {
$setOtherOwner = true;
} else {
$github = null;
$setOtherOwner = true;
}
if($tag == "") {
$tag = null;
}
if($setDesc == true && $setPrefix == true && $setLib == true && $setSupport == true && $setShortDesc == true) {
if($inviteLink == "") {
$inviteLink = "https://discordapp.com/api/oauth2/authorize?client_id=".$_GET["bot"].'&permissions=0&scope=bot';
}
?>
prepare($sql);
//$stmt->execute(['supportcode' => $supportcode, 'library' => $library, 'description' => $description, 'invite' => $inviteLink, 'prefix' => $prefix]);
try{
$tags = implode(', ', $tag);
$statement3 = "INSERT INTO edits(bot_id, editor_id) VALUES ('".$_GET['bot']."', '".$user->id."')";
mysqli_query($pdo, $statement3);
$statement2 = "UPDATE r SET supportcode = '".$supportcode."', library = '".$library."', description = '".$description."', short_description = '".$short_description."', invite = '".$inviteLink."', prefix = '".$prefix."', github_repo = '".$github."', website_url = '".$website."', other_owner = '".$other_owner."', tags = '".$tags."' WHERE bot_id = '".$_GET['bot']."'";
mysqli_query($pdo, $statement2);
}catch(Exception $e) {
echo $e->getMessage;
}
?>
Made with ❤ by KeksStudios by using and