35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			35 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
|  | <?php | ||
|  | @session_start(); | ||
|  | @error_reporting(7); | ||
|  | @ini_set('display_errors', true); | ||
|  | @ini_set('html_errors', false); | ||
|  | 
 | ||
|  | define('DATALIFEENGINE', true); | ||
|  | define( 'ROOT_DIR', substr( dirname(  __FILE__ ), 0, -12 ) ); | ||
|  | define( 'SYSTEM_DIR', ROOT_DIR . '/system' ); | ||
|  | 
 | ||
|  | include SYSTEM_DIR.'/data/config.php'; | ||
|  | require_once SYSTEM_DIR.'/classes/mysql.php'; | ||
|  | require_once SYSTEM_DIR.'/data/dbconfig.php'; | ||
|  | require_once ROOT_DIR.'/language/'.$config['langs'].'/adminpanel.lng'; | ||
|  | 
 | ||
|  | $config['charset'] = ($lang['charset'] != '') ? $lang['charset'] : $config['charset']; | ||
|  | 
 | ||
|  | require_once SYSTEM_DIR.'/inc/include/functions.inc.php'; | ||
|  | require_once SYSTEM_DIR.'/classes/parse.class.php'; | ||
|  | 
 | ||
|  | $parse = new ParseFilter(); | ||
|  | $full_story = $parse->BB_Parse($parse->process(convert_unicode($_REQUEST['full_txt'], $config['charset'])), false); | ||
|  | $short_story = $parse->BB_Parse($parse->process(convert_unicode($_REQUEST['short_txt'], $config['charset'])), false); | ||
|  | 
 | ||
|  | if ($full_story) $metatags = create_metatags ($full_story); | ||
|  | else $metatags = create_metatags ($short_story); | ||
|  | 
 | ||
|  | $metatags['description'] = trim($metatags['description']); | ||
|  | $metatags['keywords'] = trim($metatags['keywords']); | ||
|  | 
 | ||
|  | @header( "Content-type: text/html; charset=" . $config['charset'] ); | ||
|  | 
 | ||
|  | if ($_REQUEST['key'] == 1) echo stripslashes($metatags['description']); | ||
|  | else echo stripslashes($metatags['keywords']); | ||
|  | ?>
 |