在项目中我们有很多.properties文件。通常他们有条目,如
app.sandox.folder=/path/folder
但在其他.properties文件中,它们具有
等条目 app.sandbox.folder=${app.sandbox.folder}
我无法弄清楚 $ {app.sandbox.folder} 的设置位置。任何人都可以向我澄清这是什么以及该项目在哪里或什么文件被宣布或如何运作?
答案 0 :(得分:1)
当您使用Maven时,profiles
中pom.xml
会检查这些属性的一个位置<app.sandbox.folder> value <app.sandbox.folder/>
。
检查
之类的内容<configuration>
或具有这些属性的外部属性文件将在<?php
ob_start();
session_start();
if(isset($_POST['signin'])){
$email = $_POST['eemail'];
$password = $_POST['district_pass'];
//$access_level = $_POST['access_level'];
$conn = mysqli_connect('localhost', 'root', 'myspace4199', 'car_sales');
$email = mysqli_real_escape_string($conn, $email);
//$access_level = mysqli_real_escape_string($conn, $access_level);
$query = "SELECT *
FROM user_signup
WHERE eemail = '$email';";
$result = mysqli_query($conn, $query);
if(mysqli_num_rows($result) == 0) // User not found. So, redirect to login_form again.
{
?>
<script type="text/javascript">
alert("The email address or password is invalid.");
history.back();
</script>
<?php
}
$userData = mysqli_fetch_array($result, MYSQL_ASSOC);
$_SESSION['region_name'] = $region_name = $userData['region_name'];
//Check to see if user is an employee or just a member
$generaluserCheck = mysqli_query($conn, "SELECT * FROM user_signup WHERE (eemail = '$email') AND (access_level = 'general_user')");
$ministryheadCheck = mysqli_query($conn, "SELECT * FROM user_signup WHERE (eemail = '$email') AND (access_level = 'ministry_head')");
$regionalheadCheck = mysqli_query($conn, "SELECT * FROM user_signup WHERE (eemail = '$email') AND (access_level = 'regional_head')");
$carcompanyCheck = mysqli_query($conn, "SELECT * FROM user_signup WHERE (eemail = '$email') AND (access_level = 'car_company')");
$adminCheck = mysqli_query($conn, "SELECT * FROM user_signup WHERE (eemail = '$email') AND (access_level = 'admin')");
if($password == $userData['district_pass'] && mysqli_num_rows($generaluserCheck) == 1) // Incorrect password. So, redirect to login_form again.
{
header('Location: homepage.php');
}
else if($password == $userData['district_pass'] && mysqli_num_rows($ministryheadCheck) == 1){
header('Location: ministry_head_page.php');
}
else if($password == $userData['district_pass'] && mysqli_num_rows($regionalheadCheck) == 1){
header('Location: regional_head_page.php');
//header('Location: regional_head_page.php?region_name='.$region_name);
}
else if($password == $userData['district_pass'] && mysqli_num_rows($carcompanyCheck) == 1){
header('Location: car_company_page.php');
}
else if($password == $userData['district_pass'] && mysqli_num_rows($adminCheck) == 1){
header('Location: adminHome.php');
}
else {
?>
<script type="text/javascript">
alert("The email address or password is invalid.");
history.back();
</script>
<?php
}
}
?>
中定义。