Changeset 2830701
- Timestamp:
- 12/08/2022 03:59:41 PM (3 years ago)
- Location:
- wdesk/trunk
- Files:
-
- 3 added
- 14 edited
-
README.md (modified) (1 diff)
-
admin/departments/html.php (modified) (2 diffs)
-
admin/reports (added)
-
admin/reports/html.php (added)
-
admin/reports/reports.php (added)
-
admin/settings/html.php (modified) (1 diff)
-
index.php (modified) (7 diffs)
-
languages/wdesk-pt_BR.mo (modified) (previous)
-
languages/wdesk-pt_BR.po (modified) (10 diffs)
-
languages/wdesk.pot (modified) (11 diffs)
-
readme.txt (modified) (3 diffs)
-
script/functions.php (modified) (8 diffs)
-
script/helpers.php (modified) (1 diff)
-
shortcode/components/guest-ticket.php (modified) (2 diffs)
-
shortcode/components/guest.php (modified) (2 diffs)
-
shortcode/components/new-ticket.php (modified) (2 diffs)
-
shortcode/components/ticket.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wdesk/trunk/README.md
r2825348 r2830701 77 77 - [X] Last update 78 78 - [X] Tags 79 - [ ] Department email 80 - [ ] Due date 81 - [ ] Time worked 79 - [X] Department email 82 80 - [ ] Rich text 83 - [ ] Due date notify 84 - [ ] Add more customization and tools 81 - [X] Add more customization and tools 85 82 - [X] Date format 86 - [ ] Ban emails 87 - [ ] Ban email providers 88 - [ ] Reports 89 - [ ] Darkmode 90 - [ ] Max text, subject, file 91 - [ ] Fields in ticket creation 92 - [ ] Cron status 93 - [ ] Autoclose 94 - [ ] Color scheme 83 - [X] Ban emails 84 - [X] Ban email providers 85 - [X] Reports 86 - [X] Max subject, thread 87 - [X] Autoclose -
wdesk/trunk/admin/departments/html.php
r2825348 r2830701 20 20 <input type="hidden" name="id" value="<?php echo esc_textarea($department->id) ?>"/> 21 21 <tr><th><?php _e('Name', 'wdesk') ?>: <br><input type="text" name="name" placeholder="<?php _e('Department name', 'wdesk') ?>" value="<?php echo esc_textarea($department->name) ?>" style="padding: 0 8px; margin: 0;"/></th></tr> 22 <tr><th><?php _e('Email', 'wdesk') ?>: <br><input type="email" name="email" placeholder="<?php _e('Department email', 'wdesk') ?>" value="<?php echo esc_textarea($department->email) ?>" style="padding: 0 8px; margin: 0;"/></th></tr> 22 23 <tr> 23 24 <th> … … 72 73 <form method="post"> 73 74 <tr><th><?php _e('Name', 'wdesk') ?>: <br><input type="text" name="name" placeholder="<?php _e('Department name', 'wdesk') ?>" style="padding: 0 8px; margin: 0;"/></th></tr> 75 <tr><th><?php _e('Email', 'wdesk') ?>: <br><input type="email" name="email" placeholder="<?php _e('Department email', 'wdesk') ?>" style="padding: 0 8px; margin: 0;"/></th></tr> 74 76 <tr> 75 77 <th> -
wdesk/trunk/admin/settings/html.php
r2825348 r2830701 55 55 <tr> 56 56 <th> 57 <?php _e('Max subject', 'wdesk') ?>: <br> 58 <input type="number" name="subject" placeholder="<?php _e('Ex: 180', 'wdesk') ?>" value="<?php echo esc_html($settings[4]->value) ?>" style="padding: 0 8px; margin: 0;"/> 59 </th> 60 </tr> 61 <tr> 62 <th> 63 <?php _e('Max thread', 'wdesk') ?>: <br> 64 <input type="number" name="thread" placeholder="<?php _e('Ex: 2800', 'wdesk') ?>" value="<?php echo esc_html($settings[5]->value) ?>" style="padding: 0 8px; margin: 0;"/> 65 </th> 66 </tr> 67 <tr> 68 <th> 57 69 <input type="submit" class="button action" name="wdesk-setting-update" value="<?php _e('Update', 'wdesk') ?>"/> 70 </th> 71 </tr> 72 </form> 73 </tbody> 74 </table> 75 76 <table class="wp-list-table widefat fixed striped table-view-list" style="width: 400px; height: -webkit-fill-available;"> 77 <thead> 78 <tr> 79 <th><?php _e('Email blocklist', 'wdesk') ?></th> 80 </tr> 81 </thead> 82 <tbody> 83 <form method="post"> 84 <?php 85 $blocked_emails = $wpdb->get_results("SELECT * FROM `wdesk_settings_emails`"); 86 foreach ($blocked_emails as $blocked_email) { 87 ?> 88 <tr> 89 <th> 90 <div style="display: flex; flex-direction: row; justify-content: space-between;"> 91 <input type="hidden" name="id" value="<?php echo esc_textarea($blocked_email->id) ?>" /> 92 <label><?php echo esc_textarea($blocked_email->email) ?></label> 93 <input type="submit" class="button action" name="wdesk-setting-email-delete" value="<?php _e('Delete', 'wdesk') ?>"/> 94 </div> 95 </th> 96 </tr> 97 <?php 98 } 99 ?> 100 <tr> 101 <th> 102 <?php _e('Email', 'wdesk') ?>: <br> 103 <input type="text" name="email" placeholder="<?php _e('Full email', 'wdesk') ?>" style="padding: 0 8px; margin: 0;"/> 104 </th> 105 </tr> 106 <tr> 107 <th> 108 <input type="submit" class="button action" name="wdesk-setting-email-add" value="<?php _e('Add', 'wdesk') ?>"/> 109 </th> 110 </tr> 111 </form> 112 </tbody> 113 </table> 114 115 <table class="wp-list-table widefat fixed striped table-view-list" style="width: 400px; height: -webkit-fill-available;"> 116 <thead> 117 <tr> 118 <th><?php _e('Email provider blocklist', 'wdesk') ?></th> 119 </tr> 120 </thead> 121 <tbody> 122 <form method="post"> 123 <?php 124 $blocked_providers = $wpdb->get_results("SELECT * FROM `wdesk_settings_email_providers`"); 125 foreach ($blocked_providers as $blocked_provider) { 126 ?> 127 <tr> 128 <th> 129 <div style="display: flex; flex-direction: row; justify-content: space-between;"> 130 <input type="hidden" name="id" value="<?php echo esc_textarea($blocked_provider->id) ?>" /> 131 <label><?php echo esc_textarea($blocked_provider->provider) ?></label> 132 <input type="submit" class="button action" name="wdesk-setting-email-provider-delete" value="<?php _e('Delete', 'wdesk') ?>"/> 133 </div> 134 </th> 135 </tr> 136 <?php 137 } 138 ?> 139 <tr> 140 <th> 141 <?php _e('Provider', 'wdesk') ?>: <br> 142 <input type="text" name="provider" placeholder="<?php _e('Provider without @', 'wdesk') ?>" style="padding: 0 8px; margin: 0;"/> 143 </th> 144 </tr> 145 <tr> 146 <th> 147 <input type="submit" class="button action" name="wdesk-setting-email-provider-add" value="<?php _e('Add', 'wdesk') ?>"/> 58 148 </th> 59 149 </tr> -
wdesk/trunk/index.php
r2823274 r2830701 4 4 Plugin Name: wdesk 5 5 Description: Plugin developed to track inquiries in a Helpdesk platform inside Wordpress 6 Version: 0. 46 Version: 0.5 7 7 Author: Marcelo Rodrigues Campos 8 8 Author URI: https://github.com/wwwxkz … … 22 22 require_once(WDESK_LOCAL . 'admin/tags/tags.php'); 23 23 require_once(WDESK_LOCAL . 'admin/tickets/tickets.php'); 24 require_once(WDESK_LOCAL . 'admin/reports/reports.php'); 24 25 require_once(WDESK_LOCAL . 'admin/settings/settings.php'); 25 26 require_once(WDESK_LOCAL . 'admin/departments/departments.php'); 27 26 28 27 29 add_action( 'plugins_loaded', 'wdesk_init' ); … … 41 43 add_submenu_page( 'helpdesk', __('Departments', 'wdesk'), __('Departments', 'wdesk'), 'read', 'wdesk_departments', 'wdesk_departments' ); 42 44 add_submenu_page( 'helpdesk', __('Tags', 'wdesk'), __('Tags', 'wdesk'), 'read', 'wdesk_tags', 'wdesk_tags' ); 45 add_submenu_page( 'helpdesk', __('Reports', 'wdesk'), __('Reports', 'wdesk'), 'read', 'wdesk_reports', 'wdesk_reports' ); 43 46 add_submenu_page( 'helpdesk', __('Settings', 'wdesk'), __('Settings', 'wdesk'), 'read', 'wdesk_settings', 'wdesk_settings' ); 44 47 } … … 74 77 id mediumint(9) NOT NULL AUTO_INCREMENT, 75 78 name tinytext NOT NULL, 79 email tinytext NOT NULL, 76 80 UNIQUE KEY id (id) 77 81 ) $charset_collate2;"; … … 141 145 setting tinytext NOT NULL, 142 146 value tinytext NOT NULL, 143 date_format tinytext NOT NULL,144 147 UNIQUE KEY id (id) 145 148 ) $charset_collate7;"; … … 167 170 'value' => 'd-m-Y H:i:s' 168 171 )); 172 $wpdb->replace($table7, array( 173 'id' => 4, 174 'setting' => 'Max subject', 175 'value' => '180' 176 )); 177 $wpdb->replace($table7, array( 178 'id' => 5, 179 'setting' => 'Max thread', 180 'value' => '2800' 181 )); 182 183 // Settings emails 184 $table8 = "wdesk_settings_emails"; 185 $charset_collate8 = $wpdb->get_charset_collate(); 186 $sql8 = "CREATE TABLE $table8 ( 187 id mediumint(9) NOT NULL AUTO_INCREMENT, 188 email tinytext NOT NULL, 189 UNIQUE KEY id (id) 190 ) $charset_collate8;"; 191 dbDelta($sql8); 192 193 // Settings email providers 194 $table9 = "wdesk_settings_email_providers"; 195 $charset_collate9 = $wpdb->get_charset_collate(); 196 $sql9 = "CREATE TABLE $table9 ( 197 id mediumint(9) NOT NULL AUTO_INCREMENT, 198 provider tinytext NOT NULL, 199 UNIQUE KEY id (id) 200 ) $charset_collate9;"; 201 dbDelta($sql9); 202 169 203 } 170 204 … … 202 236 // Delete all users OTP every 5 minutes 203 237 $wpdb->query("UPDATE `wdesk_users` SET `otp` = NULL WHERE `otp` IS NOT NULL; "); 238 // Close inactive tickets 239 $wpdb->query("UPDATE `wdesk_tickets` SET `status`='Closed' WHERE last_update < (NOW() - INTERVAL 1 MONTH); "); 204 240 } 205 241 -
wdesk/trunk/languages/wdesk-pt_BR.po
r2823274 r2830701 5 5 "Project-Id-Version: wdesk 2.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wdesk\n" 7 "POT-Creation-Date: 2022-1 1-23T13:13:24-03:00\n"8 "PO-Revision-Date: 2022-1 1-23 13:13-0300\n"7 "POT-Creation-Date: 2022-12-08T12:51:40-03:00\n" 8 "PO-Revision-Date: 2022-12-08 12:54-0300\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 14 14 "Content-Transfer-Encoding: 8bit\n" 15 15 "Plural-Forms: nplurals=2; plural=(n > 1);\n" 16 "X-Generator: Poedit 3.2 \n"16 "X-Generator: Poedit 3.2.2\n" 17 17 "X-Domain: wdesk\n" 18 18 … … 36 36 msgstr "https://github.com/wwwxkz" 37 37 38 #: admin/departments/html.php:6 index.php:4 038 #: admin/departments/html.php:6 index.php:43 39 39 msgid "Departments" 40 40 msgstr "Departamentos" 41 41 42 #: admin/departments/html.php:15 admin/tickets/html.php:1 2943 #: admin/tickets/html.php:2 08 shortcode/components/guest.php:1644 #: shortcode/components/new-ticket.php: 19 shortcode/components/tickets.php:3242 #: admin/departments/html.php:15 admin/tickets/html.php:136 43 #: admin/tickets/html.php:219 shortcode/components/guest.php:20 44 #: shortcode/components/new-ticket.php:24 shortcode/components/tickets.php:34 45 45 msgid "Department" 46 46 msgstr "Departamento" 47 47 48 #: admin/departments/html.php:21 admin/departments/html.php:7 348 #: admin/departments/html.php:21 admin/departments/html.php:74 49 49 #: admin/tags/html.php:21 admin/tags/html.php:44 50 #: shortcode/components/guest.php:1 2shortcode/components/profile.php:2050 #: shortcode/components/guest.php:16 shortcode/components/profile.php:20 51 51 #: shortcode/components/sign-in.php:12 52 52 msgid "Name" 53 53 msgstr "Nome" 54 54 55 #: admin/departments/html.php:21 admin/departments/html.php:7 355 #: admin/departments/html.php:21 admin/departments/html.php:74 56 56 msgid "Department name" 57 57 msgstr "Nome do departamento" 58 58 59 #: admin/departments/html.php:54 admin/settings/html.php:38 60 #: admin/tags/html.php:25 admin/tickets/html.php:161 59 #: admin/departments/html.php:22 admin/departments/html.php:75 60 #: admin/settings/html.php:102 shortcode/components/guest.php:13 61 #: shortcode/components/log-in.php:9 shortcode/components/profile.php:17 62 #: shortcode/components/sign-in.php:9 63 msgid "Email" 64 msgstr "Email" 65 66 #: admin/departments/html.php:22 admin/departments/html.php:75 67 msgid "Department email" 68 msgstr "Nome do departamento" 69 70 #: admin/departments/html.php:55 admin/settings/html.php:69 71 #: admin/tags/html.php:25 admin/tickets/html.php:168 61 72 msgid "Update" 62 73 msgstr "Atualizar" 63 74 64 #: admin/departments/html.php:55 admin/tags/html.php:26 65 #: admin/tickets/html.php:44 admin/tickets/html.php:288 75 #: admin/departments/html.php:56 admin/settings/html.php:93 76 #: admin/settings/html.php:132 admin/tags/html.php:26 admin/tickets/html.php:51 77 #: admin/tickets/html.php:304 66 78 msgid "Delete" 67 79 msgstr "Deletar" 68 80 69 #: admin/departments/html.php:6 881 #: admin/departments/html.php:69 70 82 msgid "New department" 71 83 msgstr "Novo departamento" 72 84 73 #: admin/departments/html.php:7 6admin/tags/html.php:4885 #: admin/departments/html.php:78 admin/tags/html.php:48 74 86 msgid "Create" 75 87 msgstr "Criar" 76 88 77 #: admin/settings/html.php:8 index.php:42 89 #: admin/reports/html.php:6 index.php:45 90 msgid "Reports" 91 msgstr "Reportes" 92 93 #: admin/reports/html.php:53 94 msgid "Number of tickets" 95 msgstr "Numero de tickets" 96 97 #: admin/settings/html.php:8 index.php:46 78 98 msgid "Settings" 79 99 msgstr "Configurações" … … 107 127 msgstr "Url do helpdesk" 108 128 109 #: admin/tags/html.php:6 admin/tickets/html.php:98 index.php:41 129 #: admin/settings/html.php:38 130 msgid "Date" 131 msgstr "Data" 132 133 #: admin/settings/html.php:57 134 msgid "Max subject" 135 msgstr "Tamanho máximo para o assunto" 136 137 #: admin/settings/html.php:58 138 msgid "Ex: 180" 139 msgstr "Ex: 180" 140 141 #: admin/settings/html.php:63 142 msgid "Max thread" 143 msgstr "Tamanho máximo para a thread" 144 145 #: admin/settings/html.php:64 146 msgid "Ex: 2800" 147 msgstr "Ex: 2800" 148 149 #: admin/settings/html.php:79 150 msgid "Email blocklist" 151 msgstr "Lista de bloqueio de emails" 152 153 #: admin/settings/html.php:103 154 msgid "Full email" 155 msgstr "Email completo" 156 157 #: admin/settings/html.php:108 admin/settings/html.php:147 158 #: admin/tickets/html.php:113 159 msgid "Add" 160 msgstr "Adicionar" 161 162 #: admin/settings/html.php:118 163 msgid "Email provider blocklist" 164 msgstr "Lista de bloqueio de provedores" 165 166 #: admin/settings/html.php:141 167 msgid "Provider" 168 msgstr "Provedor" 169 170 #: admin/settings/html.php:142 171 msgid "Provider without @" 172 msgstr "Provedor sem @" 173 174 #: admin/tags/html.php:6 admin/tickets/html.php:105 index.php:44 110 175 msgid "Tags" 111 176 msgstr "Tags" 112 177 113 #: admin/tags/html.php:15 admin/tickets/html.php:2 10178 #: admin/tags/html.php:15 admin/tickets/html.php:221 114 179 msgid "Tag" 115 180 msgstr "Tag" … … 131 196 msgstr "Nova tag" 132 197 133 #: admin/tickets/html.php: 18 admin/tickets/html.php:156134 #: admin/tickets/html.php: 192 admin/tickets/html.php:211135 #: shortcode/components/ ticket.php:35198 #: admin/tickets/html.php:22 admin/tickets/html.php:163 199 #: admin/tickets/html.php:203 admin/tickets/html.php:222 200 #: shortcode/components/guest-ticket.php:39 shortcode/components/ticket.php:39 136 201 msgid "User" 137 202 msgstr "Usuário" 138 203 139 #: admin/tickets/html.php: 19 script/helpers.php:81140 #: shortcode/components/ ticket.php:36204 #: admin/tickets/html.php:23 script/helpers.php:98 205 #: shortcode/components/guest-ticket.php:40 shortcode/components/ticket.php:40 141 206 msgid "File" 142 207 msgstr "Arquivo" 143 208 144 #: admin/tickets/html.php:2 0 script/helpers.php:80209 #: admin/tickets/html.php:24 script/helpers.php:97 145 210 msgid "Note" 146 211 msgstr "Observação" 147 212 148 #: admin/tickets/html.php:2 1 admin/tickets/html.php:213149 #: shortcode/components/tickets.php:3 4213 #: admin/tickets/html.php:25 admin/tickets/html.php:224 214 #: shortcode/components/tickets.php:36 150 215 msgid "Actions" 151 216 msgstr "Ações" 152 217 153 #: admin/tickets/html.php: 36 admin/tickets/html.php:163154 #: shortcode/components/ ticket.php:50218 #: admin/tickets/html.php:42 admin/tickets/html.php:170 219 #: shortcode/components/guest-ticket.php:54 shortcode/components/ticket.php:54 155 220 msgid "Download" 156 221 msgstr "Download" 157 222 158 #: admin/tickets/html.php: 58223 #: admin/tickets/html.php:65 159 224 msgid "Answer ticket" 160 225 msgstr "Responder chamado" 161 226 162 #: admin/tickets/html.php: 64227 #: admin/tickets/html.php:71 163 228 msgid "Please, describe your problem" 164 229 msgstr "Por favor, descreva seu problema" 165 230 166 #: admin/tickets/html.php: 68 admin/tickets/html.php:70167 #: shortcode/components/guest .php:33 shortcode/components/new-ticket.php:36168 #: shortcode/components/ ticket.php:71231 #: admin/tickets/html.php:75 admin/tickets/html.php:77 232 #: shortcode/components/guest-ticket.php:75 shortcode/components/guest.php:37 233 #: shortcode/components/new-ticket.php:41 shortcode/components/ticket.php:75 169 234 msgid "Send" 170 235 msgstr "Enviar" 171 236 172 #: admin/tickets/html.php: 68237 #: admin/tickets/html.php:75 173 238 msgid "note" 174 239 msgstr "observação" 175 240 176 #: admin/tickets/html.php: 77241 #: admin/tickets/html.php:84 177 242 msgid "Details" 178 243 msgstr "Detalhes" 179 244 180 #: admin/tickets/html.php:10 1 admin/tickets/html.php:114181 #: admin/tickets/html.php:13 2 admin/tickets/html.php:147245 #: admin/tickets/html.php:108 admin/tickets/html.php:121 246 #: admin/tickets/html.php:139 admin/tickets/html.php:154 182 247 msgid "Select" 183 248 msgstr "Selecionar" 184 249 185 #: admin/tickets/html.php:106 186 msgid "Add" 187 msgstr "Adicionar" 188 189 #: admin/tickets/html.php:111 admin/tickets/html.php:205 190 #: shortcode/components/tickets.php:28 250 #: admin/tickets/html.php:118 admin/tickets/html.php:216 251 #: shortcode/components/tickets.php:30 191 252 msgid "Status" 192 253 msgstr "Status" 193 254 194 #: admin/tickets/html.php:1 15 admin/tickets/html.php:252195 #: shortcode/components/tickets.php: 49255 #: admin/tickets/html.php:122 admin/tickets/html.php:268 256 #: shortcode/components/tickets.php:51 196 257 msgid "Open" 197 258 msgstr "Em aberto" 198 259 199 #: admin/tickets/html.php:1 16 admin/tickets/html.php:254200 #: shortcode/components/tickets.php:5 1260 #: admin/tickets/html.php:123 admin/tickets/html.php:270 261 #: shortcode/components/tickets.php:53 201 262 msgid "Waiting user" 202 263 msgstr "Esperando usuário" 203 264 204 #: admin/tickets/html.php:1 17 admin/tickets/html.php:256205 #: shortcode/components/tickets.php:5 3265 #: admin/tickets/html.php:124 admin/tickets/html.php:272 266 #: shortcode/components/tickets.php:55 206 267 msgid "Waiting agent" 207 268 msgstr "Esperando agente" 208 269 209 #: admin/tickets/html.php:1 18 admin/tickets/html.php:258210 #: shortcode/components/tickets.php:5 5270 #: admin/tickets/html.php:125 admin/tickets/html.php:274 271 #: shortcode/components/tickets.php:57 211 272 msgid "Closed" 212 273 msgstr "Encerrado" 213 274 214 #: admin/tickets/html.php:1 44 admin/tickets/html.php:212215 #: shortcode/components/tickets.php:3 3275 #: admin/tickets/html.php:151 admin/tickets/html.php:223 276 #: shortcode/components/tickets.php:35 216 277 msgid "Agent" 217 278 msgstr "Agente" 218 279 219 #: admin/tickets/html.php:1 57 admin/tickets/html.php:206 script/helpers.php:78220 #: shortcode/components/tickets.php: 29280 #: admin/tickets/html.php:164 admin/tickets/html.php:217 script/helpers.php:95 281 #: shortcode/components/tickets.php:31 221 282 msgid "Created" 222 283 msgstr "Criado" 223 284 224 #: admin/tickets/html.php:1 58 admin/tickets/html.php:207225 #: shortcode/components/tickets.php:3 0285 #: admin/tickets/html.php:165 admin/tickets/html.php:218 286 #: shortcode/components/tickets.php:32 226 287 msgid "Last update" 227 288 msgstr "Ultima atualização" 228 289 229 #: admin/tickets/html.php:16 2290 #: admin/tickets/html.php:169 230 291 msgid "Notify" 231 292 msgstr "Notificar" 232 293 233 #: admin/tickets/html.php:185 index.php:38 234 #: shortcode/components/new-ticket.php:13 shortcode/components/profile.php:12 235 #: shortcode/components/ticket.php:21 shortcode/components/tickets.php:10 294 #: admin/tickets/html.php:195 index.php:41 295 #: shortcode/components/guest-ticket.php:25 296 #: shortcode/components/new-ticket.php:18 shortcode/components/profile.php:12 297 #: shortcode/components/ticket.php:25 shortcode/components/tickets.php:12 236 298 msgid "Tickets" 237 299 msgstr "Chamados" 238 300 239 #: admin/tickets/html.php:1 87301 #: admin/tickets/html.php:198 240 302 msgid "Reset" 241 303 msgstr "Resetar" 242 304 243 #: admin/tickets/html.php: 192 admin/tickets/html.php:209244 #: shortcode/components/guest.php:2 5 shortcode/components/new-ticket.php:28245 #: shortcode/components/tickets.php:3 1305 #: admin/tickets/html.php:203 admin/tickets/html.php:220 306 #: shortcode/components/guest.php:29 shortcode/components/new-ticket.php:33 307 #: shortcode/components/tickets.php:33 246 308 msgid "Subject" 247 309 msgstr "Assunto" 248 310 249 #: admin/tickets/html.php: 193311 #: admin/tickets/html.php:204 250 312 msgid "Search" 251 313 msgstr "Pesquisar" 252 314 253 #: script/functions.php:16 315 #: script/functions.php:20 316 msgid "Your personal email or provider is in our blocklist" 317 msgstr "Seu email pessoal ou provedor está em nossa blocklist" 318 319 #: script/functions.php:26 254 320 msgid "Email already in use" 255 321 msgstr "Email já em uso" 256 322 257 #: script/functions.php: 33323 #: script/functions.php:44 258 324 msgid "User updated" 259 325 msgstr "Usuário atualizado" 260 326 261 #: script/functions.php: 45 script/functions.php:49327 #: script/functions.php:57 script/functions.php:61 262 328 msgid "Registered successfully" 263 329 msgstr "Registrado com sucesso" 264 330 265 #: script/functions.php: 50331 #: script/functions.php:62 266 332 msgid "Acess the helpdesk with your email and password" 267 333 msgstr "Acesse o helpdesk com seu email e senha" 268 334 269 #: script/functions.php: 54335 #: script/functions.php:66 270 336 msgid "User does not exist" 271 337 msgstr "Usuário não existe" 272 338 273 #: script/functions.php: 69339 #: script/functions.php:80 274 340 msgid "Password incorrect or user does not exist" 275 341 msgstr "Senha incorreta ou usuário não existe" 276 342 277 #: script/functions.php:138 343 #: script/functions.php:127 344 msgid "Your personal email or provider is in the blocklist" 345 msgstr "Seu email pessoal ou provedor está em nossa blocklist" 346 347 #: script/functions.php:133 278 348 msgid "" 279 349 "Your already have a ticket open, wait until you ticket is solved or close it " … … 283 353 "ou o encerre para criar outro" 284 354 285 #: script/helpers.php:1 5355 #: script/helpers.php:19 286 356 msgid "Ticket update" 287 357 msgstr "Atualização no chamado" 288 358 289 #: script/helpers.php: 19359 #: script/helpers.php:23 290 360 msgid "Access the helpdesk by using your email and password or using the url" 291 361 msgstr "" 292 362 "Acesse o helpdesk usando seu email e senha ou utilizando a url a seguir" 293 363 294 #: script/helpers.php: 28 script/helpers.php:31 script/helpers.php:72295 #: script/helpers.php: 77 shortcode/components/guest.php:7296 #: shortcode/components/ ticket.php:17364 #: script/helpers.php:32 script/helpers.php:35 script/helpers.php:89 365 #: script/helpers.php:94 shortcode/components/guest-ticket.php:21 366 #: shortcode/components/guest.php:11 shortcode/components/ticket.php:21 297 367 msgid "Ticket" 298 368 msgstr "Chamado" 299 369 300 #: script/helpers.php: 28370 #: script/helpers.php:32 301 371 msgid "was updated" 302 372 msgstr "foi atualizado" 303 373 304 #: script/helpers.php: 50374 #: script/helpers.php:66 305 375 msgid "Recover your helpdesk access password" 306 376 msgstr "Recupere sua senha de acesso ao helpdesk" 307 377 308 #: script/helpers.php: 57378 #: script/helpers.php:73 309 379 msgid "" 310 380 "If your user is found in the database we will send you a email with an OTP " … … 316 386 "envie um chamado como convidado" 317 387 318 #: script/helpers.php: 76 script/helpers.php:77388 #: script/helpers.php:93 script/helpers.php:94 319 389 msgid "ID" 320 390 msgstr "ID" 321 391 322 #: script/helpers.php: 79392 #: script/helpers.php:96 323 393 msgid "Text" 324 394 msgstr "Texto" 325 395 326 #: script/helpers.php: 82396 #: script/helpers.php:99 327 397 msgid "Username" 328 398 msgstr "Usuário" … … 332 402 msgstr "Usuário não existe" 333 403 334 #: shortcode/components/guest.php:9 shortcode/components/log-in.php:9 335 #: shortcode/components/profile.php:17 shortcode/components/sign-in.php:9 336 msgid "Email" 337 msgstr "Email" 338 339 #: shortcode/components/guest.php:10 shortcode/components/log-in.php:10 404 #: shortcode/components/guest-ticket.php:29 shortcode/components/ticket.php:29 405 #: shortcode/components/tickets.php:69 406 msgid "Close" 407 msgstr "Encerrar" 408 409 #: shortcode/components/guest-ticket.php:71 shortcode/components/ticket.php:71 410 msgid "Describe your case" 411 msgstr "Descreva seu caso" 412 413 #: shortcode/components/guest.php:14 shortcode/components/log-in.php:10 340 414 #: shortcode/components/profile.php:18 shortcode/components/sign-in.php:10 341 415 msgid "Valid email adress" 342 416 msgstr "Email valido" 343 417 344 #: shortcode/components/guest.php:1 3shortcode/components/profile.php:21418 #: shortcode/components/guest.php:17 shortcode/components/profile.php:21 345 419 #: shortcode/components/sign-in.php:13 346 420 msgid "Full name" 347 421 msgstr "Nome completo" 348 422 349 #: shortcode/components/guest.php: 26 shortcode/components/new-ticket.php:29423 #: shortcode/components/guest.php:30 shortcode/components/new-ticket.php:34 350 424 msgid "Ticket subject" 351 425 msgstr "Assunto do chamado" 352 426 353 #: shortcode/components/guest.php: 28 shortcode/components/new-ticket.php:31427 #: shortcode/components/guest.php:32 shortcode/components/new-ticket.php:36 354 428 msgid "Description" 355 429 msgstr "Descrição" 356 430 357 #: shortcode/components/guest.php: 29 shortcode/components/new-ticket.php:32431 #: shortcode/components/guest.php:33 shortcode/components/new-ticket.php:37 358 432 msgid "Ticket thread start" 359 433 msgstr "Inicio do thread do chamado" … … 372 446 msgstr "Uma senha forte" 373 447 374 #: shortcode/components/new-ticket.php: 8448 #: shortcode/components/new-ticket.php:13 375 449 msgid "New ticket" 376 450 msgstr "Novo chamado" … … 428 502 msgstr "Repita sua senha" 429 503 430 #: shortcode/components/ticket.php:25 shortcode/components/tickets.php:67 431 msgid "Close" 432 msgstr "Encerrar" 433 434 #: shortcode/components/ticket.php:67 435 msgid "Describe your case" 436 msgstr "Descreva seu caso" 437 438 #: shortcode/components/tickets.php:16 504 #: shortcode/components/tickets.php:18 439 505 msgid "New" 440 506 msgstr "Novo" 441 507 442 #: shortcode/components/tickets.php:2 1508 #: shortcode/components/tickets.php:23 443 509 msgid "Profile" 444 510 msgstr "Perfil" -
wdesk/trunk/languages/wdesk.pot
r2823274 r2830701 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: wdesk 0. 4\n"5 "Project-Id-Version: wdesk 0.5\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wdesk\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-1 1-23T13:13:24-03:00\n"12 "POT-Creation-Date: 2022-12-08T12:51:40-03:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" … … 32 32 33 33 #: admin/departments/html.php:6 34 #: index.php:4 034 #: index.php:43 35 35 msgid "Departments" 36 36 msgstr "" 37 37 38 38 #: admin/departments/html.php:15 39 #: admin/tickets/html.php:1 2940 #: admin/tickets/html.php:2 0841 #: shortcode/components/guest.php: 1642 #: shortcode/components/new-ticket.php: 1943 #: shortcode/components/tickets.php:3 239 #: admin/tickets/html.php:136 40 #: admin/tickets/html.php:219 41 #: shortcode/components/guest.php:20 42 #: shortcode/components/new-ticket.php:24 43 #: shortcode/components/tickets.php:34 44 44 msgid "Department" 45 45 msgstr "" 46 46 47 47 #: admin/departments/html.php:21 48 #: admin/departments/html.php:7 348 #: admin/departments/html.php:74 49 49 #: admin/tags/html.php:21 50 50 #: admin/tags/html.php:44 51 #: shortcode/components/guest.php:1 251 #: shortcode/components/guest.php:16 52 52 #: shortcode/components/profile.php:20 53 53 #: shortcode/components/sign-in.php:12 … … 56 56 57 57 #: admin/departments/html.php:21 58 #: admin/departments/html.php:7 358 #: admin/departments/html.php:74 59 59 msgid "Department name" 60 60 msgstr "" 61 61 62 #: admin/departments/html.php:54 63 #: admin/settings/html.php:38 62 #: admin/departments/html.php:22 63 #: admin/departments/html.php:75 64 #: admin/settings/html.php:102 65 #: shortcode/components/guest.php:13 66 #: shortcode/components/log-in.php:9 67 #: shortcode/components/profile.php:17 68 #: shortcode/components/sign-in.php:9 69 msgid "Email" 70 msgstr "" 71 72 #: admin/departments/html.php:22 73 #: admin/departments/html.php:75 74 msgid "Department email" 75 msgstr "" 76 77 #: admin/departments/html.php:55 78 #: admin/settings/html.php:69 64 79 #: admin/tags/html.php:25 65 #: admin/tickets/html.php:16 180 #: admin/tickets/html.php:168 66 81 msgid "Update" 67 82 msgstr "" 68 83 69 #: admin/departments/html.php:55 84 #: admin/departments/html.php:56 85 #: admin/settings/html.php:93 86 #: admin/settings/html.php:132 70 87 #: admin/tags/html.php:26 71 #: admin/tickets/html.php: 4472 #: admin/tickets/html.php: 28888 #: admin/tickets/html.php:51 89 #: admin/tickets/html.php:304 73 90 msgid "Delete" 74 91 msgstr "" 75 92 76 #: admin/departments/html.php:6 893 #: admin/departments/html.php:69 77 94 msgid "New department" 78 95 msgstr "" 79 96 80 #: admin/departments/html.php:7 697 #: admin/departments/html.php:78 81 98 #: admin/tags/html.php:48 82 99 msgid "Create" 83 100 msgstr "" 84 101 102 #: admin/reports/html.php:6 103 #: index.php:45 104 msgid "Reports" 105 msgstr "" 106 107 #: admin/reports/html.php:53 108 msgid "Number of tickets" 109 msgstr "" 110 85 111 #: admin/settings/html.php:8 86 #: index.php:4 2112 #: index.php:46 87 113 msgid "Settings" 88 114 msgstr "" … … 116 142 msgstr "" 117 143 144 #: admin/settings/html.php:38 145 msgid "Date" 146 msgstr "" 147 148 #: admin/settings/html.php:57 149 msgid "Max subject" 150 msgstr "" 151 152 #: admin/settings/html.php:58 153 msgid "Ex: 180" 154 msgstr "" 155 156 #: admin/settings/html.php:63 157 msgid "Max thread" 158 msgstr "" 159 160 #: admin/settings/html.php:64 161 msgid "Ex: 2800" 162 msgstr "" 163 164 #: admin/settings/html.php:79 165 msgid "Email blocklist" 166 msgstr "" 167 168 #: admin/settings/html.php:103 169 msgid "Full email" 170 msgstr "" 171 172 #: admin/settings/html.php:108 173 #: admin/settings/html.php:147 174 #: admin/tickets/html.php:113 175 msgid "Add" 176 msgstr "" 177 178 #: admin/settings/html.php:118 179 msgid "Email provider blocklist" 180 msgstr "" 181 182 #: admin/settings/html.php:141 183 msgid "Provider" 184 msgstr "" 185 186 #: admin/settings/html.php:142 187 msgid "Provider without @" 188 msgstr "" 189 118 190 #: admin/tags/html.php:6 119 #: admin/tickets/html.php: 98120 #: index.php:4 1191 #: admin/tickets/html.php:105 192 #: index.php:44 121 193 msgid "Tags" 122 194 msgstr "" 123 195 124 196 #: admin/tags/html.php:15 125 #: admin/tickets/html.php:2 10197 #: admin/tickets/html.php:221 126 198 msgid "Tag" 127 199 msgstr "" … … 146 218 msgstr "" 147 219 148 #: admin/tickets/html.php:18 149 #: admin/tickets/html.php:156 150 #: admin/tickets/html.php:192 151 #: admin/tickets/html.php:211 152 #: shortcode/components/ticket.php:35 220 #: admin/tickets/html.php:22 221 #: admin/tickets/html.php:163 222 #: admin/tickets/html.php:203 223 #: admin/tickets/html.php:222 224 #: shortcode/components/guest-ticket.php:39 225 #: shortcode/components/ticket.php:39 153 226 msgid "User" 154 227 msgstr "" 155 228 156 #: admin/tickets/html.php:19 157 #: script/helpers.php:81 158 #: shortcode/components/ticket.php:36 229 #: admin/tickets/html.php:23 230 #: script/helpers.php:98 231 #: shortcode/components/guest-ticket.php:40 232 #: shortcode/components/ticket.php:40 159 233 msgid "File" 160 234 msgstr "" 161 235 162 #: admin/tickets/html.php:2 0163 #: script/helpers.php: 80236 #: admin/tickets/html.php:24 237 #: script/helpers.php:97 164 238 msgid "Note" 165 239 msgstr "" 166 240 167 #: admin/tickets/html.php:2 1168 #: admin/tickets/html.php:2 13169 #: shortcode/components/tickets.php:3 4241 #: admin/tickets/html.php:25 242 #: admin/tickets/html.php:224 243 #: shortcode/components/tickets.php:36 170 244 msgid "Actions" 171 245 msgstr "" 172 246 173 #: admin/tickets/html.php:36 174 #: admin/tickets/html.php:163 175 #: shortcode/components/ticket.php:50 247 #: admin/tickets/html.php:42 248 #: admin/tickets/html.php:170 249 #: shortcode/components/guest-ticket.php:54 250 #: shortcode/components/ticket.php:54 176 251 msgid "Download" 177 252 msgstr "" 178 253 179 #: admin/tickets/html.php: 58254 #: admin/tickets/html.php:65 180 255 msgid "Answer ticket" 181 256 msgstr "" 182 257 183 #: admin/tickets/html.php: 64258 #: admin/tickets/html.php:71 184 259 msgid "Please, describe your problem" 185 260 msgstr "" 186 261 187 #: admin/tickets/html.php:68 188 #: admin/tickets/html.php:70 189 #: shortcode/components/guest.php:33 190 #: shortcode/components/new-ticket.php:36 191 #: shortcode/components/ticket.php:71 262 #: admin/tickets/html.php:75 263 #: admin/tickets/html.php:77 264 #: shortcode/components/guest-ticket.php:75 265 #: shortcode/components/guest.php:37 266 #: shortcode/components/new-ticket.php:41 267 #: shortcode/components/ticket.php:75 192 268 msgid "Send" 193 269 msgstr "" 194 270 195 #: admin/tickets/html.php: 68271 #: admin/tickets/html.php:75 196 272 msgid "note" 197 273 msgstr "" 198 274 199 #: admin/tickets/html.php: 77275 #: admin/tickets/html.php:84 200 276 msgid "Details" 201 277 msgstr "" 202 278 203 #: admin/tickets/html.php:10 1204 #: admin/tickets/html.php:1 14205 #: admin/tickets/html.php:13 2206 #: admin/tickets/html.php:1 47279 #: admin/tickets/html.php:108 280 #: admin/tickets/html.php:121 281 #: admin/tickets/html.php:139 282 #: admin/tickets/html.php:154 207 283 msgid "Select" 208 284 msgstr "" 209 285 210 #: admin/tickets/html.php:106 211 msgid "Add" 212 msgstr "" 213 214 #: admin/tickets/html.php:111 215 #: admin/tickets/html.php:205 216 #: shortcode/components/tickets.php:28 286 #: admin/tickets/html.php:118 287 #: admin/tickets/html.php:216 288 #: shortcode/components/tickets.php:30 217 289 msgid "Status" 218 290 msgstr "" 219 291 220 #: admin/tickets/html.php:1 15221 #: admin/tickets/html.php:2 52222 #: shortcode/components/tickets.php: 49292 #: admin/tickets/html.php:122 293 #: admin/tickets/html.php:268 294 #: shortcode/components/tickets.php:51 223 295 msgid "Open" 224 296 msgstr "" 225 297 226 #: admin/tickets/html.php:1 16227 #: admin/tickets/html.php:2 54228 #: shortcode/components/tickets.php:5 1298 #: admin/tickets/html.php:123 299 #: admin/tickets/html.php:270 300 #: shortcode/components/tickets.php:53 229 301 msgid "Waiting user" 230 302 msgstr "" 231 303 232 #: admin/tickets/html.php:1 17233 #: admin/tickets/html.php:2 56234 #: shortcode/components/tickets.php:5 3304 #: admin/tickets/html.php:124 305 #: admin/tickets/html.php:272 306 #: shortcode/components/tickets.php:55 235 307 msgid "Waiting agent" 236 308 msgstr "" 237 309 238 #: admin/tickets/html.php:1 18239 #: admin/tickets/html.php:2 58240 #: shortcode/components/tickets.php:5 5310 #: admin/tickets/html.php:125 311 #: admin/tickets/html.php:274 312 #: shortcode/components/tickets.php:57 241 313 msgid "Closed" 242 314 msgstr "" 243 315 244 #: admin/tickets/html.php:144 245 #: admin/tickets/html.php:212 316 #: admin/tickets/html.php:151 317 #: admin/tickets/html.php:223 318 #: shortcode/components/tickets.php:35 319 msgid "Agent" 320 msgstr "" 321 322 #: admin/tickets/html.php:164 323 #: admin/tickets/html.php:217 324 #: script/helpers.php:95 325 #: shortcode/components/tickets.php:31 326 msgid "Created" 327 msgstr "" 328 329 #: admin/tickets/html.php:165 330 #: admin/tickets/html.php:218 331 #: shortcode/components/tickets.php:32 332 msgid "Last update" 333 msgstr "" 334 335 #: admin/tickets/html.php:169 336 msgid "Notify" 337 msgstr "" 338 339 #: admin/tickets/html.php:195 340 #: index.php:41 341 #: shortcode/components/guest-ticket.php:25 342 #: shortcode/components/new-ticket.php:18 343 #: shortcode/components/profile.php:12 344 #: shortcode/components/ticket.php:25 345 #: shortcode/components/tickets.php:12 346 msgid "Tickets" 347 msgstr "" 348 349 #: admin/tickets/html.php:198 350 msgid "Reset" 351 msgstr "" 352 353 #: admin/tickets/html.php:203 354 #: admin/tickets/html.php:220 355 #: shortcode/components/guest.php:29 356 #: shortcode/components/new-ticket.php:33 246 357 #: shortcode/components/tickets.php:33 247 msgid "Agent" 248 msgstr "" 249 250 #: admin/tickets/html.php:157 251 #: admin/tickets/html.php:206 252 #: script/helpers.php:78 253 #: shortcode/components/tickets.php:29 254 msgid "Created" 255 msgstr "" 256 257 #: admin/tickets/html.php:158 258 #: admin/tickets/html.php:207 259 #: shortcode/components/tickets.php:30 260 msgid "Last update" 261 msgstr "" 262 263 #: admin/tickets/html.php:162 264 msgid "Notify" 265 msgstr "" 266 267 #: admin/tickets/html.php:185 268 #: index.php:38 269 #: shortcode/components/new-ticket.php:13 270 #: shortcode/components/profile.php:12 358 msgid "Subject" 359 msgstr "" 360 361 #: admin/tickets/html.php:204 362 msgid "Search" 363 msgstr "" 364 365 #: script/functions.php:20 366 msgid "Your personal email or provider is in our blocklist" 367 msgstr "" 368 369 #: script/functions.php:26 370 msgid "Email already in use" 371 msgstr "" 372 373 #: script/functions.php:44 374 msgid "User updated" 375 msgstr "" 376 377 #: script/functions.php:57 378 #: script/functions.php:61 379 msgid "Registered successfully" 380 msgstr "" 381 382 #: script/functions.php:62 383 msgid "Acess the helpdesk with your email and password" 384 msgstr "" 385 386 #: script/functions.php:66 387 msgid "User does not exist" 388 msgstr "" 389 390 #: script/functions.php:80 391 msgid "Password incorrect or user does not exist" 392 msgstr "" 393 394 #: script/functions.php:127 395 msgid "Your personal email or provider is in the blocklist" 396 msgstr "" 397 398 #: script/functions.php:133 399 msgid "Your already have a ticket open, wait until you ticket is solved or close it to create another" 400 msgstr "" 401 402 #: script/helpers.php:19 403 msgid "Ticket update" 404 msgstr "" 405 406 #: script/helpers.php:23 407 msgid "Access the helpdesk by using your email and password or using the url" 408 msgstr "" 409 410 #: script/helpers.php:32 411 #: script/helpers.php:35 412 #: script/helpers.php:89 413 #: script/helpers.php:94 414 #: shortcode/components/guest-ticket.php:21 415 #: shortcode/components/guest.php:11 271 416 #: shortcode/components/ticket.php:21 272 #: shortcode/components/tickets.php:10273 msgid "Tickets"274 msgstr ""275 276 #: admin/tickets/html.php:187277 msgid "Reset"278 msgstr ""279 280 #: admin/tickets/html.php:192281 #: admin/tickets/html.php:209282 #: shortcode/components/guest.php:25283 #: shortcode/components/new-ticket.php:28284 #: shortcode/components/tickets.php:31285 msgid "Subject"286 msgstr ""287 288 #: admin/tickets/html.php:193289 msgid "Search"290 msgstr ""291 292 #: script/functions.php:16293 msgid "Email already in use"294 msgstr ""295 296 #: script/functions.php:33297 msgid "User updated"298 msgstr ""299 300 #: script/functions.php:45301 #: script/functions.php:49302 msgid "Registered successfully"303 msgstr ""304 305 #: script/functions.php:50306 msgid "Acess the helpdesk with your email and password"307 msgstr ""308 309 #: script/functions.php:54310 msgid "User does not exist"311 msgstr ""312 313 #: script/functions.php:69314 msgid "Password incorrect or user does not exist"315 msgstr ""316 317 #: script/functions.php:138318 msgid "Your already have a ticket open, wait until you ticket is solved or close it to create another"319 msgstr ""320 321 #: script/helpers.php:15322 msgid "Ticket update"323 msgstr ""324 325 #: script/helpers.php:19326 msgid "Access the helpdesk by using your email and password or using the url"327 msgstr ""328 329 #: script/helpers.php:28330 #: script/helpers.php:31331 #: script/helpers.php:72332 #: script/helpers.php:77333 #: shortcode/components/guest.php:7334 #: shortcode/components/ticket.php:17335 417 msgid "Ticket" 336 418 msgstr "" 337 419 338 #: script/helpers.php: 28420 #: script/helpers.php:32 339 421 msgid "was updated" 340 422 msgstr "" 341 423 342 #: script/helpers.php: 50424 #: script/helpers.php:66 343 425 msgid "Recover your helpdesk access password" 344 426 msgstr "" 345 427 346 #: script/helpers.php: 57428 #: script/helpers.php:73 347 429 msgid "If your user is found in the database we will send you a email with an OTP code and URL to reset your password. If not, sign-in or submit a ticket as a guest" 348 430 msgstr "" 349 431 350 #: script/helpers.php: 76351 #: script/helpers.php: 77432 #: script/helpers.php:93 433 #: script/helpers.php:94 352 434 msgid "ID" 353 435 msgstr "" 354 436 355 #: script/helpers.php: 79437 #: script/helpers.php:96 356 438 msgid "Text" 357 439 msgstr "" 358 440 359 #: script/helpers.php: 82441 #: script/helpers.php:99 360 442 msgid "Username" 361 443 msgstr "" … … 367 449 msgstr "" 368 450 369 #: shortcode/components/guest.php:9 370 #: shortcode/components/log-in.php:9 371 #: shortcode/components/profile.php:17 372 #: shortcode/components/sign-in.php:9 373 msgid "Email" 374 msgstr "" 375 376 #: shortcode/components/guest.php:10 451 #: shortcode/components/guest-ticket.php:29 452 #: shortcode/components/ticket.php:29 453 #: shortcode/components/tickets.php:69 454 msgid "Close" 455 msgstr "" 456 457 #: shortcode/components/guest-ticket.php:71 458 #: shortcode/components/ticket.php:71 459 msgid "Describe your case" 460 msgstr "" 461 462 #: shortcode/components/guest.php:14 377 463 #: shortcode/components/log-in.php:10 378 464 #: shortcode/components/profile.php:18 … … 381 467 msgstr "" 382 468 383 #: shortcode/components/guest.php:1 3469 #: shortcode/components/guest.php:17 384 470 #: shortcode/components/profile.php:21 385 471 #: shortcode/components/sign-in.php:13 … … 387 473 msgstr "" 388 474 389 #: shortcode/components/guest.php: 26390 #: shortcode/components/new-ticket.php: 29475 #: shortcode/components/guest.php:30 476 #: shortcode/components/new-ticket.php:34 391 477 msgid "Ticket subject" 392 478 msgstr "" 393 479 394 #: shortcode/components/guest.php: 28395 #: shortcode/components/new-ticket.php:3 1480 #: shortcode/components/guest.php:32 481 #: shortcode/components/new-ticket.php:36 396 482 msgid "Description" 397 483 msgstr "" 398 484 399 #: shortcode/components/guest.php: 29400 #: shortcode/components/new-ticket.php:3 2485 #: shortcode/components/guest.php:33 486 #: shortcode/components/new-ticket.php:37 401 487 msgid "Ticket thread start" 402 488 msgstr "" … … 418 504 msgstr "" 419 505 420 #: shortcode/components/new-ticket.php: 8506 #: shortcode/components/new-ticket.php:13 421 507 msgid "New ticket" 422 508 msgstr "" … … 475 561 msgstr "" 476 562 477 #: shortcode/components/ticket.php:25 478 #: shortcode/components/tickets.php:67 479 msgid "Close" 480 msgstr "" 481 482 #: shortcode/components/ticket.php:67 483 msgid "Describe your case" 484 msgstr "" 485 486 #: shortcode/components/tickets.php:16 563 #: shortcode/components/tickets.php:18 487 564 msgid "New" 488 565 msgstr "" 489 566 490 #: shortcode/components/tickets.php:2 1567 #: shortcode/components/tickets.php:23 491 568 msgid "Profile" 492 569 msgstr "" -
wdesk/trunk/readme.txt
r2825386 r2830701 5 5 Requires at least: 5.0 6 6 Tested up to: 6.1 7 Stable tag: 0. 47 Stable tag: 0.5 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 45 45 == Changelog == 46 46 47 = 0.5 = 48 * Reports 49 * Provider, email blocklist 50 * Autoclose if inactive 51 * Date formats 52 * Department email 53 47 54 = 0.4 = 48 55 * Tags … … 69 76 == Upgrade Notice == 70 77 78 = 0.5 = 79 Admin improvement 80 81 = 0.4 = 82 Agent utilities 83 71 84 = 0.3 = 72 85 Usability -
wdesk/trunk/script/functions.php
r2825348 r2830701 2 2 require_once(WDESK_LOCAL . 'script/helpers.php'); 3 3 session_start(); 4 4 5 function wdesk_user() 5 6 { … … 12 13 $email = sanitize_email($_POST['email']); 13 14 $name = sanitize_text_field($_POST['name']); 15 // Email or provider in the blocklist 16 $provider = substr($email, strpos($email, '@') + 1); 17 $blocked_emails = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_settings_emails` WHERE email = %s", $email)); 18 $blocked_providers = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_settings_email_providers` WHERE provider = %s", $provider)); 19 if (count($blocked_providers) > 0 && count($blocked_emails) > 0) { 20 echo "<script>alert('" . __('Your personal email or provider is in our blocklist', 'wdesk') . "')</script>"; 21 return 1; 22 } 23 // Email already in use 14 24 $users = $wpdb->get_results($wpdb->prepare("SELECT 1 FROM wdesk_users WHERE email = %s;", $email)); 15 25 if (isset($users[0]) && $users[0] >= 1 && isset($_POST['wdesk-user-register'])) { 16 26 echo "<script>alert('" . __('Email already in use', 'wdesk') . "')</script>"; 17 27 return 1; 28 } 29 // Update existing user 30 if (isset($_POST['id'])) { 31 $id = sanitize_text_field($_POST['id']); 32 $password = sha1(base64_encode($_POST["password"])); 33 $wpdb->replace( 34 'wdesk_users', 35 array( 36 'id' => $id, 37 'email' => $email, 38 'name' => $name, 39 'password' => $password 40 ) 41 ); 42 $_SESSION['wdesk-user-email'] = $email; 43 $_SESSION['wdesk-user-password'] = $password; 44 echo "<script>alert('" . __('User updated', 'wdesk') . "')</script>"; 45 echo "<script>window.location = window.location.pathname</script>"; 46 return 0; 47 // Create new user 18 48 } else { 19 if (isset($_POST['id'])) { 20 $id = sanitize_text_field($_POST['id']); 21 $password = sha1(base64_encode($_POST["password"])); 22 $wpdb->replace( 23 'wdesk_users', 24 array( 25 'id' => $id, 26 'email' => $email, 27 'name' => $name, 28 'password' => $password 29 ) 30 ); 31 $_SESSION['wdesk-user-email'] = $email; 32 $_SESSION['wdesk-user-password'] = $password; 33 echo "<script>alert('" . __('User updated', 'wdesk') . "')</script>"; 34 echo "<script>window.location = window.location.pathname</script>"; 35 return 0; 36 } else { 37 $password = sha1(base64_encode($_POST["password"])); 38 $wpdb->insert( 39 'wdesk_users', 40 array( 41 'email' => $email, 42 'password' => $password 43 ) 44 ); 45 echo "<script>alert('" . __('Registered successfully', 'wdesk') . "')</script>"; 46 $_SESSION['wdesk-user-email'] = $email; 47 $_SESSION['wdesk-user-password'] = $password; 48 header("refresh: 1"); 49 $subject = __('Registered successfully', 'wdesk'); 50 $message = __('Acess the helpdesk with your email and password', 'wdesk'); 51 wdesk_helper_send_mail($email, $subject, $message); 52 return 0; 53 } 54 echo "<script>alert('" . __('User does not exist', 'wdesk') . "')</script>"; 55 return 1; 49 $password = sha1(base64_encode($_POST["password"])); 50 $wpdb->insert( 51 'wdesk_users', 52 array( 53 'email' => $email, 54 'password' => $password 55 ) 56 ); 57 echo "<script>alert('" . __('Registered successfully', 'wdesk') . "')</script>"; 58 $_SESSION['wdesk-user-email'] = $email; 59 $_SESSION['wdesk-user-password'] = $password; 60 header("refresh: 1"); 61 $subject = __('Registered successfully', 'wdesk'); 62 $message = __('Acess the helpdesk with your email and password', 'wdesk'); 63 wdesk_helper_send_mail($email, $subject, $message); 64 return 0; 56 65 } 66 echo "<script>alert('" . __('User does not exist', 'wdesk') . "')</script>"; 67 return 1; 57 68 } 58 69 if (isset($_POST['wdesk-user-login'])) { … … 109 120 $user_email = sanitize_email($_POST['user-email']); 110 121 $thread_user = sanitize_text_field($_POST['thread-user']); 122 // Email or provider in the blocklist 123 $provider = substr($user_email, strpos($user_email, '@') + 1); 124 $blocked_emails = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_settings_emails` WHERE email = %s", $user_email)); 125 $blocked_providers = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_settings_email_providers` WHERE provider = %s", $provider)); 126 if (count($blocked_providers) > 0 && count($blocked_emails) > 0) { 127 echo "<script>alert('" . __('Your personal email or provider is in the blocklist', 'wdesk') . "')</script>"; 128 return 1; 129 } 130 // Email already in use 111 131 $tickets = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_tickets` WHERE user_email = %s and status != 'Closed'", $user_email)); 132 if (count($tickets) > 0) { 133 echo "<script>alert('" . __('Your already have a ticket open, wait until you ticket is solved or close it to create another', 'wdesk') . "')</script>"; 134 return 1; 135 } 112 136 // Unique ticket id (token) 113 137 $token = uniqid(); 114 // This user_email already has tickets? 115 if(count($tickets) <= 0) { 116 $wpdb->insert( 117 'wdesk_tickets', 118 array( 119 'subject' => sanitize_text_field($_POST['subject']), 120 'user_email' => $user_email, 121 'user_name' => $thread_user, 122 'token' => $token, 123 'status' => 'Open', 124 'department' => sanitize_text_field($_POST['department']) 125 ) 126 ); 127 $text = sanitize_textarea_field($_POST['thread']); 128 $file = isset($_FILES['file']) && $_FILES['file']['error'] == 0 ? wdesk_helper_save_file($_FILES['file']) : ""; 129 $wpdb->insert( 130 'wdesk_tickets_threads', 131 array( 132 'ticket_id' => $wpdb->insert_id, 133 'text' => $text, 134 'file' => $file, 135 'user_name' => $thread_user 136 ) 137 ); 138 // Success, update last_update and notify user 139 $wpdb->query($wpdb->prepare("UPDATE `wdesk_tickets` SET `last_update`= NOW() WHERE `id` = %s", $wpdb->insert_id)); 140 wdesk_helper_notify_user($token); 141 } else { 142 echo "<script>alert('" . __('Your already have a ticket open, wait until you ticket is solved or close it to create another', 'wdesk') . "')</script>"; 143 } 138 $wpdb->insert( 139 'wdesk_tickets', 140 array( 141 'subject' => sanitize_text_field($_POST['subject']), 142 'user_email' => $user_email, 143 'user_name' => $thread_user, 144 'token' => $token, 145 'status' => 'Open', 146 'department' => sanitize_text_field($_POST['department']) 147 ) 148 ); 149 $text = sanitize_textarea_field($_POST['thread']); 150 $file = isset($_FILES['file']) && $_FILES['file']['error'] == 0 ? wdesk_helper_save_file($_FILES['file']) : ""; 151 $wpdb->insert( 152 'wdesk_tickets_threads', 153 array( 154 'ticket_id' => $wpdb->insert_id, 155 'text' => $text, 156 'file' => $file, 157 'user_name' => $thread_user 158 ) 159 ); 160 // Success, update last_update and notify user 161 $wpdb->query($wpdb->prepare("UPDATE `wdesk_tickets` SET `last_update`= NOW() WHERE `id` = %s", $wpdb->insert_id)); 162 wdesk_helper_notify_user($token); 144 163 } 145 164 if (isset($_POST['wdesk-ticket-update'])) { … … 176 195 } 177 196 if (isset($_POST['wdesk-ticket-tag-remove'])) { 178 global $wpdb;197 global $wpdb; 179 198 $ticket_id = sanitize_text_field($_POST['ticket']); 180 199 $wpdb->update( … … 219 238 array( 220 239 'name' => sanitize_text_field($_POST['name']), 240 'email' => sanitize_text_field($_POST['email']) 221 241 ) 222 242 ); … … 233 253 array( 234 254 'name' => sanitize_text_field($_POST['name']), 255 'email' => sanitize_text_field($_POST['email']) 235 256 ), array( 236 257 'id' => $department_id, … … 306 327 function wdesk_setting() 307 328 { 308 // Update all 3settings values together329 // Update all general settings values together 309 330 if (isset($_POST['wdesk-setting-update'])) { 310 331 global $wpdb; … … 339 360 ), array( 340 361 'id' => 3, 362 ) 363 ); 364 $wpdb->update( 365 'wdesk_settings', 366 array( 367 'value' => sanitize_text_field($_POST['subject']), 368 ), array( 369 'id' => 4, 370 ) 371 ); 372 $wpdb->update( 373 'wdesk_settings', 374 array( 375 'value' => sanitize_text_field($_POST['thread']), 376 ), array( 377 'id' => 5, 378 ) 379 ); 380 } 381 if (isset($_POST['wdesk-setting-email-add'])) { 382 global $wpdb; 383 $wpdb->insert( 384 'wdesk_settings_emails', 385 array( 386 'email' => sanitize_text_field($_POST['email']), 387 ) 388 ); 389 } 390 if (isset($_POST['wdesk-setting-email-delete'])) { 391 global $wpdb; 392 $wpdb->delete( 393 'wdesk_settings_emails', 394 array( 395 'id' => sanitize_text_field($_POST['id']), 396 ) 397 ); 398 } 399 if (isset($_POST['wdesk-setting-email-provider-add'])) { 400 global $wpdb; 401 $wpdb->insert( 402 'wdesk_settings_email_providers', 403 array( 404 'provider' => sanitize_text_field($_POST['provider']), 405 ) 406 ); 407 } 408 if (isset($_POST['wdesk-setting-email-provider-delete'])) { 409 global $wpdb; 410 $wpdb->delete( 411 'wdesk_settings_email_providers', 412 array( 413 'id' => sanitize_text_field($_POST['id']), 341 414 ) 342 415 ); -
wdesk/trunk/script/helpers.php
r2825348 r2830701 29 29 { 30 30 global $wpdb; 31 $tickets = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_tickets` WHERE id = %s", $ticket_id)); 32 $agent = get_user_by('id', $tickets[0]->agent); 31 // Email message 33 32 $subject = __('Ticket', 'wdesk') . " $ticket_id " . __('was updated', 'wdesk'); 34 $settings = $wpdb->get_results("SELECT * FROM `wdesk_settings`");33 $settings = $wpdb->get_results("SELECT * FROM `wdesk_settings`"); 35 34 $url = $settings[2]->value; 36 35 $message = __('Ticket', 'wdesk') . "$ticket_id." . __("Access the helpdesk by using the url") . " $url"; 37 // Notify ticket agent if it is set 36 // Get ticket info 37 $tickets = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_tickets` WHERE id = %s", $ticket_id)); 38 // Agent not assigned, use department email 39 $agent = get_user_by('id', $tickets[0]->agent); 40 if (!$agent) { 41 $departments = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_departments` WHERE id = %s", $tickets[0]->department)); 42 wdesk_helper_send_mail($departments[0]->email, $subject, $message); 43 return; 44 } 45 // Notify agent if it's email is set 38 46 (isset($agent->user_email) && $agent->user_email != "") ? wdesk_helper_send_mail($agent->user_email, $subject, $message) : ''; 39 47 } -
wdesk/trunk/shortcode/components/guest-ticket.php
r2825348 r2830701 1 1 <?php 2 2 function wdesk_shortcode_component_guest_ticket() { 3 $return = '';4 3 global $wpdb; 4 // Get ticket settings 5 $settings = $wpdb->get_results("SELECT * FROM `wdesk_settings`"); 6 $max_thread = $settings[5]->value; 7 // 5 8 $ticket = sanitize_text_field($_GET['ticket']); 6 9 $token = sanitize_text_field($_GET['token']); 7 10 $ticket = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_tickets` WHERE id = %s AND token = %s", array($ticket, $token))); 11 $return = ''; 8 12 $return .= ' 9 13 <script> … … 65 69 <input type="hidden" name="subject" value="' . $ticket[0]->subject . '"/> 66 70 <input type="hidden" name="thread-user" value="' . $ticket[0]->user_name . '" /> 67 <textarea required type="text" name="thread" id="thread" placeholder="' . __('Describe your case', 'wdesk') . '" value="" style="height: 170px;"></textarea>71 <textarea required type="text" name="thread" id="thread" placeholder="' . __('Describe your case', 'wdesk') . '" maxlength="' . $max_thread . '" value="" style="height: 170px;"></textarea> 68 72 <br> 69 73 <input type="file" name="file" /> -
wdesk/trunk/shortcode/components/guest.php
r2825348 r2830701 2 2 function wdesk_shortcode_component_guest() { 3 3 global $wpdb; 4 // Get ticket settings 5 $settings = $wpdb->get_results("SELECT * FROM `wdesk_settings`"); 6 $max_subject = $settings[4]->value; 7 $max_thread = $settings[5]->value; 4 8 $return = ''; 5 9 $return .= ' … … 24 28 $return .= ' 25 29 <label>' . __('Subject', 'wdesk') . ' <a style="color: #FF0000;">*</a></label> 26 <input type="text" name="subject" value="" placeholder="' . __('Ticket subject', 'wdesk') . '" required />30 <input type="text" name="subject" value="" placeholder="' . __('Ticket subject', 'wdesk') . '" maxlength="' . $max_subject . '" required /> 27 31 <br> 28 32 <label>' . __('Description', 'wdesk') . ' <a style="color: #FF0000;">*</a></label> 29 <textarea type="text" name="thread" placeholder="' . __('Ticket thread start', 'wdesk') . '" style="height: 170px;" required></textarea>33 <textarea type="text" name="thread" placeholder="' . __('Ticket thread start', 'wdesk') . '" maxlength="' . $max_thread . '" style="height: 170px;" required></textarea> 30 34 <br> 31 35 <input type="file" name="file" /> -
wdesk/trunk/shortcode/components/new-ticket.php
r2825348 r2830701 2 2 function wdesk_shortcode_component_new_ticket($users) { 3 3 global $wpdb; 4 // Get ticket settings 5 $settings = $wpdb->get_results("SELECT * FROM `wdesk_settings`"); 6 $max_subject = $settings[4]->value; 7 $max_thread = $settings[5]->value; 8 // 4 9 $return = ''; 5 10 $return .= ' … … 27 32 $return .= ' 28 33 <label>' . __('Subject', 'wdesk') . ' <a style="color: #FF0000;">*</a></label> 29 <input type="text" name="subject" value="" placeholder="' . __('Ticket subject', 'wdesk') . '" required />34 <input type="text" name="subject" value="" placeholder="' . __('Ticket subject', 'wdesk') . '" maxlength="' . $max_subject . '" required /> 30 35 <br> 31 36 <label>' . __('Description', 'wdesk') . ' <a style="color: #FF0000;">*</a></label> 32 <textarea type="text" name="thread" placeholder="' . __('Ticket thread start', 'wdesk') . '" value="" style="height: 170px;" required></textarea>37 <textarea type="text" name="thread" placeholder="' . __('Ticket thread start', 'wdesk') . '" maxlength="' . $max_thread . '" value="" style="height: 170px;" required></textarea> 33 38 <br> 34 39 <input type="file" name="file" /> -
wdesk/trunk/shortcode/components/ticket.php
r2825348 r2830701 4 4 if (isset($_GET['ticket'])) { 5 5 global $wpdb; 6 // Get ticket settings 7 $settings = $wpdb->get_results("SELECT * FROM `wdesk_settings`"); 8 $max_thread = $settings[5]->value; 9 // 6 10 $ticket = sanitize_text_field($_GET['ticket']); 7 11 $ticket = $wpdb->get_results($wpdb->prepare("SELECT * FROM `wdesk_tickets` WHERE id = %s", $ticket)); … … 65 69 <input type="hidden" name="subject" value="' . $ticket[0]->subject . '"/> 66 70 <input type="hidden" name="thread-user" value="' . $ticket[0]->user_name . '" /> 67 <textarea required type="text" name="thread" id="thread" placeholder="' . __('Describe your case', 'wdesk') . '" value="" style="height: 170px;"></textarea>71 <textarea required type="text" name="thread" id="thread" placeholder="' . __('Describe your case', 'wdesk') . '" maxlength="' . $max_thread . '" value="" style="height: 170px;"></textarea> 68 72 <br> 69 73 <input type="file" name="file" />
Note: See TracChangeset
for help on using the changeset viewer.