session_start();
if($_SESSION['infoAdmin']) {
define ('_PHPINFOBOARD_PATH', '.') ;
include("./lib/config.php");
$infoAction = "" ;
if(!isset($_POST['Restore'])) $Restore = ''; else $Restore = $_POST['Restore'] ;
if($Restore == 'true') {
$totalCount = '0' ;
if (file_exists("./$dataDir/$infoDatCode/count.txt")) {
$readCount = file("./$dataDir/$infoDatCode/count.txt") ;
$totalCount = $readCount[0] ;
if ($totalCount != 0) {
for ($i=1; $i <= $totalCount; $i++) {
$viewPage = sprintf("%04d",$i) ;
if (file_exists("./$dataDir/$viewPage.html")) unlink("./$dataDir/$viewPage.html") ;
}
$sHTML = "