View Full Version : Lyric Submitter
inuyashateen113 12-10-2004, 11:13 PM Hi this is like the php thread but it has a whole new concept of a question and besides no one will answer the ones on my other post please don't ban me this really is a different question. I have the page working the add.php thing under lyrics submitter on my site www.lyricsonline.uni.cc and i have the admin part to where i can get in but there is this weird screen that pops up when i log in or i try to submit a test lyric to my self can someone test it out by just sending me a lyric or letters or something and see what is wrong i have no clue please help.
inuyashateen113 12-11-2004, 07:48 PM Hi please someone help.
tokyo bleu 12-11-2004, 08:03 PM You need to learn how to be patient. Double-posting isn't going to do anything.
Anyways, I tried to submit (under the same name as my Lissa Forums username), but after I clicked the "Submit" button, I came out with:
Warning: opendir(/index/kdoak/site7/web/lyricssubmitter): failed to open dir: No such file or directory in /home/sites/site7/web/index.php on line 14
Warning: readdir(): supplied argument is not a valid Directory resource in /home/sites/site7/web/index.php on line 16
Warning: sort() expects parameter 1 to be array, null given in /home/sites/site7/web/index.php on line 22p
inuyashateen113 12-11-2004, 11:16 PM You need to learn how to be patient. Double-posting isn't going to do anything.
Anyways, I tried to submit (under the same name as my Lissa Forums username), but after I clicked the "Submit" button, I came out with:
Yes that is what i need to know how to fix.
inuyashateen113 12-13-2004, 09:31 PM I use ws_ftp
inuyashateen113 12-14-2004, 10:38 PM Hi can some one please help i use ws_ftp 95le or something like that and i really need to know how to get it to work.
bejayel 12-15-2004, 02:21 AM i havent used ws ftp le in a long long time (sinc ei do my own server now), but i am pretty sure there is a few boxes at the top of the window asking for Server, Username and Password. Type your information in there and hit connect. Also, we probably cant tell you your information, it is provided by your webspace service provider.
inuyashateen113 12-15-2004, 08:05 PM I know how to use the ws_ftp and i need to know how to use the Lyrics Submitter.
inuyashateen113 12-16-2004, 07:33 PM I am not good at web designing this person hacked into my account and told me that my site sucked and sent me 300 emails and said that it sucked and they all said the same thing.............
tucker 12-16-2004, 08:03 PM which account did they "hack" into, your email or ur site?
could you post the code in the files your getting errors in so we can look at it?
inuyashateen113 12-16-2004, 08:13 PM Hi yes the email i changed the address to admin@lyricsonline.uni.cc and here this is what i got
Lyrics - Add lyrics
Warning: opendir(/index/kdoak/site7/web/lyricssubmitter): failed to open dir: No such file or directory in /home/sites/site7/web/index.php on line 14
Warning: readdir(): supplied argument is not a valid Directory resource in /home/sites/site7/web/index.php on line 16
Warning: sort() expects parameter 1 to be array, null given in /home/sites/site7/web/index.php on line 22
Lyrics submitter - Thirteen
that is the error i have ws_ftp95le and frontpage 2003
tucker 12-16-2004, 09:04 PM but the code in those files...
inuyashateen113 12-16-2004, 09:17 PM I don't know how
tucker 12-16-2004, 09:18 PM open them wit notepad and copy and paste the code...
inuyashateen113 12-16-2004, 09:38 PM i don't get thtat.
tucker 12-16-2004, 09:40 PM the files should be .php. right click them and press open with notepad. copy and paste everything you find there.
inuyashateen113 12-16-2004, 09:46 PM paste them to what?
tucker 12-16-2004, 09:48 PM here so i can see them.
inuyashateen113 12-17-2004, 12:30 AM here so i can see them.
<?php
/////////////////////////////////
//Lyrics submitter by jakez /
//Email: thirteen@hackermail.com/
//Website: http://www.jakez.net /
/////////////////////////////////
include ("config.php");
$auth = 0;
if (($PHP_AUTH_USER == $login ) && ($PHP_AUTH_PW == $password )) $auth = 1;
if ( $auth != 1 ) {
header( "WWW-Authenticate: Basic realm=\"Authorization Required!\"" );
header( "HTTP/1.0 401 Unauthorized" );
echo 'Authorization Required!';
exit;
}
if ($action == "delete")
{
unlink($dirpath . $file);
echo ("<script language=\"JavaScript\">window.location='admin.php'</script>");
}
if ($action == "accept")
{
rename($dirpath . $file, $dirpath . str_replace(".dat","",$file) . ".txt");
echo ("<script language=\"JavaScript\">window.location='admin.php'</script>");
}
if ($action == "")
{
echo ($Style);
echo ($sHeaderHTML);
$sDirectory = (opendir($dirpath));
$lCount = (0);
while ($sFile = readdir($sDirectory))
{
$sFiles[$lCount] = $sFile;
$lCount++;
}
sort($sFiles);
unset ($lCount);
for ($lCount; $lCount <= count($sFiles); $lCount++)
{
$sFileTemp = ($sFiles["$lCount"]);
$sStrLen = (strlen($file));
$^^^tTemp = (substr($sFileTemp, $sStrLen - (3), 3));
if ($^^^tTemp == "dat")
{
$sFileTemp = str_replace(".dat","",$sFileTemp);
$sFileArray = (explode("-", $sFileTemp));
if ($sFileArray[0] != "" && $sFileArray[1] != "")
{
echo ($sBeforeHTML . "(<a href=\"admin.php?action=accept&file=$sFileArray[0]-$sFileArray[1].dat\">Accept</a>) (<a href=\"admin.php?action=delete&file=$sFileArray[0]-$sFileArray[1].dat\">Delete</a>) <a href=\"$sFileArray[0]-$sFileArray[1].dat\">$sFileArray[0]</a>" . $sAfterHTML . $sBeforeHTML . "<a href=\"$sFileArray[0]-$sFileArray[1].dat\">$sFileArray[1]</a>" . $sAfterHTML . $sSplitHTML);
}
}
}
echo ($sFooterHTML);
}
?>
inuyashateen113 12-17-2004, 12:31 AM <?
/////////////////////////////////
//Lyrics submitter by jakez /
//Email: thirteen@hackermail.com/
//Website: http://www.jakez.net /
/////////////////////////////////
$login = ("inuyashateen113"); //EDIT THE LOGIN NAME FOR THE ADMIN PAGE
$password = ("catfood"); //EDIT THE PASSWORD FOR THE LOGIN ON THE ADMIN PAGE
$autoadd = (true); //EDIT WHETHER TO AUTOMATICALLY ADD SUBMITTED LYRICS OR HAVE THEM REVIEWED FIRST, (true) = review first, (false) = automatically add
$dirpath = ("/index/kdoak/site7/web/lyricssubmitter"); //EDIT THE FULL PATH TO THIS SCRIPT ON YOUR SERVER
//Lyric Submit
$sHeaderHTML = ("<center><table cellpadding=\"0\" cellspacing=\"0\" width=\"350\" style=\"border: 1px solid #000000\">");
$sHeaderHTML .= ("<td align=\"center\" style=\"border-bottom: 1px solid #000000\"><font><b>Lyrics</b> - <a href=\"add.php\">Add lyrics</a></font></td>");
$sHeaderHTML .= ("<tr><td width=\"100%\"><table width=\"100%\" cellpadding=\"2\" cellspacing=\"0\">");
//$sHeaderHTML .= ("<tr><td width=\"50%\"><font>Artist:</td><td width=\"50%\"><font>Song name:</td></tr><tr>");
//EDIT THE HTML THAT COMES BEFORE THE ARTISTS NAME AND SONGS NAME ON THE LYRICS PAGE
$sBeforeHTML = ("<td><font>");
//EDIT THE HTML THAT COMES BETWEEN THE ARTISTS NAME AND SONGS NAME ON THE LYRICS PAGE
$sSplitHTML = ("<tr></tr>");
//EDIT THE HTML THAT COMES AFTER THE ARTISTS NAME AND SONGS NAME ON THE LYRICS PAGE
$sAfterHTML = ("</td>");
//EDIT THE PAGES FOOTER HTML ON THE LYRICS PAGE
$sFooterHTML = ("</tr></table></td></tr><tr></tr><td align=\"center\"><font>Lyrics submitter - <a href=\"http://jakez.net\" target=\"_blank\">Thirteen</a></td></table>");
//EDIT THE PAGES STYLE
$Style = ("<style type=\"text/css\">
A:link {color:#9c9c9c>; text-decoration: none;}
A:visited {color:#9c9c9c; text-decoration: none;}
A:hover {color:#000000; text-decoration: none;}
A:active {color:#9c9c9c; text-decoration: none;}
BODY{
scrollbar-face-color:#FFFFFF;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#ffffff;
scrollbar-shadow-color:#ffffff;
scrollbar-highlight-color:#9c9c9c;
scrollbar-3dlight-color:#9c9c9c;
scrollbar-darkshadow-color:#9c9c9c;
}
font{
font-size:8pt;
font-family:verdana;
}
</style>");
?>
inuyashateen113 12-17-2004, 12:33 AM <?php
/////////////////////////////////
//Lyrics submitter by jakez /
//Email: thirteen@hackermail.com/
//Website: http://www.jakez.net /
/////////////////////////////////
include ("config.php");
$auth = 0;
if (($PHP_AUTH_USER == $login ) && ($PHP_AUTH_PW == $password )) $auth = 1;
if ( $auth != 1 ) {
header( "WWW-Authenticate: Basic realm=\"Authorization Required!\"" );
header( "HTTP/1.0 401 Unauthorized" );
echo 'Authorization Required!';
exit;
}
if ($action == "delete")
{
unlink($dirpath . $file);
echo ("<script language=\"JavaScript\">window.location='admin.php'</script>");
}
if ($action == "accept")
{
rename($dirpath . $file, $dirpath . str_replace(".dat","",$file) . ".txt");
echo ("<script language=\"JavaScript\">window.location='admin.php'</script>");
}
if ($action == "")
{
echo ($Style);
echo ($sHeaderHTML);
$sDirectory = (opendir($dirpath));
$lCount = (0);
while ($sFile = readdir($sDirectory))
{
$sFiles[$lCount] = $sFile;
$lCount++;
}
sort($sFiles);
unset ($lCount);
for ($lCount; $lCount <= count($sFiles); $lCount++)
{
$sFileTemp = ($sFiles["$lCount"]);
$sStrLen = (strlen($file));
$^^^tTemp = (substr($sFileTemp, $sStrLen - (3), 3));
if ($^^^tTemp == "dat")
{
$sFileTemp = str_replace(".dat","",$sFileTemp);
$sFileArray = (explode("-", $sFileTemp));
if ($sFileArray[0] != "" && $sFileArray[1] != "")
{
echo ($sBeforeHTML . "(<a href=\"admin.php?action=accept&file=$sFileArray[0]-$sFileArray[1].dat\">Accept</a>) (<a href=\"admin.php?action=delete&file=$sFileArray[0]-$sFileArray[1].dat\">Delete</a>) <a href=\"$sFileArray[0]-$sFileArray[1].dat\">$sFileArray[0]</a>" . $sAfterHTML . $sBeforeHTML . "<a href=\"$sFileArray[0]-$sFileArray[1].dat\">$sFileArray[1]</a>" . $sAfterHTML . $sSplitHTML);
}
}
}
echo ($sFooterHTML);
}
?>
inuyashateen113 12-17-2004, 12:34 AM <?php
/////////////////////////////////
//Lyrics submitter by jakez /
//Email: thirteen@hackermail.com/
//Website: http://www.jakez.net /
/////////////////////////////////
include ("config.php");
echo ($Style);
echo ($sHeaderHTML);
$sDirectory = (opendir($dirpath));
$lCount = (0);
while ($sFile = readdir($sDirectory))
{
$sFiles[$lCount] = $sFile;
$lCount++;
}
sort($sFiles);
unset ($lCount);
for ($lCount; $lCount <= count($sFiles); $lCount++)
{
$sFileTemp = ($sFiles["$lCount"]);
$sStrLen = (strlen($file));
$^^^tTemp = (substr($sFileTemp, $sStrLen - (3), 3));
if ($^^^tTemp == "txt")
{
$sFileTemp = str_replace(".txt","",$sFileTemp);
$sFileArray = (explode("-", $sFileTemp));
if ($sFileArray[0] != "" && $sFileArray[1] != "")
{
echo ($sBeforeHTML . "<a href=\"$sFileArray[0]-$sFileArray[1].txt\">$sFileArray[0]</a>" . $sAfterHTML . $sBeforeHTML . "<a href=\"$sFileArray[0]-$sFileArray[1].txt\">$sFileArray[1]</a>" . $sAfterHTML . $sSplitHTML);
}
}
}
echo ($sFooterHTML);
?>
inuyashateen113 12-17-2004, 12:38 AM this is the read me from the thing
Thanks for downloading my lyrics submitter script. Email me at thirteen@hackermail.com with any problems or suggestions you have. Enjoy.
Steps for installing:
1. Open config.php and set all of the settings to your liking.
2. Upload all the file to a folder on your server and chmod the folder and config.php to 666 and your done!
Just run index.php from your webbrowser to get started.
admin.php isn't needed if you have the $autoadd variable in config.php set to (true).
For more files like this please visit http://jakez.net
tucker 12-17-2004, 01:52 AM you didnt need to do all those diffrent posts...
anywho, next time read the readme. you have to set $dirpath to the path to your script, which im assuming is in the root directory, so change
$dirpath = ("/index/kdoak/site7/web/lyricssubmitter"); //EDIT THE FULL PATH TO THIS SCRIPT ON YOUR SERVER
to
$dirpath = ("/"); //EDIT THE FULL PATH TO THIS SCRIPT ON YOUR SERVER
that should clear everything up
then go to www.yoursite.com/index.php
then try your script again.
inuyashateen113 12-17-2004, 02:36 AM you didnt need to do all those diffrent posts...
anywho, next time read the readme. you have to set $dirpath to the path to your script, which im assuming is in the root directory, so change
$dirpath = ("/index/kdoak/site7/web/lyricssubmitter"); //EDIT THE FULL PATH TO THIS SCRIPT ON YOUR SERVER
to
$dirpath = ("/"); //EDIT THE FULL PATH TO THIS SCRIPT ON YOUR SERVER
that should clear everything up
then go to www.yoursite.com/index.php
then try your script again.
Hi i did that and yet it doesn't work you try it.
tucker 12-17-2004, 11:35 AM try replacing your config.php file with this:
<?
/////////////////////////////////
//Lyrics submitter by jakez /
//Email: thirteen@hackermail.com/
//Website: http://www.jakez.net /
/////////////////////////////////
$login = ("inuyashateen113"); //EDIT THE LOGIN NAME FOR THE ADMIN PAGE
$password = ("catfood"); //EDIT THE PASSWORD FOR THE LOGIN ON THE ADMIN PAGE
$autoadd = (false); //EDIT WHETHER TO AUTOMATICALLY ADD SUBMITTED LYRICS OR HAVE THEM REVIEWED FIRST, (true) = review first, (false) = automatically add
$dirpath = ("/"); //EDIT THE FULL PATH TO THIS SCRIPT ON YOUR SERVER
//Lyric Submit
$sHeaderHTML = ("<center><table cellpadding=\"0\" cellspacing=\"0\" width=\"350\" style=\"border: 1px solid #000000\">");
$sHeaderHTML .= ("<td align=\"center\" style=\"border-bottom: 1px solid #000000\"><font><b>Lyrics</b> - <a href=\"add.php\">Add lyrics</a></font></td>");
$sHeaderHTML .= ("<tr><td width=\"100%\"><table width=\"100%\" cellpadding=\"2\" cellspacing=\"0\">");
//$sHeaderHTML .= ("<tr><td width=\"50%\"><font>Artist:</td><td width=\"50%\"><font>Song name:</td></tr><tr>");
//EDIT THE HTML THAT COMES BEFORE THE ARTISTS NAME AND SONGS NAME ON THE LYRICS PAGE
$sBeforeHTML = ("<td><font>");
//EDIT THE HTML THAT COMES BETWEEN THE ARTISTS NAME AND SONGS NAME ON THE LYRICS PAGE
$sSplitHTML = ("<tr></tr>");
//EDIT THE HTML THAT COMES AFTER THE ARTISTS NAME AND SONGS NAME ON THE LYRICS PAGE
$sAfterHTML = ("</td>");
//EDIT THE PAGES FOOTER HTML ON THE LYRICS PAGE
$sFooterHTML = ("</tr></table></td></tr><tr></tr><td align=\"center\"><font>Lyrics submitter - <a href=\"http://jakez.net\" target=\"_blank\">Thirteen</a></td></table>");
//EDIT THE PAGES STYLE
$Style = ("<style type=\"text/css\">
A:link {color:#9c9c9c>; text-decoration: none;}
A:visited {color:#9c9c9c; text-decoration: none;}
A:hover {color:#000000; text-decoration: none;}
A:active {color:#9c9c9c; text-decoration: none;}
BODY{
scrollbar-face-color:#FFFFFF;
scrollbar-arrow-color:#000000;
scrollbar-track-color:#ffffff;
scrollbar-shadow-color:#ffffff;
scrollbar-highlight-color:#9c9c9c;
scrollbar-3dlight-color:#9c9c9c;
scrollbar-darkshadow-color:#9c9c9c;
}
font{
font-size:8pt;
font-family:verdana;
}
</style>");
?>
also, is admin.php how you get to your control panel?
tucker 12-17-2004, 11:43 AM Actually, that all isnt quite necessary, you never chmodded your files to 666 like it said, the errors you are getting say that you do not have the permission to edit the files. try cmodding them again.
inuyashateen113 12-17-2004, 07:37 PM how do you get it to 666?
inuyashateen113 12-17-2004, 07:44 PM how do you get it to 666?
and what is a good free ftp thing because mine isn't working properly and how do i use the admin page i log in after i submit a test but it doesn't work and it has a warning thing when i submit the test then goes to the other screen.
tucker 12-17-2004, 07:58 PM okay, get smartftp www.smartftp.com
click the file you want to chmod (or folder) and press f7
then type in 666
then you can go to your admin control panel by typing in /admin.php after your URL
PS: when i updated the config.php for you, i set it so the lyrics automatically go in when someone submits them. if you want to review them first, just change the (false) to (true)
your admin username/pass is what you put in the config.php :)
inuyashateen113 12-17-2004, 08:27 PM okay, get smartftp www.smartftp.com
click the file you want to chmod (or folder) and press f7
then type in 666
then you can go to your admin control panel by typing in /admin.php after your URL
PS: when i updated the config.php for you, i set it so the lyrics automatically go in when someone submits them. if you want to review them first, just change the (false) to (true)
your admin username/pass is what you put in the config.php :)
I have ws_ftp and i did that and i changed the other thing but it still isn't working.
inuyashateen113 12-17-2004, 08:31 PM okay, get smartftp www.smartftp.com
click the file you want to chmod (or folder) and press f7
then type in 666
then you can go to your admin control panel by typing in /admin.php after your URL
PS: when i updated the config.php for you, i set it so the lyrics automatically go in when someone submits them. if you want to review them first, just change the (false) to (true)
your admin username/pass is what you put in the config.php :)
I have ws_ftp and i did that and i changed th other thing but it still isn't working.
I have another error to and i have a screenshot of it do you have aim or yahoo tucker?
tucker 12-17-2004, 08:49 PM wmz on aim
inuyashateen113 12-17-2004, 09:13 PM mine is musicfreak11557
|