Hacked By AnonymousFox

Current Path : /home/krishnamexports/www/panel/ajax/
Upload File :
Current File : /home/krishnamexports/www/panel/ajax/setslugUrl-20241115080153.php

<?php

error_reporting(0);

include("../../config/database.php");

$name      = $_GET['name'];

$tableName = $_GET['tableName']; 

if(!empty($name))

{

	$slug = preg_replace("/-$/","",preg_replace('/[^a-z0-9]+/i', "-", strtolower($name)));

	$query = "SELECT COUNT(*) AS NumHits FROM $tableName WHERE  slug_url  LIKE '$slug%'";

	$result = mysqli_query($cn, $query);

	$row    = mysqli_fetch_array($result);

	$numHits = $row['NumHits'];

	echo  ($numHits > 0) ? ($slug . '-' . $numHits) : $slug;

}

?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox