forked from XoopsModules25x/adslight
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathip_image.php
33 lines (28 loc) · 1.4 KB
/
ip_image.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
<?php declare(strict_types=1);
/*
-------------------------------------------------------------------------
ADSLIGHT 2 : Module for Xoops
Redesigned and ameliorate By iluc user at www.frxoops.org
Started with the Classifieds module and made MANY changes
Website : https://www.limonads.com
Contact : adslight.translate@gmail.com
-------------------------------------------------------------------------
Original credits below Version History
##########################################################################
# Classified Module for Xoops #
# By John Mordo user jlm69 at www.xoops.org and www.jlmzone.com #
# Started with the MyAds module and made MANY changes #
##########################################################################
Original Author: Pascal Le Boustouller
Author Website : pascal.e-xoops@perso-search.com
Licence Type : GPL
-------------------------------------------------------------------------
*/
$img_number = imagecreate(275, 25);
$backcolor = imagecolorallocate($img_number, 102, 102, 153);
$textcolor = imagecolorallocate($img_number, 255, 255, 255);
imagefill($img_number, 0, 0, $backcolor);
$number = $_SERVER['REMOTE_ADDR'];
imagestring($img_number, 10, 5, 5, $number, $textcolor);
header('Content-type: image/jpeg');
imagejpeg($img_number);