[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Glyphs_SWF.php
<?php /** * Example of SWF 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 */ if (!extension_loaded('ming')) { ?> <p><b><font color="red">This example needs MING extension which is not loaded in your PHP environment!</font></b></p> <p>Information for installing this PECL extension may be found in the manual chapter titled <a href="http://php.net/manual/en/install.pecl.php" target=_blank>Installation of PECL extensions</a>. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: <a href="http://pecl.php.net/package/ming" target=_blank>http://pecl.php.net/package/ming</a>.</p> <p>This extension has been moved to the <a href="http://pecl.php.net/" target=_blank>PECL</a> repository and is no longer bundled with PHP as of PHP 5.3.0</p> <?php exit; } require '../../Arabic.php'; $Arabic = new I18N_Arabic('Glyphs'); $text_before = 'اللغة العربية'; $text_after = $Arabic->utf8Glyphs($text_before); $f = new SWFFont(dirname(__FILE__).'/GD/ae_AlHor.ttf'); $m = new SWFMovie(); $m->setRate(24.0); $m->setDimension(520, 320); $m->setBackground(105, 121, 47); /** * This functions was based on the example from * http://ming.sourceforge.net/examples/animation.html * * @param integer $r Red * @param integer $g Green * @param integer $b Blue * @param integer $a Alpha * @param integer $rot Rotate * @param integer $x X * @param integer $y Y * @param integer $scale Scale * @param string $string String * * @return SWFMovie object */ function text ($r, $g, $b, $a, $rot, $x, $y, $scale, $string) { global $f, $m; $t = new SWFText(); $t->setFont($f); $t->setColor($r, $g, $b, $a); $t->setHeight(96); $t->moveTo(-($t->getWidth($string)) / 5, 32); $t->addUTF8String($string); $i = $m->add($t); $i->rotateTo($rot); $i->moveTo($x, $y); $i->scale($scale, $scale); return $i; } $x = 1040; $y = 50; $size = 0.4; $t[0] = text(220, 220, 220, 0xff, 0, $x, $y, $size, $text_before); $y = 80; $size = 0.8; $t[1] = text(255, 255, 0, 0xff, 0, $x, $y, $size, $text_after); $frames = 400; for ($j = 0; $j < $frames; $j++) { for ($i = 0; $i < 2; $i++) { $t[$i]->moveTo(260 + round(sin($j / $frames * 2 * pi() + $i) * (50 + 50 * ($i + 1))), 160 + round(sin($j / $frames * 4 * pi() + $i) * (20 + 20 * ($i + 1)))); $t[$i]->rotateTo(round(sin($j / $frames * 2 * pi() + $i / 10) * 360)); } $m->nextFrame(); } header('Content-Type: application/x-shockwave-flash'); $m->output(0);
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.43 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