mirror of
https://github.com/liftedpixel/lslscripts.git
synced 2026-08-14 09:02:50 +00:00
Create addppurl.php
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
$url = $_GET["url"];
|
||||
$objectuuid = $_GET["objectuuid"];
|
||||
$PASS = $_GET["PASS"];
|
||||
|
||||
$thePASS = "xxxxx";
|
||||
|
||||
include "connectwrite.php";
|
||||
|
||||
if ( $PASS == $thePASS )
|
||||
{
|
||||
$query = "INSERT INTO ppurls ( url, objectuuid ) VALUES ( '$url', '$objectuuid' )";
|
||||
|
||||
if ( !mysqli_query( $connect, $query ) )
|
||||
{
|
||||
die( 'Error: ' . mysqli_error( $connect ) );
|
||||
}
|
||||
|
||||
echo "URL added...";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
echo "Password incorrect...";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user