mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 23:09:53 +07:00
arc-functions: rework id check
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
46ec4215d7
commit
efca3aaf6d
@ -2289,17 +2289,25 @@ function checkHardwareID() {
|
|||||||
if echo "${USERID}" | grep -vq "Hardware ID"; then
|
if echo "${USERID}" | grep -vq "Hardware ID"; then
|
||||||
writeConfigKey "arc.hwid" "${HWID}" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.hwid" "${HWID}" "${USER_CONFIG_FILE}"
|
||||||
writeConfigKey "arc.userid" "${USERID}" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.userid" "${USERID}" "${USER_CONFIG_FILE}"
|
||||||
if [ -n "${USERID}" ] && [ -n "${HWID}" ]; then
|
cp -f "${S_FILE}" "${S_FILE}.bak"
|
||||||
cp -f "${S_FILE}" "${S_FILE}.bak"
|
if curl -skL "https://arc.auxxxilium.tech?hwid=${HWID}&userid=${USERID}" > "${S_FILE}"; then
|
||||||
curl -skL "https://arc.auxxxilium.tech?hwid=${HWID}&userid=${USERID}" > "${S_FILE}"
|
dialog --backtitle "$(backtitle)" --title "HardwareID" \
|
||||||
|
--infobox "HardwareID: ${HWID}\nYour HardwareID is registered to UserID: ${USERID}!" 6 70
|
||||||
|
sleep 3
|
||||||
|
else
|
||||||
|
writeConfigKey "arc.hwid" "" "${USER_CONFIG_FILE}"
|
||||||
|
writeConfigKey "arc.userid" "" "${USER_CONFIG_FILE}"
|
||||||
|
dialog --backtitle "$(backtitle)" --title "HardwareID" \
|
||||||
|
--infobox "Couldn't verify your HardwareID!\nArc Patch not enabled!" 6 40
|
||||||
|
USERID=""
|
||||||
|
cp -f "${S_FILE}.bak" "${S_FILE}"
|
||||||
|
sleep 3
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
writeConfigKey "arc.hwid" "" "${USER_CONFIG_FILE}"
|
|
||||||
writeConfigKey "arc.userid" "" "${USER_CONFIG_FILE}"
|
|
||||||
dialog --backtitle "$(backtitle)" --title "HardwareID" \
|
dialog --backtitle "$(backtitle)" --title "HardwareID" \
|
||||||
--infobox "Couldn't verify your HardwareID!\nArc Patch not enabled!" 6 40
|
--infobox "HardwareID: Verification failed!" 6 50
|
||||||
cp -f "${S_FILE}.bak" "${S_FILE}"
|
USERID=""
|
||||||
sleep 3
|
sleep 2
|
||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user