@@ -27,28 +27,28 @@ discard block |
||
27 | 27 | 'Event Registration'=>'https://secure.burningflipside.com/register/event_reg.php' |
28 | 28 | )); |
29 | 29 | |
30 | - if($this->secure_root === false || strlen($this->secure_root) === 0) |
|
30 | + if ($this->secure_root === false || strlen($this->secure_root) === 0) |
|
31 | 31 | { |
32 | 32 | $this->secure_root = '/'; |
33 | 33 | } |
34 | - else if($this->secure_root[strlen($this->secure_root)-1] !== '/') |
|
34 | + else if ($this->secure_root[strlen($this->secure_root)-1] !== '/') |
|
35 | 35 | { |
36 | - $this->secure_root.= '/'; |
|
36 | + $this->secure_root .= '/'; |
|
37 | 37 | } |
38 | 38 | $this->add_secure_css(); |
39 | 39 | $this->add_secure_script(); |
40 | 40 | $this->add_login_form(); |
41 | - $this->body_tags='data-login-url="'.$this->secure_root.'api/v1/login"'; |
|
41 | + $this->body_tags = 'data-login-url="'.$this->secure_root.'api/v1/login"'; |
|
42 | 42 | $plugin_files = glob($script_dir.'/*/plugin.php'); |
43 | 43 | $count = count($plugin_files); |
44 | - for($i = 0; $i < $count; $i++) |
|
44 | + for ($i = 0; $i < $count; $i++) |
|
45 | 45 | { |
46 | 46 | include($plugin_files[$i]); |
47 | 47 | } |
48 | 48 | $this->plugins = array(); |
49 | - foreach(get_declared_classes() as $class) |
|
49 | + foreach (get_declared_classes() as $class) |
|
50 | 50 | { |
51 | - if(is_subclass_of($class, 'SecurePlugin')) |
|
51 | + if (is_subclass_of($class, 'SecurePlugin')) |
|
52 | 52 | { |
53 | 53 | $this->plugins[] = new $class(); |
54 | 54 | } |
@@ -69,13 +69,13 @@ discard block |
||
69 | 69 | |
70 | 70 | function add_links() |
71 | 71 | { |
72 | - if($this->user !== false) |
|
72 | + if ($this->user !== false) |
|
73 | 73 | { |
74 | 74 | $secure_menu = array(); |
75 | - for($i = 0; $i < $this->plugin_count; $i++) |
|
75 | + for ($i = 0; $i < $this->plugin_count; $i++) |
|
76 | 76 | { |
77 | 77 | $ret = $this->plugins[$i]->get_secure_menu_entries($this, $this->user); |
78 | - if($ret !== false) |
|
78 | + if ($ret !== false) |
|
79 | 79 | { |
80 | 80 | $ret["<hr id='hr_$i'/>"] = false; |
81 | 81 | $secure_menu = array_merge($secure_menu, $ret); |
@@ -89,12 +89,12 @@ discard block |
||
89 | 89 | function get_secure_child_entry_points() |
90 | 90 | { |
91 | 91 | $entry_points = ''; |
92 | - for($i = 0; $i < $this->plugin_count; $i++) |
|
92 | + for ($i = 0; $i < $this->plugin_count; $i++) |
|
93 | 93 | { |
94 | 94 | $ret = $this->plugins[$i]->get_plugin_entry_point(); |
95 | - if($ret !== false) |
|
95 | + if ($ret !== false) |
|
96 | 96 | { |
97 | - $entry_points .= '<li>'.$this->createLink($ret['name'],$ret['link']).'</li>'; |
|
97 | + $entry_points .= '<li>'.$this->createLink($ret['name'], $ret['link']).'</li>'; |
|
98 | 98 | } |
99 | 99 | } |
100 | 100 | return $entry_points; |