Advertisement:

Author Topic: [New Plugin] PHP Info  (Read 4851 times)

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
[New Plugin] PHP Info
« on: July 22, 2011, 01:27:47 am »
Hi

I created a new plugin for displaying your servers php info. This plugin would is very useful for finding out the php configuration on your server.

Jay

**Edit Cleaned up code
« Last Edit: July 22, 2011, 05:47:56 pm by trains58554 »

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: [New Plugin] PHP Info
« Reply #1 on: July 22, 2011, 11:48:26 am »
Hi trains58554

Great! I may suggest a some changes.

Please, remove the lines 22 to 25 of index.php. These're the lines :
Code: [Select]
?>


<?php   

You're inserting white spaces and new lines. This makes the redirection fail (so it will not install if you have error_reporting enabled). Once do that, the plugin works as a charm.

I will also suggest to remove the commented lines, just to clean up the code. With those changes it will be perfect!

Thanks

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: [New Plugin] PHP Info
« Reply #2 on: July 22, 2011, 02:02:47 pm »
Nice plugin! It could be useful for people that don't know PHP!

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] PHP Info
« Reply #3 on: July 22, 2011, 05:52:58 pm »
@_CONEJO

Thanks for the suggestion. Fixed the code up.

@Juan Ramon

Thanks