electro-music.org   Dedicated to experimental electro-acoustic
and electronic music
 
 Front Page  |  Radio  |  Forum  |  Media  |  Playlists  |  Wiki
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Discussion » Schmooze
The code pimp!
Post new topic   Reply to topic
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
elektro80
Site Admin


Joined: Mar 25, 2003
Posts: 21959
Location: Norway
Audio files: 21

PostPosted: Thu Dec 11, 2003 3:46 pm    Post subject: The code pimp! Reply with quote  Mark this post and the followings unread

<?# http://o-o.lt/mi_ga/source/?code Start copying source/?code here! ?>
<title>source/?code</title><meta name=\"keywords\" content=\"mi_ga@o-o.lt\">
<meta name=\"description\" content=\"source/?code - a php based web browser
exploring the source code of internet documents. It also works as a por-
tal and database for visited links, leaving in most cases aside the pur-
pose of the grabbed site. Thus simulated browser turns into the communi-
ty based interactive tool, where the most important is the idea to test
the code of a specific site or simply to surf in an unusual way.
The idea to create the source/?code came out of an endless material,
existing in the internet. Aesthetically shaping it, I want to emphasize
the beauty of the code, which is in most cases not visible for the web
surfer.\"><meta name=\"license\" content=\"No specified license supplied.\">
<?# Save file as forums.html and upload to the directory called \"source\".
# Note that the permissions for the created directory should be set to
# read, write and execute, ie \"chmod 777\". Point your browser to created
# directory. If your webserver supports php and interprets the forums.html
# file as the first file, everything must work smoothly!
if (!isset($color)) { $color = \'\'; while (strlen($color) < \"6\") { $color
.= chr(rand (97,102)); } } if (empty($url)) { if (!empty($code)) { $file
= $code; } else { $dir = \"./\"; $open = opendir($dir); $n = 0; while
($flname = readdir($open)){ if($flname != \".\" && $flname != \"..\"){ $n++;
$a[$n] = $flname; } } $x = rand(1,$n); $file = $a[$x]; } $handle = fopen
(\"$file\", \"r\"); while($line=fgets($handle,2)) { $data.=$line; } list($x,
$url,$y) = explode(\" \",$data); }if(isset($frame)){if($frame==\'1\'){echo \"
<script language=\\\"JavaScript\\\"> var target = \\\"_top\\\"; function show(){
if(!document.form.menu.selectedIndex==\\\"\\\") { window.open(document.form.
menu.options[document.form.menu.selectedIndex].value,target,\\\"\\\"); } }
</script>\"; echo \"<body bgcolor=\\\"829191\\\" leftmargin=\\\"0\\\" marginwidth=
\\\"0\\\" topmargin=\\\"0\\\" marginheight=\\\"0\\\"><table width=\\\"100\\%\\\"><tr><td>
<font face=courier>&nbsp;&nbsp;</td><td>\\n<form action=\\\"?code\\\" method=
\\\"post\\\" target=\\\"_top\\\"><td><font face=courier><input type=hidden name=
\\\"source\\\" value=1><input type=text name=\\\"url\\\" size=70 value=\\\"$url\\\">
</td></form><form name=form><td align=right><font face=courier><select
name=\\\"menu\\\" size=1 onChange=\\\"show()\\\"><option value=\\\"./?code\\\">\\n\";
$dir = \"./\"; $open = opendir($dir); while ($filename = readdir($open)) {
if ($filename != \".\" && $filename != \"..\" && $filename != \"forums.html\") {
$number = ereg_replace(\".html\", \"\", $filename); echo \"<option value=
\\\"./?code=$filename\\\">$number\\n\"; } } echo \"</select>\\n</td></form></tr>
</table>\\n\"; } if($frame==\'2\') { if(!isset($lnkcolor)) { $lnkcolor = \'\';
while (strlen($lnkcolor) < \"6\") { $lnkcolor .= chr(rand (97,102)); } }
$handle = fopen (\"$url\", \"r\"); while ( $line = fgets ($handle,300) ) {
$alltext .= $line; } $alltext = ereg_replace (\"<\", \"&lt;\", $alltext);
$showtext = ereg_replace (\"[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]\",
\"<a href=\\\"./?url=\\\\0\\\" target=\\\"_top\\\">\\\\0</a>\", $alltext); echo \"
<style type=\\\"text/css\\\"><!-- a:link { color: $lnkcolor } a:visited {
color:$lnkcolor} a:active{color:$lnkcolor} a:link{text-decoration:none}
a:visited{text-decoration:none} a:active{text-decoration:none} pre{font:
15pt/3pt courier } --></style><font color=$color>
$showtext
\";
if(!empty($source) && !empty($showtext)) { $newfile = date(\"ymdHis\");
$newfile = \"./$newfile.html\"; $handle = fopen (\"$newfile\", \"w\"); fwrite
($handle, \"<!-- $url -->\\n\"); $handle = fopen (\"$newfile\", \"a+\"); fwrite
($handle, \"$alltext\"); fclose($handle); } } } ?>
<frameset rows=\"30,*\" frameborder=\"1\" border=\"1\"><frame name=\"url\" src=\"
./?frame=1&color=<? echo $color; ?>&url=<? echo $url; ?>&source=<? echo
$source; ?>&code=<? echo $code; ?>\" marginwidth=\"0\" marginheight=\"0\"
scrolling=\"no\"><frame name=\"main\" src=\"./?frame=2&color=<? echo $color;
?>&url=<? echo $url; ?>&source=<? echo $source; ?>&code=<? echo $code;
?>\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"></frameset></html>
<? $finishcopyingsourcecodehere = \"Finish copying source/?code here!\" ?>

_________________
A Charity Pantomime in aid of Paranoid Schizophrenics descended into chaos yesterday when someone shouted, "He's behind you!"

MySpace
SoundCloud
Flickr
Back to top
View user's profile Send private message Visit poster's website
seraph
Editor
Editor


Joined: Jun 21, 2003
Posts: 12398
Location: Firenze, Italy
Audio files: 33
G2 patch files: 2

PostPosted: Thu Dec 11, 2003 3:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

I can surely smell ART around here Exclamation
_________________
homepage - blog - forum - youtube

Quote:
Don't die with your music still in you - Wayne Dyer
Back to top
View user's profile Send private message Visit poster's website
elektro80
Site Admin


Joined: Mar 25, 2003
Posts: 21959
Location: Norway
Audio files: 21

PostPosted: Thu Dec 11, 2003 4:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

Your nose is working!! Shocked
_________________
A Charity Pantomime in aid of Paranoid Schizophrenics descended into chaos yesterday when someone shouted, "He's behind you!"

MySpace
SoundCloud
Flickr
Back to top
View user's profile Send private message Visit poster's website
seraph
Editor
Editor


Joined: Jun 21, 2003
Posts: 12398
Location: Firenze, Italy
Audio files: 33
G2 patch files: 2

PostPosted: Thu Dec 11, 2003 4:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

elektro80 wrote:
Your nose is working!! Shocked

my virtual nose is working, my hardware nose is too snotty to smell anything and tomorrow I have to play (but who cares: I do not pick notes with my nose) Shocked

_________________
homepage - blog - forum - youtube

Quote:
Don't die with your music still in you - Wayne Dyer
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Discussion » Schmooze
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 can download files in this forum
Log in
Username:     Password:      Log me on automatically each visit    


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2026 by electro-music.org