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:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
|
<?php
$filename="cashphone.php";
require("./global.php");
require ("./acp/lib/class_parse.php");
echo '<font size="7">Telefon-Joker</font>';
// $wodu =welchen Level der User ist
$wodu = $db->query_first("SELECT * FROM bb".$n."_cashuser WHERE username = '$wbbuserdata[username]'");
$level = $wodu['level'];
$status = $wodu['status'];
$phone1 = "";
$phone2 = "";
$phoneL = "";
// #### level für fifty-fifty auslesen ####
$row = $db->query_first("SELECT * FROM bb".$n."_cashfragen WHERE level = '$level'");
/* Variablen zuordnen */
$level = $row['level'];
$frage = $row['frage'];
$antwA = $row['antwA'];
$antwB = $row['antwB'];
$antwC = $row['antwC'];
$antwD = $row['antwD'];
$antwL = $row['antwL'];
if($antwL == "A"){
$phone1 = "A";
$phone2 = "C";
}
if($antwL == "B"){
$phone1 = "B";
$phone2 = "D";
}
if($antwL == "C"){
$phone1 = "B";
$phone2 = "C";
}
if($antwL == "D"){
$phone1 = "D";
$phone2 = "C";
}
// Entscheidung welche von Beiden per Zufall
$tipp = rand(1,2);
if($tipp = 1){
$phoneL = $phone1;
}else{
$phoneL = $phone2;
}
// ++++++++++++++++++++++++++++++++++++
// wer angerufen wird ###########################################
// #################### arrays mit Worten füllen #################
// ### zufallszahl für wer angerufen wird #####
srand(microtime()*1000000);
$ring1 = rand(0,9);
$ring2 = rand(0,9);
$tele1 = array ("Knochen", "Oel", "Sturm", "Ober", "Hand",
"Schwarz", "Schluck", "Innen", "Wind", "Stink");
// erster namensteil auslesen
$buch1 = "$tele1[$ring1]";
$tele2 = array ("schlegel", "schmidt", "becher", "mann", "witz",
"hals", "wirt", "feger", "keller", "specht");
$buch2 = "$tele2[$ring2]";
echo "<br>Versuche bei <b>$buch1$buch2</b> anzurufen <br><br>";
// --------------------------
// ### zufallszahl was passiert zwischen 1 und 40 #####
srand(microtime()*1000000);
$xx = rand(1,40);
echo "<br><br>";
if($xx < 18){
echo "Leider nimmt keiner ab !";
}elseif($xx < 36){
echo "Tut mir leid, aber es kommt ein Besetztzeichen !";
}else{
echo "Die Antwort kann nur $phone1 oder $phone2 sein ... <br>";
echo "ich tippe mal auf $phoneL";
}
echo "<br><hr><br>";
echo "<br><br><br>in 10 sekunden gehts zurück";
?>
<meta http-equiv="refresh" content="10; url=cash.php"> |