Skip to content

Commit 3528e1b

Browse files
committed
整理原始碼
新增購物車 AJAX 補強(改按鈕)
1 parent 754376c commit 3528e1b

39 files changed

+725
-559
lines changed

_changuserdata.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

admin/add_product.php

Whitespace-only changes.

admin/categories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include("connect.php");
2+
include("./../util/connect.php");
33

44
$debug = true;
55

@@ -65,7 +65,7 @@ function recurseOnCategory(array &$category)
6565

6666
unset($category);
6767

68-
include("close.php");
68+
include("./../util/close.php");
6969
?>
7070

7171
<!DOCTYPE html>

admin/close.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

admin/connect.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

admin/delete_categories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
include("connect.php");
2+
include("./../util/connect.php");
33
if (isset($_GET['id']))
44
{
55
$sql ="delete from categories where id=".intval($_GET['id']); //刪除資料
66
}
77
mysqli_query($mysqli, $sql);
88
header( "location:categories.php");
9-
include("close.php");
9+
include("./../util/close.php");
1010
?>

admin/delete_img.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include("connect.php");
2+
include("./../util/connect.php");
33
if (isset($_GET['id']))
44
{
55
$result = $mysqli -> query("select * from images where id = " . intval($_GET['id']));
@@ -13,5 +13,5 @@
1313
echo "無法修改。";
1414
echo mysqli_error($mysqli);
1515
}
16-
include("close.php");
16+
include("./../util/close.php");
1717
?>

admin/delete_post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
include("connect.php");
2+
include("./../util/connect.php");
33
if (isset($_GET['id']))
44
{
55
$sql ="delete from posts where id=".intval($_GET['id']); //刪除資料
66
}
77
mysqli_query($mysqli, $sql);
88
header( "location:posts.php");
9-
include("close.php");
9+
include("./../util/close.php");
1010
?>

admin/edit_category.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include("connect.php");
2+
include("./../util/connect.php");
33

44
if (isset($_GET['id']))
55
{
@@ -28,7 +28,7 @@
2828

2929

3030

31-
include("close.php");
31+
include("./../util/close.php");
3232
?>
3333
<!DOCTYPE html>
3434
<html>

admin/edit_post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include("connect.php");
2+
include("./../util/connect.php");
33
/*if($_SERVER['REQUEST_METHOD'] == 'POST'){
44
55
}*/
@@ -58,7 +58,7 @@
5858
</div>
5959
<button class="ui button" type="submit">編輯</button>
6060
<?php
61-
include("close.php");
61+
include("./../util/close.php");
6262
?>
6363
</form>
6464
</div>

0 commit comments

Comments
 (0)