@@ -14,8 +14,7 @@ discard block |
||
14 | 14 | // set the current action |
15 | 15 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view'; |
16 | 16 | |
17 | -if (isset($_REQUEST["id"])) |
|
18 | -{ |
|
17 | +if (isset($_REQUEST["id"])) { |
|
19 | 18 | $id = $_REQUEST["id"]; |
20 | 19 | $mus = $music->getMusicInfo($id); |
21 | 20 | |
@@ -23,17 +22,14 @@ discard block |
||
23 | 22 | $page->show404(); |
24 | 23 | } |
25 | 24 | |
26 | - switch($action) |
|
27 | - { |
|
25 | + switch($action) { |
|
28 | 26 | case 'submit': |
29 | 27 | $coverLoc = WWW_DIR."covers/music/".$id.'.jpg'; |
30 | 28 | |
31 | - if($_FILES['cover']['size'] > 0) |
|
32 | - { |
|
29 | + if($_FILES['cover']['size'] > 0) { |
|
33 | 30 | $tmpName = $_FILES['cover']['tmp_name']; |
34 | 31 | $file_info = getimagesize($tmpName); |
35 | - if(!empty($file_info)) |
|
36 | - { |
|
32 | + if(!empty($file_info)) { |
|
37 | 33 | move_uploaded_file($_FILES['cover']['tmp_name'], $coverLoc); |
38 | 34 | } |
39 | 35 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | $admin = new AdminPage; |
9 | 9 | $regex = new ReleaseRegex(); |
10 | 10 | |
11 | -if (isset($_GET['action']) && $_GET['action'] == "2") |
|
12 | -{ |
|
11 | +if (isset($_GET['action']) && $_GET['action'] == "2") { |
|
13 | 12 | $id = (int)$_GET['regex_id']; |
14 | 13 | $regex->delete($id); |
15 | 14 | print "Regex $id deleted."; |
@@ -6,8 +6,7 @@ |
||
6 | 6 | |
7 | 7 | $page = new AdminPage(); |
8 | 8 | |
9 | -if (isset($_GET['id'])) |
|
10 | -{ |
|
9 | +if (isset($_GET['id'])) { |
|
11 | 10 | $users = new Users(); |
12 | 11 | $users->deleteRole($_GET['id']); |
13 | 12 | } |
@@ -6,8 +6,7 @@ |
||
6 | 6 | |
7 | 7 | $page = new AdminPage(); |
8 | 8 | |
9 | -if (isset($_GET['id'])) |
|
10 | -{ |
|
9 | +if (isset($_GET['id'])) { |
|
11 | 10 | $users = new Users(); |
12 | 11 | $users->deleteRole($_GET['id']); |
13 | 12 | } |
@@ -6,8 +6,7 @@ |
||
6 | 6 | |
7 | 7 | $page = new AdminPage(); |
8 | 8 | |
9 | -if (isset($_GET['id'])) |
|
10 | -{ |
|
9 | +if (isset($_GET['id'])) { |
|
11 | 10 | $users = new Users(); |
12 | 11 | $users->deleteRole($_GET['id']); |
13 | 12 | } |
@@ -10,8 +10,7 @@ |
||
10 | 10 | // set the current action |
11 | 11 | $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'view'; |
12 | 12 | |
13 | -switch($action) |
|
14 | -{ |
|
13 | +switch($action) { |
|
15 | 14 | case 'submit': |
16 | 15 | if (isset($_POST['groupfilter']) && !empty($_POST['groupfilter'])) { |
17 | 16 | $groups = new Groups; |
@@ -6,8 +6,7 @@ |
||
6 | 6 | |
7 | 7 | $page = new AdminPage(); |
8 | 8 | |
9 | -if (isset($_GET['id'])) |
|
10 | -{ |
|
9 | +if (isset($_GET['id'])) { |
|
11 | 10 | $users = new Users(); |
12 | 11 | $users->deleteRole($_GET['id']); |
13 | 12 | } |