Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
9ebb4391
Commit
9ebb4391
authored
Dec 12, 2024
by
Sarun Mungthanya
Browse files
issue create exchangerate
parent
a45a3892
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Livewire/Pages/Exchangerate/ExchangerateUpload.php
View file @
9ebb4391
...
...
@@ -326,10 +326,10 @@ class ExchangerateUpload extends Component
$POWNER
=
auth
()
->
user
()
->
id
;
$PATCHCODE
=
Storage
::
get
(
'patchcode_new.txt'
);
$PATCHCODE
=
str_replace
(
"'"
,
"''"
,
$PATCHCODE
);
//
$PATCHCODE = str_replace("'", "''", $PATCHCODE);
$UNINSTALL
=
Storage
::
get
(
'uninstall_new.txt'
);
$UNINSTALL
=
str_replace
(
"'"
,
"''"
,
$UNINSTALL
);
//
$UNINSTALL = str_replace("'", "''", $UNINSTALL);
$i
=
0
;
$PATCHCODE_SERVER
=
''
;
...
...
@@ -339,13 +339,13 @@ class ExchangerateUpload extends Component
if
(
$i
==
0
)
{
$PATCHCODE_SERVER
.
=
'$MONTH="'
.
$ins_addYear
.
'-'
.
$ins_addMonth
.
'-%";'
;
}
else
if
(
$i
==
1
)
{
$PATCHCODE_SERVER
.
=
'$UPDATECODE=
'
.
"'
"
.
$ins_addYear
.
$ins_addMonth
.
"
'"
.
'
;'
;
$PATCHCODE_SERVER
.
=
'$UPDATECODE="'
.
$ins_addYear
.
$ins_addMonth
.
'";'
;
}
else
{
$PATCHCODE_SERVER
.
=
$tmp
;
}
$i
++
;
}
$PATCHCODE_SERVER
=
str_replace
(
"'"
,
"''"
,
$PATCHCODE_SERVER
);
//
$PATCHCODE_SERVER = str_replace("'", "''", $PATCHCODE_SERVER);
$PATCHNAME
=
"Exchange Rate Import & Export
$ins_addMonth
/
$ins_addYear
"
;
...
...
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