Changeset 20013 for extensions/Piwecard/include/piwecard.class.php
- Timestamp:
- Jan 9, 2013, 12:32:04 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/include/piwecard.class.php
r20010 r20013 166 166 if (!empty($page['category'])) { 167 167 // Gets all upper categories from the image category to test 168 // - if the parameter for "recursive" is OK169 168 // - if the upper category is activated for this function 170 169 $query = 'SELECT * FROM '.CATEGORIES_TABLE.' WHERE id = '.pwg_db_real_escape_string($page['category']['id']).';'; … … 213 212 // Only on available cats 214 213 if (($this->my_config['authorizations'] == 'all_cats') //Parameter : all_cats 215 OR ($this->my_config['authorizations'] == 'selected_cats' AND !empty($page['category']) AND in_array($page['category']['id'], $this->my_config['selected_cats'])) //Parameter : selected_cats but not recursive 216 OR ($this->my_config['authorizations'] == 'selected_cats' AND $this->my_config['recursive'] AND isset($upper_ids) AND (array_intersect($upper_ids, $this->my_config['selected_cats']) != array())) //Parameter : selected_cats and recursive 217 OR ($this->my_config['authorizations'] == 'user_cats' AND (in_array($username, $catname) OR $username == $authorname)) //Parameter : selected_cats and recursive 214 OR ($this->my_config['authorizations'] == 'selected_cats' AND isset($upper_ids) AND (array_intersect($upper_ids, $this->my_config['selected_cats']) != array())) //Parameter : selected_cats and recursive 215 OR ($this->my_config['authorizations'] == 'user_cats' AND (in_array($username, $catname) OR $username == $authorname)) //Parameter : user_cats 218 216 ) { 219 217 // Check if user is guest. … … 233 231 'recipient_email' => l10n('ecard_send_dest_mail'), 234 232 'copy' => $this->my_config['sender_copy'] ? 'checked="checked"' : '', 235 'changemail' => (!isset($user['email']) OR $this->my_config['sender_email_change']) ? '' : 'disabled="disabled"') 236 )); 233 'changemail' => (!isset($user['email']) OR $this->my_config['sender_email_change']) ? '' : 'disabled="disabled"' 234 ) 235 ); 237 236 238 237 // Template add for the active parameter choice by the user … … 252 251 'id' => $email_format, 253 252 'name' => l10n('ecard_mail_format_'.$email_format), 254 'selected' => (($this->my_config['email_format_default'] == $email_format) ? '' : 'checked') 253 'selected' => (($this->my_config['email_format_default'] == $email_format) ? '' : 'checked'), 255 254 ) 256 255 ); … … 322 321 323 322 $email_subject = htmlspecialchars_decode($this->parse( $this->my_config['email_subject'], $_POST)); 324 $email_message = htmlspecialchars_decode($this->parse($this->my_config['email_ '.$this->my_config['email_format']], $_POST, $image_element));323 $email_message = htmlspecialchars_decode($this->parse($this->my_config['email_message'][$send_method], $_POST, $image_element)); 325 324 $email_arg=array( 'from' => $_POST['ecard_sender_email'], 326 325 'subject' => $email_subject,
Note: See TracChangeset
for help on using the changeset viewer.