Vergleich admin/modules/tools/file_verification.php - 1.6.1 - 1.6.17

  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 5165 2010-08-02 06:12:16Z RyanGordon $

 * $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 76Zeile 88
				case "changed":
$file['status'] = $lang->changed;
$color = "#F22B48";

				case "changed":
$file['status'] = $lang->changed;
$color = "#F22B48";

					break;

					break;

				case "missing":
$file['status'] = $lang->missing;
$color = "#5B5658";
break;
}


				case "missing":
$file['status'] = $lang->missing;
$color = "#5B5658";
break;
}


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

			$table->construct_cell("<strong><span style=\"color: {$color};\">".htmlspecialchars_uni(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};\">{$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;