@@ -17,10 +17,10 @@ |
||
17 | 17 | $_SESSION['foo'] = 'bar'; |
18 | 18 | |
19 | 19 | $fb = new Facebook\Facebook([ |
20 | - 'app_id' => $config['auth']['facebook']['appId'], |
|
21 | - 'app_secret' => $config['auth']['facebook']['appSecret'], |
|
22 | - 'default_graph_version' => 'v2.2', |
|
23 | - ]); |
|
20 | + 'app_id' => $config['auth']['facebook']['appId'], |
|
21 | + 'app_secret' => $config['auth']['facebook']['appSecret'], |
|
22 | + 'default_graph_version' => 'v2.2', |
|
23 | + ]); |
|
24 | 24 | |
25 | 25 | $helper = $fb->getRedirectLoginHelper(); |
26 | 26 |
@@ -52,8 +52,8 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | // After we have inserted the data, we want to head back to the main users page |
55 | - header('Location: bandskills.php'); // Move to the home page of the admin section |
|
56 | - exit; |
|
55 | + header('Location: bandskills.php'); // Move to the home page of the admin section |
|
56 | + exit; |
|
57 | 57 | } |
58 | 58 | include 'includes/header.php'; |
59 | 59 | ?> |
@@ -5,18 +5,18 @@ |
||
5 | 5 | include 'includes/config.php'; |
6 | 6 | include 'includes/functions.php'; |
7 | 7 | |
8 | - // you have to open the session first |
|
9 | - session_start(); |
|
8 | + // you have to open the session first |
|
9 | + session_start(); |
|
10 | 10 | |
11 | 11 | //if ($debug) notifyInfo(__FILE__,"logout",$_SESSION['userid']); //only_for_testing// |
12 | 12 | if ($debug) { |
13 | 13 | insertStatistics('user', __FILE__, 'logout'); |
14 | 14 | } |
15 | 15 | |
16 | - //remove all the variables in the session |
|
17 | - session_unset(); |
|
16 | + //remove all the variables in the session |
|
17 | + session_unset(); |
|
18 | 18 | |
19 | - // destroy the session |
|
20 | - session_destroy(); |
|
19 | + // destroy the session |
|
20 | + session_destroy(); |
|
21 | 21 | |
22 | - header('Location: login.php'); |
|
22 | + header('Location: login.php'); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | public function getUpSQL() |
41 | 41 | { |
42 | 42 | return [ |
43 | - 'default' => ' |
|
43 | + 'default' => ' |
|
44 | 44 | # This is a fix for InnoDB in MySQL >= 4.1.x |
45 | 45 | # It "suspends judgement" for fkey relationships until are tables are set. |
46 | 46 | SET FOREIGN_KEY_CHECKS = 0; |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | public function getDownSQL() |
173 | 173 | { |
174 | 174 | return [ |
175 | - 'default' => ' |
|
175 | + 'default' => ' |
|
176 | 176 | # This is a fix for InnoDB in MySQL >= 4.1.x |
177 | 177 | # It "suspends judgement" for fkey relationships until are tables are set. |
178 | 178 | SET FOREIGN_KEY_CHECKS = 0; |
@@ -19,11 +19,11 @@ |
||
19 | 19 | { |
20 | 20 | return EventQuery::create() |
21 | 21 | ->useEventPersonQuery() |
22 | - ->useUserRoleQuery() |
|
22 | + ->useUserRoleQuery() |
|
23 | 23 | ->useRoleQuery() |
24 | - ->filterByGroup($this) |
|
24 | + ->filterByGroup($this) |
|
25 | + ->endUse() |
|
25 | 26 | ->endUse() |
26 | - ->endUse() |
|
27 | 27 | ->endUse() |
28 | 28 | ->orderByDate('desc') |
29 | 29 | ->findOne(); |
@@ -7,18 +7,18 @@ discard block |
||
7 | 7 | $serviceContainer->setAdapterClass('default', 'mysql'); |
8 | 8 | $manager = new \Propel\Runtime\Connection\ConnectionManagerSingle(); |
9 | 9 | $manager->setConfiguration([ |
10 | - 'classname' => 'Propel\\Runtime\\Connection\\ConnectionWrapper', |
|
11 | - 'dsn' => 'mysql:host='.$config['db']['host'].';dbname='.$config['db']['dbname'], |
|
12 | - 'user' => $config['db']['user'], |
|
13 | - 'password' => $config['db']['pass'], |
|
14 | - 'attributes' => [ |
|
10 | + 'classname' => 'Propel\\Runtime\\Connection\\ConnectionWrapper', |
|
11 | + 'dsn' => 'mysql:host='.$config['db']['host'].';dbname='.$config['db']['dbname'], |
|
12 | + 'user' => $config['db']['user'], |
|
13 | + 'password' => $config['db']['pass'], |
|
14 | + 'attributes' => [ |
|
15 | 15 | 'ATTR_EMULATE_PREPARES' => false, |
16 | 16 | 'ATTR_TIMEOUT' => 30, |
17 | - ], |
|
18 | - 'model_paths' => [ |
|
17 | + ], |
|
18 | + 'model_paths' => [ |
|
19 | 19 | 0 => 'src', |
20 | 20 | 1 => 'vendor', |
21 | - ], |
|
21 | + ], |
|
22 | 22 | ]); |
23 | 23 | $manager->setName('default'); |
24 | 24 | $serviceContainer->setConnectionManager('default', $manager); |
@@ -26,16 +26,16 @@ discard block |
||
26 | 26 | $serviceContainer->setAdapterClass('test', 'sqlite'); |
27 | 27 | $manager = new \Propel\Runtime\Connection\ConnectionManagerSingle(); |
28 | 28 | $manager->setConfiguration([ |
29 | - 'classname' => 'Propel\\Runtime\\Connection\\ConnectionWrapper', |
|
30 | - 'dsn' => 'sqlite:/var/tmp/test.db', |
|
31 | - 'attributes' => [ |
|
29 | + 'classname' => 'Propel\\Runtime\\Connection\\ConnectionWrapper', |
|
30 | + 'dsn' => 'sqlite:/var/tmp/test.db', |
|
31 | + 'attributes' => [ |
|
32 | 32 | 'ATTR_EMULATE_PREPARES' => false, |
33 | 33 | 'ATTR_TIMEOUT' => 30, |
34 | - ], |
|
35 | - 'model_paths' => [ |
|
34 | + ], |
|
35 | + 'model_paths' => [ |
|
36 | 36 | 0 => 'src', |
37 | 37 | 1 => 'vendor', |
38 | - ], |
|
38 | + ], |
|
39 | 39 | ]); |
40 | 40 | $manager->setName('test'); |
41 | 41 | $serviceContainer->setConnectionManager('test', $manager); |
@@ -28,13 +28,13 @@ |
||
28 | 28 | $currentTimestamp = $date = strftime('%F %T', time()); |
29 | 29 | |
30 | 30 | $data = [ |
31 | - ['field' => 'name', 'type' => 'string', 'value' => $this->name], |
|
32 | - ['field' => 'date', 'type' => 'string', 'value' => $this->datetime], |
|
33 | - ['field' => 'eventGroup', 'type' => 'int', 'value' => $this->series->getId()], |
|
34 | - ['field' => 'type', 'type' => 'int', 'value' => $this->type->getId()], |
|
35 | - ['field' => 'subType', 'type' => 'int', 'value' => $this->sub_type->getId()], |
|
36 | - ['field' => 'location', 'type' => 'int', 'value' => $this->location->getId()], |
|
37 | - ['field' => 'created', 'type' => 'datetime', 'value' => $currentTimestamp], |
|
31 | + ['field' => 'name', 'type' => 'string', 'value' => $this->name], |
|
32 | + ['field' => 'date', 'type' => 'string', 'value' => $this->datetime], |
|
33 | + ['field' => 'eventGroup', 'type' => 'int', 'value' => $this->series->getId()], |
|
34 | + ['field' => 'type', 'type' => 'int', 'value' => $this->type->getId()], |
|
35 | + ['field' => 'subType', 'type' => 'int', 'value' => $this->sub_type->getId()], |
|
36 | + ['field' => 'location', 'type' => 'int', 'value' => $this->location->getId()], |
|
37 | + ['field' => 'created', 'type' => 'datetime', 'value' => $currentTimestamp], |
|
38 | 38 | ]; |
39 | 39 | |
40 | 40 | if (isset($this->notes)) { |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | $data = [ |
23 | - ['field' => 'name', 'type' => 'string', 'value' => $this->name], |
|
24 | - ['field' => 'description', 'type' => 'string', 'value' => $this->description], |
|
23 | + ['field' => 'name', 'type' => 'string', 'value' => $this->name], |
|
24 | + ['field' => 'description', 'type' => 'string', 'value' => $this->description], |
|
25 | 25 | ]; |
26 | 26 | |
27 | 27 | $db->insert($this->db_table, $data); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | $whereCondition = 'id = '.$id; |
41 | 41 | $where = [ |
42 | - $whereCondition, |
|
42 | + $whereCondition, |
|
43 | 43 | ]; |
44 | 44 | |
45 | 45 | if ($db->delete($this->db_table, $where)) { |
@@ -59,14 +59,14 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | $columns = [ |
62 | - 'id', |
|
63 | - 'name', |
|
64 | - 'description', |
|
62 | + 'id', |
|
63 | + 'name', |
|
64 | + 'description', |
|
65 | 65 | ]; |
66 | 66 | |
67 | 67 | $whereCondition = 'id = '.$id; |
68 | 68 | $where = [ |
69 | - $whereCondition, |
|
69 | + $whereCondition, |
|
70 | 70 | ]; |
71 | 71 | |
72 | 72 | $result = $db->selectSingle('Type', $this->db_table, $columns, $where); |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | } |
21 | 21 | |
22 | 22 | $data = [ |
23 | - ['field' => 'name', 'type' => 'string', 'value' => $this->name], |
|
24 | - ['field' => 'description', 'type' => 'string', 'value' => $this->description], |
|
23 | + ['field' => 'name', 'type' => 'string', 'value' => $this->name], |
|
24 | + ['field' => 'description', 'type' => 'string', 'value' => $this->description], |
|
25 | 25 | ]; |
26 | 26 | |
27 | 27 | $db->insert($this->db_table, $data); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | $whereCondition = 'id = '.$id; |
44 | 44 | $where = [ |
45 | - $whereCondition, |
|
45 | + $whereCondition, |
|
46 | 46 | ]; |
47 | 47 | |
48 | 48 | if ($db->delete($this->db_table, $where)) { |
@@ -62,14 +62,14 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | $columns = [ |
65 | - 'id', |
|
66 | - 'name', |
|
67 | - 'description', |
|
65 | + 'id', |
|
66 | + 'name', |
|
67 | + 'description', |
|
68 | 68 | ]; |
69 | 69 | |
70 | 70 | $whereCondition = 'id = '.$id; |
71 | 71 | $where = [ |
72 | - $whereCondition, |
|
72 | + $whereCondition, |
|
73 | 73 | ]; |
74 | 74 | |
75 | 75 | $result = $db->selectSingle('SubType', $this->db_table, $columns, $where); |