Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
IPok
IPok_Web
Commits
129bedb3
Commit
129bedb3
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
f5ae8ce1
faf08a51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
autoload.php
admin/application/config/autoload.php
+1
-1
Webservice.php
admin/application/controllers/Webservice.php
+5
-0
No files found.
admin/application/config/autoload.php
View file @
129bedb3
...
...
@@ -58,7 +58,7 @@ $autoload['packages'] = array();
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/
$autoload
[
'libraries'
]
=
array
(
'database'
,
'session'
,
'email'
);
$autoload
[
'libraries'
]
=
array
(
'database'
,
'session'
,
'email'
,
'encrypt'
);
/*
| -------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
admin/application/controllers/Webservice.php
View file @
129bedb3
...
...
@@ -2949,6 +2949,11 @@ print_r(date('H:i',$ms));exit();*/
if
(
isset
(
$data
[
'card_number'
])
&&
strlen
(
trim
(
$data
[
'card_number'
],
" "
))
>
0
&&
isset
(
$data
[
'card_holder_name'
])
&&
strlen
(
trim
(
$data
[
'card_holder_name'
],
" "
))
>
0
&&
isset
(
$data
[
'card_expiry_month'
])
&&
strlen
(
trim
(
$data
[
'card_expiry_month'
],
" "
))
>
0
&&
isset
(
$data
[
'card_expiry_year'
])
&&
strlen
(
trim
(
$data
[
'card_expiry_year'
],
" "
))
>
0
&&
isset
(
$data
[
'card_cvv'
])
&&
strlen
(
trim
(
$data
[
'card_cvv'
],
" "
))
>
0
&&
isset
(
$data
[
'card_id'
])
&&
strlen
(
trim
(
$data
[
'card_id'
],
" "
))
>
0
){
$auth_result
=
$this
->
Webservice_model
->
get_userid_frm_authtoken
(
$headers
[
'Auth'
]);
$data
[
'user_id'
]
=
$auth_result
->
userid
;
$data
[
'card_number'
]
=
encrypt_data
(
$data
[
'card_number'
]);
$data
[
'card_holder_name'
]
=
encrypt_data
(
$data
[
'card_holder_name'
]);
$data
[
'card_expiry_month'
]
=
encrypt_data
(
$data
[
'card_expiry_month'
]);
$data
[
'card_expiry_year'
]
=
encrypt_data
(
$data
[
'card_expiry_year'
]);
$data
[
'card_cvv'
]
=
encrypt_data
(
$data
[
'card_cvv'
]);
$result
=
$this
->
Webservice_model
->
edit_save_card
(
$data
);
if
(
$result
){
$res
=
array
(
'status'
=>
'success'
);
...
...
This diff is collapsed.
Click to expand it.
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