Bonsoir,
J'utilise php 7.0 lorsque que je me connecte une erreur parvient :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
[31-Oct-2017 22:21:28 Europe/Paris] PHP Fatal error:  Uncaught Error: Class 'user' not found in /home/wtjuorii/public_html/admin-panel/lib/util/Login.class.php:82
Stack trace:
#0 /home/wtjuorii/public_html/admin-panel/lib/core.functions.php(26): Login::check()
#1 /home/wtjuorii/public_html/admin-panel/main.php(11): require_once('/home/wtjuorii/...')
#2 /home/wtjuorii/public_html/admin-panel/index.php(8): require_once('/home/wtjuorii/...')
#3 {main}
  thrown in /home/wtjuorii/public_html/admin-panel/lib/util/Login.class.php on line 82
Login.class.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
 
/**
 * @author		Trayne & eQuiNox
 * @copyright	2011 - 2017 Shaiya Productions
**/
 
class Login{
	private static $uid;
	private static $user;
	private static $userid;
	private static $pw;
	private static $action;
	private static $sql;
	private static $res;
	private static $fet;
	private static $conn;
 
	public static function show($fehler = ''){
		echo  '<head>
				<title>GM Tool v. '.GM_TOOL_VERSION.' | Login</title>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
				<meta name="language" content="en">
				<meta name="Robots" content="noindex, nofollow">
				<meta http-equiv="expires" content="0">
				<meta name="copyright" content="Trayne & eQuiNox | www.shaiya.pf-control.de">
				<meta name="copyright" content="Trayne & eQuiNox | www.shaiya.pf-control.de">
				<meta http-equiv="content-type" content="text/html; charset=UTF-8">
				<meta http-equiv="content-script-type" content="text/javascript">
				<meta http-equiv="content-style-type" content="text/css">
				<link rel="stylesheet" type="text/css" href="css/style.css">	
				<link rel="SHORTCUT ICON" href="images/favicon.ico" type="image/x-icon">
				<link rel="stylesheet" href="js/jquery-ui.min.css">
				<script type="text/javascript" src="js/jquery-latest.min.js"></script>
				<script src="js/jquery-ui.min.js"></script>
				<style>
				tr,th,td { 
					border: 0px;
				}
				</style>
			</head>
			<body>';
		if (strlen($fehler) > 1)
			echo '<font color="red">'.$fehler.'</font><br>';
 
		 self::$action = '?action=Login';
 
		echo '<center>
				<form action="'.$_SERVER['PHP_SELF'].self::$action.'" method="POST" style="margin-top:30%;background-color:rgba(0,0,0,0.5);width:340;">
					<table border="0" border-collapse: collapse;>
					  <tr>
						<td>Username: </td><td><input type="text" name="username" maxlength="18"></td>
					  </tr>
					  <tr>
						<td>password: </td><td><input type="password" name="password" maxlength="12"></td>
					  </tr>
					  <tr>
						<td></td><td><input type="submit" name="Login" value="Login"></td>
					  </tr>	
					</table>	
				</form>
			  </center>';
		echo  '</body>';
		exit();
	}
 
	public static function check(){
		self::$conn = dbConn::getConnection();
		self::$userid = Parser::validate($_POST['username']);
		self::$pw	  = Parser::validate($_POST['password']);
 
		self::$sql = self::$conn->prepare("SELECT [UserUID] FROM [PS_UserData].[dbo].[Users_Master] WHERE [UserID] = '".self::$userid."' AND [Pw] = '".self::$pw."'");
		self::$sql->execute();
 
 
		self::$fet = self::$sql->fetch(PDO::FETCH_BOTH);		
        if(isset(self::$fet[0])){
            if (self::$fet[0] != null){
                self::$uid = self::$fet[0];
 
 
                self::$user = new user(self::$uid);
 
                if (!self::$user->isAdm())
                    self::show('You need full GM privileges to access this page.');
 
                Session::set(self::$uid);
 
                return self::$user;
            }else{
                self::show('Wrong User and/or Password');
            }
             self::show('Wrong User and/or Password');
        }
	}
}
 
?>
Les classes sont très sensibles aux majuscule/minuscules, je n'ai pas de user.class.php dans le répertoire où il y a le Login.class.php, ainsi qu'à vu d'oeil aucun Class user() de déclaré..

Une idée ?