Changeset 7681
- Timestamp:
- 12/19/12 16:44:18 (10 years ago)
- Location:
- trunk
- Files:
-
- 58 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/about.php
r6057 r7681 37 37 38 38 $s = "<table width='70%' cellpadding='4'>\n<tr> 39 <td align='left'><img src='$icon' alt=\"$info[title]\" /></td><td align='left'><h2> $info[title]</h2></td></tr>";39 <td align='left'><img src='$icon' alt=\"$info[title]\" /></td><td align='left'><h2>{$info['title']}</h2></td></tr>"; 40 40 41 41 if ($info['description']) 42 42 { 43 43 $info['description'] = lang($info['description']); 44 $s .= "<tr><td colspan='2' align='left'> $info[description]</td></tr>\n";44 $s .= "<tr><td colspan='2' align='left'>{$info['description']}</td></tr>\n"; 45 45 if ($info['note']) 46 46 { 47 47 $info['note'] = lang($info['note']); 48 $s .= "<tr><td colspan='2' align='left'><i> $info[note]</i></td></tr>\n";48 $s .= "<tr><td colspan='2' align='left'><i>{$info['note']}</i></td></tr>\n"; 49 49 } 50 50 … … 89 89 if ($info['extra_untranslated']) 90 90 { 91 $s .= "<tr><td colspan='2' align='left'> $info[extra_untranslated]</td></tr>\n";91 $s .= "<tr><td colspan='2' align='left'>{$info['extra_untranslated']}</td></tr>\n"; 92 92 } 93 93 -
trunk/admin/inc/class.uiasyncservice.inc.php
r86 r7681 153 153 if (is_array($installed) && isset($installed['cronline'])) 154 154 { 155 echo " $installed[cronline]</p>";155 echo "{$installed['cronline']}</p>"; 156 156 } 157 157 elseif ($installed === 0) … … 194 194 foreach($jobs as $job) 195 195 { 196 //echo "<tr>\n<td> $job[id]</td><td>".$GLOBALS['phpgw']->common->show_date($job['next'])."</td><td>";197 echo "<tr>\n<td> $job[id]</td><td>".date("d/m/Y H:i", $job['next'])."</td><td>";196 //echo "<tr>\n<td>{$job['id']}</td><td>".$GLOBALS['phpgw']->common->show_date($job['next'])."</td><td>"; 197 echo "<tr>\n<td>{$job['id']}</td><td>".date("d/m/Y H:i", $job['next'])."</td><td>"; 198 198 //print_r($GLOBALS['phpgw']->common->show_date($job['times'])); 199 199 print_r(date("d/m/Y H:i", $job['times'])); 200 echo "</td><td> $job[method]</td><td>";200 echo "</td><td>{$job['method']}</td><td>"; 201 201 print_r($job['data']); 202 echo "</td><td align=\"center\">".$GLOBALS['phpgw']->accounts->id2name($job[ account_id])."</td></tr>\n";202 echo "</td><td align=\"center\">".$GLOBALS['phpgw']->accounts->id2name($job['account_id'])."</td></tr>\n"; 203 203 } 204 204 echo "</table>\n"; -
trunk/calendar/inc/class.bocalendar.inc.php
r7673 r7681 3652 3652 3653 3653 $lang1 = lang("To See Commitment"); 3654 $varbuttom = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id= $event[id]&date=$newall3' method='POST'>3654 $varbuttom = "<form action=".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.view&cal_id={$event['id']}&date=$newall3' method='POST'> 3655 3655 <input type='submit' value='$lang1'> 3656 3656 </form>"; 3657 3657 $lang2 = lang("To accept"); 3658 $varbuttom1 ="<input type='submit' value='$lang2' onClick='javascript:window.open(\"".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.set_action&cal_id= $event[id]&action=3&response=1&user=".$tmpuid."\",\"frontpage\",\"height=100,width=500,statusbar=no,toolbar=no,scrollbars=no,menubar=no,left=300,top=200\")'>";3658 $varbuttom1 ="<input type='submit' value='$lang2' onClick='javascript:window.open(\"".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.set_action&cal_id={$event['id']}&action=3&response=1&user=".$tmpuid."\",\"frontpage\",\"height=100,width=500,statusbar=no,toolbar=no,scrollbars=no,menubar=no,left=300,top=200\")'>"; 3659 3659 3660 3660 $lang6 = lang("Tentative"); 3661 $varbuttom5 ="<input type='submit' value='$lang6' onClick='javascript:window.open(\"".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.set_action&cal_id= $event[id]&action=2&response=3&user=".$tmpuid."\",\"frontpage\",\"height=100,width=500,statusbar=no,toolbar=no,scrollbars=no,menubar=no,left=300,top=200\")'>";3661 $varbuttom5 ="<input type='submit' value='$lang6' onClick='javascript:window.open(\"".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.set_action&cal_id={$event['id']}&action=2&response=3&user=".$tmpuid."\",\"frontpage\",\"height=100,width=500,statusbar=no,toolbar=no,scrollbars=no,menubar=no,left=300,top=200\")'>"; 3662 3662 3663 3663 3664 3664 $lang3 = lang("To reject"); 3665 $varbuttom2 ="<input type='submit' value='$lang3' onClick='javascript:window.open(\"".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.set_action&cal_id= $event[id]&action=0&response=2&user=".$tmpuid."\",\"frontpage\",\"height=100,width=500,statusbar=no,toolbar=no,scrollbars=no,menubar=no,left=300,top=200\")'>";3665 $varbuttom2 ="<input type='submit' value='$lang3' onClick='javascript:window.open(\"".$GLOBALS['phpgw_info']['server']['webserver_url']."/index.php?menuaction=calendar.uicalendar.set_action&cal_id={$event['id']}&action=0&response=2&user=".$tmpuid."\",\"frontpage\",\"height=100,width=500,statusbar=no,toolbar=no,scrollbars=no,menubar=no,left=300,top=200\")'>"; 3666 3666 3667 3667 $lang4 = lang("Alarm"); -
trunk/calendar/inc/class.uialarm.inc.php
r5132 r7681 207 207 'data' => lang('Email Notification'), 208 208 'owner' => $GLOBALS['phpgw']->common->grab_owner_name($alarm['owner']), 209 'select' => $this->html->checkbox("alarm[ $alarm[id]]")209 'select' => $this->html->checkbox("alarm[{$alarm['id']}]") 210 210 ); 211 211 if ($this->bo->check_perms(PHPGW_ACL_DELETEALARM,$alarm['owner'])) -
trunk/calendar/inc/class.uiholiday.inc.php
r7655 r7681 469 469 while (list(,$holiday) = @each($holidays)) 470 470 { 471 echo "$locale\t $holiday[name]\t$holiday[day]\t$holiday[month]\t$holiday[occurence]\t$holiday[dow]\t$holiday[observance_rule]\n";471 echo "$locale\t{$holiday['name']}\t{$holiday['day']}\t{$holiday['month']}\t{$holiday['occurence']}\t{$holiday['dow']}\t{$holiday['observance_rule']}\n"; 472 472 } 473 473 $GLOBALS['phpgw']->common->phpgw_exit(); -
trunk/expressoAdmin1_2/inc/class.boconfiguration.inc.php
r5144 r7681 166 166 $params['inputTextMaximumRecipientsGroupModal'] = 0 ; 167 167 168 foreach ($params[ selectGroupsInRule] as $groupInRule)168 foreach ($params['selectGroupsInRule'] as $groupInRule) 169 169 { 170 170 //Verifica se este usuario Já tem uma regra -
trunk/expressoAdmin1_2/inc/class.functions.inc.php
r7655 r7681 120 120 { 121 121 case list_users: 122 if ($array_acl[ acl_add_users] || $array_acl[acl_edit_users] || $array_acl[acl_delete_users] || $array_acl[acl_change_users_password] || $array_acl[acl_change_users_quote] || $array_acl[acl_edit_sambausers_attributes] || $array_acl[acl_view_users] || $array_acl[acl_manipulate_corporative_information])122 if ($array_acl['acl_add_users'] || $array_acl['acl_edit_users'] || $array_acl['acl_delete_users'] || $array_acl['acl_change_users_password'] || $array_acl['acl_change_users_quote'] || $array_acl['acl_edit_sambausers_attributes'] || $array_acl['acl_view_users'] || $array_acl['acl_manipulate_corporative_information']) 123 123 return true; 124 124 break; 125 125 case add_users: 126 if ($array_acl[ acl_add_users])126 if ($array_acl['acl_add_users']) 127 127 return true; 128 128 break; 129 129 case edit_users: 130 if ($array_acl[ acl_edit_users])130 if ($array_acl['acl_edit_users']) 131 131 return true; 132 132 break; 133 133 case delete_users: 134 if ($array_acl[ acl_delete_users])134 if ($array_acl['acl_delete_users']) 135 135 return true; 136 136 break; 137 137 case rename_users: 138 if ($array_acl[ acl_rename_users])138 if ($array_acl['acl_rename_users']) 139 139 return true; 140 140 break; 141 141 case view_users: 142 if ($array_acl[ acl_view_users])142 if ($array_acl['acl_view_users']) 143 143 return true; 144 144 break; 145 145 case edit_users_picture: 146 if ($array_acl[ acl_edit_users_picture])146 if ($array_acl['acl_edit_users_picture']) 147 147 return true; 148 148 break; 149 149 case manipulate_corporative_information: 150 if ($array_acl[ acl_manipulate_corporative_information])150 if ($array_acl['acl_manipulate_corporative_information']) 151 151 return true; 152 152 break; 153 153 case change_users_password: 154 if ($array_acl[ acl_change_users_password])154 if ($array_acl['acl_change_users_password']) 155 155 return true; 156 156 break; 157 157 case change_users_quote: 158 if ($array_acl[ acl_change_users_quote])158 if ($array_acl['acl_change_users_quote']) 159 159 return true; 160 160 break; 161 161 case set_user_default_password: 162 if ($array_acl[ acl_set_user_default_password])162 if ($array_acl['acl_set_user_default_password']) 163 163 return true; 164 164 break; 165 165 case empty_user_inbox: 166 if (($array_acl[ acl_empty_user_inbox]) && ($array_acl[acl_edit_users]))166 if (($array_acl['acl_empty_user_inbox']) && ($array_acl['acl_edit_users'])) 167 167 return true; 168 168 break; 169 169 case edit_sambausers_attributes: case list_maillists: 170 if ($array_acl[ acl_add_maillists] || $array_acl[acl_edit_maillists] || $array_acl[acl_delete_maillists])171 return true; 172 break; 173 174 if ($array_acl[ acl_edit_sambausers_attributes])170 if ($array_acl['acl_add_maillists'] || $array_acl['acl_edit_maillists'] || $array_acl['acl_delete_maillists']) 171 return true; 172 break; 173 174 if ($array_acl['acl_edit_sambausers_attributes']) 175 175 return true; 176 176 break; 177 177 case edit_sambadomains: 178 if ($array_acl[ acl_edit_sambadomains])178 if ($array_acl['acl_edit_sambadomains']) 179 179 return true; 180 180 break; 181 181 182 182 case list_groups: 183 if ($array_acl[ acl_add_groups] || $array_acl[acl_edit_groups] || $array_acl[acl_delete_groups])183 if ($array_acl['acl_add_groups'] || $array_acl['acl_edit_groups'] || $array_acl['acl_delete_groups']) 184 184 return true; 185 185 break; 186 186 case add_groups: 187 if ($array_acl[ acl_add_groups])187 if ($array_acl['acl_add_groups']) 188 188 return true; 189 189 break; 190 190 case edit_groups: 191 if ($array_acl[ acl_edit_groups])191 if ($array_acl['acl_edit_groups']) 192 192 return true; 193 193 break; 194 194 case delete_groups: 195 if ($array_acl[ acl_delete_groups])195 if ($array_acl['acl_delete_groups']) 196 196 return true; 197 197 break; 198 198 case edit_email_groups: 199 if ($array_acl[ acl_edit_email_groups])199 if ($array_acl['acl_edit_email_groups']) 200 200 return true; 201 201 break; 202 202 203 203 case list_maillists: 204 if ($array_acl[ acl_add_maillists] || $array_acl[acl_edit_maillists] || $array_acl[acl_delete_maillists])204 if ($array_acl['acl_add_maillists'] || $array_acl['acl_edit_maillists'] || $array_acl['acl_delete_maillists']) 205 205 return true; 206 206 break; 207 207 case add_maillists: 208 if ($array_acl[ acl_add_maillists])208 if ($array_acl['acl_add_maillists']) 209 209 return true; 210 210 break; 211 211 case edit_maillists: 212 if ($array_acl[ acl_edit_maillists])212 if ($array_acl['acl_edit_maillists']) 213 213 return true; 214 214 break; 215 215 case delete_maillists: 216 if ($array_acl[ acl_delete_maillists])216 if ($array_acl['acl_delete_maillists']) 217 217 return true; 218 218 break; 219 219 220 220 case list_sectors: 221 if ($array_acl[ acl_create_sectors] || $array_acl[acl_edit_sectors] || $array_acl[acl_delete_sectors])221 if ($array_acl['acl_create_sectors'] || $array_acl['acl_edit_sectors'] || $array_acl['acl_delete_sectors']) 222 222 return true; 223 223 break; 224 224 case create_sectors: 225 if ($array_acl[ acl_create_sectors])225 if ($array_acl['acl_create_sectors']) 226 226 return true; 227 227 break; 228 228 case edit_sectors: 229 if ($array_acl[ acl_edit_sectors])229 if ($array_acl['acl_edit_sectors']) 230 230 return true; 231 231 break; 232 232 case delete_sectors: 233 if ($array_acl[ acl_delete_sectors])233 if ($array_acl['acl_delete_sectors']) 234 234 return true; 235 235 break; 236 236 237 237 case view_global_sessions: 238 if ($array_acl[ acl_view_global_sessions])238 if ($array_acl['acl_view_global_sessions']) 239 239 return true; 240 240 break; 241 241 242 242 case list_computers: 243 if ($array_acl[ acl_create_computers] || $array_acl[acl_edit_computers] || $array_acl[acl_delete_computers])243 if ($array_acl['acl_create_computers'] || $array_acl['acl_edit_computers'] || $array_acl['acl_delete_computers']) 244 244 return true; 245 245 break; 246 246 case create_computers: 247 if ($array_acl[ acl_create_computers])247 if ($array_acl['acl_create_computers']) 248 248 return true; 249 249 break; 250 250 case edit_computers: 251 if ($array_acl[ acl_edit_computers])251 if ($array_acl['acl_edit_computers']) 252 252 return true; 253 253 break; 254 254 case delete_computers: 255 if ($array_acl[ acl_delete_computers])255 if ($array_acl['acl_delete_computers']) 256 256 return true; 257 257 break; 258 258 259 259 case view_logs: 260 if ($array_acl[ acl_view_logs])260 if ($array_acl['acl_view_logs']) 261 261 return true; 262 262 break; 263 263 264 264 case display_groups: 265 if ( $array_acl[ acl_edit_users] || $array_acl[acl_view_users] || ($array_acl[acl_edit_sambausers_attributes] && ($this->current_config['expressoAdmin_samba_support'] == 'true')) )265 if ( $array_acl['acl_edit_users'] || $array_acl['acl_view_users'] || ($array_acl['acl_edit_sambausers_attributes'] && ($this->current_config['expressoAdmin_samba_support'] == 'true')) ) 266 266 return true; 267 267 break; 268 268 case display_emailconfig: 269 if ($array_acl[ acl_edit_users] || $array_acl[acl_view_users])269 if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users']) 270 270 return true; 271 271 break; 272 272 case display_applications: 273 if ($array_acl[ acl_edit_users] || $array_acl[acl_view_users])273 if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users']) 274 274 return true; 275 275 break; 276 276 case display_emaillists: 277 if ($array_acl[ acl_edit_users] || $array_acl[acl_view_users])277 if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users']) 278 278 return true; 279 279 break; -
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r7673 r7681 382 382 if ($anchor != $dn) 383 383 { 384 if (!@ldap_rename($this->ldap, $params['anchor'], "uid= $params[uid]", $params['context'], true))384 if (!@ldap_rename($this->ldap, $params['anchor'], "uid={$params['uid']}", $params['context'], true)) 385 385 { 386 386 $result['status'] = false; … … 467 467 return $result; 468 468 } 469 $dn = "uid= $params[uid]," . $params['context'];469 $dn = "uid={$params['uid']}," . $params['context']; 470 470 $filter = "(mail=".$params['mail'].")"; 471 471 $justthese = array("cn"); -
trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php
r7655 r7681 112 112 $ldap_search = ldap_search($ldap_conn, $GLOBALS['phpgw_info']['server']['ldap_context'], $filter, $justthese); 113 113 $ldap_result = ldap_get_entries($ldap_conn, $ldap_search); 114 $p->set_var('manager_lid', $array_managers[ manager_lid]);114 $p->set_var('manager_lid', $array_managers['manager_lid']); 115 115 $p->set_var('manager_cn', $ldap_result[0]['cn'][0] == '' ? '<font color=red>NAO ENCONTRADO NO LDAP</font>' : $ldap_result[0]['cn'][0]); 116 116 $p->set_var('context', $managers_context); 117 $p->set_var('link_edit',$this->row_action('edit','edit_managers',$array_managers[ manager_lid],$array_managers[context]));118 $p->set_var('link_delete',$this->row_action('delete','delete_managers',$array_managers[ manager_lid],$array_managers[context]));117 $p->set_var('link_edit',$this->row_action('edit','edit_managers',$array_managers['manager_lid'],$array_managers['context'])); 118 $p->set_var('link_delete',$this->row_action('delete','delete_managers',$array_managers['manager_lid'],$array_managers['context'])); 119 119 $p->set_var('link_copy',"<a href='#' onClick='javascript:copy_manager(\"".$array_managers['manager_lid']."\");'>Copiar</a>"); 120 120 $p->fp('rows','row',True); -
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r7674 r7681 2080 2080 $sign_alert = array(); 2081 2081 $sign_alert[] = 'Certificate Owner###:\n'; 2082 $sign_alert[] = 'Common Name (CN)### ' . $cert[ subject]['CN'] . '\n';2082 $sign_alert[] = 'Common Name (CN)### ' . $cert['subject']['CN'] . '\n'; 2083 2083 $X = substr($certificado->dados['NASCIMENTO'] ,0,2) . '-' . substr($certificado->dados['NASCIMENTO'] ,2,2) . '-' . substr($certificado->dados['NASCIMENTO'] ,4,4); 2084 $sign_alert[]= 'Organization (O)### ' . $cert[ subject]['O'] . '\n';2085 $sign_alert[]= 'Organizational Unit (OU)### ' . $cert[ subject]['OU'][0] . '\n';2084 $sign_alert[]= 'Organization (O)### ' . $cert['subject']['O'] . '\n'; 2085 $sign_alert[]= 'Organizational Unit (OU)### ' . $cert['subject']['OU'][0] . '\n'; 2086 2086 //$sign_alert[] = 'Serial Number### ' . $cert['serialNumber'] . '\n'; 2087 2087 $sign_alert[] = 'Personal Data###:' . '\n'; … … 2090 2090 $sign_alert[]= 'Identification### ' . $certificado->dados['RG'] . '\n\n'; 2091 2091 $sign_alert[]= 'Certificate Issuer###:\n'; 2092 $sign_alert[]= 'Common Name (CN)### ' . $cert[ issuer]['CN'] . '\n';2093 $sign_alert[]= 'Organization (O)### ' . $cert[ issuer]['O'] . '\n';2094 $sign_alert[]= 'Organizational Unit (OU)### ' . $cert[ issuer]['OU'][0] . '\n\n';2092 $sign_alert[]= 'Common Name (CN)### ' . $cert['issuer']['CN'] . '\n'; 2093 $sign_alert[]= 'Organization (O)### ' . $cert['issuer']['O'] . '\n'; 2094 $sign_alert[]= 'Organizational Unit (OU)### ' . $cert['issuer']['OU'][0] . '\n\n'; 2095 2095 $sign_alert[]= 'Validity###:\n'; 2096 $H = data_hora($cert[ validFrom]);2096 $H = data_hora($cert['validFrom']); 2097 2097 $X = substr($H,6,2) . '-' . substr($H,4,2) . '-' . substr($H,0,4); 2098 2098 $sign_alert[]= 'Valid From### ' . $X . '\n'; 2099 $H = data_hora($cert[ validTo]);2099 $H = data_hora($cert['validTo']); 2100 2100 $X = substr($H,6,2) . '-' . substr($H,4,2) . '-' . substr($H,0,4); 2101 2101 $sign_alert[]= 'Valid Until### ' . $X; -
trunk/expressoMail1_2/login_offline.php
r7673 r7681 272 272 $config_reg = $cnf_reg->config_data; 273 273 274 if($config_reg[ enable_registration]=='True' && $config_reg[register_link]=='True')274 if($config_reg['enable_registration']=='True' && $config_reg['register_link']=='True') 275 275 { 276 276 $reg_link=' <a href="registration/">'.lang('Not a user yet? Register now').'</a><br/>'; -
trunk/filemanager/inc/class.uifilemanager.inc.php
r7673 r7681 155 155 // check if basedir exist 156 156 $test = $this->bo->vfs->get_real_info(array('string' => $this->bo->basedir, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 157 if ($test[ mime_type] != 'Directory') {157 if ($test['mime_type'] != 'Directory') { 158 158 die('Base directory does not exist, Ask adminstrator to check the global configuration.'); 159 159 } 160 160 161 161 $test = $this->bo->vfs->get_real_info(array('string' => $this->bo->basedir . $this->bo->fakebase, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 162 if ($test[ mime_type] != 'Directory') {162 if ($test['mime_type'] != 'Directory') { 163 163 $this->bo->vfs->override_acl = 1; 164 164 … … 173 173 $test = $this->bo->vfs->get_real_info(array('string' => $this->bo->basedir . $this->bo->fakebase, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 174 174 175 if ($test[ mime_type] != 'Directory') {175 if ($test['mime_type'] != 'Directory') { 176 176 die('Fake Base directory does not exist and could not be created, please ask the administrator to check the global configuration.'); 177 177 } else { … … 181 181 182 182 $test = $this->bo->vfs->get_real_info(array('string' => $this->bo->basedir . $this->bo->homedir, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 183 if ($test[ mime_type] != 'Directory') {183 if ($test['mime_type'] != 'Directory') { 184 184 185 185 $c_admin = CreateObject('phpgwapi.config', 'expressoAdmin1_2'); … … 205 205 $test = $this->bo->vfs->get_real_info(array('string' => $this->bo->basedir . $this->bo->homedir, 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 206 206 207 if ($test[ mime_type] != 'Directory') {207 if ($test['mime_type'] != 'Directory') { 208 208 die('Your Home Dir does not exist and could not be created, please ask the adminstrator to check the global configuration.'); 209 209 } else { … … 622 622 623 623 if ($this->numoffiles || $this->cwd) { 624 $vars[ path] = '<input type="hidden" id="currentPath" value="' . $this->path . '">';625 $vars[ css] = '<link rel="stylesheet" type="text/css" href="filemanager/templates/default/main.css">';626 $vars[ css].='<link rel="stylesheet" type="text/css" href="phpgwapi/js/dftree/dftree.css">';624 $vars['path'] = '<input type="hidden" id="currentPath" value="' . $this->path . '">'; 625 $vars['css'] = '<link rel="stylesheet" type="text/css" href="filemanager/templates/default/main.css">'; 626 $vars['css'].='<link rel="stylesheet" type="text/css" href="phpgwapi/js/dftree/dftree.css">'; 627 627 $_SESSION['phpgw_info']['user']['preferences']['filemanager']['lid'] = $GLOBALS['phpgw_info']['user']['account_lid']; 628 $vars[ preferences] = '<input type="hidden" id="userPreferences" value=\'' . serialize($_SESSION['phpgw_info']['user']['preferences']['filemanager']) . '\'>';628 $vars['preferences'] = '<input type="hidden" id="userPreferences" value=\'' . serialize($_SESSION['phpgw_info']['user']['preferences']['filemanager']) . '\'>'; 629 629 // Used for important operations that needs security 630 630 for ($key = ""; strlen($key) < 150; $key .= chr(rand(48, 95))) 631 631 ; 632 632 $_SESSION['phpgw_info']['filemanager']['user']['sec_key'] = $key; 633 $vars[ sec_key] = '<input type="hidden" id="userKey" value=\'' . $key . '\'>';634 $vars[ script] = '<script>initDrawApi();</script>';635 636 $vars[ new_button] = $this->toolButton('new', 'createfile', lang('New...'));637 $vars[ new_button].='<input type="hidden" id="newfile_or_dir" name="newfile_or_dir" value="" />';633 $vars['sec_key'] = '<input type="hidden" id="userKey" value=\'' . $key . '\'>'; 634 $vars['script'] = '<script>initDrawApi();</script>'; 635 636 $vars['new_button'] = $this->toolButton('new', 'createfile', lang('New...')); 637 $vars['new_button'].='<input type="hidden" id="newfile_or_dir" name="newfile_or_dir" value="" />'; 638 638 639 639 // reload button with this url 640 $vars[ refresh_button] = $this->toolButton('reload', 'reload', lang('reload'));640 $vars['refresh_button'] = $this->toolButton('reload', 'reload', lang('reload')); 641 641 642 642 // go up icon when we're not at the top, dont allow to go outside /home = fakebase 643 643 if ($this->path != '/' && $this->path != $this->bo->fakebase) { 644 $vars[ tools_button] = $this->toolButton('tools', 'tools', lang('tools'));644 $vars['tools_button'] = $this->toolButton('tools', 'tools', lang('tools')); 645 645 } 646 646 else 647 $vars[ tools_button] = "";648 649 $vars[ toolbar1] = $toolbar;647 $vars['tools_button'] = ""; 648 649 $vars['toolbar1'] = $toolbar; 650 650 651 651 if (count($this->messages) > 0) { … … 656 656 $this->messages = NULL; 657 657 658 $vars[ messages] = $messages;658 $vars['messages'] = $messages; 659 659 660 660 $this->t->set_var($vars); … … 815 815 $var = array( 816 816 'change_upload_boxes' => lang('Show'), 817 'form_action' => $GLOBALS[ phpgw]->link('/filemanager/inc/upload.php'),817 'form_action' => $GLOBALS['phpgw']->link('/filemanager/inc/upload.php'), 818 818 'emails_to' => $notify->EmailsToSend($GLOBALS['phpgw']->preferences->values['email']), 819 819 'lang_file' => lang('File(s)'), … … 906 906 907 907 908 $vars[ refresh_script] = "<script src='filemanager/js/refresh.js'></script>";909 910 $vars[ preview_content] = '';908 $vars['refresh_script'] = "<script src='filemanager/js/refresh.js'></script>"; 909 910 $vars['preview_content'] = ''; 911 911 if ($this->edit_file) { 912 912 $this->edit_file_content = stripslashes($this->edit_file_content); … … 916 916 $content = $this->edit_file_content; 917 917 918 $vars[ lang_preview_of] = lang('Preview of %1', $this->path . '/' . $edit_file);919 920 $vars[ preview_content] = nl2br($content);918 $vars['lang_preview_of'] = lang('Preview of %1', $this->path . '/' . $edit_file); 919 920 $vars['preview_content'] = nl2br($content); 921 921 } elseif ($this->edit_save_x || $this->edit_save_done_x) { 922 922 $content = $this->edit_file_content; … … 954 954 $content = $this->bo->vfs->read(array('string' => $this->filename)); 955 955 } 956 $vars[ form_action] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=filemanager.uifilemanager.index', 'path=' . $this->path);957 $vars[ edit_file] = $this->filename;956 $vars['form_action'] = $GLOBALS['phpgw']->link('/index.php', 'menuaction=filemanager.uifilemanager.index', 'path=' . $this->path); 957 $vars['edit_file'] = $this->filename; 958 958 # We need to include all of the fileman entries for each file's form, 959 959 # so we loop through again … … 961 961 if ($this->filename) 962 962 $value = 'value="' . $this->filename . '"'; 963 $vars[ filemans_hidden] = '<input type="hidden" name="filename" ' . $value . ' />';964 } 965 $vars[ file_content] = $content;966 967 $vars[ buttonPreview] = $this->inputButton('edit_preview', 'edit_preview', lang('Preview %1', $this->bo->html_encode($this->fileman[0], 1)));968 $vars[ buttonSave] = $this->inputButton('edit_save', 'save', lang('Save %1', $this->bo->html_encode($this->filename, 1)));969 $vars[ buttonDone] = $this->inputButton('edit_save_done', 'ok', lang('Save %1, and go back to file listing ', $this->bo->html_encode($this->filename, 1)));970 $vars[ buttonCancel] = $this->inputButton('edit_cancel', 'cancel', lang('Cancel editing %1 without saving', $this->bo->html_encode($this->filename, 1)));963 $vars['filemans_hidden'] = '<input type="hidden" name="filename" ' . $value . ' />'; 964 } 965 $vars['file_content'] = $content; 966 967 $vars['buttonPreview'] = $this->inputButton('edit_preview', 'edit_preview', lang('Preview %1', $this->bo->html_encode($this->fileman[0], 1))); 968 $vars['buttonSave'] = $this->inputButton('edit_save', 'save', lang('Save %1', $this->bo->html_encode($this->filename, 1))); 969 $vars['buttonDone'] = $this->inputButton('edit_save_done', 'ok', lang('Save %1, and go back to file listing ', $this->bo->html_encode($this->filename, 1))); 970 $vars['buttonCancel'] = $this->inputButton('edit_cancel', 'cancel', lang('Cancel editing %1 without saving', $this->bo->html_encode($this->filename, 1))); 971 971 972 972 if ($mime_type == 'text/html') { 973 $vars[ fck_edit] = '<script type="text/javascript" src="./library/ckeditor/ckeditor.js"></script>973 $vars['fck_edit'] = '<script type="text/javascript" src="./library/ckeditor/ckeditor.js"></script> 974 974 <textarea cols="80" id="edit_file_content" name="edit_file_content" rows="10">' . $content . '</textarea> 975 975 <script type="text/javascript"> CKEDITOR.replace( \'edit_file_content\',{ … … 1144 1144 $test = $this->bo->vfs->get_real_info(array('string' => $this->bo->fakebase . '/' . $group_array['account_name'], 1145 1145 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 1146 if ($test[ mime_type] != 'Directory') {1146 if ($test['mime_type'] != 'Directory') { 1147 1147 continue; 1148 1148 } -
trunk/library/PEAR/PEAR/Builder.php
r5146 r7681 333 333 if (substr($o['name'], 0, 5) == 'with-' && 334 334 ($r == 'yes' || $r == 'autodetect')) { 335 $configure_command .= " -- $o[name]";335 $configure_command .= " --{$o['name']}"; 336 336 } else { 337 $configure_command .= " -- $o[name]=".trim($r);337 $configure_command .= " --{$o['name']}=".trim($r); 338 338 } 339 339 } -
trunk/library/PEAR/PEAR/ChannelFile.php
r5146 r7681 459 459 . $channelInfo['attribs']['version'] . " http://pear.php.net/dtd/channel-" . 460 460 $channelInfo['attribs']['version'] . ".xsd\"> 461 <name> $channelInfo[name]</name>461 <name>{$channelInfo['name']}</name> 462 462 <summary>" . htmlspecialchars($channelInfo['summary'])."</summary> 463 463 "; -
trunk/library/PEAR/PEAR/Command/Common.php
r5146 r7681 223 223 $lapp = "[=$arg]"; 224 224 } else { 225 $sapp = " $v[arg]";226 $lapp = "= $v[arg]";225 $sapp = " {$v['arg']}"; 226 $lapp = "={$v['arg']}"; 227 227 } 228 228 } else { -
trunk/library/PEAR/PEAR/Command/Registry.php
r5146 r7681 514 514 $mstr .= $m['handle'] . '@php.net'; 515 515 } 516 $mstr .= "> ( $m[role])";516 $mstr .= "> ({$m['role']})"; 517 517 } 518 518 $info[$key] = $mstr; … … 866 866 $info[$infoindex] .= "$type $name"; 867 867 if (isset($package['uri'])) { 868 $info[$infoindex] .= "\n Download URI: $package[uri]";868 $info[$infoindex] .= "\n Download URI: {$package['uri']}"; 869 869 continue; 870 870 } … … 882 882 883 883 if (isset($package['recommended'])) { 884 $info[$infoindex] .= "\n Recommended version: $package[recommended]";884 $info[$infoindex] .= "\n Recommended version: {$package['recommended']}"; 885 885 } 886 886 … … 920 920 $info['Not Compatible with'] .= "\n"; 921 921 } 922 $info['Not Compatible with'] .= " $os[name]Operating System";922 $info['Not Compatible with'] .= "{$os['name']} Operating System"; 923 923 } else { 924 924 $info['Required Dependencies'] .= "\n"; 925 $info['Required Dependencies'] .= " $os[name]Operating System";925 $info['Required Dependencies'] .= "{$os['name']} Operating System"; 926 926 } 927 927 } … … 940 940 $info['Not Compatible with'] .= "\n"; 941 941 } 942 $info['Not Compatible with'] .= "OS/Arch matching pattern '/ $os[pattern]/'";942 $info['Not Compatible with'] .= "OS/Arch matching pattern '/{$os['pattern']}/'"; 943 943 } else { 944 944 $info['Required Dependencies'] .= "\n"; 945 $info['Required Dependencies'] .= "OS/Arch matching pattern '/ $os[pattern]/'";945 $info['Required Dependencies'] .= "OS/Arch matching pattern '/{$os['pattern']}/'"; 946 946 } 947 947 } … … 1006 1006 1007 1007 if (isset($package['recommended'])) { 1008 $info[$infoindex] .= "\n Recommended version: $package[recommended]";1008 $info[$infoindex] .= "\n Recommended version: {$package['recommended']}"; 1009 1009 } 1010 1010 … … 1066 1066 } 1067 1067 1068 $info[$groupindex] .= "\n Download URI: $package[uri]";1068 $info[$groupindex] .= "\n Download URI: {$package['uri']}"; 1069 1069 continue; 1070 1070 } … … 1088 1088 1089 1089 if (isset($package['recommended'])) { 1090 $info[$groupindex] .= "\n Recommended version: $package[recommended]";1090 $info[$groupindex] .= "\n Recommended version: {$package['recommended']}"; 1091 1091 } 1092 1092 … … 1119 1119 if (isset($package['uri'])) { 1120 1120 $info['Bundled Packages'] .= '__uri/' . $package['name']; 1121 $info['Bundled Packages'] .= "\n (URI: $package[uri]";1121 $info['Bundled Packages'] .= "\n (URI: {$package['uri']}"; 1122 1122 } else { 1123 1123 $info['Bundled Packages'] .= $package['channel'] . '/' . $package['name']; -
trunk/library/PEAR/PEAR/Command/Remote.php
r7655 r7681 623 623 $downloaded = $downloader->getDownloadedPackages(); 624 624 foreach ($downloaded as $pkg) { 625 $this->ui->outputData("File $pkg[file]downloaded", $command);625 $this->ui->outputData("File {$pkg['file']} downloaded", $command); 626 626 } 627 627 -
trunk/library/PEAR/PEAR/Downloader.php
r7655 r7681 1633 1633 1634 1634 if (isset($lastmodified['ETag'])) { 1635 $ifmodifiedsince .= "If-None-Match: $lastmodified[ETag]\r\n";1635 $ifmodifiedsince .= "If-None-Match: {$lastmodified['ETag']}\r\n"; 1636 1636 } 1637 1637 } else { -
trunk/library/PEAR/PEAR/Frontend/CLI.php
r7673 r7681 106 106 $frame['function'] = !isset($frame['function']) ? '' : $frame['function']; 107 107 $frame['line'] = !isset($frame['line']) ? '' : $frame['line']; 108 $this->_displayLine("#$i: $frame[class]$frame[type]$frame[function] $frame[line]");108 $this->_displayLine("#$i: {$frame['class']}{$frame['type']}{$frame['function']}{$frame['line']}"); 109 109 } 110 110 } -
trunk/library/PEAR/PEAR/Installer.php
r5146 r7681 236 236 237 237 if ((bool) $os->matchSignature($platform) === $negate) { 238 $this->log(3, "skipped $file (meant for $atts[platform], we are ".$os->getSignature().")");238 $this->log(3, "skipped $file (meant for {$atts['platform']}, we are ".$os->getSignature().")"); 239 239 return PEAR_INSTALLER_SKIPPED; 240 240 } … … 264 264 break; 265 265 default: 266 return $this->raiseError("Invalid role `$atts[role]' for file $file");266 return $this->raiseError("Invalid role '{$atts['role']}' for file $file"); 267 267 } 268 268 … … 354 354 if ($a['type'] == 'php-const') { 355 355 if (preg_match('/^[a-z0-9_]+\\z/i', $a['to'])) { 356 eval("\$to = $a[to];");356 eval("\$to = {$a['to']};"); 357 357 } else { 358 358 if (!isset($options['soft'])) { 359 $this->log(0, "invalid php-const replacement: $a[to]");359 $this->log(0, "invalid php-const replacement: {$a['to']}"); 360 360 } 361 361 continue; … … 374 374 if (is_null($to)) { 375 375 if (!isset($options['soft'])) { 376 $this->log(0, "invalid pear-config replacement: $a[to]");376 $this->log(0, "invalid pear-config replacement: {$a['to']}"); 377 377 } 378 378 continue; … … 383 383 } else { 384 384 if (!isset($options['soft'])) { 385 $this->log(0, "invalid package-info replacement: $a[to]");385 $this->log(0, "invalid package-info replacement: {$a['to']}"); 386 386 } 387 387 continue; … … 1586 1586 } 1587 1587 1588 $this->log(3, "+ cp $ext[file]$copyto");1588 $this->log(3, "+ cp {$ext['file']} $copyto"); 1589 1589 $this->addFileOperation('rename', array($ext['file'], $copyto)); 1590 1590 if (!OS_WINDOWS) { -
trunk/library/PEAR/PEAR/PackageFile/Generator/v1.php
r5146 r7681 204 204 " <name>$pkginfo[package]</name>"; 205 205 if (isset($pkginfo['extends'])) { 206 $ret .= "\n<extends> $pkginfo[extends]</extends>";206 $ret .= "\n<extends>{$pkginfo['extends']}</extends>"; 207 207 } 208 208 $ret .= … … 251 251 $ret = "$indent <release>\n"; 252 252 if (!empty($pkginfo['version'])) { 253 $ret .= "$indent <version> $pkginfo[version]</version>\n";253 $ret .= "$indent <version>{$pkginfo['version']}</version>\n"; 254 254 } 255 255 if (!empty($pkginfo['release_date'])) { 256 $ret .= "$indent <date> $pkginfo[release_date]</date>\n";256 $ret .= "$indent <date>{$pkginfo['release_date']}</date>\n"; 257 257 } 258 258 if (!empty($pkginfo['release_license'])) { 259 $ret .= "$indent <license> $pkginfo[release_license]</license>\n";259 $ret .= "$indent <license>{$pkginfo['release_license']}</license>\n"; 260 260 } 261 261 if (!empty($pkginfo['release_state'])) { 262 $ret .= "$indent <state> $pkginfo[release_state]</state>\n";262 $ret .= "$indent <state>{$pkginfo['release_state']}</state>\n"; 263 263 } 264 264 if (!empty($pkginfo['release_notes'])) { … … 272 272 $ret .= "$indent <deps>\n"; 273 273 foreach ($pkginfo['release_deps'] as $dep) { 274 $ret .= "$indent <dep type=\" $dep[type]\" rel=\"$dep[rel]\"";274 $ret .= "$indent <dep type=\"{$dep['type']}\" rel=\"{$dep['rel']}\""; 275 275 if (isset($dep['version'])) { 276 $ret .= " version=\" $dep[version]\"";276 $ret .= " version=\"{$dep['version']}\""; 277 277 } 278 278 if (isset($dep['optional'])) { 279 $ret .= " optional=\" $dep[optional]\"";279 $ret .= " optional=\"{$dep['optional']}\""; 280 280 } 281 281 if (isset($dep['name'])) { 282 $ret .= "> $dep[name]</dep>\n";282 $ret .= ">{$dep['name']}</dep>\n"; 283 283 } else { 284 284 $ret .= "/>\n"; … … 302 302 if (isset($pkginfo['provides'])) { 303 303 foreach ($pkginfo['provides'] as $key => $what) { 304 $ret .= "$indent <provides type=\" $what[type]\" ";305 $ret .= "name=\" $what[name]\" ";304 $ret .= "$indent <provides type=\"{$what['type']}\" "; 305 $ret .= "name=\"{$what['name']}\" "; 306 306 if (isset($what['extends'])) { 307 $ret .= "extends=\" $what[extends]\" ";307 $ret .= "extends=\"{$what['extends']}\" "; 308 308 } 309 309 $ret .= "/>\n"; … … 319 319 $fa['role'] = ''; 320 320 } 321 $ret .= "$indent <file role=\" $fa[role]\"";321 $ret .= "$indent <file role=\"{$fa['role']}\""; 322 322 if (isset($fa['baseinstalldir'])) { 323 323 $ret .= ' baseinstalldir="' . … … 325 325 } 326 326 if (isset($fa['md5sum'])) { 327 $ret .= " md5sum=\" $fa[md5sum]\"";327 $ret .= " md5sum=\"{$fa['md5sum']}\""; 328 328 } 329 329 if (isset($fa['platform'])) { 330 $ret .= " platform=\" $fa[platform]\"";330 $ret .= " platform=\"{$fa['platform']}\""; 331 331 } 332 332 if (!empty($fa['install-as'])) { … … 427 427 function _formatFile($file, $attributes, $indent) 428 428 { 429 $ret = "$indent <file role=\" $attributes[role]\"";429 $ret = "$indent <file role=\"{$attributes['role']}\""; 430 430 if (isset($attributes['baseinstalldir'])) { 431 431 $ret .= ' baseinstalldir="' . … … 433 433 } 434 434 if (isset($attributes['md5sum'])) { 435 $ret .= " md5sum=\" $attributes[md5sum]\"";435 $ret .= " md5sum=\"{$attributes['md5sum']}\""; 436 436 } 437 437 if (isset($attributes['platform'])) { 438 $ret .= " platform=\" $attributes[platform]\"";438 $ret .= " platform=\"{$attributes['platform']}\""; 439 439 } 440 440 if (!empty($attributes['install-as'])) { -
trunk/library/PEAR/PEAR/PackageFile/Parser/v1.php
r5146 r7681 269 269 } 270 270 $attribs['explicit'] = true; 271 $this->_packageInfo['provides'][" $attribs[type];$attribs[name]"] = $attribs;271 $this->_packageInfo['provides']["{$attribs['type']};{$attribs['name']}"] = $attribs; 272 272 break; 273 273 case 'package' : -
trunk/library/PEAR/PEAR/REST.php
r5146 r7681 377 377 378 378 if (isset($lastmodified['ETag'])) { 379 $ifmodifiedsince .= "If-None-Match: $lastmodified[ETag]\r\n";379 $ifmodifiedsince .= "If-None-Match: {$lastmodified['ETag']}\r\n"; 380 380 } 381 381 } else { -
trunk/library/PEAR/PEAR/Task/Replace.php
r5146 r7681 124 124 $to = $chan->getServer(); 125 125 } else { 126 $this->logger->log(0, "$dest: invalid pear-config replacement: $a[to]");126 $this->logger->log(0, "$dest: invalid pear-config replacement: {$a['to']}"); 127 127 return false; 128 128 } … … 140 140 } 141 141 if (is_null($to)) { 142 $this->logger->log(0, "$dest: invalid pear-config replacement: $a[to]");142 $this->logger->log(0, "$dest: invalid pear-config replacement: {$a['to']}"); 143 143 return false; 144 144 } … … 150 150 $to = constant($a['to']); 151 151 } else { 152 $this->logger->log(0, "$dest: invalid php-const replacement: $a[to]");152 $this->logger->log(0, "$dest: invalid php-const replacement: {$a['to']}"); 153 153 return false; 154 154 } … … 157 157 $to = $t; 158 158 } else { 159 $this->logger->log(0, "$dest: invalid package-info replacement: $a[to]");159 $this->logger->log(0, "$dest: invalid package-info replacement: {$a['to']}"); 160 160 return false; 161 161 } -
trunk/listAdmin/inc/class.functions.inc.php
r7655 r7681 44 44 { 45 45 case list_users: 46 if ($array_acl[ add_users] || $array_acl[edit_users] || $array_acl[delete_users] || $array_acl[change_users_password] || $array_acl[change_users_quote] || $array_acl[edit_sambausers_attributes] || $array_acl[view_users])46 if ($array_acl['add_users'] || $array_acl['edit_users'] || $array_acl['delete_users'] || $array_acl['change_users_password'] || $array_acl['change_users_quote'] || $array_acl['edit_sambausers_attributes'] || $array_acl['view_users']) 47 47 return true; 48 48 break; 49 49 case add_users: 50 if ($array_acl[ add_users])50 if ($array_acl['add_users']) 51 51 return true; 52 52 break; 53 53 case edit_users: 54 if ($array_acl[ edit_users])54 if ($array_acl['edit_users']) 55 55 return true; 56 56 break; 57 57 case delete_users: 58 if ($array_acl[ delete_users])58 if ($array_acl['delete_users']) 59 59 return true; 60 60 break; 61 61 case rename_users: 62 if ($array_acl[ rename_users])62 if ($array_acl['rename_users']) 63 63 return true; 64 64 break; 65 65 case view_users: 66 if ($array_acl[ view_users])66 if ($array_acl['view_users']) 67 67 return true; 68 68 break; 69 69 case change_users_password: 70 if ($array_acl[ change_users_password])70 if ($array_acl['change_users_password']) 71 71 return true; 72 72 break; 73 73 case change_users_quote: 74 if ($array_acl[ change_users_quote])74 if ($array_acl['change_users_quote']) 75 75 return true; 76 76 break; 77 77 case set_user_default_password: 78 if ($array_acl[ set_user_default_password])78 if ($array_acl['set_user_default_password']) 79 79 return true; 80 80 break; 81 81 case edit_sambausers_attributes: 82 if ($array_acl[ edit_sambausers_attributes])82 if ($array_acl['edit_sambausers_attributes']) 83 83 return true; 84 84 break; 85 85 case edit_sambadomains: 86 if ($array_acl[ edit_sambadomains])86 if ($array_acl['edit_sambadomains']) 87 87 return true; 88 88 break; 89 89 90 90 case list_groups: 91 if ($array_acl[ add_groups] || $array_acl[edit_groups] || $array_acl[delete_groups])91 if ($array_acl['add_groups'] || $array_acl['edit_groups'] || $array_acl['delete_groups']) 92 92 return true; 93 93 break; 94 94 case add_groups: 95 if ($array_acl[ add_groups])95 if ($array_acl['add_groups']) 96 96 return true; 97 97 break; 98 98 case edit_groups: 99 if ($array_acl[ edit_groups])99 if ($array_acl['edit_groups']) 100 100 return true; 101 101 break; 102 102 case delete_groups: 103 if ($array_acl[ delete_groups])103 if ($array_acl['delete_groups']) 104 104 return true; 105 105 break; 106 106 case edit_email_groups: 107 if ($array_acl[ edit_email_groups])107 if ($array_acl['edit_email_groups']) 108 108 return true; 109 109 break; 110 110 111 111 case list_maillists: 112 if ($array_acl[ add_maillists] || $array_acl[edit_maillists] || $array_acl[adm_maillists] || $array_acl[delete_maillists])112 if ($array_acl['add_maillists'] || $array_acl['edit_maillists'] || $array_acl['adm_maillists'] || $array_acl['delete_maillists']) 113 113 return true; 114 114 break; 115 115 case add_maillists: 116 if ($array_acl[ add_maillists])116 if ($array_acl['add_maillists']) 117 117 return true; 118 118 break; 119 119 case edit_maillists: 120 if ($array_acl[ edit_maillists])120 if ($array_acl['edit_maillists']) 121 121 return true; 122 122 break; 123 123 case adm_maillists: 124 if ($array_acl[ adm_maillists])124 if ($array_acl['adm_maillists']) 125 125 return true; 126 126 break; 127 127 case delete_maillists: 128 if ($array_acl[ delete_maillists])128 if ($array_acl['delete_maillists']) 129 129 return true; 130 130 break; 131 131 132 132 case list_sectors: 133 if ($array_acl[ create_sectors] || $array_acl[edit_sectors] || $array_acl[delete_sectors])133 if ($array_acl['create_sectors'] || $array_acl['edit_sectors'] || $array_acl['delete_sectors']) 134 134 return true; 135 135 break; 136 136 case create_sectors: 137 if ($array_acl[ create_sectors])137 if ($array_acl['create_sectors']) 138 138 return true; 139 139 break; 140 140 case edit_sectors: 141 if ($array_acl[ edit_sectors])141 if ($array_acl['edit_sectors']) 142 142 return true; 143 143 break; 144 144 case delete_sectors: 145 if ($array_acl[ delete_sectors])145 if ($array_acl['delete_sectors']) 146 146 return true; 147 147 break; 148 148 149 149 case view_global_sessions: 150 if ($array_acl[ view_global_sessions])150 if ($array_acl['view_global_sessions']) 151 151 return true; 152 152 break; 153 153 154 154 case list_computers: 155 if ($array_acl[ create_computers] || $array_acl[edit_computers] || $array_acl[delete_computers])155 if ($array_acl['create_computers'] || $array_acl['edit_computers'] || $array_acl['delete_computers']) 156 156 return true; 157 157 break; 158 158 case create_computers: 159 if ($array_acl[ create_computers])159 if ($array_acl['create_computers']) 160 160 return true; 161 161 break; 162 162 case edit_computers: 163 if ($array_acl[ edit_computers])163 if ($array_acl['edit_computers']) 164 164 return true; 165 165 break; 166 166 case delete_computers: 167 if ($array_acl[ delete_computers])167 if ($array_acl['delete_computers']) 168 168 return true; 169 169 break; 170 170 171 171 case view_logs: 172 if ($array_acl[ view_logs])172 if ($array_acl['view_logs']) 173 173 return true; 174 174 break; … … 307 307 foreach ($tmp as $ldap) 308 308 { 309 if ($ldap[ account_id] == $GLOBALS['phpgw']->db->f(0))309 if ($ldap['account_id'] == $GLOBALS['phpgw']->db->f(0)) 310 310 { 311 311 $find=true; -
trunk/mobile/inc/class.ui_mobilemail.inc.php
r7655 r7681 459 459 460 460 $messages = $this->imap_functions->get_range_msgs2($params); 461 if($params['msg_range_end']<$messages[ num_msgs])461 if($params['msg_range_end']<$messages['num_msgs']) 462 462 $p->set_var("show_more","block"); 463 463 else 464 464 $p->set_var("show_more","none"); 465 $this->number_of_messages = $messages[ num_msgs];465 $this->number_of_messages = $messages['num_msgs']; 466 466 467 467 unset($messages["offsetToGMT"]); -
trunk/phpgwapi/cron/asyncservices.php
r5141 r7681 57 57 if (!isset($GLOBALS['phpgw_domain'][$_GET['domain']]) || empty($db_type)) 58 58 { 59 echo $msg = "asyncservice.php: Domain ' $_GET[domain]' is not configured or renamed, exiting !!!\n";59 echo $msg = "asyncservice.php: Domain '{$_GET['domain']}' is not configured or renamed, exiting !!!\n"; 60 60 if (defined('ASYNC_LOG')) 61 61 { -
trunk/phpgwapi/inc/class.Template.inc.php
r2 r7681 25 25 var $debug = False; // array('cat_list','cat_list_t'); 26 26 27 /* $file[ handle] = 'filename'; */27 /* $file['handle'] = 'filename'; */ 28 28 var $file = array(); 29 29 … … 31 31 var $root = ''; 32 32 33 /* $varkeys[ key] = 'key'; $varvals[key] = 'value'; */33 /* $varkeys['key'] = 'key'; $varvals['key'] = 'value'; */ 34 34 var $varkeys = array(); 35 35 var $varvals = array(); -
trunk/phpgwapi/inc/class.accounts.inc.php
r7673 r7681 189 189 * @param $param['query'] string to search for, no search if unset or empty 190 190 * @param $param['query_type'] string: 191 * 'all' - query all fields for containing $param[ query]192 * 'start' - query all fields starting with $param[ query]193 * 'exact' - query all fields for exact $param[ query]194 * 'lid','firstname','lastname','email' - query only the given field for containing $param[ query]191 * 'all' - query all fields for containing $param['query'] 192 * 'start' - query all fields starting with $param['query'] 193 * 'exact' - query all fields for exact $param['query'] 194 * 'lid','firstname','lastname','email' - query only the given field for containing $param['query'] 195 195 * @param $param['app'] string with an app-name, to limit result on accounts with run-right for that app 196 196 * @param $param['offset'] int - number of matches to return if start given, default use the value in the prefs … … 251 251 $this->total = $account_search[$serial2]['total']; 252 252 } 253 //echo "accounts_::get_list( $param[type],$param[start],$param[sort],$param[order],$param[query],$param[offset],$param[query_type]) returned<pre>".print_r($account_search[$serial2],True)."</pre>\n";253 //echo "accounts_::get_list({$param['type']},{$param['start']},{$param['sort']},{$param['order']},{$param['query']},{$param['offset']},{$param['query_type']}) returned<pre>".print_r($account_search[$serial2],True)."</pre>\n"; 254 254 if ($app || $group) // limit the search on accounts with run-rights for app or a group 255 255 { -
trunk/phpgwapi/inc/class.asyncservice.inc.php
r6057 r7681 522 522 if ($exists || $this->read($job['id'])) 523 523 { 524 $this->db->query("UPDATE $this->db_table SET next= $job[next],times='$job[times]',".525 "method=' $job[method]',data='$job[data]',account_id=$job[account_id] WHERE id='$job[id]'",__LINE__,__FILE__);524 $this->db->query("UPDATE $this->db_table SET next={$job['next']},times='{$job['times']}',". 525 "method='{$job['method']}',data='{$job['data']}',account_id={$job['account_id']} WHERE id='{$job['id']}'",__LINE__,__FILE__); 526 526 } 527 527 else 528 528 { 529 529 $this->db->query("INSERT INTO $this->db_table (id,next,times,method,data,account_id) VALUES ". 530 "(' $job[id]',$job[next],'$job[times]','$job[method]','$job[data]',$job[account_id])",__LINE__,__FILE__);530 "('{$job['id']}',{$job['next']},'{$job['times']}','{$job['method']}','{$job['data']}',{$job['account_id']})",__LINE__,__FILE__); 531 531 } 532 532 } -
trunk/phpgwapi/inc/class.matrixview.inc.php
r7655 r7681 104 104 { 105 105 $dinfo = getdate(mktime(0,0,0, $this->month+1,0,$this->year)); 106 $this->day = $dinfo[ mday];106 $this->day = $dinfo['mday']; 107 107 } 108 108 … … 200 200 201 201 $in = getdate(mktime(0,0,0, $this->month+1,0,$this->year)); 202 $this->sumdays = $in[ mday];203 $this->monthname = $in[ month];202 $this->sumdays = $in['mday']; 203 $this->monthname = $in['month']; 204 204 205 205 $this->out_monthyear($form_link); -
trunk/phpgwapi/inc/class.uiaccountsel.inc.php
r2 r7681 343 343 344 344 $GLOBALS['phpgw']->template->set_var('onclick',"addOption('$element_id','". 345 $GLOBALS['phpgw']->common->grab_owner_name($group['account_id'])."',' $group[account_id]')".345 $GLOBALS['phpgw']->common->grab_owner_name($group['account_id'])."','{$group['account_id']}')". 346 346 ($single ? '; window.close()' : '')); 347 347 … … 409 409 'lastname' => $user['account_lastname'] ? $user['account_lastname'] : ' ', 410 410 'onclick' => "addOption('$element_id','". 411 $GLOBALS['phpgw']->common->grab_owner_name($user['account_id'])."',' $user[account_id]')".411 $GLOBALS['phpgw']->common->grab_owner_name($user['account_id'])."','{$user['account_id']}')". 412 412 ($single ? '; window.close()' : ''), 413 413 )); -
trunk/phpgwapi/inc/class.vfs_dav.inc.php
r7655 r7681 585 585 while (list ($num, $link_info) = each ($this->linked_dirs)) 586 586 { 587 if (preg_match("/^ $link_info[directory]\/$link_info[name](\/|$)/", $rarray['fake_full_path']))587 if (preg_match("/^{$link_info['directory']}\/{$link_info['name']}(\/|$)/", $rarray['fake_full_path'])) 588 588 { 589 589 $rarray['real_full_path'] = preg_replace("/^$this->basedir/", '', $rarray['real_full_path']); 590 $rarray['real_full_path'] = preg_replace("/^ $link_info[directory]" . SEP . "$link_info[name]/", $link_info['link_directory'] . SEP . $link_info['link_name'], $rarray['real_full_path']);590 $rarray['real_full_path'] = preg_replace("/^{$link_info['directory']}" . SEP . "{$link_info['name']}/", $link_info['link_directory'] . SEP . $link_info['link_name'], $rarray['real_full_path']); 591 591 592 592 $p = $this->path_parts (array( … … 643 643 644 644 /* 645 echo "<br>fake_full_path: $rarray[fake_full_path]646 <br>fake_leading_dirs: $rarray[fake_leading_dirs]647 <br>fake_extra_path: $rarray[fake_extra_path]648 <br>fake_name: $rarray[fake_name]649 <br>real_full_path: $rarray[real_full_path]650 <br>real_full_url: $rarray[real_full_url]651 <br>real_leading_dirs: $rarray[real_leading_dirs]652 <br>real_extra_path: $rarray[real_extra_path]653 <br>real_name: $rarray[real_name]";645 echo "<br>fake_full_path: {$rarray['fake_full_path']} 646 <br>fake_leading_dirs: {$rarray['fake_leading_dirs']} 647 <br>fake_extra_path: {$rarray['fake_extra_path']} 648 <br>fake_name: {$rarray['fake_name']} 649 <br>real_full_path: {$rarray['real_full_path']} 650 <br>real_full_url: {$rarray['real_full_url']} 651 <br>real_leading_dirs: {$rarray['real_leading_dirs']} 652 <br>real_extra_path: {$rarray['real_extra_path']} 653 <br>real_name: {$rarray['real_name']}"; 654 654 */ 655 655 … … 1681 1681 $newdir = preg_replace("/^$f->fake_full_path/", "$t->fake_full_path", $entry['directory']); 1682 1682 $this->cp (array( 1683 'from' => "$entry[directory]/ $entry[name]",1684 'to' => "$newdir/ $entry[name]",1683 'from' => "$entry[directory]/{$entry['name']}", 1684 'to' => "$newdir/{$entry['name']}", 1685 1685 'relatives' => array ($f->mask, $t->mask) 1686 1686 ) … … 1951 1951 { 1952 1952 $this->rm (array( 1953 'string' => " $entry[directory]/$entry[name]",1953 'string' => "{$entry['directory']}/{$entry['name']}", 1954 1954 'relatives' => array ($p->mask) 1955 1955 ) -
trunk/phpgwapi/inc/class.vfs_shared.inc.php
r7655 r7681 1028 1028 while (list ($num, $link_info) = each ($this->linked_dirs)) 1029 1029 { 1030 if (preg_match("/^ $link_info[directory]\/$link_info[name](\/|$)/", $rarray['fake_full_path']))1030 if (preg_match("/^{$link_info['directory']}\/{$link_info['name']}(\/|$)/", $rarray['fake_full_path'])) 1031 1031 { 1032 1032 $rarray['real_full_path'] = preg_replace("/^$this->basedir/", '', $rarray['real_full_path']); 1033 $rarray['real_full_path'] = preg_replace("/^ $link_info[directory]" . SEP . "$link_info[name]/", $link_info['link_directory'] . SEP . $link_info['link_name'], $rarray['real_full_path']);1033 $rarray['real_full_path'] = preg_replace("/^{$link_info['directory']}" . SEP . "{$link_info['name']}/", $link_info['link_directory'] . SEP . $link_info['link_name'], $rarray['real_full_path']); 1034 1034 1035 1035 $p = $this->path_parts (array( … … 1069 1069 } 1070 1070 1071 1072 echo "<br>fake_full_path: $rarray[fake_full_path]1073 <br>fake_leading_dirs: $rarray[fake_leading_dirs]1074 <br>fake_extra_path: $rarray[fake_extra_path]1075 <br>fake_name: $rarray[fake_name]1076 <br>real_full_path: $rarray[real_full_path]1077 <br>real_leading_dirs: $rarray[real_leading_dirs]1078 <br>real_extra_path: $rarray[real_extra_path]1079 <br>real_name: $rarray[real_name]";1080 1071 /* 1072 echo "<br>fake_full_path: {$rarray['fake_full_path']} 1073 <br>fake_leading_dirs: {$rarray['fake_leading_dirs']} 1074 <br>fake_extra_path: {$rarray['fake_extra_path']} 1075 <br>fake_name: {$rarray['fake_name']} 1076 <br>real_full_path: {$rarray['real_full_path']} 1077 <br>real_leading_dirs: {$rarray['real_leading_dirs']} 1078 <br>real_extra_path: {$rarray['real_extra_path']} 1079 <br>real_name: {$rarray['real_name']}"; 1080 */ 1081 1081 1082 1082 if ($data['object']) -
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r7655 r7681 1411 1411 $newdir = preg_replace("/^$f->fake_full_path/", "$t->fake_full_path", $entry['directory']); 1412 1412 $this->cp (array( 1413 'from' => "$entry[directory]/ $entry[name]",1414 'to' => "$newdir/ $entry[name]",1413 'from' => "$entry[directory]/{$entry['name']}", 1414 'to' => "$newdir/{$entry['name']}", 1415 1415 'relatives' => array ($f->mask, $t->mask) 1416 1416 ) … … 1651 1651 1652 1652 $query = $GLOBALS['phpgw']->db->query ("UPDATE phpgw_vfs SET directory='". 1653 $GLOBALS['phpgw']->db->db_addslashes($newdir_clean)."' WHERE file_id=' $entry[file_id]'" .1653 $GLOBALS['phpgw']->db->db_addslashes($newdir_clean)."' WHERE file_id='{$entry['file_id']}'" . 1654 1654 $this->extra_sql (array ('query_type' => VFS_SQL_UPDATE)), __LINE__, __FILE__); 1655 1655 $this->correct_attributes (array( 1656 'string' => "$newdir/ $entry[name]",1656 'string' => "$newdir/{$entry['name']}", 1657 1657 'relatives' => array ($t->mask) 1658 1658 ) … … 1782 1782 1783 1783 $this->rm (array( 1784 'string' => " $entry[directory]/$entry[name]",1784 'string' => "{$entry['directory']}/{$entry['name']}", 1785 1785 'relatives' => array ($p->mask) 1786 1786 ) … … 1798 1798 /* Only the best in confusing recursion */ 1799 1799 $this->rm (array( 1800 'string' => " $entry[directory]/$entry[name]",1800 'string' => "{$entry['directory']}/{$entry['name']}", 1801 1801 'relatives' => array ($p->mask) 1802 1802 ) -
trunk/phpgwapi/templates/classic/login_classic.php
r7673 r7681 315 315 $config_reg = $cnf_reg->config_data; 316 316 317 if($config_reg[ enable_registration]=='True' && $config_reg[register_link]=='True')317 if($config_reg['enable_registration']=='True' && $config_reg['register_link']=='True') 318 318 { 319 319 $reg_link=' <a href="registration/">'.lang('Not a user yet? Register now').'</a><br/>'; -
trunk/phpgwapi/templates/default/login_default.php
r7673 r7681 428 428 $config_reg = $cnf_reg->config_data; 429 429 430 if($config_reg[ enable_registration]=='True' && $config_reg[register_link]=='True')430 if($config_reg['enable_registration']=='True' && $config_reg['register_link']=='True') 431 431 { 432 432 $reg_link=' <a href="registration/">'.lang('Not a user yet? Register now').'</a><br/>'; -
trunk/phpgwapi/templates/news/login_news.php
r7673 r7681 364 364 $config_reg = $cnf_reg->config_data; 365 365 366 if($config_reg[ enable_registration]=='True' && $config_reg[register_link]=='True')366 if($config_reg['enable_registration']=='True' && $config_reg['register_link']=='True') 367 367 { 368 368 $reg_link=' <a href="registration/">'.lang('Not a user yet? Register now').'</a><br/>'; -
trunk/preferences/preferences.php
r5815 r7681 470 470 } 471 471 472 $show_help = " $session_data[show_help]" != '' && $session_data['appname'] == $_GET['appname'] ?472 $show_help = "{$session_data['show_help']}" != '' && $session_data['appname'] == $_GET['appname'] ? 473 473 $session_data['show_help'] : (int)$GLOBALS['phpgw_info']['user']['preferences']['common']['show_help']; 474 474 -
trunk/prototype.php
r5136 r7681 1 <? require_once 'prototype/REST.php' ?>1 <?php require_once 'prototype/REST.php' ?> -
trunk/reports/inc/class.functions.inc.php
r7655 r7681 58 58 { 59 59 case list_users: 60 if ($array_acl[ acl_add_users] || $array_acl[acl_edit_users] || $array_acl[acl_delete_users] || $array_acl[acl_change_users_password] || $array_acl[acl_change_users_quote] || $array_acl[acl_edit_sambausers_attributes] || $array_acl[acl_view_users] || $array_acl[acl_manipulate_corporative_information] || $array_acl[acl_edit_users_phonenumber] )60 if ($array_acl['acl_add_users'] || $array_acl['acl_edit_users'] || $array_acl['acl_delete_users'] || $array_acl['acl_change_users_password'] || $array_acl['acl_change_users_quote'] || $array_acl['acl_edit_sambausers_attributes'] || $array_acl['acl_view_users'] || $array_acl['acl_manipulate_corporative_information'] || $array_acl['acl_edit_users_phonenumber'] ) 61 61 return true; 62 62 break; 63 63 case report_users: 64 if ($array_acl[ acl_change_users_quote] || $array_acl[acl_view_users])64 if ($array_acl['acl_change_users_quote'] || $array_acl['acl_view_users']) 65 65 return true; 66 66 break; 67 67 case list_groups: 68 if ($array_acl[ acl_add_groups] || $array_acl[acl_edit_groups] || $array_acl[acl_delete_groups])68 if ($array_acl['acl_add_groups'] || $array_acl['acl_edit_groups'] || $array_acl['acl_delete_groups']) 69 69 return true; 70 70 break; 71 71 case list_maillists: 72 if ($array_acl[ acl_add_maillists] || $array_acl[acl_edit_maillists] || $array_acl[acl_delete_maillists])72 if ($array_acl['acl_add_maillists'] || $array_acl['acl_edit_maillists'] || $array_acl['acl_delete_maillists']) 73 73 return true; 74 74 break; 75 75 case list_sectors: 76 76 // if ($array_acl[acl_create_sectors] || $array_acl[acl_edit_sectors] || $array_acl[acl_delete_sectors]) 77 if ($array_acl[ acl_view_users])77 if ($array_acl['acl_view_users']) 78 78 return true; 79 79 break; 80 80 case list_computers: 81 if ($array_acl[ acl_create_computers] || $array_acl[acl_edit_computers] || $array_acl[acl_delete_computers])81 if ($array_acl['acl_create_computers'] || $array_acl['acl_edit_computers'] || $array_acl['acl_delete_computers']) 82 82 return true; 83 83 break; 84 84 85 85 case display_groups: 86 if ( $array_acl[ acl_edit_users] || $array_acl[acl_view_users] || ($array_acl[acl_edit_sambausers_attributes] && ($this->current_config['expressoAdmin_samba_support'] == 'true')) )86 if ( $array_acl['acl_edit_users'] || $array_acl['acl_view_users'] || ($array_acl['acl_edit_sambausers_attributes'] && ($this->current_config['expressoAdmin_samba_support'] == 'true')) ) 87 87 return true; 88 88 break; 89 89 case display_emailconfig: 90 if ($array_acl[ acl_edit_users] || $array_acl[acl_view_users])90 if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users']) 91 91 return true; 92 92 break; 93 93 case display_applications: 94 if ($array_acl[ acl_edit_users] || $array_acl[acl_view_users])94 if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users']) 95 95 return true; 96 96 break; 97 97 case display_emaillists: 98 if ($array_acl[ acl_edit_users] || $array_acl[acl_view_users])98 if ($array_acl['acl_edit_users'] || $array_acl['acl_view_users']) 99 99 return true; 100 100 break; 101 101 102 102 case list_institutional_accounts: 103 if ($array_acl[ acl_add_institutional_accounts] || $array_acl[acl_edit_institutional_accounts] || $array_acl[acl_delete_institutional_accounts])103 if ($array_acl['acl_add_institutional_accounts'] || $array_acl['acl_edit_institutional_accounts'] || $array_acl['acl_delete_institutional_accounts']) 104 104 return true; 105 105 break; -
trunk/reports/inc/class.uireports_cota.inc.php
r7655 r7681 203 203 function report_cota_group_setor_print() 204 204 { 205 $grouplist = trim($_POST[ setor]);205 $grouplist = trim($_POST['setor']); 206 206 $grouplist = trim(ereg_replace("-","",$grouplist)); 207 $organizacao = trim($_POST[ organizacao]);208 $setordn = trim($_POST[ setordn]);209 $organizacaodn = trim($_POST[ organizacaodn]);210 $sectornamedncompleto = trim($_POST[ sectornamedncompleto]);211 $Psectornamedncompleto = trim($_POST[ Psectornamedncompleto]);207 $organizacao = trim($_POST['organizacao']); 208 $setordn = trim($_POST['setordn']); 209 $organizacaodn = trim($_POST['organizacaodn']); 210 $sectornamedncompleto = trim($_POST['sectornamedncompleto']); 211 $Psectornamedncompleto = trim($_POST['Psectornamedncompleto']); 212 212 213 213 if ($sectornamedncompleto=="" && $Psectornamedncompleto=="") … … 289 289 290 290 // **** Grupo de paginas **** 291 $gpag = $_POST[ gpage];291 $gpag = $_POST['gpage']; 292 292 293 293 $grupopage = 20; … … 298 298 299 299 // recebe o numero da pagina 300 $npag = $_POST[ page];300 $npag = $_POST['page']; 301 301 302 302 // verifica se o get com o numero da pagina é nulo … … 512 512 } 513 513 514 $grouplist = trim($_POST[ setor]);514 $grouplist = trim($_POST['setor']); 515 515 $grouplist = trim(ereg_replace("-","",$grouplist)); 516 516 517 $setordn = trim($_POST[ setordn]);518 $subtitulo1 = trim($_POST[ subtitulo]);517 $setordn = trim($_POST['setordn']); 518 $subtitulo1 = trim($_POST['subtitulo']); 519 519 520 520 define('FPDF_FONTPATH','font/'); -
trunk/reports/inc/class.uireports_institutionalAccounts.inc.php
r7655 r7681 65 65 } 66 66 67 $grouplist = trim($_POST[ setor]);67 $grouplist = trim($_POST['setor']); 68 68 $grouplist = trim(ereg_replace("-","",$grouplist)); 69 69 70 $setordn = trim($_POST[ setordn]);71 $subtitulo1 = trim($_POST[ subtitulo]);70 $setordn = trim($_POST['setordn']); 71 $subtitulo1 = trim($_POST['subtitulo']); 72 72 73 73 define('FPDF_FONTPATH','font/'); … … 324 324 function report_institutionalAccounts_group_setor_print() 325 325 { 326 $grouplist = trim($_POST[ setor]);326 $grouplist = trim($_POST['setor']); 327 327 $grouplist = trim(ereg_replace("-","",$grouplist)); 328 $organizacao = trim($_POST[ organizacao]);329 $setordn = trim($_POST[ setordn]);330 $organizacaodn = trim($_POST[ organizacaodn]);331 $sectornamedncompleto = trim($_POST[ sectornamedncompleto]);332 $Psectornamedncompleto = trim($_POST[ Psectornamedncompleto]);328 $organizacao = trim($_POST['organizacao']); 329 $setordn = trim($_POST['setordn']); 330 $organizacaodn = trim($_POST['organizacaodn']); 331 $sectornamedncompleto = trim($_POST['sectornamedncompleto']); 332 $Psectornamedncompleto = trim($_POST['Psectornamedncompleto']); 333 333 334 334 if ($sectornamedncompleto=="" && $Psectornamedncompleto=="") … … 409 409 410 410 // **** Grupo de paginas **** 411 $gpag = $_POST[ gpage];411 $gpag = $_POST['gpage']; 412 412 413 413 $grupopage = 20; … … 418 418 419 419 // recebe o numero da pagina 420 $npag = $_POST[ page];420 $npag = $_POST['page']; 421 421 422 422 // verifica se o get com o numero da pagina é nulo -
trunk/reports/inc/class.uireports_logon.inc.php
r7655 r7681 66 66 } 67 67 68 $grouplist = trim($_POST[ setor]);68 $grouplist = trim($_POST['setor']); 69 69 $grouplist = trim(ereg_replace("-","",$grouplist)); 70 70 71 $setordn = trim($_POST[ setordn]);72 $subtitulo1 = trim($_POST[ subtitulo]);73 74 $vnumacesso = trim($_POST[ nacesso]);71 $setordn = trim($_POST['setordn']); 72 $subtitulo1 = trim($_POST['subtitulo']); 73 74 $vnumacesso = trim($_POST['nacesso']); 75 75 $numacesso = abs(round($vnumacesso)); 76 76 … … 401 401 } 402 402 403 $grouplist = trim($_POST[ setor]);403 $grouplist = trim($_POST['setor']); 404 404 $grouplist = trim(ereg_replace("-","",$grouplist)); 405 $organizacao = trim($_POST[ organizacao]);406 $setordn = trim($_POST[ setordn]);407 $organizacaodn = trim($_POST[ organizacaodn]);408 $sectornamedncompleto = trim($_POST[ sectornamedncompleto]);409 $Psectornamedncompleto = trim($_POST[ Psectornamedncompleto]);405 $organizacao = trim($_POST['organizacao']); 406 $setordn = trim($_POST['setordn']); 407 $organizacaodn = trim($_POST['organizacaodn']); 408 $sectornamedncompleto = trim($_POST['sectornamedncompleto']); 409 $Psectornamedncompleto = trim($_POST['Psectornamedncompleto']); 410 410 411 411 if ($sectornamedncompleto=="" && $Psectornamedncompleto=="") … … 485 485 486 486 // **** Grupo de paginas **** 487 $gpag = $_POST[ gpage];487 $gpag = $_POST['gpage']; 488 488 489 489 $grupopage = 20; … … 494 494 495 495 // recebe o numero da pagina 496 $npag = $_POST[ page];496 $npag = $_POST['page']; 497 497 498 498 // verifica se o get com o numero da pagina é nulo -
trunk/reports/inc/class.uireports_maillists.inc.php
r7655 r7681 65 65 } 66 66 67 $grouplist = trim($_POST[ setor]);67 $grouplist = trim($_POST['setor']); 68 68 $grouplist = trim(ereg_replace("-","",$grouplist)); 69 69 70 $setordn = trim($_POST[ setordn]);71 $subtitulo1 = trim($_POST[ subtitulo]);70 $setordn = trim($_POST['setordn']); 71 $subtitulo1 = trim($_POST['subtitulo']); 72 72 73 73 define('FPDF_FONTPATH','font/'); … … 300 300 function report_maillists_group_print() 301 301 { 302 $grouplist = trim($_POST[ setor]);302 $grouplist = trim($_POST['setor']); 303 303 $grouplist = trim(ereg_replace("-","",$grouplist)); 304 $organizacao = trim($_POST[ organizacao]);305 $setordn = trim($_POST[ setordn]);306 $organizacaodn = trim($_POST[ organizacaodn]);307 $sectornamedncompleto = trim($_POST[ sectornamedncompleto]);308 $Psectornamedncompleto = trim($_POST[ Psectornamedncompleto]);304 $organizacao = trim($_POST['organizacao']); 305 $setordn = trim($_POST['setordn']); 306 $organizacaodn = trim($_POST['organizacaodn']); 307 $sectornamedncompleto = trim($_POST['sectornamedncompleto']); 308 $Psectornamedncompleto = trim($_POST['Psectornamedncompleto']); 309 309 310 310 if ($sectornamedncompleto=="" && $Psectornamedncompleto=="") … … 385 385 386 386 // **** Grupo de paginas **** 387 $gpag = $_POST[ gpage];387 $gpag = $_POST['gpage']; 388 388 389 389 $grupopage = 20; … … 394 394 395 395 // recebe o numero da pagina 396 $npag = $_POST[ page];396 $npag = $_POST['page']; 397 397 398 398 // verifica se o get com o numero da pagina é nulo -
trunk/reports/inc/class.uireports_shareAccounts.inc.php
r7655 r7681 67 67 } 68 68 69 $grouplist = trim($_POST[ setor]);69 $grouplist = trim($_POST['setor']); 70 70 $grouplist = trim(ereg_replace("-","",$grouplist)); 71 71 72 $setordn = trim($_POST[ setordn]);73 $subtitulo1 = trim($_POST[ subtitulo]);72 $setordn = trim($_POST['setordn']); 73 $subtitulo1 = trim($_POST['subtitulo']); 74 74 75 75 define('FPDF_FONTPATH','font/'); … … 329 329 function report_shareAccounts_group_setor_print() 330 330 { 331 $grouplist = trim($_POST[ setor]);331 $grouplist = trim($_POST['setor']); 332 332 $grouplist = trim(ereg_replace("-","",$grouplist)); 333 $organizacao = trim($_POST[ organizacao]);334 $setordn = trim($_POST[ setordn]);335 $organizacaodn = trim($_POST[ organizacaodn]);336 $sectornamedncompleto = trim($_POST[ sectornamedncompleto]);337 $Psectornamedncompleto = trim($_POST[ Psectornamedncompleto]);333 $organizacao = trim($_POST['organizacao']); 334 $setordn = trim($_POST['setordn']); 335 $organizacaodn = trim($_POST['organizacaodn']); 336 $sectornamedncompleto = trim($_POST['sectornamedncompleto']); 337 $Psectornamedncompleto = trim($_POST['Psectornamedncompleto']); 338 338 339 339 if ($sectornamedncompleto=="" && $Psectornamedncompleto=="") … … 414 414 415 415 // **** Grupo de paginas **** 416 $gpag = $_POST[ gpage];416 $gpag = $_POST['gpage']; 417 417 418 418 $grupopage = 20; … … 423 423 424 424 // recebe o numero da pagina 425 $npag = $_POST[ page];425 $npag = $_POST['page']; 426 426 427 427 // verifica se o get com o numero da pagina é nulo -
trunk/reports/inc/class.uireports_users.inc.php
r7655 r7681 65 65 } 66 66 67 $grouplist = trim($_POST[ setor]);67 $grouplist = trim($_POST['setor']); 68 68 $grouplist = trim(ereg_replace("-","",$grouplist)); 69 69 70 $setordn = trim($_POST[ setordn]);71 $subtitulo1 = trim($_POST[ subtitulo]);70 $setordn = trim($_POST['setordn']); 71 $subtitulo1 = trim($_POST['subtitulo']); 72 72 73 73 define('FPDF_FONTPATH','font/'); … … 318 318 function report_users_group_setor_print() 319 319 { 320 $grouplist = trim($_POST[ setor]);320 $grouplist = trim($_POST['setor']); 321 321 $grouplist = trim(ereg_replace("-","",$grouplist)); 322 $organizacao = trim($_POST[ organizacao]);323 $setordn = trim($_POST[ setordn]);324 $organizacaodn = trim($_POST[ organizacaodn]);325 $sectornamedncompleto = trim($_POST[ sectornamedncompleto]);326 $Psectornamedncompleto = trim($_POST[ Psectornamedncompleto]);322 $organizacao = trim($_POST['organizacao']); 323 $setordn = trim($_POST['setordn']); 324 $organizacaodn = trim($_POST['organizacaodn']); 325 $sectornamedncompleto = trim($_POST['sectornamedncompleto']); 326 $Psectornamedncompleto = trim($_POST['Psectornamedncompleto']); 327 327 328 328 if ($sectornamedncompleto=="" && $Psectornamedncompleto=="") … … 403 403 404 404 // **** Grupo de paginas **** 405 $gpag = $_POST[ gpage];405 $gpag = $_POST['gpage']; 406 406 407 407 $grupopage = 20; … … 412 412 413 413 // recebe o numero da pagina 414 $npag = $_POST[ page];414 $npag = $_POST['page']; 415 415 416 416 // verifica se o get com o numero da pagina é nulo -
trunk/reports/inc/class.uireports_usersgroups.inc.php
r7655 r7681 65 65 } 66 66 67 $grouplist = trim($_POST[ setor]);67 $grouplist = trim($_POST['setor']); 68 68 $grouplist = trim(ereg_replace("-","",$grouplist)); 69 69 70 $setordn = trim($_POST[ setordn]);71 $subtitulo1 = trim($_POST[ subtitulo]);70 $setordn = trim($_POST['setordn']); 71 $subtitulo1 = trim($_POST['subtitulo']); 72 72 73 73 define('FPDF_FONTPATH','font/'); … … 297 297 function report_usersgroups_group_print() 298 298 { 299 $grouplist = trim($_POST[ setor]);299 $grouplist = trim($_POST['setor']); 300 300 $grouplist = trim(ereg_replace("-","",$grouplist)); 301 $organizacao = trim($_POST[ organizacao]);302 $setordn = trim($_POST[ setordn]);303 $organizacaodn = trim($_POST[ organizacaodn]);304 $sectornamedncompleto = trim($_POST[ sectornamedncompleto]);305 $Psectornamedncompleto = trim($_POST[ Psectornamedncompleto]);301 $organizacao = trim($_POST['organizacao']); 302 $setordn = trim($_POST['setordn']); 303 $organizacaodn = trim($_POST['organizacaodn']); 304 $sectornamedncompleto = trim($_POST['sectornamedncompleto']); 305 $Psectornamedncompleto = trim($_POST['Psectornamedncompleto']); 306 306 307 307 if ($sectornamedncompleto=="" && $Psectornamedncompleto=="") … … 382 382 383 383 // **** Grupo de paginas **** 384 $gpag = $_POST[ gpage];384 $gpag = $_POST['gpage']; 385 385 386 386 $grupopage = 20; … … 391 391 392 392 // recebe o numero da pagina 393 $npag = $_POST[ page];393 $npag = $_POST['page']; 394 394 395 395 // verifica se o get com o numero da pagina é nulo -
trunk/reports/index.php
r6920 r7681 34 34 'lang_rel_maillists_org' => lang('report maillists organization'), 35 35 'lang_rel_usersgroups_org' => lang('report usersgroups organization'), 36 'page' => $_GET[ page]36 'page' => $_GET['page'] 37 37 ); 38 38 $template->set_var($var); -
trunk/setup/check_install.php
r5781 r7681 272 272 $owner = function_exists('posix_getpwuid') ? posix_getpwuid(@fileowner($name)) : array('name' => 'nn'); 273 273 $group = function_exists('posix_getgrgid') ? posix_getgrgid(@filegroup($name)) : array('name' => 'nn'); 274 $perms = " $owner[name]/$group[name]".verbosePerms(@fileperms($name));274 $perms = "{$owner['name']}/{$group['name']} ".verbosePerms(@fileperms($name)); 275 275 } 276 276 -
trunk/setup/inc/class.Template.inc.php
r2 r7681 21 21 var $debug = False; 22 22 23 /* $file[ handle] = 'filename'; */23 /* $file['handle'] = 'filename'; */ 24 24 var $file = array(); 25 25 … … 27 27 var $root = ''; 28 28 29 /* $varkeys[ key] = 'key'; $varvals[key] = 'value'; */29 /* $varkeys['key'] = 'key'; $varvals['key'] = 'value'; */ 30 30 var $varkeys = array(); 31 31 var $varvals = array(); -
trunk/setup/index.php
r3653 r7681 184 184 . '<br><i>[user@server user]# mysql -u root -p</i><br>' 185 185 . lang('Create the empty database and grant user permissions -') 186 . "<br><i>mysql> create database $info[db_name];</i>"186 . "<br><i>mysql> create database {$info['db_name']};</i>" 187 187 . "<br><i>mysql> grant all on " . $info['db_name'] 188 188 . ".* to " . $info['db_user'] . "@localhost identified by '" . $info['db_pass'] . "';</i>"); -
trunk/setup/system_charset.php
r2 r7681 65 65 Header('Location: index.php'); 66 66 } 67 echo '<h3>'.lang("Database successfully converted from '%1' to '%2'",$_POST[ current_charset],$_POST[new_charset])."</h3>\n";67 echo '<h3>'.lang("Database successfully converted from '%1' to '%2'",$_POST['current_charset'],$_POST['new_charset'])."</h3>\n"; 68 68 echo '<p>'.lang('Click <a href="index.php">here</a> to return to setup.')."</p>\n"; 69 69 exit; -
trunk/workflow/inc/engine/config.egw.inc.php
r3167 r7681 49 49 // check if basedir exists 50 50 $test=$GLOBALS['phpgw']->vfs->get_real_info(array('string' => '/', 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 51 if($test[ mime_type]!='Directory')51 if($test['mime_type']!='Directory') 52 52 { 53 53 galaxia_show_error(lang('Base directory does not exist, please ask adminstrator to check the global configuration'),false, true); … … 56 56 // check if /workflow exists 57 57 $test = @$GLOBALS['phpgw']->vfs->get_real_info(array('string' => '/workflow', 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 58 if($test[ mime_type]!='Directory')58 if($test['mime_type']!='Directory') 59 59 { 60 60 // if not, create it … … 68 68 // test one more time 69 69 $test = $GLOBALS['phpgw']->vfs->get_real_info(array('string' => '/workflow', 'relatives' => array(RELATIVE_NONE), 'relative' => False)); 70 if($test[ mime_type]!='Directory')70 if($test['mime_type']!='Directory') 71 71 { 72 72 galaxia_show_error(lang('/workflow directory does not exist and could not be created, please ask adminstrator to check the global configuration'), false, true); -
trunk/workflow/inc/engine/src/common/WfRuntime.php
r3167 r7681 555 555 { 556 556 // activity is interactive and the activity source set the 557 // $GLOBALS[ workflow][__leave_activity] it's a 'cancel' mode.557 // $GLOBALS['workflow'][__leave_activity] it's a 'cancel' mode. 558 558 // we redirect the user to the leave activity page 559 559 $result['action']='leaving'; -
trunk/workflow/inc/report/cad_listagem.php
r5307 r7681 1 <? 1 <?php 2 2 3 3 $BASE_URL = "index.php?menuaction=workflow.reports.form"; … … 144 144 <tr> 145 145 <td align="center" id="tabnav"> 146 <a href="javascript:void(null);" onclick="window.location.href='<?=$BASE_URL?>';" <? if($abaMenu == 'pesquisa'){ echo 'class="active"'; }?>>Pesquisa</a>147 </td> 148 <? if (($lstoid != "") || ($lstoid == "" && $FrmCadListagem_acao == "editar") || ($FrmCadListagem_acao == "atualizar_listagem")) { ?>149 <td align="center" id="tabnav"> 150 <a href="javascript:void(null);" onclick="javascript:mudaAba('cadastro');" <? if($abaMenu == 'cadastro'){ echo 'class="active"'; }?>>Cadastro</a>151 </td> 152 <? } ?>153 <? if (($lstoid != "") || ($FrmCadListagem_acao == "atualizar_listagem")) { ?>154 <td align="center" id="tabnav"> 155 <a href="javascript:void(null);" onclick="javascript:mudaAba('colunas');" <? if($abaMenu == 'colunas'){ echo 'class="active"'; }?>>Colunas</a>156 </td> 157 <td align="center" id="tabnav"> 158 <a href="javascript:void(null);" onclick="javascript:mudaAba('indicadores');" <? if($abaMenu == 'indicadores'){ echo 'class="active"'; }?>>Indicadores</a>159 </td> 160 <td align="center" id="tabnav"> 161 <a href="javascript:void(null);" onclick="javascript:mudaAba('parametros');" <? if($abaMenu == 'parametros'){ echo 'class="active"'; }?>>Parametros</a>162 </td> 163 <td align="center" id="tabnav"> 164 <a href="javascript:void(null);" onclick="javascript:mudaAba('preview');" <? if($abaMenu == 'preview'){ echo 'class="active"'; }?>>Pre-Visualizacao</a>165 </td> 166 <? if ($habilitasincronizacao) { ?>167 <td align="center" id="tabnav"> 168 <a href="javascript:void(null);" onclick="javascript:mudaAba('sincronizar');" <? if($abaMenu == 'sincronizar'){ echo 'class="active"'; }?>>Sincronizacao</a>146 <a href="javascript:void(null);" onclick="window.location.href='<?=$BASE_URL?>';" <?php if($abaMenu == 'pesquisa'){ echo 'class="active"'; }?>>Pesquisa</a> 147 </td> 148 <?php if (($lstoid != "") || ($lstoid == "" && $FrmCadListagem_acao == "editar") || ($FrmCadListagem_acao == "atualizar_listagem")) { ?> 149 <td align="center" id="tabnav"> 150 <a href="javascript:void(null);" onclick="javascript:mudaAba('cadastro');" <?php if($abaMenu == 'cadastro'){ echo 'class="active"'; }?>>Cadastro</a> 151 </td> 152 <?php } ?> 153 <?php if (($lstoid != "") || ($FrmCadListagem_acao == "atualizar_listagem")) { ?> 154 <td align="center" id="tabnav"> 155 <a href="javascript:void(null);" onclick="javascript:mudaAba('colunas');" <?php if($abaMenu == 'colunas'){ echo 'class="active"'; }?>>Colunas</a> 156 </td> 157 <td align="center" id="tabnav"> 158 <a href="javascript:void(null);" onclick="javascript:mudaAba('indicadores');" <?php if($abaMenu == 'indicadores'){ echo 'class="active"'; }?>>Indicadores</a> 159 </td> 160 <td align="center" id="tabnav"> 161 <a href="javascript:void(null);" onclick="javascript:mudaAba('parametros');" <?php if($abaMenu == 'parametros'){ echo 'class="active"'; }?>>Parametros</a> 162 </td> 163 <td align="center" id="tabnav"> 164 <a href="javascript:void(null);" onclick="javascript:mudaAba('preview');" <?php if($abaMenu == 'preview'){ echo 'class="active"'; }?>>Pre-Visualizacao</a> 165 </td> 166 <?php if ($habilitasincronizacao) { ?> 167 <td align="center" id="tabnav"> 168 <a href="javascript:void(null);" onclick="javascript:mudaAba('sincronizar');" <?php if($abaMenu == 'sincronizar'){ echo 'class="active"'; }?>>Sincronizacao</a> 169 169 </td> 170 <? } ?>171 <? } ?>170 <?php } ?> 171 <?php } ?> 172 172 </tr> 173 173 </table> -
trunk/workflow/inc/report/downloads.php
r7655 r7681 1 <? 1 <?php 2 2 session_start(); 3 3 include 'includes/classes/Download.class.php'; -
trunk/workflow/inc/report/includes/classes/FormularioUtil.class.php
r7655 r7681 1 <? 1 <?php 2 2 /** 3 3 * FormularioUtil
Note: See TracChangeset
for help on using the changeset viewer.