mirror of
https://github.com/liftedpixel/lslscripts.git
synced 2026-08-14 00:58:07 +00:00
Create deleteppurl.php
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
$id = $_POST["id"];
|
||||
$pass = $_POST["password"];
|
||||
|
||||
$thePASS = "xxxxxx";
|
||||
|
||||
include "connectwrite.php";
|
||||
|
||||
if ( $pass == $thePASS )
|
||||
{
|
||||
$query = "DELETE FROM ppurls WHERE id = $id";
|
||||
|
||||
if ( !mysqli_query( $connect, $query ) )
|
||||
{
|
||||
die( 'Error: ' . mysqli_error( $connect ) );
|
||||
}
|
||||
|
||||
echo "URL deleted.";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
echo "Password incorrect.";
|
||||
}
|
||||
|
||||
echo "<br>Returning in a few seconds...";
|
||||
sleep (5);
|
||||
?>
|
||||
<script>
|
||||
window.location = "http://liftedpixel.net/pixelplanet/displayppurl.php";
|
||||
</script>
|
||||
Reference in New Issue
Block a user