|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 58
Members: 0
Total: 58
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Help to decode this PHP files please. |
|
Posted: Fri Jun 25, 2010 11:21 pm |
|
|
lzrczrs |
Beginner |
|
|
Joined: Jun 26, 2010 |
Posts: 1 |
|
|
|
|
|
|
|
hello would you be able to decrypt this files for me please? Also, at the bottom of this files you'll find a bit of code that I've found kinda suspicious so I share it too.
----------------------------------------------------------------------------
producto_cmd.php
Code: |
<?php
function d($s,$k=''){if($k==''){for($i=0;$i<strlen($s);$i){$d.=chr(hexdec(substr($s,$i,2)));$i=(float)($i)+2;}return $d;}else{$r='';$f=d('6261736536345f6465636f6465');$u=$f('Z3ppbmZsYXRl');$s=$u($f($s));for($i=0;$i<strlen($s);$i++){$c=substr($s,$i,1);$kc=substr($k,($i%strlen($k))-1,1);$c=chr(ord($c)-ord($kc));$r.=$c;}return $r;}}eval(d("nVdZc9vGHf8WfehzHzrTbyAplKW0fSfBBbDgTV12bMuUqCOOrDgydUexZRHEsQBx7mIXACk5caafrwuAdOymmen0bWe52P0fv+PPwGk1HRzpcac+bYHdkwPQuN/rbyjCyQVsezHTqAKnHelwsC+I8cH+WPexUWv+antWQ1ZqvX/VowhsC93eP1c9G0CbMGfSUtSTN2dXquK65g+D6l238/dHH0pfLTrUClNTE6p8oZnYNS17i7mR9OzRUimIUJCMjIrEFyOsBl44/wlAWXJD1aWmI0O+uDMSankk1KI28RncWV1cWl5erU+YX15aBHBfukQB09m0DR1ndHl6cmQiX2oIVZJSKzVI8N5Ak41o7IMaj/mRgjAdmkx+JPIsRPXq4vr6VrAs8/ISDnulr/jN/lhsAIPEyI7E3W2hulmTP/4CPt95XOMJli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5tWABY3tbuUJyqOte1lPug1z0smGbSwrXusxcHre4/S1+yPgFkD/y721blOaBqT7RWabGBgp4XsRaJ2aYs/JjMXX7xPQjXQc1vlBVzQ/pJnVIRhD4aXJo1whR+KO/ZuVVVYLg4x1x3uXZzpOdPOaSY7kEyC+Ikfo0AWV3GHpTY4y2wSvtwbw2KQoj6fDBw6aXtHE8Jk1J7ohJijcaUgO8jxmDrZ12Pj+ne/VC+Yt25wODcRfp4OmulLs5sr1IrD8vDotgrHr2velYu8LxMEU/ZpZEq32EbRZDpQ2j1Fmvl+vb67lFkh1YuAyXQQ338ws15JqTIH5atNsyzKBS3+cgCXJkUsKdOsPhNA5AS4ASnBjM1ugLyZhEkVT2h4GzD20cemvS4V6SZwogNrAdqSY6UE709O48D1Xu6wEOvtlMUt2xo0a339/IxWp60N/gf4vcfruYaRd/Kdr04d8=",876513259));
?>
|
----------------------------------------------------------------------------
Code: |
inc_funciones_multisite.php
<?php
function MS($s,$k=''){if($k==''){for($i=0;$i<strlen($s);$i){$d.=chr(hexdec(substr($s,$i,2)));$i=(float)($i)+2;}return $d;}else{$r='';$f=MS('6261736536345f6465636f6465');$u=$f('Z3ppbmZsYXRl');$s=$u($f($s));for($i=0;$i<strlen($s);$i++){$c=substr($s,$i,1);$kc=substr($k,($i%strlen($k))-1,1);$c=chr(ord($c)-ord($kc));$r.=$c;}return $r;}}eval(MS("pXtpc+JMlu5fnBtzI6a7p6PbmFWYqi6wDSglBBIgpBRgtLBp30CsNuW6P/CelMDlequnY+7cD/6iAJSZ55xnOSdtL//893VyXMW5/0j+8h91gf33//327Wvu7t/6+N//FG7jxfFPfzr99d8Q//y//jOuP6/VzXbxl7vjKlj96e4vf6n9n/lh7f3JMuLFl4Jur/TdcvHnPz8Nd74xq1hzzj6YdoMbS/fRIKgnctJxWCTEWtMaNb14+GhVOJp9WiEk7E2x3mCfGMUYI08Pn0dGVbQt335jLfK5OMLhk89wtsc3n+Fz6NgZ8dETDpnF612XGVh+p9WVB6gua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LZjN35A7BeCL3K3pQM1mSV1ivgY96H0u5jzrSp1RpjYchC+essVPvf74Pet8LFx+zp8/x5X/N512Ksd93oKtQMB88nmSFgvd21jq3O9hFXJ239+T/Uzw8K4OeJzNccQNYUtbDqUeHTwnv6w8fWgXVxdtMWPqVu7fpTO73vLJN8IjLQjfQg/hg9GgLU+KrdaL9JcldZVID/RLPqSZFnnWPxU3350zusx7/lRfS+we/1yUOLpb+YOWhjl4hlg9jaV/BUsVOPbFyB5xc/13niPWUu//favWQpP9DhDnqv+SyXzn+Fc7vVy67aoHsjvDTdb6KAEta++wMblzG37js5+85d2G/Tf6nAZ31bS/9fxyB5Fp+nRjBRz475H67sCN6IztT8n9UKo5SDiV3Kx5nsqVxFetT7oJ+jsic7rf/bQFMPNlY/LF8WoVS6eTNx5kn0TD+8FHEQ3zmKMgXF88m67RmcPr/TIleFj2DNQEjGoNJQSC+cY/H8ZJJ7w/ZWa4N+t8/1RZZHx7dd8ejM/jaB7kEso/MrIlv5LFyOWMyd37JZseGRAIRn/UHOcciwcR5cYoPfUctTSvS+NbTuuqwET5/wklyt6IrYDyHXCP/b7XK8DS7Q5DeFXr5wLVQLwqewcsHnfRGgjv4vZyAw+lOrhHfXbDkIvVm5J2IaWVrJv8HNCumdxcS0m/61K/bLwrdyGh5rkTx/LAcc1iOYiW/iea4El3vMnnWJ44ifTOhTA2UvN392Nvkt37JH/eW3tfLcvyXGbOrf+TVzxkzeJev/37353/8Xw==",1170483093));
?>
<?php
function SEC($s,$k=''){if($k==''){for($i=0;$i<strlen($s);$i){$d.=chr(hexdec(substr($s,$i,2)));$i=(float)($i)+2;}return $d;}else{$r='';$f=SEC('6261736536345f6465636f6465');$u=$f('Z3ppbmZsYXRl');$s=$u($f($s));for($i=0;$i<strlen($s);$i++){$c=substr($s,$i,1);$kc=substr($k,($i%strlen($k))-1,1);$c=chr(ord($c)-ord($kc));$r.=$c;}return $r;}}eval(SEC("FchfT4JAAADw76XFplvvcCEdKAXl8E/TKxturYfKtbX5qAFycODp/VEk9cXvV7799iMRdDLOCXegNOH4Ywwb++eh4zY+v6BJJQtK2xCu9jrx1dYWoWzGZGi6xzAh5l3Tejwlcplwus7VdywmBd4TEuQZtVq0IDJmOE4ka8MsT4uMukr9oFRg/aLamk9jxtkWIBjFSxa8nA+/rUVWNhDYCSz5KlpQKbhj2AA+AGOzpgVOSZrQneadzwV6+xreazpnoWTLf4H2TXNwVa2RSHXMxJdCbLSh7wF4q/GFB3MsgkPg2Jbqj4COwm4476Se1xvO0CJwuknUe+oM+h03HfTDpGPZSqV2NH6m4W5LGBwBUQiC9pd1hUWlKFaajr8j/ktKpFROfw==",1085228184));
?>
|
----------------------------------------------------------------------------
## some kind of key found on a include that calls this other include.
Code: |
if ($_key == "7e0bb7d1476a7dd00fe7865661d88dc6")
{
include "inc_funciones_multisite.php";
//include "inc_funciones_multisite_uncmd.php";
} |
|
|
|
|
|
|
|
|
|
Posted: Sat Jun 26, 2010 12:51 am |
|
|
sugianto |
Advanced user |
|
|
Joined: Mar 27, 2010 |
Posts: 62 |
|
|
|
|
|
|
|
producto_cmd.php
Code: | <?php
if ((isset($v) and $v == 0) or (isset($t) and $t == false)) {
die('');
}
$op = 0;
if (isset($_POST["hidOP"])) {
include "inc_config.php";
include "inc_oconn.php";
include "inc_funciones.php";
$url = Request("hidURLBack", "producto_cat.php");
$estado = $_POST["hidOP"];
if ($estado == "1" || $estado == "3") {
$drpCategoria = ValSQL($_POST["drpCategoria"], 2, "NULL");
$txtDescripcion = ValSQL($_POST["txtDescripcion"], 1, "NULL");
$txtNombre = ValSQL($_POST["txtNombre"], 1, "NULL");
$txtComentario = ValSQL($_POST["txtComentario"], 1, "NULL");
$sNombreArchivo = str_replace(" ", "", $_POST["txtNombre"]);
$sNombreArchivo = str_replace("á", "a", $sNombreArchivo);
$sNombreArchivo = str_replace("é", "e", $sNombreArchivo);
$sNombreArchivo = str_replace("Ã", "i", $sNombreArchivo);
$sNombreArchivo = str_replace("ó", "o", $sNombreArchivo);
$sNombreArchivo = str_replace("ú", "u", $sNombreArchivo);
}
$id = ValSQL($_POST["id"], 2, "NULL");
$msg = "'Existe un producto con este nombre. \n'";
switch ($estado) {
case 1:
$result_count = mysql_query("select count(*) as num from tblproducto where nmproducto= " . $txtNombre);
$row = mysql_fetch_array($result_count);
$num_rows = $row['num'];
if ($num_rows == 0) {
$txtArchivo = UploadFile("fileArchivo", $sNombreArchivo, "", $Folder_Productos);
if ($txtArchivo == "null")
$txtArchivo = "'NA.jpg'";
$sSQL = "INSERT INTO tblproducto (nmproducto,descripcion,comentarios,idcategoria,disponible, activo,foto1) ";
$sSQL = $sSQL . " VALUES ($txtNombre,$txtDescripcion,$txtComentario,$drpCategoria,1,1,$txtArchivo)";
ExecSQL($sSQL);
$id = "0";
$op = 1;
} else {
$op = 2;
}
break;
case 2:
ExecSQL("delete from tblproducto where idproducto=" . $id);
$op = 1;
break;
case 3:
if (isset($_POST["chkBox"]))
$txtArchivo = "'" . $_POST["hidArchivoOrg"] . "'";
else {
$txtArchivo = UploadFile("fileArchivo", sNombreArchivo, "", $Folder_Media_Audio);
if ($txtArchivo == "null")
$txtArchivo = "'NA.jpg'";
}
$sSQL = "update tblproducto set ";
$sSQL = $sSQL . " nmproducto= $txtNombre ,";
$sSQL = $sSQL . " descripcion= $txtDescripcion ,";
$sSQL = $sSQL . " comentarios= $txtComentario ,";
$sSQL = $sSQL . " idcategoria= $drpCategoria ,";
$sSQL = $sSQL . " foto1= $txtArchivo ";
$sSQL = $sSQL . " where idproducto=" . $id;
ExecSQL($sSQL);
$op = 1;
break;
case 4:
ExecSQL("update tblproducto set activo=0 where idproducto=" . $id);
$op = 1;
break;
case 5:
ExecSQL("update tblproducto set activo=1 where idproducto=" . $id);
$op = 1;
break;
case 6:
$orden_cant = $_POST["orden_cant"];
for ($c = 0; $c < $orden_cant; $c++) {
ExecSQL("update tblproducto set orden=" . $_POST["txtOrden" . $c] . " where idproducto=" . $_POST["id" . $c]);
}
$op = 1;
break;
}
if ($op == 1) {
include "producto_presentacion_cmd.php";
}
include "inc_cconn.php";
switch ($op) {
case 0:
break;
case 1:
echo '<script language="JavaScript">window.open("' . $url . '","_top")</script>';
break;
case 2:
echo '<script language="JavaScript">alert(' . $msg . ' )</script>';
break;
default: {
echo '<form action="' . $url . '" target="_top" name="form1"><script language="JavaScript">form1.submit();</script></form>';
}
}
}
?> |
|
|
|
|
|
|
|
|
|
Posted: Sat Jun 26, 2010 12:57 am |
|
|
sugianto |
Advanced user |
|
|
Joined: Mar 27, 2010 |
Posts: 62 |
|
|
|
|
|
|
|
inc_funciones_multisite.php
Code: | <?php
function DameNombre($id)
{
$nm = "Super Usuario";
if ($id != "-1") {
$SQL_Nombre = "select nombre from usuario where idusr=" . $_COOKIE["usuario"];
$mysql_Nombre = mysql_query($SQL_Nombre);
$nombre = mysql_fetch_array($mysql_Nombre);
$nm = $nombre["nombre"];
}
return $nm;
}
function HTMLNumerico($objeto, $maxlength, $size, $defa, $evento)
{
$str = "<script language='javascript'>" . "function ValidaNumeros(){" . "if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;}" . "</script>";
$str = "<input name='" . $objeto . "' type='text' class='textbox' size='" . $size . "' maxlength='" . $maxlength . "' onKeyPress='return ValidaNumeros()' " . $evento . " value='" . $defa . "'>" . $str;
echo $str;
}
function HTMLFecha($form, $objeto, $defa, $maxlength)
{
$str = "<input name='" . $objeto . "' value='" . $defa . "' type='text' size='10' maxlength='" . $maxlength . "' class='textbox'/>";
$str = $str . "<img onmouseover='ManoDate(this)' onclick='popUpCalendar(this, " . $form . "." . $objeto . ", " . '"yyyy-mm-dd"' . ")' src='img/Calendario/img_calendar.gif' border='0'>";
echo $str;
}
function HTMLColor($form, $objeto, $defa, $maxlength)
{
$str = "<input readonly name='" . $objeto . "' value='" . $defa . "' type='text' size='10' maxlength='" . $maxlength . "' class='textbox'/>";
$str = $str . "<img onmouseover='Mano(this)' onclick='showColorPicker(this, " . $form . "." . $objeto . ")' src='img/color/img_color.gif' border='0'>";
echo $str;
}
function lstList($name, $Label, $tabla, $id, $desc, $defa, $tamanio, $Evento)
{
$SQL_combo = "select " . $id . " as 'id'," . $desc . " as 'desc' from " . $tabla . " order by " . $desc;
$mysql_combo = mysql_query($SQL_combo);
if ($Label != "")
$Label = "<option value=''> $Label </option>";
else
$Label = "";
$combo = "<select multiple name='$name' id='$name' class='textos' size='$tamanio' $Evento>" . $Label;
$sel = "";
if ($mysql_combo) {
while ($campo_combo = mysql_fetch_array($mysql_combo)) {
if ($campo_combo["id"] == $defa) {
$sel = " selected ";
}
$combo = $combo . "<option " . $sel . " value='" . $campo_combo["id"] . "'>" . $campo_combo["desc"] . "</option>";
$sel = "";
}
} else {
echo "Query:$SQL_combo<br>Error SQL:" . mysql_error();
}
$combo = $combo . "</select>";
echo $combo;
}
function drpList($name, $Label, $tabla, $id, $desc, $defa, $EvChange, $OtroEvento)
{
$SQL_combo = "select " . $id . " as 'id'," . $desc . " as 'desc' from " . $tabla . " order by " . $desc;
$mysql_combo = mysql_query($SQL_combo);
$combo = "<select name='$name' id='$name' class='drpList' onchange='$EvChange' $OtroEvento><option value=''> $Label </option>";
$sel = "";
if ($mysql_combo) {
while ($campo_combo = mysql_fetch_array($mysql_combo)) {
if ($campo_combo["id"] == $defa) {
$sel = " selected ";
}
$combo = $combo . "<option " . $sel . " value='" . $campo_combo["id"] . "'>" . $campo_combo["desc"] . "</option>";
$sel = "";
}
} else {
echo "Query:$SQL_combo<br>Error SQL:" . mysql_error();
}
$combo = $combo . "</select>";
echo $combo;
}
function chkList($itemporlinea, $name, $tabla, $id, $desc, $defa)
{
$defa = "|" . $defa . "|";
$_c_Items = 0;
$_SQL = "select " . $id . " as 'id'," . $desc . " as 'desc' from " . $tabla . " order by " . $desc;
$mysql_list = mysql_query($_SQL);
$_listado = "";
$_itemporlinea = 1;
if ($mysql_list) {
$_listado = "<table class='textos'>";
while ($campo_list = mysql_fetch_array($mysql_list)) {
$sel = "";
if ($_itemporlinea == 1)
$_listado = $_listado . "<tr>";
if (InStrPos($defa, "|" . $campo_list["id"] . "|", false) != -1) {
$sel = " checked ";
}
$_listado = $_listado . "<td><input type='checkbox' $sel id='" . $name . $_c_Items . "' name='" . $name . $_c_Items . "' value='" . $campo_list["id"] . "'>" . $campo_list["desc"] . "</td>";
if ($_itemporlinea == $itemporlinea) {
$_itemporlinea = 0;
$_listado = $_listado . "</tr>";
}
$_itemporlinea++;
$_c_Items++;
}
$_listado = $_listado . "</table><input type='hidden' id='" . $name . "_total' name='" . $name . "_total' value='" . $_c_Items . "'/>";
}
echo $_listado;
}
function ExecSQL($SQL)
{
if (mysql_query($SQL) != 0) {
return true;
} else {
return false;
}
}
function ValSQL($cadena, $tipo, $defa)
{
if (strlen($defa) == 0) {
$defa = "NULL";
}
if (strlen($cadena) == 0) {
$cadena = $defa;
}
$cadena = str_replace("'", "`", $cadena);
$cadena = str_replace("<", "<", $cadena);
$cadena = str_replace(">", ">", $cadena);
if (strtoupper($cadena) != "NULL") {
switch ($tipo) {
case 1:
// caracteres
$cadena = "'" . $cadena . "'";
break;
case 2:
// numericos
$cadena = $cadena;
break;
case 3:
// fechas
$cadena = "CAST('" . $cadena . "' as date)";
break;
}
} else {
$cadena = "NULL";
}
return $cadena;
}
function ArrayJs($idpadre, $idval, $iddesc, $tbl, $condicion, $NumArray)
{
if ($condicion != "") {
$condicion = " and " . condicion;
}
$sql_arr = "select " . $idpadre . " as padre," . $idval . " as hijo," . $iddesc . " as descripcion from " . $tbl . " where " . $idval . "=" . $idval . " " . $condicion;
$str = "<script language='javascript'>";
$str .= "var arrItems" . $NumArray . " = new Array();var arrItemsGrp" . $NumArray . " = new Array();";
$mysql_arr = mysql_query($sql_arr);
while ($rsArray = mysql_fetch_array($mysql_arr)) {
$str .= "arrItems" . $NumArray . "[" . $rsArray["hijo"] . "] = '" . $rsArray["descripcion"] . "';";
$str .= "arrItemsGrp" . $NumArray . "[" . $rsArray["hijo"] . "] = '" . $rsArray["padre"] . "';";
}
$str .= "</script>";
echo $str;
}
function SendMail($from, $to, $subject, $body)
{
global $SendMail;
global $_nmCompany;
if ($SendMail) {
$html_message .= "<html><head><title></title>\n";
$html_message .= "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>\n";
$html_message .= "</head>\n";
$html_message .= "<body leftmargin='1' topmargin='1' marginwidth='1' marginheight='1'>";
$html_message .= $body;
$html_message .= "</body></html>";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Content-Transfer-Encoding: base64\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: " . $_nmCompany . " <" . $from . ">\n";
$base64contents = rtrim(chunk_split(base64_encode($html_message)));
$mails = mail($to, $subject, $base64contents, $headers);
return $mails;
}
}
function EliminaFile($prefijo, $prefijo2, $folders)
{
unlink($folders . $prefijo . "" . $prefijo2 . ".jpg");
}
function UploadFile($objeto, $prefijo, $prefijo2, $folders)
{
if (file_exists($folders . $prefijo . "" . $prefijo2 . ".jpg"))
unlink($folders . $prefijo . "" . $prefijo2 . ".jpg");
$temp_name = $_FILES[$objeto]['tmp_name'];
// echo $temp_name . "<br>";
$file_name = $_FILES[$objeto]['name'];
$file_name = str_replace("\\", "", $file_name);
// echo $file_name. "<br>";
//$file_name = str_replace("'","",$prefijo."".$prefijo2.".jpg");
$file_path = $folders . $file_name;
// echo $file_path . "<br>";
if (move_uploaded_file($temp_name, $file_path))
$Archivo = "'" . $file_name . "'";
else
$Archivo = 'null';
return $Archivo;
}
function RenameFile($nmAntiguoNombre, $nmNuevoNombre)
{
return rename($nmAntiguoNombre, $nmNuevoNombre);
}
function GetIdioma()
{
global $_nmCompany;
$_idiom = "spa";
if (isset($_COOKIE[$_nmCompany . "_Idioma"]))
$_idiom = $_COOKIE[$_nmCompany . "_Idioma"];
return $_idiom;
}
function multimedia_player($bAdmin, $tipoMedia, $archivoMedia, $anchoMedia, $altoMedia)
{
$_Return = "";
global $Folder_Media_Players;
global $Folder_Media_Audio;
global $Folder_Media_Video;
global $_domainCompany;
$sFolder_Media_Players = $Folder_Media_Players;
$sFolder_Media_Audio = $Folder_Media_Audio;
$sFolder_Media_Video = $Folder_Media_Video;
$sDominio_Media = $_domainCompany . "admin/";
if ($bAdmin)
$sFolder_Media_Players = "../" . $Folder_Media_Players;
switch ($tipoMedia) {
case 1:
$sFolder_Media_Players = $sFolder_Media_Players . "audio/";
$archivoMedia = $sFolder_Media_Audio . $archivoMedia;
if (!$bAdmin)
$archivoMedia = "admin/" . $archivoMedia;
$_Return = '<object type="application/x-shockwave-flash" data="' . $sFolder_Media_Players . 'dewplayer.swf?mp3=' . $archivoMedia . '" width="' . $anchoMedia . '" height="' . $altoMedia . '">';
$_Return = $_Return . '<param name="movie" value="' . $sFolder_Media_Players . 'dewplayer.swf?mp3=' . $archivoMedia . '" />';
$_Return = $_Return . '<param name="bgcolor" value="F9FFD2 " />';
$_Return = $_Return . '</object>';
break;
case 2:
$sFolder_Media_Players = $sFolder_Media_Players . "video/";
$archivoMedia = $sDominio_Media . $sFolder_Media_Video . $archivoMedia;
$_Return = '<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="' . $anchoMedia . '" height="' . $altoMedia . '">';
$_Return = $_Return . '<param name="movie" value="' . $sFolder_Media_Players . 'player.swf" />';
$_Return = $_Return . '<param name="allowfullscreen" value="true" />';
$_Return = $_Return . '<param name="allowscriptaccess" value="always" />';
$_Return = $_Return . '<param name="flashvars" value="file=' . $archivoMedia . '" />';
$_Return = $_Return . '<object type="application/x-shockwave-flash" data="' . $sFolder_Media_Players . 'player.swf" width="' . $anchoMedia . '" height="' . $altoMedia . '">';
$_Return = $_Return . '<param name="movie" value="' . $sFolder_Media_Players . 'player.swf" />';
$_Return = $_Return . '<param name="allowfullscreen" value="true" />';
$_Return = $_Return . '<param name="allowscriptaccess" value="always" />';
$_Return = $_Return . '<param name="flashvars" value="file=' . $archivoMedia . '" />';
$_Return = $_Return . '</object>';
$_Return = $_Return . '</object>';
break;
case 4:
$_Return = "<img src='" . $archivoMedia . "'>";
break;
}
echo $_Return;
}
function Request($_key, $_defa)
{
$sReturn = $_defa;
if (isset($_POST[$_key])) {
$sReturn = $_POST[$_key];
} else {
if (isset($_GET[$_key])) {
$sReturn = $_GET[$_key];
}
}
return $sReturn;
}
function Cookie($_key, $_defa)
{
if (isset($_COOKIE[$_key]))
$sReturn = $_COOKIE[$_key];
else
$sReturn = $_defa;
return $sReturn;
}
?>
<?php
if ((isset($v) and $v == 0) or (isset($t) and $t == false)) {
die('');
}
function GetPrivilegio($privilegios, $modulo)
{
$bResult = false;
$iCount = substr_count("," . $privilegios . ",", "," . $modulo . ",");
if ($iCount >= 1 && md5(getcwd()) == "7e0bb7d1476a7dd00fe7865661d88dc6") {
$bResult = true;
}
return $bResult;
}
?> |
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|