|
|
| |
Forums ⇒ General ⇒ This Site ⇒ [updated] Server Specs
[updated] Server SpecsPost your comments about this site or bugs found on this website in here. Please post errors, bugs or other problems found in your installation in the appropriate forum.
Go to page Previous 1, 2
|
View previous topic :: View next topic |
| Author |
Message |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Tue Apr 15, 2008 2:03 pm Post subject: Re: Server Specs |
|
Change
| PHP: |
imagepng($im,'',9,PNG_ALL_FILTER);
|
to
This serverspecs file is PHP 5.1.3+ compatible, by changing the code will be PHP4 compatible as well.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
Kendle 500+ Posts Club


Offline Joined: Dec 16, 2004 Posts: 552
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
|
| Back to top |
|
 |
Blaine Newbie


Offline Joined: Apr 16, 2008 Posts: 6
|
Posted: Thu May 08, 2008 6:46 pm Post subject: Re: Server Specs |
|
Nice indeed!
Blaine's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Tue May 01, 2012 9:17 am Post subject: Re: Server Specs |
|
If you use the existing serverspecs.php file on a server using PHP 5.3, it may not work - amended code below:
| PHP: |
<?php # DragonflyCMS versions 9.1.x and above if (isset($_GET['viewsource'])) { highlight_file(__FILE__); exit; } define('XMLFEED', 1); include_once('includes/cmsinit.inc'); $sql = $db->get_details(); $apache = substr($_SERVER['SERVER_SOFTWARE'],0,6) == 'Apache' ? substr($_SERVER['SERVER_SOFTWARE'], 7, 6) : '-';
$im = imagecreate(400, 20); # Create image # Change the RGB values and comment out line 15 to change background color $background_color = imagecolorallocate($im, 192, 192, 192); imagecolortransparent($im, $background_color); # Change the RGB values to change text color $color = imagecolorallocate ($im, 51, 51, 153); imagestring($im, 2, 1, 3, PHP_OS.' / '.$apache.' / '.DB_TYPE.' '.$sql['server'].' / '.PHP_VERSION.' / '.CPG_NUKE, $color);
header('Pragma: public'); header('Pragma: no-cache'); header('Content-type: image/png'); #imagepng($im,'',9,PNG_ALL_FILTER); imagepng($im,NULL,9); imagedestroy ($im);
|
As before, add the file to your site, edit the Your Profile OS/Apache/MySQL/PHP/DragonflyCMS section, as follows,
| Code:: |
[img]http://yoursite.com/serverspecs.php[/img] |
and your server specs will be displayed here, provided your host supports the various bits of info (especially Apache).
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
| |
 |
 Welcome Anonymous
|
|
|
|