Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
0aecc3a1
Commit
0aecc3a1
authored
Apr 25, 2019
by
Skirmantas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cv upload
parent
8436346e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
3 deletions
+15
-3
class-biuro-contacts-public.php
...ins/biuro-contacts/public/class-biuro-contacts-public.php
+15
-3
IKEA-APP-1.docx
wp-content/uploads/2019/04/IKEA-APP-1.docx
+0
-0
IKEA-APP-2.docx
wp-content/uploads/2019/04/IKEA-APP-2.docx
+0
-0
IKEA-APP-3.docx
wp-content/uploads/2019/04/IKEA-APP-3.docx
+0
-0
IKEA-APP-4.docx
wp-content/uploads/2019/04/IKEA-APP-4.docx
+0
-0
IKEA-APP-5.docx
wp-content/uploads/2019/04/IKEA-APP-5.docx
+0
-0
IKEA-APP-6.docx
wp-content/uploads/2019/04/IKEA-APP-6.docx
+0
-0
IKEA-APP-7.docx
wp-content/uploads/2019/04/IKEA-APP-7.docx
+0
-0
IKEA-APP.docx
wp-content/uploads/2019/04/IKEA-APP.docx
+0
-0
No files found.
wp-content/plugins/biuro-contacts/public/class-biuro-contacts-public.php
View file @
0aecc3a1
...
...
@@ -378,7 +378,7 @@ class Biuro_Contacts_Public {
case
'message'
:
return
sanitize_textarea_field
(
$value
);
case
'cv'
:
return
sanitize_
file_name
(
$value
);
return
sanitize_
text_field
(
$value
);
case
'agree'
:
case
'confirm'
:
return
filter_var
(
$value
,
FILTER_VALIDATE_INT
)
?
$value
:
0
;
...
...
@@ -463,11 +463,23 @@ class Biuro_Contacts_Public {
$data
=
[
'city'
=>
static
::
getValue
(
'city'
,
$_POST
[
'city'
]),
'message'
=>
static
::
getValue
(
'message'
,
$_POST
[
'message'
]),
'cv'
=>
static
::
getValue
(
'cv'
,
$_POST
[
'cv'
]),
//
'cv' => static::getValue('cv', $_POST['cv']),
'confirm'
=>
static
::
getValue
(
'confirm'
,
$_POST
[
'confirm'
]),
'updated'
=>
current_time
(
'Y-m-d H:i:s'
)
];
# upload file
if
(
$_FILES
)
{
$movefile
=
wp_handle_upload
(
$_FILES
[
'cv'
],
[
'test_form'
=>
false
]);
if
(
$movefile
&&
!
isset
(
$movefile
[
'error'
]
)
)
{
$data
[
'cv'
]
=
static
::
getValue
(
'cv'
,
$movefile
[
'url'
]);
}
else
{
$_SESSION
[
'file_error'
]
=
$movefile
[
'error'
];
}
}
static
::
update_row_in_db
(
$data
,
$_SESSION
[
'employees-quick--id'
]);
endif
;
...
...
wp-content/uploads/2019/04/IKEA-APP-1.docx
0 → 100644
View file @
0aecc3a1
File added
wp-content/uploads/2019/04/IKEA-APP-2.docx
0 → 100644
View file @
0aecc3a1
File added
wp-content/uploads/2019/04/IKEA-APP-3.docx
0 → 100644
View file @
0aecc3a1
File added
wp-content/uploads/2019/04/IKEA-APP-4.docx
0 → 100644
View file @
0aecc3a1
File added
wp-content/uploads/2019/04/IKEA-APP-5.docx
0 → 100644
View file @
0aecc3a1
File added
wp-content/uploads/2019/04/IKEA-APP-6.docx
0 → 100644
View file @
0aecc3a1
File added
wp-content/uploads/2019/04/IKEA-APP-7.docx
0 → 100644
View file @
0aecc3a1
File added
wp-content/uploads/2019/04/IKEA-APP.docx
0 → 100644
View file @
0aecc3a1
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment