Issues (25)

examples/screensaver/tiles.php (2 issues)

Labels
Severity
1
<?php
2
3
/*
4
5
Copyright (C) 2014-2015 Universitätsbibliothek Mannheim
6
See file LICENSE for license details.
7
8
Author: Stefan Weil, Universitätsbibliothek Mannheim
9
10
References:
11
http://responsiveslides.com/
12
http://unslider.com/
13
http://www.java2s.com/Code/JavaScript/GUI-Components/AnimationRandomMovement.htm
14
http://www.tutorialspoint.com/javascript/javascript_animation.htm
15
16
*/
17
18
$pin = sprintf("%04u", rand(0, 9999));
19
20
// Store PIN in database.
21
require_once('../../DBConnector.class.php');
22
$dbcon = new DBConnector();
0 ignored issues
show
The type DBConnector was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
23
$dbcon->exec("UPDATE setting SET value='$pin' WHERE key='pin'");
24
25
?>
26
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
27
       "http://www.w3.org/TR/html4/strict.dtd">
28
29
<html lang="de">
30
31
<head>
32
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
33
<title>PalMA &ndash; <?=__('Tiles')?></title>
0 ignored issues
show
The function __ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

33
<title>PalMA &ndash; <?=/** @scrutinizer ignore-call */ __('Tiles')?></title>
Loading history...
34
<script type="text/javascript" src="/jquery.min.js"></script>
35
<style type="text/css">
36
* {
37
    //~ margin: 0;
38
    //~ padding: 0;
39
}
40
41
html {
42
    font-family: DejaVu Sans,arial,liberation-sans,sans-serif;
43
    font-weight: 100;
44
    font-size: 400%;
45
    height: 100%;
46
}
47
img {
48
    position: absolute;
49
    right: 40px;
50
    top: 140px;
51
    //~ z-index: 2;
52
}
53
td {
54
    background-color: black;
55
    border: 5px solid;
56
    color: white;
57
    width: 250px;
58
    height: 250px;
59
    text-align: center;
60
}
61
#LeftSide {
62
    float: left;
63
}
64
#RightSide {
65
    float: right;
66
    font-size: 30%;
67
}
68
#Pin {
69
    font-size: 200%;
70
}
71
#LearningCenter {
72
    font-size: 180%;
73
}
74
#Beratung {
75
    background-color: #41a85f;
76
}
77
#Gruppenarbeit {
78
    background-color: #00a885;
79
}
80
#Smartboards {
81
    background-color: #3d8eb9;
82
}
83
#Scannen {
84
    background-color: #493db9;
85
}
86
#Lernen {
87
    background-color: #475677;
88
}
89
#Sessions {
90
    background-color: #8f44ad;
91
}
92
#Technikleihe {
93
    background-color: #b8312e;
94
}
95
#Relaxen {
96
    background-color: #f47935;
97
}
98
#Virtualshelf {
99
    background-color: #faa026;
100
}
101
</style>
102
</head>
103
104
<body>
105
106
<div id="LeftSide">
107
<div id="ubmannheim">
108
UB Mannheim
109
</div>
110
<div id="LearningCenter">
111
<strong>Learning</strong>Center
112
</div>
113
<table>
114
<tr>
115
<td id="Beratung">Beratung</td>
116
<td id="Gruppenarbeit">Gruppen<br>arbeit</td>
117
<td id="Smartboards">Smart<br>boards</td>
118
</tr>
119
<tr>
120
<td id="Scannen">Scannen</td>
121
<td id="Lernen">Lernen</td>
122
<td id="Sessions">Sessions</td>
123
</tr>
124
<tr>
125
<td id="Technikleihe">Technik<br>Leihe</td>
126
<td id="Relaxen">Relaxen</td>
127
<td id="Virtualshelf">Virtual<br>Shelf</td>
128
</tr>
129
</table>
130
</div>
131
132
<div id="RightSide">
133
    <span>
134
    <img src="../../qrcode/php/qr_img.php?d=<?=CONFIG_START_URL?>?pin=<?=$pin?>&amp;e=H" alt="QR Code">
135
    <h2>maTeam &ndash; Mannheim Team Monitor / Share your desktop.</h2>
136
    <p>Just go to <?=CONFIG_START_URL?> and enter the PIN.</p>
137
    <p id="Pin">PIN: <?= $pin ?></p>
138
    </span>
139
</div>
140
141
</body>
142
</html>
143