include_once("../adminarea/logdetails.php"); $jokes_category = $_GET[category]; $jokes_catdash = str_replace("-"," ",$jokes_category); $timed= time(); function smsFormatter($input) { $space = strpos(strip_tags(stripslashes($input))," ",50); if ($space < 1) { $space = strlen($input); } $title = substr(strip_tags(stripslashes($input)),0,$space); $titleurl = preg_replace('/[^a-zA-Z0-9-]/',"-",$title); $titleurl = preg_replace('/--+/',"-",strtolower($titleurl)); return trim($titleurl,'-'); } if (!$_GET[category]) { $jokes_category = "Latest"; } ?>
if (isset($_GET[jokes])) { $tp = $_GET[jokes]; $sql =mysqli_query($link, "select * from joke_collection where sno = $tp") -> fetch_array(); $space = strpos(strip_tags($sql[sms])," ",200); $title = substr(strip_tags($sql[sms]),0,$space); $title = preg_replace('/[^a-zA-Z0-9-]/'," ",stripslashes($title)); $title = preg_replace('/--+/',"-",ucfirst($title)); $title = str_replace('"',"-",$title); $space2 = strpos(strip_tags($sql[sms])," ",40); $title2 = substr(strip_tags($sql[sms]),0,$space2); $title2 = preg_replace('/[^a-zA-Z0-9-]/'," ",stripslashes($title2)); $title2 = preg_replace('/\s\s+/'," ",ucfirst($title2)); $title2 = str_replace('"',"-",$title2); $title2 = substr(strip_tags($title2),0,40); ?>