Mister Spy Say ="Hello Kids ... :D"
___ ____ _ _____
| \/ (_) | | / ___|
| . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _
| |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | |
| | | | \__ \ || __/ | /\__/ / |_) | |_| |
\_| |_/_|___/\__\___|_| \____/| .__/ \__, |
| | __/ |
|_| |___/
Bot Mister Spy V3
Mister Spy
Mister Spy
<?php
class NewsletterRubro
{
public $IdRubro;
public $Descripcion;
public $Class;
public $Tabla;
public $CampoPrincipal;
public $CampoSecundario;
public $CampoTerciario;
public $CampoFecha;
public $IdRelacion;
public $TablaImagenes;
public $IdRelacionImagen;
public $TextoTitulo;
public $CampoImagen;
public $DirectorioImagenThumb;
public $DirectorioImagenBig;
public $PaginaFrontend;
public function ParseFromArray(array $arr)
{
$this->IdRubro = $arr['IdRubro'];
$this->Descripcion = $arr['Descripcion'];
$this->Class = $arr['Class'];
$this->Tabla = $arr['Tabla'];
$this->CampoPrincipal = $arr['CampoPrincipal'];
$this->CampoSecundario = $arr['CampoSecundario'];
$this->CampoTerciario = $arr['CampoTerciario'];
$this->CampoFecha = $arr['CampoFecha'];
$this->IdRelacion = $arr['IdRelacion'];
$this->Value = $arr['Value'];
$this->TablaImagenes = $arr['TablaImagenes'];
$this->IdRelacionImagen = $arr['IdRelacionImagen'];
$this->TextoTitulo = $arr['TextoTitulo'];
$this->CampoImagen = $arr['CampoImagen'];
$this->DirectorioImagenThumb = $arr['DirectorioImagenThumb'];
$this->DirectorioImagenBig = $arr['DirectorioImagenBig'];
$this->PaginaFrontend = $arr['PaginaFrontend'];
}
public function GetAllContent()
{
$Data = array();
$Content = array();
//require_once(dirname(__FILE__).'/../library/class.clientes.php');
if (!file_exists(dirname(__FILE__) . "/../library/class." . strtolower($this->Class) . ".php"))
return false;
require_once(dirname(__FILE__) . "/../library/class." . strtolower($this->Class) . ".php");
$classname = $this->Class;
// check if the expected class exists
if (!class_exists($classname))
return false;
$class = new $classname();
$Data = $class->GetAll();
foreach ($Data as $oData)
{
$IdValue = $this->IdRelacion;
$Value = $this->CampoPrincipal;
$oStd = new StdClass();
$oStd->Id = $oData->$IdValue;
$oStd->Value = $oData->$Value;
array_push($Content, $oStd);
}
return $Content;
}
}
?>
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat