Multi Verse Song Form Handler
// get Title and manipulate to make new song url with which to name file
//echo "Get raw title: ;
$title=@$_POST['title'];
//echo "
";
//echo " ~ ~ ~ ~ ~
";
//echo "Confirm all title words capitalized and print:
";
//echo " ".
$song_title=ucwords(strtolower($title));
//echo "
~ ~ ~ ~ ~
";
//create base title (url) from song title and adding suffix portrayed in next line
$song_suffix = ".txt";
//echo "Convert title to all undercase words, replace spaces with dashes, add suffix and echo:
";
//echo " ".
$song_url=strtolower(str_replace(" ","-",$song_title)).$song_suffix;
$sn = $song_url;
//echo "Song Address is: ".
$song_url = "song-txt/".$song_url;
$jr_contrib = "jr-contrib.txt";
$contrib = $timestamp = $loc =$str = $jr_sng ="";
//("Y-m-d_H:i")
$timestamp = date("D-M-j-Y_g:i")." ";
$jr_sng = $song_title." ";
$loc = "Location: " .$_SERVER["REMOTE_ADDR"];
$judy_count = ("judy_song_count.txt");
$hits = file($judy_count);
$hits[0] ++;
$fp = fopen($judy_count , "w");
fputs($fp , "$hits[0]");
fclose($fp);
$jr_cnt_data = $hits[0];
$jr_str_dat = $jr_cnt_data.": ".$jr_sng.$timestamp." - ".$loc;
$myFile = "$jr_contrib";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = $jr_str_dat."\n";
fwrite($fh, $stringData);
fclose($fh);
?>
|
$spc="\r\n";
echo $spc;
$auth=ucwords(strtolower(@$_POST['auth']));
if ($auth ==""){$auth="";}else{$auth="\r\n"."Author: ".$auth."\r\n";}
$circa= @$_POST["circa"];
if ($circa==""){$circa="";}else{$circa="\r\n"."Circa: ".$circa."\r\n";}
$artist=ucwords(strtolower(@$_POST['artist']));
if ($artist==""){$artist="";}else{$artist="\r\n"."Artist: ".$artist."\r\n";}
$item_1 = @$_POST["item_1"];
$numeral_1 = @$_POST["numeral_1"];
$text_one = @$_POST["text_one"];
if($text_one==""){$item_1a="";}else{
$item_1a="\r\n".$item_1." ".$numeral_1.".\n\r";
$text_one=$text_one."\n\r";
}
echo $item_1a . " ";
if ($text_one==""){}else {echo $text_one."
";}
$item_2 = @$_POST['item_2'];
$numeral_2= @$_POST["numeral_2"];
$text_two = @$_POST["text_two"];
if($text_two==""){$item_2a="";}else{
$item_2a="\r\n".$item_2." ".$numeral_2.".\n\r";
$text_two=$text_two."\n\r";
}
echo $item_2a . " ";
if ($text_two ==""){}else{echo $text_two."
";}
$item_3 = @$_POST["item_3"];
$numeral_3= @$_POST["numeral_3"];
$text_three = @$_POST["text_three"];
if($text_three==""){$item_3a="";}else{
$item_3a="\r\n".$item_3." "." ".$numeral_3.".\n\r";
$text_three=$text_three."\n\r";
}
echo $item_3a . " ";
if ($text_three ==""){}else{echo $text_three."
";}
$item_4 = @$_POST["item_4"];
$numeral_4= @$_POST["numeral_4"];
$text_four= @$_POST["text_four"];
if($text_four==""){$item_4a="";}else{
$item_4a="\r\n".$item_4." ".$numeral_4.".\n\r";
$text_four=$text_four."\n\r";
}
echo $item_4a . " ";
if ($text_four ==""){}else{echo $text_four."
";}
$item_5 = @$_POST["item_5"];
$numeral_5= @$_POST["numeral_5"];
$text_five= @$_POST["text_five"];
if($text_five==""){$item_5a="";}else{
$item_5a="\r\n".$item_5." ".$numeral_5.".\n\r";
$text_five=$text_five."\n\r";
}
echo $item_5a . " ";
if ($text_five ==""){}else{echo $text_five."
";}
$item_6= @$_POST["item_6"];
$numeral_6= @$_POST["numeral_6"];
$text_six= @$_POST["text_six"];
if($text_six==""){$item_6a="";}else{
$item_6a="\r\n".$item_6." ".$numeral_6.".\n\r";
$text_six=$text_six."\n\r";
}
echo $item_6a . " ";
if ($text_six ==""){}else{echo $text_six."
";}
$item_7= @$_POST["item_7"];
$numeral_7= @$_POST["numeral_7"];
$text_seven= @$_POST["text_seven"];
if($text_seven==""){$item_7a="";}else{
$item_7a="\r\n".$item_7." ".$numeral_7.".\n\r";
$text_seven=$text_seven."\n\r";
}
echo $item_7a . " ";
if ($text_seven ==""){}else{echo $text_seven."
";}
$item_8= @$_POST["item_8"];
$numeral_8= @$_POST["numeral_8"];
$text_eight= @$_POST["text_eight"];
if($text_eight==""){$item_8a="";}else{
$item_8a="\r\n".$item_8." ".$numeral_8.".\n\r";
$text_eight=$text_eight."\n\r";
}
echo $item_8a . " ";
if ($text_eight ==""){}else{echo $text_eight."
";}
$item_9= @$_POST["item_9"];
$numeral_9= @$_POST["numeral_9"];
$text_nine= @$_POST["text_nine"];
if($text_nine==""){$item_9a="";}else{
$item_9a="\r\n".$item_9." ".$numeral_9.".\n\r";
$text_nine=$text_nine."\n\r";
}
echo $item_9a . " ";
if ($text_nine ==""){}else{echo $text_nine."
";}
$item_10= @$_POST["item_10"];
$numeral_10= @$_POST["numeral_10"];
$text_ten= @$_POST["text_ten"];
if($text_ten==""){$item_10a="";}else{
$item_10a="\r\n".$item_10." ".$numeral_10.".\n\r";
$text_ten=$text_ten."\n\r";
}
echo $item_10a . " ";
if ($text_ten ==""){}else{echo $text_ten."
";}
$item_11= @$_POST["item_11"] ;
$numeral_11= @$_POST["numeral_11"];
$text_eleven= @$_POST["text_eleven"];
if($text_eleven==""){$item_11a="";}else{
$item_11a="\r\n".$item_11." ".$numeral_11.".\n\r";
$text_eleven=$text_eleven."\n\r";
}
echo $item_11a . " ";
if ($text_eleven ==""){}else{echo $text_eleven."
";}
$item_12= @$_POST["item_12"];
$numeral_12= @$_POST["numeral_12"];
$text_twelve= @$_POST["text_twelve"];
if($text_twelve==""){$item_12a="";}else{
$item_12a="\r\n".$item_12." ".$numeral_12.".\n\r";
$text_twelve=$text_twelve."\n\r";
}
echo $item_12a . " ";
if ($text_twelve ==""){}else{echo $text_twelve;}
$display_this_song="sng-display.php?sn=".$sn;
$nu_song = array();
$nu_song[]="$auth";
$nu_song[]="$circa";
$nu_song[]="$artist";
$nu_song[]="$item_1a";
$nu_song[]="$text_one";
$nu_song[]="$item_2a";
$nu_song[]="$text_two";
$nu_song[]="$item_3a";
$nu_song[]="$text_three";
$nu_song[]="$item_4a";
$nu_song[]="$text_four";
$nu_song[]="$item_5a";
$nu_song[]="$text_five";
$nu_song[]="$item_6a";
$nu_song[]="$text_six";
$nu_song[]="$item_7a";
$nu_song[]="$text_seven";
$nu_song[]="$item_8a";
$nu_song[]="$text_eight";
$nu_song[]="$item_9a";
$nu_song[]="$text_nine";
$nu_song[]="$item_10a";
$nu_song[]="$text_ten";
$nu_song[]="$item_11a";
$nu_song[]="$text_eleven";
$nu_song[]="$item_12a";
$nu_song[]="$text_twelve";
$fp = fopen($song_url, "w+");
foreach ($nu_song as $key => $value ){
fwrite($fp,$value."\t");
}
fclose($fp);
$file = 'song-txt/$song_title';
echo $song_title;
$newfile = 'nu/$song_title';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
?>
|
~ ~ ~ ~ ~
Check Song Via Display Viewer
|
//echo "
";
//echo "--------------------";
//echo "
";
//include ("judy-song-count.php");
include ('h.php');
?>
|

© 2000 - 2025
Lyrics are property and copyright of it's owners.
Lyrics are provided for educational purposes only.
|