( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
if($_GET['saveGifPoster']==1) {
$random = rand(11,99);
$gifUser = username();
$image_path = str_replace(".jpg",".gif",$image_path);
$image_path = str_replace("gthumbs","gif",$image_path);
$image_path = str_replace(".gif","$random.gif",$image_path);
$image_path = str_replace("v/uploads/gif/","v/uploads/gif/$gifUser",$image_path);
$image_pathX = str_replace("v/uploads/gif/","",$image_path);
$theme_id = $_GET['theme_id'];
$nani = $_GET['nani'];
$imageX = basename($image_path);
$query = mysqli_query("INSERT INTO `elements` (picture,themeid, catalogid) VALUES ('$imageX', '$theme_id', '$nani')") or die(mysql_error());
imagegif($background, $image_path, $qualityGif);
exit();
}
?>