Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

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

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!
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2496

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

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!

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Raven
PostPosted: Tue Jul 27, 2004 6:39 am Reply with quote

#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
 
sixonetonoffun
PostPosted: Tue Jul 27, 2004 5:19 pm Reply with quote

ROFLMAO!

I dunno might just add a test for magic quotes on and if it is deal with it how ever you see fit.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©