Jump to content

khendar

Members
  • Posts

    78
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

khendar's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I didn't write the script, I just have to get it working. There's no way to sniff the data on the network. I've tried all variations on the newline/return characters but they all either return the same error or don't run at all.
  2. I've got a script which does email verification by connecting to the domain's mx server. The script in a nutshell: $connect = @fsockopen($connectaddress, 25) if($connect){ if(ereg("^220, $out = fgets($connect, 1024))){ fputs ($connect , "HELO $HTTP_HOST\r\n"); $out = fgets ($connect, 1024); fputs ($connect , "MAIL FROM: $fromemail\r\n"); $from = fgets ($connect, 1024); fputs ($connect , "RCPT TO: $toemail\r\n"); $to = fgets ($connect, 1024); fputs ($connect , "QUIT"); fclose($connect); if(!ereg("^250", $from) || !ereg("^250", $to)) return "The email address does not exist"; } } So basically, I open a socket, sent a HELO, then send MAIL FROM and RCPT TO and capture the returns, which I check for code 250 (OK). If it does not return OK then the address is deemed invalid. The problem is that I'm finding its rejecting valid email addresses. The RCPT TO call is returning 550 - Blocked on email addresses that I know are valid. If I perform the same procedure via telnet, I get 220 returning from the RCPT call. Any ideas ?
  3. The date can be read in as any format I wish. In the feed it is formatted as RFC time, but I used 'U' to convert it to Unix Epoch. Basically when I read the pubDate in as a Unix Timestamp, and insert it directly into the database, then the calendar event appears 9.5 hours early (timezone here is +9.5 hours). I need to work out how to compensate for this so they are inserted in the correct time.
  4. I'm working on a script which reads an RSS feed, uses LastRSS to parse the feed and then inserts records into a calendar application using the pubDate field as the appointment date. The problem I am having is getting the timezone on the calendar record correct. I can read the date from the feed in any format I wish, but the calendar only takes Unix Epoch timestamps, which are UTC. When I read the feed pubDate in as U and insert it to the calendar the dates are off by the timezone offset. How can I determine the timezone offset based on the feed data, and adjust the timestamp that gets inserted into the calendar accordingly ?
  5. I've been working on an anti-spam email PHP script for one of the sites I'm developing. The script is designed to be a generic script which can be reused across multiple sites. It works in multiple stages: Sending form must send a returning url variable. If it does not, the script shows a general error. This is intended to prevent cross site scripting hacks HTTP_REFERER must be in an allowed array which I maintain. If HTTP_REFERER is null or is not contained in this array, an error is returned. Email address must be syntactically valid, otherwise an error is returned. REMOTE_ADDR is checked against a blacklist of known spammer IPs. If the REMOTE_ADDR is in the list, an error is returned All fields are checked for spam keywords against a list of common spam words. If any spam words are found, the IP is added to the blacklist and an error is returned. Finally, the recipient address is hard coded so emails come to me and me only. Now...I'm after feedback on how this works. Am I going overboard ? Is there any additional security measures that I should be taking ? I have considered adding a hash key system to the script, would this be overkill ?
  6. You could also look into [a href=\"http://www.fckeditor.net/\" target=\"_blank\"]FCKEditor[/a].
  7. I think he'll finding using a different doctype will fix the majority of errors. Most of them are the result of using uppercase tags, a table based layout and an XHTML doctype.
  8. I actually like the second one more. The first one just kind of screams Apple at me. The second one is a little more unique. I do agree that the elements seem a little out of place. They might look better if some of them were aligned more. I did a little chopping to show you what I would probably do: [a href=\"http://i3.photobucket.com/albums/y82/khendar/suggestion.jpg\" target=\"_blank\"][img src=\"http://s3.photobucket.com/albums/y82/khendar/th_suggestion.jpg\" border=\"0\" alt=\"IPB Image\" /][/a]
  9. [a href=\"http://validator.w3.org/check?uri=http%3A%2F%2Fwww.kingsands.com%2F\" target=\"_blank\"]http://validator.w3.org/check?uri=http%3A%...ingsands.com%2F[/a] CRIKEY!...
  10. I dont think there is anything wrong with working from a template, provided the template designer gives permission for it to be used, especially in a commercial situation. Also its often polite to credit a designer if they request it. Its how you take the template and rework it into something unique and attractive that matters. You could check out some stock photography sites such as www.sxc.hu. These sites have loads of mostly free, high quality photos which you can use as a basis for your work.
  11. Okay a few things, I know that you've been working on this for a while but I think you may need to take a good step back and rethink a few things: Firstly, there is little to no layout or design on the site. Its easy to say that I'm not a designer and I'm no good at design but really it takes very little to make a simple effective design. It looks like you are going for a basic two column - fixed width site with a footer... Best place to start is with an existing template, and work from it. If you google around you can find some excellent open templates which people have created for use by anyone. My site started from a template by Ruthsarian, who willing lets people use his templates for whatever they want. For example [a href=\"http://blog.html.it/layoutgala/LayoutGala24.html\" target=\"_blank\"]http://blog.html.it/layoutgala/LayoutGala24.html[/a] is a nice, simple template that you can start with. Change a few colours, add your banner graphic and suddenly you have a well designed page. Generally I think you have a good basis for a colour scheme. Light grey and Dark Blue can actually look very professional if its done right. I've attached a quick html demo template I whipped up with that template I pasted above. For the banner. I like the pen and paper idea, but it needs some more impact. The banner should grab the readers attention and lead it into the content of the site. If you have access to a camera, you could try a few more dramatic shots. A large closeup of the pen writing something. Something with a little depth. Hope this stuff helps
  12. Hmm...cant believe I missed the horizontal scrolling. That happened when I thickened the border. I'll tweak it out. Glad you like it. Hopefully some people will find it useful. As for the buttons - There are stacks at these links: [a href=\"http://www.zwahlendesign.ch/en/node/19\" target=\"_blank\"]http://www.zwahlendesign.ch/en/node/19[/a] [a href=\"http://gtmcknight.com/buttons/validated.php\" target=\"_blank\"]http://gtmcknight.com/buttons/validated.php[/a] And an online tool to make your own. [a href=\"http://www.kalsey.com/tools/buttonmaker/\" target=\"_blank\"]http://www.kalsey.com/tools/buttonmaker/[/a]
  13. [!--quoteo(post=371473:date=May 5 2006, 06:30 PM:name=steviewdr)--][div class=\'quotetop\']QUOTE(steviewdr @ May 5 2006, 06:30 PM) [snapback]371473[/snapback][/div][div class=\'quotemain\'][!--quotec--] The contact form is ok - needs a little work. You should have the Name, Email, etc... boxes completly clear once clicked on. Some people take an age to figure how to delete text ("whats the delete key they say"!). Ok. Adding an onfocus=clear script. The contact form is quick - fine for me. Now on the [a href=\"http://www.cerebralstorm.net/pages/confirm\" target=\"_blank\"]http://www.cerebralstorm.net/pages/confirm[/a] The contact tab on the nav menus need to be blue. What that "Actual Anaylser" - Id hope by now you have your own php user tracking system! ;) -steve [/quote] Ok. Adding an onfocus=clear script. I'll update the blue colour on the confirm page Actual Analyser is a free (for now) tracking and stats package. I could write my own, but I'm not really into reinventing the wheel. Why go to the effort of building a tool from scratch when its unneccessary? [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] I'm not sure why you have all of those pages/page links; if you're on an Apache server with mod_rewrite enabled, you should be able to get rid of them quite handily. Also, increase the bottom padding, so that the content doesn't run up against the bottom. And finally, after making it clickable to go to the home page, change the font of your logo-not sure I'm fond of the current one. Outside of that, looks good! [/quote] I've done the /pages/etc thing deliberately. To differentiate between /pages, /stats, /logs, /css, /images, /blogs, /users etc. Just my way of maintaining a virtual structure to the site. Where does the content run to the bottom of the page? The "under development" statement is supposed to be there. Its supposed to be discreet. Hmm...the banner is set as a css background. I'll stick a transparent gif in there with a link back to the index. I like the font on the banner :P I'll see what the general consensus is before changing it. Thanks for the opinions guys. Keep em coming :D
  14. Thanks. I didn't make the logo all myself. I used a render from another dude and added some stuff (see [a href=\"http://cerebralstorm.net/pages/credit)\" target=\"_blank\"]http://cerebralstorm.net/pages/credit)[/a] . I've made a couple of changes.[list][*]Made the heading sizes smaller[*]Made the side panel font slightly larger[*]Replaced the annoying mailto: link with a contact form.[/list] I'm using an external mail script to make the contact form work so it may be a little slow. But it works.
  15. Tried copying and pasting the link into the url bar ? *sigh* I need some decent hosting.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.