diff --git a/http/admin/index.php b/http/admin/index.php old mode 100644 new mode 100755 index 187fc50..3eaf2c6 --- a/http/admin/index.php +++ b/http/admin/index.php @@ -2,7 +2,7 @@ //记录ip require_once "../php/get_ip.php"; //日志 - clientlog(); + // clientlog(); ?> @@ -49,7 +49,7 @@
-

没有注册?                         去注册!

+

没有管理员账号?                 请联系超级管理员

diff --git a/http/admin/templates_c/e946c83f5008ad3e4c36e999094474b1b760af61_0.file.user_row.tpl.php b/http/admin/templates_c/e946c83f5008ad3e4c36e999094474b1b760af61_0.file.user_row.tpl.php old mode 100644 new mode 100755 diff --git a/http/index.php b/http/index.php old mode 100644 new mode 100755 index 3544882..8c26388 --- a/http/index.php +++ b/http/index.php @@ -2,7 +2,7 @@ //记录ip require_once "php/get_ip.php"; //日志 - clientlog(); + // clientlog(); ?> diff --git a/http/php/admin_signin.php b/http/php/admin_signin.php index a2ef2c4..3513a0e 100755 --- a/http/php/admin_signin.php +++ b/http/php/admin_signin.php @@ -1,4 +1,9 @@ 退出成功!'; - echo ''; +echo '

退出成功!

'; +echo ''; ?> \ No newline at end of file diff --git a/http/php/admin_signup.php b/http/php/admin_signup.php index e27bd35..7c4be1c 100755 --- a/http/php/admin_signup.php +++ b/http/php/admin_signup.php @@ -1,4 +1,9 @@ alert('数据输入不完整!');history.go(-1);"; exit; - } +} //连接数据库 - include "conn_db.php"; +include "conn_db.php"; //先检查该数据是否存在 - $sql = "select * from car where cid = '$cid'"; +$sql = "select * from car where cid = '$cid'"; //查询数据库 - $retval = mysqli_query( $conn, $sql ); - if(! $retval ) - { - die('1无法读取数据: ' . mysqli_error($conn)); - } - $num = mysqli_num_rows( $retval); - if(!$num) //没找到的的话 - { - echo ""; - exit; - } +$retval = mysqli_query($conn, $sql); +if (!$retval) { + die('1无法读取数据: ' . mysqli_error($conn)); +} +$num = mysqli_num_rows($retval); +if (!$num) //没找到的的话 +{ + echo ""; + exit; +} //删除 - $sql_delete = "DELETE FROM `car_rental`.`car` WHERE `cid`='$cid'"; - $retval = mysqli_query($conn, $sql_delete); - if (!$retval) { - die('2无法读取数据: ' . mysqli_error($conn)); - echo ""; - exit; - } +$sql_delete = "DELETE FROM `car_rental`.`car` WHERE `cid`='$cid'"; +$retval = mysqli_query($conn, $sql_delete); +if (!$retval) { + die('2无法读取数据: ' . mysqli_error($conn)); + echo ""; + exit; +} - echo ""; +echo ""; ?> \ No newline at end of file diff --git a/http/php/delete_rental.php b/http/php/delete_rental.php index 4f9842d..f33a4fa 100755 --- a/http/php/delete_rental.php +++ b/http/php/delete_rental.php @@ -1,4 +1,9 @@