mirror of
https://github.com/FranP-code/Login-Form.git
synced 2025-10-12 23:52:47 +00:00
26 lines
492 B
PHP
26 lines
492 B
PHP
<?php
|
|
|
|
error_reporting(0);
|
|
|
|
|
|
function error($string) {
|
|
return '<h2 class=`invalid`>'. $string . '</h2>';
|
|
}
|
|
|
|
function backToPreviusPage($secs, $linkPage) {
|
|
return '<h3 class=`backToPreviousPage`>Coming back to the previous page in ' . $secs . ' seconds' .
|
|
|
|
'<script>
|
|
|
|
function goBackPage() {
|
|
window.location.replace(`' . $linkPage . '`)
|
|
console.log(`funka`)
|
|
}
|
|
|
|
setTimeout(goBackPage, ' . $secs * 1000 . ')
|
|
|
|
</script>';
|
|
|
|
}
|
|
|
|
?>
|