General ⇒ $this->Website ⇒ [updated] Server Specs ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index$this->Website

[updated] Server Specs Reply to topic


Change
imagepng($im,'',9,PNG_ALL_FILTER);
to
imagepng($im);

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! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


That did the trick, thanks Nano ! Very Happy

Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


hmm, that was a bit foolish of me, especially since I was the one that originally provided the PHP5 fix for the signature Embarassed

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
linux / apache 2.2.22 / mysqli 5.6.34 / 7.1.22 / 10.0.48.9418+


Nice indeed!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


If you use the existing serverspecs.php file on a server using PHP 5.3, it may not work - amended code below:

<?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,[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).

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
linux / apache 2.2.22 / mysqli 5.6.34 / 7.1.22 / 10.0.48.9418+


How can i be the member of Dragonfly CMS?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
9.4.0.0 CVS

All times are UTC


Jump to: