@@ -92,12 +92,12 @@ discard block |
||
92 | 92 | $additional_settings = array(); |
93 | 93 | |
94 | 94 | /** |
95 | - * Event set personal settings |
|
96 | - * |
|
97 | - * @event phpbbgallery.core.ucp.set_settings_submit |
|
98 | - * @var array additional_settings array of additional settings |
|
99 | - * @since 1.2.0 |
|
100 | - */ |
|
95 | + * Event set personal settings |
|
96 | + * |
|
97 | + * @event phpbbgallery.core.ucp.set_settings_submit |
|
98 | + * @var array additional_settings array of additional settings |
|
99 | + * @since 1.2.0 |
|
100 | + */ |
|
101 | 101 | $vars = array('additional_settings'); |
102 | 102 | extract($this->dispatcher->trigger_event('phpbbgallery.core.ucp.set_settings_submit', compact($vars))); |
103 | 103 | |
@@ -118,11 +118,11 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * Event no submit personal settings |
|
122 | - * |
|
123 | - * @event phpbbgallery.core.ucp.set_settings_nosubmit |
|
124 | - * @since 1.2.0 |
|
125 | - */ |
|
121 | + * Event no submit personal settings |
|
122 | + * |
|
123 | + * @event phpbbgallery.core.ucp.set_settings_nosubmit |
|
124 | + * @since 1.2.0 |
|
125 | + */ |
|
126 | 126 | $this->dispatcher->dispatch('phpbbgallery.core.ucp.set_settings_nosubmit'); |
127 | 127 | |
128 | 128 | $this->template->assign_vars(array( |
@@ -389,10 +389,10 @@ discard block |
||
389 | 389 | generate_text_for_storage($album_data['album_desc'], $album_data['album_desc_uid'], $album_data['album_desc_bitfield'], $album_data['album_desc_options'], $request->variable('desc_parse_bbcode', false), $request->variable('desc_parse_urls', false), $request->variable('desc_parse_smilies', false)); |
390 | 390 | |
391 | 391 | /** |
392 | - * borrowed from phpBB3 |
|
393 | - * @author: phpBB Group |
|
394 | - * @location: acp_forums->manage_forums |
|
395 | - */ |
|
392 | + * borrowed from phpBB3 |
|
393 | + * @author: phpBB Group |
|
394 | + * @location: acp_forums->manage_forums |
|
395 | + */ |
|
396 | 396 | // Parent should always be filled otherwise we use initialise_album() |
397 | 397 | if ($album_data['parent_id']) |
398 | 398 | { |
@@ -833,13 +833,13 @@ discard block |
||
833 | 833 | } |
834 | 834 | |
835 | 835 | /** |
836 | - * Event delete user albums |
|
837 | - * |
|
838 | - * @event phpbbgallery.core.ucp.delete_album |
|
839 | - * @var int album_id Album ID |
|
840 | - * @var array deleted_albums Deleted album IDs |
|
841 | - * @since 1.2.0 |
|
842 | - */ |
|
836 | + * Event delete user albums |
|
837 | + * |
|
838 | + * @event phpbbgallery.core.ucp.delete_album |
|
839 | + * @var int album_id Album ID |
|
840 | + * @var array deleted_albums Deleted album IDs |
|
841 | + * @since 1.2.0 |
|
842 | + */ |
|
843 | 843 | $vars = array('album_id', 'deleted_albums'); |
844 | 844 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.core.ucp.delete_album', compact($vars))); |
845 | 845 |
@@ -13,23 +13,23 @@ discard block |
||
13 | 13 | class url |
14 | 14 | { |
15 | 15 | /** |
16 | - * Path from the gallery root, back to phpbb's root |
|
17 | - */ |
|
16 | + * Path from the gallery root, back to phpbb's root |
|
17 | + */ |
|
18 | 18 | private $phpbb_root_path = '../'; |
19 | 19 | |
20 | 20 | /** |
21 | - * Path from the phpbb root, into admin's root |
|
22 | - */ |
|
21 | + * Path from the phpbb root, into admin's root |
|
22 | + */ |
|
23 | 23 | private $phpbb_admin_path = 'adm/'; |
24 | 24 | |
25 | 25 | /** |
26 | - * Path from the phpbb root, into gallery's file root |
|
27 | - */ |
|
26 | + * Path from the phpbb root, into gallery's file root |
|
27 | + */ |
|
28 | 28 | private $phpbb_gallery_file_path = 'files/phpbbgallery/'; |
29 | 29 | |
30 | 30 | /** |
31 | - * Path from the phpbb root, into gallery's root |
|
32 | - */ |
|
31 | + * Path from the phpbb root, into gallery's root |
|
32 | + */ |
|
33 | 33 | private $phpbb_gallery_path = 'gallery/'; |
34 | 34 | |
35 | 35 | const IMAGE_PATH = 'images/'; |
@@ -223,16 +223,16 @@ discard block |
||
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |
226 | - * Creates beautiful relative path from ugly relative path |
|
227 | - * Resolves .. (up directory) |
|
228 | - * |
|
229 | - * @author bantu based on phpbb_own_realpath() by Chris Smith |
|
230 | - * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
|
231 | - * |
|
232 | - * @param string ugly path e.g. "../community/../gallery/" |
|
233 | - * @param bool is it a full url, so we need to fix teh http:// at the beginning? |
|
234 | - * @return string beautiful path e.g. "../gallery/" |
|
235 | - */ |
|
226 | + * Creates beautiful relative path from ugly relative path |
|
227 | + * Resolves .. (up directory) |
|
228 | + * |
|
229 | + * @author bantu based on phpbb_own_realpath() by Chris Smith |
|
230 | + * @license http://opensource.org/licenses/gpl-license.php GNU Public License |
|
231 | + * |
|
232 | + * @param string ugly path e.g. "../community/../gallery/" |
|
233 | + * @param bool is it a full url, so we need to fix teh http:// at the beginning? |
|
234 | + * @return string beautiful path e.g. "../gallery/" |
|
235 | + */ |
|
236 | 236 | static public function beautiful_path($path, $is_full_url = false) |
237 | 237 | { |
238 | 238 | // Remove any repeated slashes |
@@ -274,10 +274,10 @@ discard block |
||
274 | 274 | } |
275 | 275 | |
276 | 276 | /** |
277 | - * Custom meta_refresh implementation |
|
278 | - * @param int $time Time in seconds. |
|
279 | - * @param string $route Route generated by $helper->route |
|
280 | - */ |
|
277 | + * Custom meta_refresh implementation |
|
278 | + * @param int $time Time in seconds. |
|
279 | + * @param string $route Route generated by $helper->route |
|
280 | + */ |
|
281 | 281 | public function meta_refresh($time, $route) |
282 | 282 | { |
283 | 283 | // For XHTML compatibility we change back & to & |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | foreach ($images as $image_src) |
59 | 59 | { |
60 | 60 | /** |
61 | - * Import the images |
|
62 | - */ |
|
61 | + * Import the images |
|
62 | + */ |
|
63 | 63 | |
64 | 64 | $image_src = str_replace("{{$import_schema}}", "'", $image_src); |
65 | 65 | $image_src_full = $gallery_url->path('import') . utf8_decode($image_src); |
@@ -153,21 +153,21 @@ discard block |
||
153 | 153 | $file_link = $gallery_url->path('upload') . $image_filename; |
154 | 154 | |
155 | 155 | /** |
156 | - * Event to trigger before mass update |
|
157 | - * |
|
158 | - * @event phpbbgallery.acpimport.update_image_before |
|
159 | - * @var array additional_sql_data array of additional sql_data |
|
160 | - * @var string file_link String with real file link |
|
161 | - * @since 1.2.0 |
|
162 | - */ |
|
156 | + * Event to trigger before mass update |
|
157 | + * |
|
158 | + * @event phpbbgallery.acpimport.update_image_before |
|
159 | + * @var array additional_sql_data array of additional sql_data |
|
160 | + * @var string file_link String with real file link |
|
161 | + * @since 1.2.0 |
|
162 | + */ |
|
163 | 163 | $vars = array('additional_sql_data', 'file_link'); |
164 | 164 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.acpimport.update_image_before', compact($vars))); |
165 | 165 | |
166 | 166 | if (($filetype[0] > $gallery_config->get('max_width')) || ($filetype[1] > $gallery_config->get('max_height'))) |
167 | 167 | { |
168 | 168 | /** |
169 | - * Resize overside images |
|
170 | - */ |
|
169 | + * Resize overside images |
|
170 | + */ |
|
171 | 171 | if ($gallery_config->get('allow_resize')) |
172 | 172 | { |
173 | 173 | $image_tools->resize_image($gallery_config->get('max_width'), $gallery_config->get('max_height')); |
@@ -180,13 +180,13 @@ discard block |
||
180 | 180 | $file_updated = (bool) $image_tools->resized; |
181 | 181 | |
182 | 182 | /** |
183 | - * Event to trigger before mass update |
|
184 | - * |
|
185 | - * @event phpbbgallery.acpimport.update_image |
|
186 | - * @var array additional_sql_data array of additional sql_data |
|
187 | - * @var bool file_updated is file resized |
|
188 | - * @since 1.2.0 |
|
189 | - */ |
|
183 | + * Event to trigger before mass update |
|
184 | + * |
|
185 | + * @event phpbbgallery.acpimport.update_image |
|
186 | + * @var array additional_sql_data array of additional sql_data |
|
187 | + * @var bool file_updated is file resized |
|
188 | + * @since 1.2.0 |
|
189 | + */ |
|
190 | 190 | $vars = array('additional_sql_data', 'file_updated'); |
191 | 191 | extract($phpbb_dispatcher->trigger_event('phpbbgallery.acpimport.update_image', compact($vars))); |
192 | 192 |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * Delete source files without a database entry. |
|
93 | - * |
|
94 | - * @param array $filenames An array of filenames |
|
95 | - * @return string Language key for the success message. |
|
96 | - */ |
|
92 | + * Delete source files without a database entry. |
|
93 | + * |
|
94 | + * @param array $filenames An array of filenames |
|
95 | + * @return string Language key for the success message. |
|
96 | + */ |
|
97 | 97 | public function delete_files($filenames) |
98 | 98 | { |
99 | 99 | foreach ($filenames as $file) |
@@ -106,11 +106,11 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
109 | - * Delete images, where the source file is missing. |
|
110 | - * |
|
111 | - * @param mixed $image_ids Either an array of integers or an integer. |
|
112 | - * @return string Language key for the success message. |
|
113 | - */ |
|
109 | + * Delete images, where the source file is missing. |
|
110 | + * |
|
111 | + * @param mixed $image_ids Either an array of integers or an integer. |
|
112 | + * @return string Language key for the success message. |
|
113 | + */ |
|
114 | 114 | public function delete_images($image_ids) |
115 | 115 | { |
116 | 116 | $this->log->add_log('admin', 'clean_deleteentries', 0, 0, array('LOG_CLEANUP_DELETE_ENTRIES', count($image_ids))); |
@@ -120,11 +120,11 @@ discard block |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
123 | - * Delete images, where the author is missing. |
|
124 | - * |
|
125 | - * @param mixed $image_ids Either an array of integers or an integer. |
|
126 | - * @return string Language key for the success message. |
|
127 | - */ |
|
123 | + * Delete images, where the author is missing. |
|
124 | + * |
|
125 | + * @param mixed $image_ids Either an array of integers or an integer. |
|
126 | + * @return string Language key for the success message. |
|
127 | + */ |
|
128 | 128 | public function delete_author_images($image_ids) |
129 | 129 | { |
130 | 130 | $this->log->add_log('admin', 'clean_deletenoauthors', 0, 0, array('LOG_CLEANUP_DELETE_NO_AUTHOR', count($image_ids))); |
@@ -134,11 +134,11 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * Delete comments, where the author is missing. |
|
138 | - * |
|
139 | - * @param mixed $comment_ids Either an array of integers or an integer. |
|
140 | - * @return string Language key for the success message. |
|
141 | - */ |
|
137 | + * Delete comments, where the author is missing. |
|
138 | + * |
|
139 | + * @param mixed $comment_ids Either an array of integers or an integer. |
|
140 | + * @return string Language key for the success message. |
|
141 | + */ |
|
142 | 142 | public function delete_author_comments($comment_ids) |
143 | 143 | { |
144 | 144 | $this->log->add_log('admin', 'clean_deletecna', 0, 0, array('LOG_CLEANUP_COMMENT_DELETE_NO_AUTHOR', count($comment_ids))); |
@@ -148,12 +148,12 @@ discard block |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * Delete unwanted and obsolent personal galleries. |
|
152 | - * |
|
153 | - * @param array $unwanted_pegas User IDs we want to delete the pegas. |
|
154 | - * @param array $obsolent_pegas User IDs we want to delete the pegas. |
|
155 | - * @return array Language keys for the success messages. |
|
156 | - */ |
|
151 | + * Delete unwanted and obsolent personal galleries. |
|
152 | + * |
|
153 | + * @param array $unwanted_pegas User IDs we want to delete the pegas. |
|
154 | + * @param array $obsolent_pegas User IDs we want to delete the pegas. |
|
155 | + * @return array Language keys for the success messages. |
|
156 | + */ |
|
157 | 157 | public function delete_pegas($unwanted_pegas, $obsolent_pegas) |
158 | 158 | { |
159 | 159 | |
@@ -284,8 +284,8 @@ discard block |
||
284 | 284 | } |
285 | 285 | |
286 | 286 | /** |
287 | - * |
|
288 | - */ |
|
287 | + * |
|
288 | + */ |
|
289 | 289 | public function prune($pattern) |
290 | 290 | { |
291 | 291 | $sql_where = ''; |
@@ -329,8 +329,8 @@ discard block |
||
329 | 329 | } |
330 | 330 | |
331 | 331 | /** |
332 | - * |
|
333 | - */ |
|
332 | + * |
|
333 | + */ |
|
334 | 334 | public function lang_prune_pattern($pattern) |
335 | 335 | { |
336 | 336 | if (isset($pattern['image_album_id'])) |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | $action = $request->variable('action', ''); |
52 | 52 | |
53 | 53 | /** |
54 | - * All our beautiful permissions |
|
55 | - */ |
|
54 | + * All our beautiful permissions |
|
55 | + */ |
|
56 | 56 | if (!isset($permissions)) |
57 | 57 | { |
58 | 58 | $permissions = new \stdClass(); |
@@ -703,12 +703,12 @@ discard block |
||
703 | 703 | $coal = $gallery_cache->get('albums'); |
704 | 704 | |
705 | 705 | /** |
706 | - * Grab the permissions |
|
707 | - * |
|
708 | - * includes/acp/acp_permissions.php says: |
|
709 | - * // We obtain and check $_POST['setting'][$ug_id][$forum_id] directly and not using request_var() because request_var() |
|
710 | - * // currently does not support the amount of dimensions required. ;) |
|
711 | - */ |
|
706 | + * Grab the permissions |
|
707 | + * |
|
708 | + * includes/acp/acp_permissions.php says: |
|
709 | + * // We obtain and check $_POST['setting'][$ug_id][$forum_id] directly and not using request_var() because request_var() |
|
710 | + * // currently does not support the amount of dimensions required. ;) |
|
711 | + */ |
|
712 | 712 | // $auth_settings = request_var('setting', array(0 => array(0 => array('' => 0)))); |
713 | 713 | $requests = $request->variable('setting', array(0 => array(0 => array('' => 0)))); |
714 | 714 | $p_mask_count = 0; |
@@ -762,8 +762,8 @@ discard block |
||
762 | 762 | } |
763 | 763 | } |
764 | 764 | /** |
765 | - * Inherit the permissions |
|
766 | - */ |
|
765 | + * Inherit the permissions |
|
766 | + */ |
|
767 | 767 | $inherit = $request->variable('setting', array(0 => array('' => 0))); |
768 | 768 | foreach ($inherit as $c_mask => $v_sets) |
769 | 769 | { |
@@ -993,8 +993,8 @@ discard block |
||
993 | 993 | } |
994 | 994 | |
995 | 995 | /** |
996 | - * Handles copying permissions from one album to others |
|
997 | - */ |
|
996 | + * Handles copying permissions from one album to others |
|
997 | + */ |
|
998 | 998 | private function copy_album_permissions() |
999 | 999 | { |
1000 | 1000 | global $cache, $db, $template, $user, $table_prefix, $phpbb_dispatcher, $table_name, $users_table, $phpbb_container; |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | protected $table_images; |
20 | 20 | |
21 | 21 | /** |
22 | - * cache constructor. |
|
23 | - * @param \phpbb\cache\service $cache |
|
24 | - * @param \phpbb\db\driver\driver_interface $db |
|
25 | - * @param $albums_table |
|
26 | - * @param $images_table |
|
27 | - */ |
|
22 | + * cache constructor. |
|
23 | + * @param \phpbb\cache\service $cache |
|
24 | + * @param \phpbb\db\driver\driver_interface $db |
|
25 | + * @param $albums_table |
|
26 | + * @param $images_table |
|
27 | + */ |
|
28 | 28 | public function __construct(\phpbb\cache\service $cache, \phpbb\db\driver\driver_interface $db, |
29 | 29 | $albums_table, $images_table) |
30 | 30 | { |
@@ -155,18 +155,18 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * Destroy images cache - if we had updated image information or we want other set - we will have to destroy cache |
|
159 | - */ |
|
158 | + * Destroy images cache - if we had updated image information or we want other set - we will have to destroy cache |
|
159 | + */ |
|
160 | 160 | public function destroy_images() |
161 | 161 | { |
162 | 162 | $this->phpbb_cache->destroy('_images'); |
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
166 | - * Destroy album cache |
|
167 | - * Basicly some tests fail due album cache not destroyed ... |
|
168 | - * So lets try it now? |
|
169 | - */ |
|
166 | + * Destroy album cache |
|
167 | + * Basicly some tests fail due album cache not destroyed ... |
|
168 | + * So lets try it now? |
|
169 | + */ |
|
170 | 170 | public function destroy_albums() |
171 | 171 | { |
172 | 172 | $this->phpbb_cache->destroy('_albums'); |