Seditio Source
Root |
./othercms/dle15_0/upload/engine/ajax/keywords.php
<?php
/*
=====================================================
 DataLife Engine - by SoftNews Media Group
-----------------------------------------------------
 http://dle-news.ru/
-----------------------------------------------------
 Copyright (c) 2004-2021 SoftNews Media Group
=====================================================
 This code is protected by copyright
=====================================================
 File: keywords.php
-----------------------------------------------------
 Use: Generation of keywords
=====================================================
*/

if(!defined('DATALIFEENGINE')) {
   
header( "HTTP/1.1 403 Forbidden" );
   
header ( 'Location: ../../' );
    die(
"Hacking attempt!" );
}

if( !
$is_logged OR !$user_group[$member_id['user_group']]['allow_admin'] ) { die ("error"); }

if(
$_REQUEST['user_hash'] == "" OR $_REQUEST['user_hash'] != $dle_login_hash ) {
       
    die (
"error");
   
}

$parse = new ParseFilter();
$short_story = $parse->BB_Parse($parse->process($_REQUEST['short_txt']), false);
$full_story = $parse->BB_Parse($parse->process($_REQUEST['full_txt']), false);

$metatags = create_metatags ($short_story." ".$full_story, true);

$metatags['description'] = trim($metatags['description']);
$metatags['description'] = str_replace("&amp;","&", $metatags['description'] );
$metatags['description'] = str_replace("&quot;", '"', $metatags['description'] );
$metatags['keywords'] = trim($metatags['keywords']);

if (
$_REQUEST['key'] == 1) echo stripslashes($metatags['description']);
else echo
stripslashes($metatags['keywords']);

?>