Google

Cyb3r Drag0nz Team Shell

Server : Apache
System : Linux webd003.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : atwiofrxug (73666)
PHP Version : 8.4.10
Disable Functions : _dyuweyrj4,_dyuweyrj4r,dl
Current Directory : /home/atwiofrxug/mylittletelaviv/wp-content/plugins/knews/direct/
Directory Status: Writeable | Document Root: Writeable

Upload File







Viewing: /home/atwiofrxug/mylittletelaviv/wp-content/plugins/knews/direct/save_news.php

<?php
//Security for CSRF attacks
$knews_nonce_action='kn-save-news';
$knews_nonce_name='_savenews';
if (!empty($_POST)) $w=check_admin_referer($knews_nonce_action, $knews_nonce_name);
//End Security for CSRF attacks

global $Knews_plugin, $wpdb;

if ($Knews_plugin) {


	if (! $Knews_plugin->initialized) $Knews_plugin->init();

	require_once( KNEWS_DIR . '/includes/knews_util.php');

	$id=	$Knews_plugin->post_safe('idnews');
	$title=	$Knews_plugin->post_safe('title', '', 'unsafe');
	$code=	$Knews_plugin->post_safe('code', '', 'unsafe');
	$newstype=	$Knews_plugin->post_safe('newstype', 'unknown');
	
	$date=	$Knews_plugin->get_mysql_date();
	
	$code=str_replace('#@!', '<', $code);
	
	//WYSIWYG editor issues
	$code=knews_rgb2hex($code);
	if (!knews_is_utf8($code)) $codeModule=utf8_encode($code);
	$code=$Knews_plugin->htmlentities_corrected($code);
	//$title=$Knews_plugin->htmlentities_corrected($title);
	// (opcio beta) if (!knews_is_utf8($title)) $title=utf8_encode($title);

	
	if (strlen($Knews_plugin->post_safe('testslash', '', 'unsafe'))==5) {
		
		$title = esc_sql($title);
		$query = "UPDATE " . KNEWS_NEWSLETTERS . " SET html_mailing='" . esc_sql($code) . "', modified='" . $date . "', subject='" . $title . "', newstype='" . $newstype . "' WHERE id=" . $id;
	} else {
		
		$query = "UPDATE " . KNEWS_NEWSLETTERS . " SET html_mailing='" . $code . "', modified='" . $date . "', subject='" . $title . "', newstype='" . $newstype . "' WHERE id=" . $id;
	}
	
	if ($wpdb->query($query)) {
		$query = "SELECT id FROM " . KNEWS_NEWSLETTERS . " WHERE id_mobile=" . $id;
		$newsparent = $wpdb->get_results( $query );
		if (count($newsparent) > 0) {
			$query = "UPDATE " . KNEWS_NEWSLETTERS . " SET modified='" . $date . "', subject='" . $title . "', newstype='" . $newstype . "' WHERE id=" . $newsparent[0]->id;
			$wpdb->query($query);
		}
		echo 'knews:ok';
	} else {
		echo $wpdb->last_error;
	}
}
die();
?>

Cyb3r Drag0nz Team • Google Edition