TCH-Tim
Members-
Posts
1,136 -
Joined
-
Last visited
Everything posted by TCH-Tim
-
We Have Another New Moderator
TCH-Tim replied to TCH-Bruce's topic in Family Forums News and Updates
Congrats Sami. Welcome to the team. -
I don't know off the top of my head Dan, but I'll keep my eyes open. In the meantime maybe somebody else will happen along with the answer.
-
Welcome to the forums wcx.
-
John, Do you only want the tab for the home page to change when it's active, or are you looking for whichever page you are on to change when it's active? I recall writing something for this awhile back. If you post a link to what you've got so far I'd be happy to take a look and offer my thoughts.
-
Circuit breaker? Nah, I just do it one-handed. (j/k of course - safety first kids.) Anyway, this is what I came up with using PHP. ftp.php, where zzzz.xxx is your domain name: ><?php if (($username != "") && ($password != "")){ $server = "ftp://" . $username . "%40zzzz.xxx:" . $password . "@ftp.zzzz.xxx"; header("Location:" . $server); exit(); } ?> <html> <head> <title>FTP Login</title> </head> <body> <form action="ftp.php" method="POST"> Enter a valid user name and password to login:<br /> <input type="text" name="username" /><br /> <input type="password" name="password" /><br /> <input type="submit" value="Login" /> </form> </body> </html>
-
Like Andy says, I don't much see the need to have a PHP script do something that most browsers can do anyway, but I see why you might want an easier way for users to enter their username/pass. The lady of the house has mandated that I install a ceiling fan right now, but I'll see what I can come up with later on. In my head I'm thinking it should be really easy.
-
I didn't try uploading or creating files. I see the author also had a problem uploading files, but wrote it off as a permissions issue. They error I'm getting when uploading is "file bad," which it is not. CHMOD'ing everything to 777 doesn't help. So I take it you are at least able to log in, navigate, delete, rename, and CHMOD - you just can't upload files or create directories?
-
Charles, Starting on line 142 in the code from yesterday is an if statement followed by a set of comments that reads: >if (isset($_REQUEST["thingy"])) { $thingy = $_REQUEST["thingy"]; } //** charles do above for vars below /* $_REQUEST["thingy"] $_REQUEST["chmod"] $_REQUEST["rename"] $_REQUEST["dl"] $_REQUEST["delete"] $_REQUEST["updir"] $_REQUEST["dir"] */ Replace that with: >if (isset($_REQUEST["thingy"])) { $thingy = $_REQUEST["thingy"]; } if (isset($_REQUEST["chmod"])) { $chmod = $_REQUEST["chmod"]; } if (isset($_REQUEST["rename"])) { $rename = $_REQUEST["rename"]; } if (isset($_REQUEST["dl"])) { $dl = $_REQUEST["dl"]; } if (isset($_REQUEST["delete"])) { $delete = $_REQUEST["delete"]; } if (isset($_REQUEST["updir"])) { $updir = $_REQUEST["updir"]; } if (isset($_REQUEST["dir"])) { $dir = $_REQUEST["dir"]; } Make sure the $server variable is set to your ftp server (originally on line 206). That should be it to basically get it working. Where are you getting stuck? Are you getting any errors?
-
Down around line 147 or so there is a note for Charles to "do above for vars below." If I do that, the script seems to work just fine. I didn't write the script so I'm not going to post it here. And although I'm saying it works, I make no warranties in regards to how secure the script is. Use it at your own risk. Also keep in mind that if you ask it to delete something, it will not ask for confirmation first.
-
An almost-working solution was posted to that forum yesterday. Using it I was able to login to my server, but I was not able to actually do anything once I got there (like navigate folders, delete files, etc.). I'll poke around a little longer and see if I can come up with something.
-
Thanks for the welcome guys. Glad to be here.
-
It's used to prevent line breaks. If you had long strings of text and wanted to control exactly where the line breaks go, rather than letting the browser decide, you could use <nobr>. Not part of any W3C standard, so browser support could be spotty.
-
What does "ftp.php" look like?
-
If it's not a real email address under your account, it's probably spammers spoofing email from your domain. Part of life on the Internet and there's not really anything you can do about it.
-
Welcome to the forums Sam. You can park more than one domain on your account (open a help desk ticket), but if you want to use both domains you would need two accounts or a reseller account. You can edit files in the file manager in cPanel.
-
I was looking at your site and the answer finally reached out and slapped me in the face. Despite my feeling that "shouts.txt" works just fine, they insist on putting the full path to the file in the variable. Both work for me. You have neither. You have: >/public_html/shoutbox/shouts.txt rather than: >/home/username/public_html/shoutbox/shouts.txt Sure enough, if I take out the /home/username I can make mine look like yours.
-
If you want to use the CSV version, open shoutbox_csv.php. Line 9 is where you set the the location of shouts.txt. For some reason, even though the file lives in the same directory as the script, they felt the need to define the full path (although I should note that it works for me with the full path). If you just change it to: >$shoutfile = "shouts.txt"; you should be fine. Haven't looked at the MySQL one yet.
-
I like that part. For text message junkies, you might also want to check out Google SMS.
-
I believe that's the idea, yes. So far everything I've installed has worked.
-
As far as I know the two aren't actually connected, but there is a Joomla plugin called JD-Wordpress that allows you to put a Wordpress blog inside of a Joomla CMS. Haven't used it though, so I can't recommend it. If you want to run a test setup of a regular Wordpress install you can do it in Fantastico. Takes about 15 seconds to get going.
-
I believe it is off.
-
I can see your site just fine, and a traceroute shows I'm going to Server 369. I would say maybe it's a propogation issue, but five days seems like a long time. I'm sure someone smarter than I will be along with some advice.
