-
Notifications
You must be signed in to change notification settings - Fork 0
/
fortfiglet.php
153 lines (137 loc) · 4.85 KB
/
fortfiglet.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
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
<?php
/*
* Copyright (c) 2004 mgr ... Ryszard Wies³aw Czekaj <rycho@Czekaj.net>
* All rights reserved.
* $ Utor vi, uti FreeBSD
* # _________^-^__
* # bofh@RYCHo.oRG
* # ~~~~~~~~~ v ~~
* This code is in the public domain for U2.
* You must have (figlet && fortune) installed in path.
(c) 2023 I'm commercial! All from this code 33% income for me ;)
+48 882723907
37w2SC3qoDvtXBC5Be1e2CbKPx5gwRDhDv
3PCFHnY1ujpCchFNSBAeaECZ8rGyScoRLT
PLN:
Beneficjent: Ryszard Czekaj
IBAN: LT773250049791461533
Kod BIC: REVOLT21
Kod BIC banku pośredniczącego: BARCGB22
Adres beneficjenta: Zwyciestwa pl., 8/24, 44-300, Wodzislaw Slaski, Poland
Bank lub instytucja płatnicza: Revolut Bank UAB
Adres banku: Konstitucijos ave. 21B, 08130, Vilnius, Lithuania
DKK:
Beneficjent: Ryszard Czekaj
IBAN: LT773250049791461533
Kod BIC: REVOLT21
Kod BIC banku pośredniczącego: BARCGB22
Adres beneficjenta: Zwyciestwa pl., 8/24, 44-300, Wodzislaw Slaski, Poland
Bank lub instytucja płatnicza: Revolut Bank UAB
Adres banku: Konstitucijos ave. 21B, 08130, Vilnius, Lithuania
Local EUR:
Beneficjent: Ryszard Czekaj
IBAN: LT773250049791461533
Kod BIC: REVOLT21
Adres beneficjenta: Zwyciestwa pl., 8/24, 44-300, Wodzislaw Slaski, Poland
Bank lub instytucja płatnicza: Revolut Bank UAB
Adres banku: Konstitucijos ave. 21B, 08130, Vilnius, Lithuania
International EUR:
Beneficjent: Ryszard Czekaj
IBAN: LT773250049791461533
Kod BIC: REVOLT21
Kod BIC banku pośredniczącego: CHASDEFX
Adres beneficjenta: Zwyciestwa pl., 8/24, 44-300, Wodzislaw Slaski, Poland
Bank lub instytucja płatnicza: Revolut Bank UAB
Adres banku: Konstitucijos ave. 21B, 08130, Vilnius, Lithuania
International USD:
Beneficjent: Ryszard Czekaj
IBAN: LT773250049791461533
Kod BIC: REVOLT21
Kod BIC banku pośredniczącego: CHASDEFX
Adres beneficjenta: Zwyciestwa pl., 8/24, 44-300, Wodzislaw Slaski, Poland
Bank lub instytucja płatnicza: Revolut Bank UAB
Adres banku: Konstitucijos ave. 21B, 08130, Vilnius, Lithuania
Local USD:
Beneficjent: Ryszard Czekaj
IBAN: LT773250049791461533
Kod BIC: REVOLT21
Adres beneficjenta: Zwyciestwa pl., 8/24, 44-300, Wodzislaw Slaski, Poland
Bank lub instytucja płatnicza: Revolut Bank UAB
Adres banku: Konstitucijos ave. 21B, 08130, Vilnius, Lithuania
CZK:
Beneficjent: Ryszard Czekaj
IBAN: LT773250049791461533
Kod BIC: REVOLT21
Kod BIC banku pośredniczącego: BARCGB22
Adres beneficjenta: Zwyciestwa pl., 8/24, 44-300, Wodzislaw Slaski, Poland
Bank lub instytucja płatnicza: Revolut Bank UAB
Adres banku: Konstitucijos ave. 21B, 08130, Vilnius, Lithuania
*/
$rcsid = '$Id: fortfiglet.php,v 1.1 2004/04/29 17:33:44 rycho Exp rycho +2005$';
define('APP_ROOT', dirname(__FILE__));
define('IN_PHPSYSINFO', true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm
l1-transitional.dtd">
<html><head>
<?php echo "<meta http-equiv=\"Refresh\" content=\"321; URL=http://RYCHoo.TheUnixPlace.com/fortfiglet/\" />"; ?>
<?php echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />"; ?>
<title>
fortfiglet with RYCHoo@freeshell.net 8-)
</title>
<script type="text/javascript">
<!--
if (self.parent.frames.length != 0){
self.parent.location = document.location;
}
//--></script>
</head>
<body>
<?php
function fortfiglet()
{
$litery = array(34, 36, 37, 38, 42, 43, 45, 47, 48, 49, 50, 51, 52,
53, 54, 55, 56, 57, 58, 59, 61, 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, 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, 196, 214, 220, 223, 228, 246, 252);
$max = sizeof($litery);
$litera = 0; $buf = ''; $linia = ''; $pipe = ''; $sig = '';
mt_srand( (double)microtime()*12345678 );
$litera = mt_rand() % $max;
$buf = sprintf("echo '%c' | /usr/pkg/bin/figlet -f eftiwall", $litery[$litera]);
$pipe = popen($buf, "r") or die("Stream error -> $buf\n");
$buf = "/usr/pkg/games/fortune -o";
$sig = popen($buf, "r") or die("Stream error -> $buf\n");
for ($max = 0; $max < 5; ++$max)
{
if ($linia = fgets($pipe, 255))
{
$litera = strlen($linia);
$linia[--$litera] = ' ';
printf("%s", $linia);
if ($buf = fgets($sig, 255))
printf("%s", $buf);
else
printf("\n");
}
}
while ($buf = fgets($sig, 255)) {
printf("%s", $buf);
}
pclose($pipe);
pclose($sig);
}
?>
<table align="center"><tr><td>
<pre>
<?php
fortfiglet();
?>
</pre>
</td></tr></table>
<?php
require_once(APP_ROOT . '/../includes/system_sub_header.php');
?>
</body></html>