PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15062
Location: Kansas

PostPosted: Mon Jul 26, 2004 11:05 am Reply with quote Back to top

I don't know about you, but I test alot of quick scripts and lines of code. I get tired of having to write the code in a text editor, save it, open a browser, and then run it, just to see that I had errors. So, a while back I wrote myself a quick little script to facilitate this process. Quick.php does not walk on water. It has all kinds of room for improvement Wink. It is simply a utility script to "ease my pain" Laughing. But, maybe it can ease yours too!

Download
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Tue Jul 27, 2004 1:19 am Reply with quote Back to top

Nice I like it!
2 things.

Thing1
I couldn't get ini_set to shut magic quotes off so I did stripslashes to the second line of code:
$cmd = trim($_POST['cmd']);
Like this:
$cmd = trim(stripslashes($_POST['cmd']));
and on a new line below it added:
$_POST['history'] = stripslashes($_POST['history']);
End of my magic quotes problem...

Thing2
The second of the last line of code I had to change:
eval($_POST['cmd']);
to:
eval($cmd);
Dunno why might be taking $cmd from the submit form.

No idea why I can't get ini_set to work. I must not have it enabled or something. Great for those quick code tweaks!
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15062
Location: Kansas

PostPosted: Tue Jul 27, 2004 6:39 am Reply with quote Back to top

#1 - Never noticed that. I haven't had a problem a far as I know. You think I should modify the download?

#2 - Even more strange. If you're able to do
Code:
$cmd = trim($_POST['cmd']);
then that means it's reading $_POST. I say there is mischief evidenced here! I say there must be some stealth nc viruses afoot! Ohhh mercy sakes alive! Maybe a new strain of the Six virus I've been reading about. I'm going to have to figure out how to code Sentinel for this exploit Shocked
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Tue Jul 27, 2004 5:19 pm Reply with quote Back to top

ROFLMAO!

I dunno might just add a test for magic quotes on and if it is deal with it how ever you see fit.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum