- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
955 B
PHP
Executable File
51 lines
955 B
PHP
Executable File
<?php
|
|
error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE);
|
|
|
|
require_once("actions.php");
|
|
class ajax extends my_controller
|
|
{
|
|
public $db;
|
|
public $error=0;
|
|
public $message="";
|
|
public $content="";
|
|
public $action_to_do="";
|
|
public $id;
|
|
public function __construct()
|
|
{
|
|
|
|
parent::__construct();
|
|
if(isset($_REQUEST["action_to_do"]))
|
|
$this->action_to_do=$_REQUEST["action_to_do"];
|
|
else
|
|
$this->error("the field action_to_do is empty \n");
|
|
if(isset($_REQUEST["id"]))
|
|
$this->id=$_REQUEST["id"];
|
|
$tt=$this->action_to_do;
|
|
|
|
$b=$this->$tt();
|
|
|
|
|
|
die(json_encode($b));
|
|
|
|
|
|
}
|
|
function __destruct() {
|
|
|
|
}
|
|
function display()
|
|
{
|
|
echo $this->error."##,,,##".$this->message."##,,,##".$this->content;
|
|
exit();
|
|
}
|
|
function error($msgEerror)
|
|
{
|
|
echo "1##,,,##".$msgEerror."##,,,##".$this->content;
|
|
exit();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$contoller=new ajax();
|
|
$contoller->display();
|
|
?>
|