コード例 #1
0
ファイル: sysadmin.php プロジェクト: nubissurveying/nubis
 function showImportRes()
 {
     /* update last page */
     $_SESSION['LASTPAGE'] = substr($_SESSION['LASTPAGE'], 0, strripos($_SESSION['LASTPAGE'], "res"));
     require_once "importer.php";
     $importer = new Importer();
     $result = $importer->import();
     $displaySysAdmin = new DisplaySysAdmin();
     if ($result == "") {
         $content = $displaySysAdmin->displaySuccess(Language::messageToolsImportOk());
     } else {
         $content = $displaySysAdmin->displayError(Language::messageToolsImportNotOk($result));
     }
     return $displaySysAdmin->showImport($content);
 }