Last change
on this file since 295 was 295, checked in by maron, 17 years ago |
Client texty - zatím bez zobrazení na webu, oprava logu, oprava shoutboxu, ukládání webů, na kterých je banner
|
File size:
945 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | include('../includes/config.php');
|
---|
4 | include('../includes/databaseconection.php');
|
---|
5 |
|
---|
6 |
|
---|
7 | $Database = new Database($Config['Database']['Host'], $Config['Database']['User'], $Config['Database']['Password']);
|
---|
8 | $Database->SQLCommand('SET NAMES '.$Config['Database']['Charset']);
|
---|
9 | $Database->SelectDatabase($Config['Database']['Database']);
|
---|
10 |
|
---|
11 | $img = imagecreatefromjpeg('baner_88_31.jpg');
|
---|
12 | $address = @$_SERVER["HTTP_REFERER"];
|
---|
13 |
|
---|
14 | $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM banner WHERE Web = '$address'"));
|
---|
15 | if (!$Line) {
|
---|
16 | $Database->SQLCommand("INSERT INTO `banner` ( `Date` , `Web` ) VALUES ( NOW() , '$address');");
|
---|
17 | }
|
---|
18 |
|
---|
19 |
|
---|
20 | // $Color3 = imagecolorallocate($img,2,59,199);
|
---|
21 | // imagestring($img, 10, 10, 30, 'Pøispupujete z: '.$address, $Color3);
|
---|
22 |
|
---|
23 | header('Content-Type: image/png');
|
---|
24 | // Header('Content-Disposition: attachment; filename="img_468_60.jpg"');
|
---|
25 | imagepng($img);
|
---|
26 |
|
---|
27 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.