-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherror.php
51 lines (51 loc) · 1.52 KB
/
error.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
// if php.ini register_globals = Off
$ec = $_GET['ec'];
switch($ec)
{
case 1:
$message = "An error occurred while performing your request. Please <a
href=logout.php>log in again</a>.";
break;
case 2:
$message = "An error occurred while connecting to the mail pop3 server. Function: imap_open().
Please <a href=logout.php>log in again</a>.";
break;
case 3:
$message = "An error occurred while creating directory. Function: mkdir().
Please <a href=logout.php>log in again</a>.";
break;
case 4:
$message = "An error occurred while creating file. Function: touch().
Please <a href=logout.php>log in again</a>.";
break;
case 5:
$message = "An error occurred while opening file. Function: fopen().
Please <a href=logout.php>log in again</a>.";
break;
case 6:
$message = "An error occurred while connecting to the MYSQL DB. Function: mysql_pconnect().
Please <a href=logout.php>log in again</a>.";
break;
case 7:
$message = "An error occurred while selecting the lyac database. Function: mysql_select_db ().
Please <a href=logout.php>log in again</a>.";
break;
case 8:
$message = "An error occurred while checking compatibly current Unix timestamp and mail message date in Unix time.
Please check system date and time <a href=logout.php>log in again</a>.";
break;
// everything else
default:
$message = "An unspecified error occurred while performing your request.
Please <a href=logout.php>log in again</a>.";
break;
}
?>
<html>
<head>
</head>
<body bgcolor="White">
<?php echo "<p align='center'><b>Error: </b>$message</p>"; ?>
</body>
</html>