Vergleich admin/modules/tools/file_verification.php - 1.6.3 - 1.6.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: file_verification.php 5380 2011-02-21 12:04:43Z Tomm $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 58Zeile 58
			if(substr($parts[1], 0, 7) == "./admin")
{
$parts[1] = "./{$mybb->config['admin_dir']}".substr($parts[1], 7);

			if(substr($parts[1], 0, 7) == "./admin")
{
$parts[1] = "./{$mybb->config['admin_dir']}".substr($parts[1], 7);

 
			}

if(file_exists(MYBB_ROOT."forums.php") && !file_exists(MYBB_ROOT."portal.php"))
{
if(trim($parts[1]) == "./index.php")
{
$parts[1] = "./forums.php";
}
elseif($parts[1] == "./portal.php")
{
$parts[1] = "./index.php";
}

			}

$checksums[trim($parts[1])][] = $parts[0];
}

$bad_files = verify_files();

			}

$checksums[trim($parts[1])][] = $parts[0];
}

$bad_files = verify_files();

		

		

		$table = new Table;
$table->construct_header($lang->file);
$table->construct_header($lang->status, array("class" => "align_center", "width" => 100));

		$table = new Table;
$table->construct_header($lang->file);
$table->construct_header($lang->status, array("class" => "align_center", "width" => 100));

Zeile 86Zeile 98
			$table->construct_cell("<strong><span style=\"color: {$color};\">".substr($file['path'], 2)."</span></strong>");

$table->construct_cell("<strong><span style=\"color: {$color};\">{$file['status']}</span></strong>", array("class" => "align_center"));

			$table->construct_cell("<strong><span style=\"color: {$color};\">".substr($file['path'], 2)."</span></strong>");

$table->construct_cell("<strong><span style=\"color: {$color};\">{$file['status']}</span></strong>", array("class" => "align_center"));

			$table->construct_row();

			$table->construct_row();

		}

		}

		



$no_errors = false;

		if($table->num_rows() == 0)

		if($table->num_rows() == 0)

		{


		{
$no_errors = true;

			$table->construct_cell($lang->no_corrupt_files_found, array('colspan' => 3));
$table->construct_row();
}

			$table->construct_cell($lang->no_corrupt_files_found, array('colspan' => 3));
$table->construct_row();
}

		
$table->output($lang->file_verification.": ".$lang->found_problems);









if($no_errors)
{
$table->output($lang->file_verification.": ".$lang->no_problems_found);
}
else
{
$table->output($lang->file_verification.": ".$lang->found_problems);
}

		
$page->output_footer();
exit;

		
$page->output_footer();
exit;