我正在使用grub 2.02。当我尝试加载模块(用于测试目的)时,加载器失败,出现错误"不兼容的许可证#34;。这是一个似乎与版本控制问题有关的模糊问题之一。我曾尝试过以下许可证,并且还尝试过不使用许可证。
<?php
$json = array();
if(isset($_POST['id'], $_POST['twd'])){
/*Importing our db connection script*/
require_once('dbConnect.php');
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$id = mysqli_real_escape_string($con, $_POST['id']);
$twd = mysqli_real_escape_string($con, $_POST['twd']);
$sql ="SELECT MAX(id) as MaxId FROM work_details WHERE twd = '$twd'";
if ($result = mysqli_query($con, $sql)) {
/* fetch associative array */
if ($row = mysqli_fetch_row($result)) {
if($row[0] === $id){
$sql ="DELETE FROM work_details WHERE id='$id';";
if ($result = mysqli_query($con, $sql)) {
$json['success'] = true;
$json['message'] = 'delete is successful';
}else{
$json['success'] = false;
$json['message'] = 'list cannot be deleted';
}
}else
$json['success'] = false;
$json['message'] = '($row[0] !== $id)';
}
} else{
$json['success'] = false;
$json['message'] = 'select is unsuccessful';
}
/* close connection */
mysqli_close($con);
}
//print the json
echo json_encode($json);
?>
任何人都可以告诉我摆脱这条错误信息的神奇之处是什么?
答案 0 :(得分:0)
宏名为GRUB_MOD_LICENSE,而不是MODULE_LICENSE。
此外,认为有效的许可证(从grub-core/kernel/dl.c中提取):
顺便说一下 - GRUB 2.02尚未发布:最新的标签是grub-2.02-beta2