@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | $this->template->assign_block_vars('commentrow', array( |
| 311 | 311 | 'COMMENT_ID' => (int) $var['comment_id'], |
| 312 | 312 | 'U_DELETE' => ($this->gallery_auth->acl_check('m_comments', $album_tmp['album_id'], $album_tmp['album_user_id']) || ($this->gallery_auth->acl_check('c_delete', $album_tmp['album_id'], $album_tmp['album_user_id']) && ($var['comment_user_id'] == $this->user->data['user_id']) && $this->user->data['is_registered'])) ? $this->helper->route('phpbbgallery_core_comment_delete', array('image_id' => $var['comment_image_id'], 'comment_id' => $var['comment_id'])) : false, |
| 313 | - 'U_EDIT' => $this->gallery_auth->acl_check('c_edit', $album_tmp['album_id'], $album_tmp['album_user_id'])? $this->helper->route('phpbbgallery_core_comment_edit', array('image_id' => $var['comment_image_id'], 'comment_id' => $var['comment_id'])) : false, |
|
| 313 | + 'U_EDIT' => $this->gallery_auth->acl_check('c_edit', $album_tmp['album_id'], $album_tmp['album_user_id']) ? $this->helper->route('phpbbgallery_core_comment_edit', array('image_id' => $var['comment_image_id'], 'comment_id' => $var['comment_id'])) : false, |
|
| 314 | 314 | 'U_QUOTE' => ($this->gallery_auth->acl_check('c_post', $album_tmp['album_id'], $album_tmp['album_user_id'])) ? $this->helper->route('phpbbgallery_core_comment_add', array('image_id' => $var['comment_image_id'], 'comment_id' => $var['comment_id'])) : false, |
| 315 | 315 | 'U_COMMENT' => $this->helper->route('phpbbgallery_core_image', array('image_id' => $var['comment_image_id'])) . '#comment_' . $var['comment_id'], |
| 316 | 316 | 'POST_AUTHOR_FULL' => $this->user_loader->get_username($var['comment_user_id'], 'full'), |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | if ($user > 0) |
| 444 | 444 | { |
| 445 | 445 | $this->template->assign_block_vars('imageblock', array( |
| 446 | - 'BLOCK_NAME' => $block_name ? $block_name : '' , |
|
| 446 | + 'BLOCK_NAME' => $block_name ? $block_name : '', |
|
| 447 | 447 | 'U_BLOCK' => $u_block ? $u_block : $this->helper->route('phpbbgallery_core_search_egosearch'), |
| 448 | 448 | )); |
| 449 | 449 | } |
@@ -543,7 +543,7 @@ discard block |
||
| 543 | 543 | $this->db->sql_freeresult($result); |
| 544 | 544 | $count = $row['count']; |
| 545 | 545 | $sql_array['SELECT'] = '* , a.album_name, a.album_status, a.album_user_id, a.album_id'; |
| 546 | - $sql_array['LEFT_JOIN'] = array( |
|
| 546 | + $sql_array['LEFT_JOIN'] = array( |
|
| 547 | 547 | array( |
| 548 | 548 | 'FROM' => array($this->albums_table => 'a'), |
| 549 | 549 | 'ON' => 'a.album_id = i.image_album_id', |
@@ -62,16 +62,16 @@ discard block |
||
| 62 | 62 | * @param $php_ext |
| 63 | 63 | */ |
| 64 | 64 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\event\dispatcher $dispatcher, \phpbb\user $user, |
| 65 | - \phpbb\profilefields\manager $user_cpf, \phpbb\config\config $config, \phpbb\auth\auth $auth, |
|
| 65 | + \phpbb\profilefields\manager $user_cpf, \phpbb\config\config $config, \phpbb\auth\auth $auth, |
|
| 66 | 66 | $table_name, $root_path, $php_ext) |
| 67 | 67 | { |
| 68 | 68 | $this->db = $db; |
| 69 | - $this->dispatcher = $dispatcher; |
|
| 69 | + $this->dispatcher = $dispatcher; |
|
| 70 | 70 | $this->user = $user; |
| 71 | 71 | $this->user_cpf = $user_cpf; |
| 72 | 72 | $this->config = $config; |
| 73 | 73 | $this->auth = $auth; |
| 74 | - $this->gallery_users_table = $table_name; |
|
| 74 | + $this->gallery_users_table = $table_name; |
|
| 75 | 75 | $this->root_path = $root_path; |
| 76 | 76 | $this->php_ext = $php_ext; |
| 77 | 77 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function set_user_id($user_id, $load = true) |
| 86 | 86 | { |
| 87 | - $this->user_id = (int) $user_id; |
|
| 87 | + $this->user_id = (int) $user_id; |
|
| 88 | 88 | if ($load) |
| 89 | 89 | { |
| 90 | 90 | $this->load_data(); |
@@ -107,15 +107,15 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function load_data() |
| 109 | 109 | { |
| 110 | - $this->entry_exists = false; |
|
| 110 | + $this->entry_exists = false; |
|
| 111 | 111 | $sql = 'SELECT * |
| 112 | 112 | FROM ' . $this->gallery_users_table . ' |
| 113 | 113 | WHERE user_id = ' . (int) $this->user_id; |
| 114 | 114 | $result = $this->db->sql_query($sql, 30); |
| 115 | 115 | if ($row = $this->db->sql_fetchrow($result)) |
| 116 | 116 | { |
| 117 | - $this->data = $this->validate_data($row); |
|
| 118 | - $this->entry_exists = true; |
|
| 117 | + $this->data = $this->validate_data($row); |
|
| 118 | + $this->entry_exists = true; |
|
| 119 | 119 | } |
| 120 | 120 | $this->db->sql_freeresult($result); |
| 121 | 121 | |
@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | while ($row = $this->db->sql_fetchrow($result)) |
| 647 | 647 | { |
| 648 | 648 | //var_dump($row); |
| 649 | - if($row['personal_album_id'] > 0) |
|
| 649 | + if ($row['personal_album_id'] > 0) |
|
| 650 | 650 | { |
| 651 | 651 | $set_array[$row['user_id']] = $row['personal_album_id']; |
| 652 | 652 | } |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | $updated_rows = 0; |
| 656 | 656 | if (count($set_array) > 0) |
| 657 | 657 | { |
| 658 | - foreach($set_array as $uid => $album_id) |
|
| 658 | + foreach ($set_array as $uid => $album_id) |
|
| 659 | 659 | { |
| 660 | 660 | // Fill album CPF. |
| 661 | 661 | $cpf_vars = array( |
@@ -294,13 +294,13 @@ |
||
| 294 | 294 | |
| 295 | 295 | if (($this->image_size['height'] / $max_height) > ($this->image_size['width'] / $max_width)) |
| 296 | 296 | { |
| 297 | - $this->thumb_height = $max_height; |
|
| 298 | - $this->thumb_width = round($max_width * (($this->image_size['width'] / $max_width) / ($this->image_size['height'] / $max_height))); |
|
| 297 | + $this->thumb_height = $max_height; |
|
| 298 | + $this->thumb_width = round($max_width * (($this->image_size['width'] / $max_width) / ($this->image_size['height'] / $max_height))); |
|
| 299 | 299 | } |
| 300 | 300 | else |
| 301 | 301 | { |
| 302 | - $this->thumb_height = round($max_height * (($this->image_size['height'] / $max_height) / ($this->image_size['width'] / $max_width))); |
|
| 303 | - $this->thumb_width = $max_width; |
|
| 302 | + $this->thumb_height = round($max_height * (($this->image_size['height'] / $max_height) / ($this->image_size['width'] / $max_width))); |
|
| 303 | + $this->thumb_width = $max_width; |
|
| 304 | 304 | } |
| 305 | 305 | |
| 306 | 306 | $image_copy = (($this->gd_version == self::GDLIB1) ? @imagecreate($this->thumb_width, $this->thumb_height + $additional_height) : @imagecreatetruecolor($this->thumb_width, $this->thumb_height + $additional_height)); |
@@ -122,13 +122,13 @@ |
||
| 122 | 122 | } |
| 123 | 123 | if ($recent) |
| 124 | 124 | { |
| 125 | - $block_name = $this->language->lang('RECENT_IMAGES'); |
|
| 125 | + $block_name = $this->language->lang('RECENT_IMAGES'); |
|
| 126 | 126 | $u_block = ' '; |
| 127 | 127 | $this->gallery_search->recent($this->gallery_config->get('rrc_profile_items'), -1, $event['member']['user_id'], 'rrc_profile_display', $block_name, $u_block); |
| 128 | 128 | } |
| 129 | 129 | if ($random) |
| 130 | 130 | { |
| 131 | - $block_name = $this->language->lang('RANDOM_IMAGES'); |
|
| 131 | + $block_name = $this->language->lang('RANDOM_IMAGES'); |
|
| 132 | 132 | $u_block = ' '; |
| 133 | 133 | $this->gallery_search->random($this->gallery_config->get('rrc_profile_items'), $event['member']['user_id'], 'rrc_profile_display', $block_name, $u_block); |
| 134 | 134 | } |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | 'GALLERY_RESYNC_ALBUMS_TO_CPF_EXPAIN' => 'Diese Aktion wird alle persönlichen Alben auf dem Toplevel als kontaktbasierte selbsterstellt Profilfelder resynchronisieren . <br> WARNUNG! Dies kann beim Vorhandensein sehr vieler solcher Alben sehr lange dauern!', |
| 160 | 160 | 'GALLERY_RESYNC_ALBUMS_TO_CPF_CONFIRM' => 'Bist Du sicher, dass Du den Resync aller persönlichen Alben auf dem Toplevel als kontaktbasierte selbsterstellte Profilfelder durchführen willst?', |
| 161 | 161 | 'GALLERY_STATS' => 'Galerie Statistik', |
| 162 | - 'GALLERY_VERSION' => 'Version der phpBB Gallery',//ja mit ll und y, da es sich um den MOD-Namen handelt |
|
| 162 | + 'GALLERY_VERSION' => 'Version der phpBB Gallery', //ja mit ll und y, da es sich um den MOD-Namen handelt |
|
| 163 | 163 | 'GD_VERSION' => 'GD Version optimieren', |
| 164 | 164 | 'GENERAL_ALBUM_SETTINGS' => 'Allgemeine Albumseinstellungen', |
| 165 | 165 | 'GIF_ALLOWED' => 'Es ist erlaubt GIF-Dateien hochzuladen', |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | 'comment_time' => time(), |
| 95 | 95 | ); |
| 96 | 96 | |
| 97 | - $this->db->sql_query('INSERT INTO ' .$this->comments_table .' ' . $this->db->sql_build_array('INSERT', $data)); |
|
| 97 | + $this->db->sql_query('INSERT INTO ' . $this->comments_table . ' ' . $this->db->sql_build_array('INSERT', $data)); |
|
| 98 | 98 | $newest_comment_id = (int) $this->db->sql_nextid(); |
| 99 | 99 | $this->config->inc('num_comments', 1); |
| 100 | 100 | |
@@ -12,21 +12,21 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | class auth |
| 14 | 14 | { |
| 15 | - const SETTING_PERMISSIONS = -39839; |
|
| 16 | - const PERSONAL_ALBUM = -3; |
|
| 15 | + const SETTING_PERMISSIONS = -39839; |
|
| 16 | + const PERSONAL_ALBUM = -3; |
|
| 17 | 17 | const OWN_ALBUM = -2; |
| 18 | - const PUBLIC_ALBUM = 0; |
|
| 18 | + const PUBLIC_ALBUM = 0; |
|
| 19 | 19 | |
| 20 | 20 | const ACCESS_ALL = 0; |
| 21 | - const ACCESS_REGISTERED = 1; |
|
| 22 | - const ACCESS_NOT_FOES = 2; |
|
| 23 | - const ACCESS_FRIENDS = 3; |
|
| 24 | - const ACCESS_SPECIAL_FRIENDS = 4; |
|
| 21 | + const ACCESS_REGISTERED = 1; |
|
| 22 | + const ACCESS_NOT_FOES = 2; |
|
| 23 | + const ACCESS_FRIENDS = 3; |
|
| 24 | + const ACCESS_SPECIAL_FRIENDS = 4; |
|
| 25 | 25 | |
| 26 | 26 | // ACL - slightly different |
| 27 | - const ACL_NO = 0; |
|
| 28 | - const ACL_YES = 1; |
|
| 29 | - const ACL_NEVER = 2; |
|
| 27 | + const ACL_NO = 0; |
|
| 28 | + const ACL_YES = 1; |
|
| 29 | + const ACL_NEVER = 2; |
|
| 30 | 30 | |
| 31 | 31 | static protected $_permission_i = array('i_view', 'i_watermark', 'i_upload', 'i_approve', 'i_edit', 'i_delete', 'i_report', 'i_rate'); |
| 32 | 32 | static protected $_permission_c = array('c_read', 'c_post', 'c_edit', 'c_delete'); |
@@ -167,17 +167,17 @@ discard block |
||
| 167 | 167 | $sql_select .= " MAX($permission) as $permission,"; |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | - $this->_auth_data[self::OWN_ALBUM] = new \phpbbgallery\core\auth\set(); |
|
| 170 | + $this->_auth_data[self::OWN_ALBUM] = new \phpbbgallery\core\auth\set(); |
|
| 171 | 171 | $this->_auth_data_never[self::OWN_ALBUM] = new \phpbbgallery\core\auth\set(); |
| 172 | 172 | $this->_auth_data[self::PERSONAL_ALBUM] = new \phpbbgallery\core\auth\set(); |
| 173 | - $this->_auth_data_never[self::PERSONAL_ALBUM] = new \phpbbgallery\core\auth\set(); |
|
| 173 | + $this->_auth_data_never[self::PERSONAL_ALBUM] = new \phpbbgallery\core\auth\set(); |
|
| 174 | 174 | |
| 175 | 175 | foreach ($albums as $album) |
| 176 | 176 | { |
| 177 | 177 | if ($album['album_user_id'] == self::PUBLIC_ALBUM) |
| 178 | 178 | { |
| 179 | - $this->_auth_data[$album['album_id']] = new \phpbbgallery\core\auth\set(); |
|
| 180 | - $this->_auth_data_never[$album['album_id']] = new \phpbbgallery\core\auth\set(); |
|
| 179 | + $this->_auth_data[$album['album_id']] = new \phpbbgallery\core\auth\set(); |
|
| 180 | + $this->_auth_data_never[$album['album_id']] = new \phpbbgallery\core\auth\set(); |
|
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | |
| 356 | 356 | $zebra = null; |
| 357 | 357 | |
| 358 | - $albums = array();//@todo $this->cache->obtain_album_list(); |
|
| 358 | + $albums = array(); //@todo $this->cache->obtain_album_list(); |
|
| 359 | 359 | foreach ($albums as $album) |
| 360 | 360 | { |
| 361 | 361 | if (!$album['album_auth_access'] || ($album['album_user_id'] == self::PUBLIC_ALBUM))# || ($album['album_user_id'] == $user_id)) |
@@ -65,9 +65,9 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | $action = $request->variable('action', ''); |
| 67 | 67 | $update = (isset($_POST['update'])) ? true : false; |
| 68 | - $album_id = $request->variable('a', 0); |
|
| 68 | + $album_id = $request->variable('a', 0); |
|
| 69 | 69 | |
| 70 | - $this->parent_id = $request->variable('parent_id', 0); |
|
| 70 | + $this->parent_id = $request->variable('parent_id', 0); |
|
| 71 | 71 | $album_data = $errors = array(); |
| 72 | 72 | if ($update && !check_form_key($form_key)) |
| 73 | 73 | { |
@@ -81,10 +81,10 @@ discard block |
||
| 81 | 81 | switch ($action) |
| 82 | 82 | { |
| 83 | 83 | case 'delete': |
| 84 | - $action_subalbums = $request->variable('action_subalbums', ''); |
|
| 85 | - $subalbums_to_id = $request->variable('subalbums_to_id', 0); |
|
| 86 | - $action_images = $request->variable('action_images', ''); |
|
| 87 | - $images_to_id = $request->variable('images_to_id', 0); |
|
| 84 | + $action_subalbums = $request->variable('action_subalbums', ''); |
|
| 85 | + $subalbums_to_id = $request->variable('subalbums_to_id', 0); |
|
| 86 | + $action_images = $request->variable('action_images', ''); |
|
| 87 | + $images_to_id = $request->variable('images_to_id', 0); |
|
| 88 | 88 | |
| 89 | 89 | $errors = $manage_albums->delete_album($album_id, $action_images, $action_subalbums, $images_to_id, $subalbums_to_id); |
| 90 | 90 | |
@@ -232,12 +232,12 @@ discard block |
||
| 232 | 232 | $acl_url = '&mode=manage&action=v_mask&album_id[]=' . $album_data['album_id']; |
| 233 | 233 | |
| 234 | 234 | $message = ($action == 'add') ? $this->language->lang('ALBUM_CREATED') : $this->language->lang('ALBUM_UPDATED'); |
| 235 | - $message .= '<br /><br />' . sprintf($this->language->lang('REDIRECT_ACL'), '<a href="' . $phpbb_ext_gallery_core_url->append_sid('admin' , 'index', 'i=-phpbbgallery-core-acp-permissions_module' . $acl_url) . '">', '</a>'); |
|
| 235 | + $message .= '<br /><br />' . sprintf($this->language->lang('REDIRECT_ACL'), '<a href="' . $phpbb_ext_gallery_core_url->append_sid('admin', 'index', 'i=-phpbbgallery-core-acp-permissions_module' . $acl_url) . '">', '</a>'); |
|
| 236 | 236 | |
| 237 | 237 | // Redirect directly to permission settings screen |
| 238 | 238 | if ($action == 'add' && !$album_perm_from) |
| 239 | 239 | { |
| 240 | - meta_refresh(5, $phpbb_ext_gallery_core_url->append_sid('admin' , 'index', 'i=-phpbbgallery-core-acp-permissions_module' . $acl_url)); |
|
| 240 | + meta_refresh(5, $phpbb_ext_gallery_core_url->append_sid('admin', 'index', 'i=-phpbbgallery-core-acp-permissions_module' . $acl_url)); |
|
| 241 | 241 | } |
| 242 | 242 | |
| 243 | 243 | trigger_error($message . adm_back_link($this->u_action . '&parent_id=' . $this->parent_id)); |
@@ -331,89 +331,89 @@ discard block |
||
| 331 | 331 | 'vars' => array( |
| 332 | 332 | '' => array(), |
| 333 | 333 | 'GALLERY_CONFIG' => array( |
| 334 | - 'items_per_page' => array('lang' => 'ITEMS_PER_PAGE', 'validate' => 'int', 'type' => 'text:7:3', 'explain' => true), |
|
| 335 | - 'allow_comments' => array('lang' => 'COMMENT_SYSTEM', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 336 | - 'comment_user_control' => array('lang' => 'COMMENT_USER_CONTROL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 337 | - 'comment_length' => array('lang' => 'COMMENT_MAX_LENGTH', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'CHARACTERS'), |
|
| 338 | - 'allow_rates' => array('lang' => 'RATE_SYSTEM', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 339 | - 'max_rating' => array('lang' => 'RATE_SCALE', 'validate' => 'int', 'type' => 'text:7:2'), |
|
| 340 | - 'allow_hotlinking' => array('lang' => 'HOTLINK_PREVENT', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 341 | - 'hotlinking_domains' => array('lang' => 'HOTLINK_ALLOWED', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), |
|
| 334 | + 'items_per_page' => array('lang' => 'ITEMS_PER_PAGE', 'validate' => 'int', 'type' => 'text:7:3', 'explain' => true), |
|
| 335 | + 'allow_comments' => array('lang' => 'COMMENT_SYSTEM', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 336 | + 'comment_user_control' => array('lang' => 'COMMENT_USER_CONTROL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 337 | + 'comment_length' => array('lang' => 'COMMENT_MAX_LENGTH', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'CHARACTERS'), |
|
| 338 | + 'allow_rates' => array('lang' => 'RATE_SYSTEM', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 339 | + 'max_rating' => array('lang' => 'RATE_SCALE', 'validate' => 'int', 'type' => 'text:7:2'), |
|
| 340 | + 'allow_hotlinking' => array('lang' => 'HOTLINK_PREVENT', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 341 | + 'hotlinking_domains' => array('lang' => 'HOTLINK_ALLOWED', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => true), |
|
| 342 | 342 | ), |
| 343 | 343 | |
| 344 | 344 | 'ALBUM_SETTINGS' => array( |
| 345 | - 'album_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => 'int', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 346 | - 'default_sort_key' => array('lang' => 'DEFAULT_SORT_METHOD', 'validate' => 'string', 'type' => 'custom', 'method' => 'sort_method_select'), |
|
| 347 | - 'default_sort_dir' => array('lang' => 'DEFAULT_SORT_ORDER', 'validate' => 'string', 'type' => 'custom', 'method' => 'sort_order_select'), |
|
| 348 | - 'album_images' => array('lang' => 'MAX_IMAGES_PER_ALBUM', 'validate' => 'int', 'type' => 'text:7:7', 'explain' => true), |
|
| 349 | - 'mini_thumbnail_disp' => array('lang' => 'DISP_FAKE_THUMB', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 350 | - 'mini_thumbnail_size' => array('lang' => 'FAKE_THUMB_SIZE', 'validate' => 'int', 'type' => 'text:7:4', 'explain' => true, 'append' => 'PIXELS'), |
|
| 345 | + 'album_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => 'int', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 346 | + 'default_sort_key' => array('lang' => 'DEFAULT_SORT_METHOD', 'validate' => 'string', 'type' => 'custom', 'method' => 'sort_method_select'), |
|
| 347 | + 'default_sort_dir' => array('lang' => 'DEFAULT_SORT_ORDER', 'validate' => 'string', 'type' => 'custom', 'method' => 'sort_order_select'), |
|
| 348 | + 'album_images' => array('lang' => 'MAX_IMAGES_PER_ALBUM', 'validate' => 'int', 'type' => 'text:7:7', 'explain' => true), |
|
| 349 | + 'mini_thumbnail_disp' => array('lang' => 'DISP_FAKE_THUMB', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 350 | + 'mini_thumbnail_size' => array('lang' => 'FAKE_THUMB_SIZE', 'validate' => 'int', 'type' => 'text:7:4', 'explain' => true, 'append' => 'PIXELS'), |
|
| 351 | 351 | ), |
| 352 | 352 | |
| 353 | 353 | 'SEARCH_SETTINGS' => array( |
| 354 | - 'search_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => 'int', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 354 | + 'search_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => 'int', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 355 | 355 | ), |
| 356 | 356 | |
| 357 | 357 | 'IMAGE_SETTINGS' => array( |
| 358 | - 'num_uploads' => array('lang' => 'UPLOAD_IMAGES', 'validate' => 'int', 'type' => 'text:7:2'), |
|
| 359 | - 'max_filesize' => array('lang' => 'MAX_FILE_SIZE', 'validate' => 'int', 'type' => 'text:12:9', 'append' => 'BYTES'), |
|
| 360 | - 'max_width' => array('lang' => 'MAX_WIDTH', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'PIXELS'), |
|
| 361 | - 'max_height' => array('lang' => 'MAX_HEIGHT', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'PIXELS'), |
|
| 362 | - 'allow_resize' => array('lang' => 'RESIZE_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 363 | - 'allow_rotate' => array('lang' => 'ROTATE_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 364 | - 'jpg_quality' => array('lang' => 'JPG_QUALITY', 'validate' => 'int', 'type' => 'text:7:5', 'explain' => true), |
|
| 358 | + 'num_uploads' => array('lang' => 'UPLOAD_IMAGES', 'validate' => 'int', 'type' => 'text:7:2'), |
|
| 359 | + 'max_filesize' => array('lang' => 'MAX_FILE_SIZE', 'validate' => 'int', 'type' => 'text:12:9', 'append' => 'BYTES'), |
|
| 360 | + 'max_width' => array('lang' => 'MAX_WIDTH', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'PIXELS'), |
|
| 361 | + 'max_height' => array('lang' => 'MAX_HEIGHT', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'PIXELS'), |
|
| 362 | + 'allow_resize' => array('lang' => 'RESIZE_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 363 | + 'allow_rotate' => array('lang' => 'ROTATE_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 364 | + 'jpg_quality' => array('lang' => 'JPG_QUALITY', 'validate' => 'int', 'type' => 'text:7:5', 'explain' => true), |
|
| 365 | 365 | //'medium_cache' => array('lang' => 'MEDIUM_CACHE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
| 366 | - 'medium_width' => array('lang' => 'RSZ_WIDTH', 'validate' => 'int', 'type' => 'text:7:4', 'append' => 'PIXELS'), |
|
| 367 | - 'medium_height' => array('lang' => 'RSZ_HEIGHT', 'validate' => 'int', 'type' => 'text:7:4', 'append' => 'PIXELS'), |
|
| 368 | - 'allow_gif' => array('lang' => 'GIF_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 369 | - 'allow_jpg' => array('lang' => 'JPG_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 370 | - 'allow_png' => array('lang' => 'PNG_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 371 | - 'allow_zip' => array('lang' => 'ZIP_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 372 | - 'description_length' => array('lang' => 'IMAGE_DESC_MAX_LENGTH', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'CHARACTERS'), |
|
| 373 | - 'disp_nextprev_thumbnail' => array('lang' => 'DISP_NEXTPREV_THUMB','validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 374 | - 'disp_image_url' => array('lang' => 'VIEW_IMAGE_URL', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 366 | + 'medium_width' => array('lang' => 'RSZ_WIDTH', 'validate' => 'int', 'type' => 'text:7:4', 'append' => 'PIXELS'), |
|
| 367 | + 'medium_height' => array('lang' => 'RSZ_HEIGHT', 'validate' => 'int', 'type' => 'text:7:4', 'append' => 'PIXELS'), |
|
| 368 | + 'allow_gif' => array('lang' => 'GIF_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 369 | + 'allow_jpg' => array('lang' => 'JPG_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 370 | + 'allow_png' => array('lang' => 'PNG_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 371 | + 'allow_zip' => array('lang' => 'ZIP_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 372 | + 'description_length' => array('lang' => 'IMAGE_DESC_MAX_LENGTH', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'CHARACTERS'), |
|
| 373 | + 'disp_nextprev_thumbnail' => array('lang' => 'DISP_NEXTPREV_THUMB', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 374 | + 'disp_image_url' => array('lang' => 'VIEW_IMAGE_URL', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 375 | 375 | ), |
| 376 | 376 | |
| 377 | 377 | 'THUMBNAIL_SETTINGS' => array( |
| 378 | 378 | //'thumbnail_cache' => array('lang' => 'THUMBNAIL_CACHE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
| 379 | - 'gdlib_version' => array('lang' => 'GD_VERSION', 'validate' => 'int', 'type' => 'custom', 'method' => 'gd_radio'), |
|
| 380 | - 'thumbnail_width' => array('lang' => 'THUMBNAIL_WIDTH', 'validate' => 'int', 'type' => 'text:7:3', 'append' => 'PIXELS'), |
|
| 381 | - 'thumbnail_height' => array('lang' => 'THUMBNAIL_HEIGHT', 'validate' => 'int', 'type' => 'text:7:3', 'append' => 'PIXELS'), |
|
| 382 | - 'thumbnail_quality' => array('lang' => 'THUMBNAIL_QUALITY', 'validate' => 'int', 'type' => 'text:7:3', 'explain' => true, 'append' => 'PERCENT'), |
|
| 379 | + 'gdlib_version' => array('lang' => 'GD_VERSION', 'validate' => 'int', 'type' => 'custom', 'method' => 'gd_radio'), |
|
| 380 | + 'thumbnail_width' => array('lang' => 'THUMBNAIL_WIDTH', 'validate' => 'int', 'type' => 'text:7:3', 'append' => 'PIXELS'), |
|
| 381 | + 'thumbnail_height' => array('lang' => 'THUMBNAIL_HEIGHT', 'validate' => 'int', 'type' => 'text:7:3', 'append' => 'PIXELS'), |
|
| 382 | + 'thumbnail_quality' => array('lang' => 'THUMBNAIL_QUALITY', 'validate' => 'int', 'type' => 'text:7:3', 'explain' => true, 'append' => 'PERCENT'), |
|
| 383 | 383 | //'thumbnail_infoline' => array('lang' => 'INFO_LINE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
| 384 | 384 | ), |
| 385 | 385 | |
| 386 | 386 | 'WATERMARK_OPTIONS' => array( |
| 387 | - 'watermark_enabled' => array('lang' => 'WATERMARK_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 388 | - 'watermark_source' => array('lang' => 'WATERMARK_SOURCE', 'validate' => 'string', 'type' => 'custom', 'explain' => true, 'method' => 'watermark_source'), |
|
| 389 | - 'watermark_height' => array('lang' => 'WATERMARK_HEIGHT', 'validate' => 'int', 'type' => 'text:7:4', 'explain' => true, 'append' => 'PIXELS'), |
|
| 390 | - 'watermark_width' => array('lang' => 'WATERMARK_WIDTH', 'validate' => 'int', 'type' => 'text:7:4', 'explain' => true, 'append' => 'PIXELS'), |
|
| 391 | - 'watermark_position' => array('lang' => 'WATERMARK_POSITION', 'validate' => '', 'type' => 'custom', 'method' => 'watermark_position'), |
|
| 387 | + 'watermark_enabled' => array('lang' => 'WATERMARK_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 388 | + 'watermark_source' => array('lang' => 'WATERMARK_SOURCE', 'validate' => 'string', 'type' => 'custom', 'explain' => true, 'method' => 'watermark_source'), |
|
| 389 | + 'watermark_height' => array('lang' => 'WATERMARK_HEIGHT', 'validate' => 'int', 'type' => 'text:7:4', 'explain' => true, 'append' => 'PIXELS'), |
|
| 390 | + 'watermark_width' => array('lang' => 'WATERMARK_WIDTH', 'validate' => 'int', 'type' => 'text:7:4', 'explain' => true, 'append' => 'PIXELS'), |
|
| 391 | + 'watermark_position' => array('lang' => 'WATERMARK_POSITION', 'validate' => '', 'type' => 'custom', 'method' => 'watermark_position'), |
|
| 392 | 392 | ), |
| 393 | 393 | |
| 394 | 394 | 'UC_LINK_CONFIG' => array( |
| 395 | - 'link_thumbnail' => array('lang' => 'UC_THUMBNAIL', 'validate' => 'string', 'type' => 'custom', 'explain' => true, 'method' => 'uc_select'), |
|
| 396 | - 'link_imagepage' => array('lang' => 'UC_IMAGEPAGE', 'validate' => 'string', 'type' => 'custom', 'explain' => true, 'method' => 'uc_select'), |
|
| 397 | - 'link_image_name' => array('lang' => 'UC_IMAGE_NAME', 'validate' => 'string', 'type' => 'custom', 'method' => 'uc_select'), |
|
| 398 | - 'link_image_icon' => array('lang' => 'UC_IMAGE_ICON', 'validate' => 'string', 'type' => 'custom', 'method' => 'uc_select'), |
|
| 395 | + 'link_thumbnail' => array('lang' => 'UC_THUMBNAIL', 'validate' => 'string', 'type' => 'custom', 'explain' => true, 'method' => 'uc_select'), |
|
| 396 | + 'link_imagepage' => array('lang' => 'UC_IMAGEPAGE', 'validate' => 'string', 'type' => 'custom', 'explain' => true, 'method' => 'uc_select'), |
|
| 397 | + 'link_image_name' => array('lang' => 'UC_IMAGE_NAME', 'validate' => 'string', 'type' => 'custom', 'method' => 'uc_select'), |
|
| 398 | + 'link_image_icon' => array('lang' => 'UC_IMAGE_ICON', 'validate' => 'string', 'type' => 'custom', 'method' => 'uc_select'), |
|
| 399 | 399 | ), |
| 400 | 400 | |
| 401 | 401 | 'RRC_GINDEX' => array( |
| 402 | - 'rrc_gindex_mode' => array('lang' => 'RRC_GINDEX_MODE', 'validate' => 'int', 'type' => 'custom', 'explain' => true, 'method' => 'rrc_modes'), |
|
| 403 | - 'rrc_gindex_comments' => array('lang' => 'RRC_GINDEX_COMMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 402 | + 'rrc_gindex_mode' => array('lang' => 'RRC_GINDEX_MODE', 'validate' => 'int', 'type' => 'custom', 'explain' => true, 'method' => 'rrc_modes'), |
|
| 403 | + 'rrc_gindex_comments' => array('lang' => 'RRC_GINDEX_COMMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 404 | 404 | //'rrc_gindex_contests' => array('lang' => 'RRC_GINDEX_CONTESTS', 'validate' => 'int', 'type' => 'text:7:3'), |
| 405 | - 'rrc_gindex_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => '', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 406 | - 'rrc_gindex_pegas' => array('lang' => 'RRC_GINDEX_PGALLERIES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 405 | + 'rrc_gindex_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => '', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 406 | + 'rrc_gindex_pegas' => array('lang' => 'RRC_GINDEX_PGALLERIES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 407 | 407 | ), |
| 408 | 408 | |
| 409 | 409 | 'PHPBB_INTEGRATION' => array( |
| 410 | - 'disp_gallery_icon' => array('lang' => 'DISP_GALLERY_ICON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 411 | - 'disp_total_images' => array('lang' => 'DISP_TOTAL_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 412 | - 'profile_user_images' => array('lang' => 'DISP_USER_IMAGES_PROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 413 | - 'profile_pega' => array('lang' => 'DISP_PERSONAL_ALBUM_PROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 414 | - 'rrc_profile_mode' => array('lang' => 'RRC_PROFILE_MODE', 'validate' => 'int', 'type' => 'custom', 'explain' => true, 'method' => 'rrc_modes'), |
|
| 415 | - 'rrc_profile_items' => array('lang' => 'RRC_PROFILE_ITEMS', 'validate' => 'int', 'type' => 'text:7:3'), |
|
| 416 | - 'rrc_profile_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => 'int', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 410 | + 'disp_gallery_icon' => array('lang' => 'DISP_GALLERY_ICON', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 411 | + 'disp_total_images' => array('lang' => 'DISP_TOTAL_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 412 | + 'profile_user_images' => array('lang' => 'DISP_USER_IMAGES_PROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 413 | + 'profile_pega' => array('lang' => 'DISP_PERSONAL_ALBUM_PROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 414 | + 'rrc_profile_mode' => array('lang' => 'RRC_PROFILE_MODE', 'validate' => 'int', 'type' => 'custom', 'explain' => true, 'method' => 'rrc_modes'), |
|
| 415 | + 'rrc_profile_items' => array('lang' => 'RRC_PROFILE_ITEMS', 'validate' => 'int', 'type' => 'text:7:3'), |
|
| 416 | + 'rrc_profile_display' => array('lang' => 'RRC_DISPLAY_OPTIONS', 'validate' => 'int', 'type' => 'custom', 'method' => 'rrc_display'), |
|
| 417 | 417 | //'rrc_profile_pegas' => array('lang' => 'RRC_GINDEX_PGALLERIES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
| 418 | 418 | //'viewtopic_icon' => array('lang' => 'DISP_VIEWTOPIC_ICON', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
| 419 | 419 | //'viewtopic_images' => array('lang' => 'DISP_VIEWTOPIC_IMAGES', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
@@ -421,15 +421,15 @@ discard block |
||
| 421 | 421 | ), |
| 422 | 422 | |
| 423 | 423 | 'INDEX_SETTINGS' => array( |
| 424 | - 'pegas_index_album' => array('lang' => 'PERSONAL_ALBUM_INDEX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 424 | + 'pegas_index_album' => array('lang' => 'PERSONAL_ALBUM_INDEX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 425 | 425 | //'pegas_index_random' => array('lang' => 'RANDOM_ON_INDEX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
| 426 | - 'pegas_index_rnd_count' => array('lang' => 'RANDOM_ON_INDEX_COUNT', 'validate' => 'int', 'type' => 'text:7:3'), |
|
| 426 | + 'pegas_index_rnd_count' => array('lang' => 'RANDOM_ON_INDEX_COUNT', 'validate' => 'int', 'type' => 'text:7:3'), |
|
| 427 | 427 | //'pegas_index_recent' => array('lang' => 'RECENT_ON_INDEX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
| 428 | - 'pegas_index_rct_count' => array('lang' => 'RECENT_ON_INDEX_COUNT', 'validate' => 'int', 'type' => 'text:7:3'), |
|
| 429 | - 'disp_login' => array('lang' => 'DISP_LOGIN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 430 | - 'disp_whoisonline' => array('lang' => 'DISP_WHOISONLINE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 431 | - 'disp_birthdays' => array('lang' => 'DISP_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 432 | - 'disp_statistic' => array('lang' => 'DISP_STATISTIC', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 428 | + 'pegas_index_rct_count' => array('lang' => 'RECENT_ON_INDEX_COUNT', 'validate' => 'int', 'type' => 'text:7:3'), |
|
| 429 | + 'disp_login' => array('lang' => 'DISP_LOGIN', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true), |
|
| 430 | + 'disp_whoisonline' => array('lang' => 'DISP_WHOISONLINE', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 431 | + 'disp_birthdays' => array('lang' => 'DISP_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 432 | + 'disp_statistic' => array('lang' => 'DISP_STATISTIC', 'validate' => 'bool', 'type' => 'radio:yes_no'), |
|
| 433 | 433 | ), |
| 434 | 434 | ), |
| 435 | 435 | ), |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | global $phpbb_container; |
| 573 | 573 | $this->language = $phpbb_container->get('language'); |
| 574 | 574 | |
| 575 | - $sort_order_options = '';//phpbb_gallery_plugins::uc_select($value, $key); |
|
| 575 | + $sort_order_options = ''; //phpbb_gallery_plugins::uc_select($value, $key); |
|
| 576 | 576 | |
| 577 | 577 | if ($key != 'link_imagepage') |
| 578 | 578 | { |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | $sort_order_options .= '<option' . (($value == 'none') ? ' selected="selected"' : '') . " value='none'>" . $this->language->lang('UC_LINK_NONE') . '</option>'; |
| 587 | 587 | |
| 588 | 588 | return "<select name='config[$key]' id='$key'>$sort_order_options</select>" |
| 589 | - . (($key == 'link_thumbnail') ? '<br /><input class="checkbox" type="checkbox" name="update_bbcode" id="update_bbcode" value="update_bbcode" /><label for="update_bbcode">' . $this->language->lang('UPDATE_BBCODE') . '</label>' : ''); |
|
| 589 | + . (($key == 'link_thumbnail') ? '<br /><input class="checkbox" type="checkbox" name="update_bbcode" id="update_bbcode" value="update_bbcode" /><label for="update_bbcode">' . $this->language->lang('UPDATE_BBCODE') . '</label>' : ''); |
|
| 590 | 590 | } |
| 591 | 591 | |
| 592 | 592 | /** |