//PHP scripts
//
// Code in the head of my link-monkey page
//
\n";
$url = $_POST['url'];
// Name
$name = "st33d";
if($_POST['password'] != "****"){
if($_POST['name'] != ""){
$temp = $_POST['name'];
$temp = trim($temp);
if($temp != "st33d"){
$name = $_POST['name'];
} else {
$name = "someone pretending to be me";
}
} else {
$name = "anonymous";
}
}
// Site description
$site = "who knows where this link goes...";
if($_POST['site'] != ""){
$site = $_POST['site'];
}
// Category
$category = "interesting";
if($_POST['use'] == "useful"){
$category = "useful";
}
// Build the string
$link = "\n".$site." submitted by ".$name." under ".$category."
";
}
// Append to file
$filename = "links.txt";
$fp = fopen($filename,"a") or die("failed to open links.txt for appending");
fwrite($fp, $link);
fclose($fp);
?>
//
//Page counter for old index page bottom (almost identical code in bacterium.php)
//
";
fclose($fd) ;
$fd = fopen ($filename , "w") or die ("Can't open $filename") ;
$fcounted = $fstring + 1 ;
$fout= fwrite ($fd , $fcounted ) ;
fclose($fd) ;
?>
//
//random text and acronym text (shpiel.php)
//
";
echo $txt1[rand(0,sizeof($txt1)-1)];
echo $txt2[rand(0,sizeof($txt2)-1)];
echo "";
?>
//
//random splash pages (splash.php)
//
//
//list of splash pages (splashList.php)
//
sizeof($import)-1){
$number = 0;
}
include ($import[$number]);
echo "
\n"; echo "Next\n"; echo "
\n"; echo "You may not save your file as manifest.txt
"; }else{ //format code for saving: remove html and strip whitespace around colons $displayCode = strip_tags($displayCode); $fixCode = explode("\n",$displayCode); foreach($fixCode as $i => $colonFix){ if(strpos($colonFix,":") != false){ $elements = explode(":",$colonFix); for($ii = 0; $ii < count($elements); $ii++){ $elements[$ii] = trim($elements[$ii]); } $colonFix = implode(":",$elements); } $fixCode[$i] = $colonFix; } $displayCode = implode("\n",$fixCode); stripFolderChange($fileToSave); saveToFile($fileToSave,$displayCode); } } //loading if(count($fileToLoad) > 0){ if(!checkForExt($fileToLoad,"txt")){ $fileToLoad .= ".txt"; } stripFolderChange($fileToLoad); $displayCode = loadToString($fileToLoad); $displayCode = strip_tags($displayCode); } ?>Files uploaded
$file"."