Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ General ⇒ This Site ⇒ [updated] Server Specs


[updated] Server Specs
Post 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
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  This Site

View previous topic :: View next topic  
Author Message
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Apr 15, 2008 2:03 pm
Post subject: Re: Server Specs

Change
PHP:
imagepng($im,'',9,PNG_ALL_FILTER);
to
PHP:
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! ::.

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
View user's profile Visit poster's website Photo Gallery
Kendle
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Dec 16, 2004
Posts: 552

PostPosted: Tue Apr 15, 2008 2:30 pm
Post subject: Re: Server Specs

That did the trick, thanks Nano ! Very Happy

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

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Apr 15, 2008 3:47 pm
Post subject: Re: Server Specs

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


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Blaine
Newbie
Newbie

Offline Offline
Joined: Apr 16, 2008
Posts: 6

PostPosted: 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
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  This Site
Page 2 of 2
All times are GMT
Go to page Previous  1, 2



Jump to:  


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


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

קרא יותר...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy