Jump to content

cmgmyr

Members
  • Posts

    1,278
  • Joined

  • Last visited

    Never

Posts posted by cmgmyr

  1. Your latest looks better then your first.

    Here are a few things:
    - Top banner - Too dark and you have your 2 top corners with black tips, that doesn't look good at all
    - Lose the marquee, if you want something like that, do a smoother javascript one.
    - Your google search section is just kinda floating there and it doesn't look good with the blue background.
    - Your content section is pretty plane and bland.

    I didn't go any further then the front page and didn't check your code.

    -Chris
  2. Hey all,
    Just had a quick question for you. I have a client that has a few sites built in ColdFusion now and wants another one done. I quoted them for PHP/MySQL (obviously) and they asked if it could be done in ColdFusion. I haven't done anything in CF before, but I downloaded it and checked out a few samples and it just looks like advanced HTML. So I guess my question would be should i pursue this project and learn CF on the fly, or say forget it. Also some pros and cons of CF and a compairison to PHP.

    I would like to learn some CF just because there is a call for it, but I would like your input.

    Thanks,
    -Chris
  3. Hey all, I was wondering if there was a site out there that would check over a site for security vulnerabilities. Maybe something like where you can check if your site validates or not. I have found a few sites but they are very expensive. So I was wondering if there was a site that was free or very cheap.

    Thanks,
    -Chris
  4. I have a few hosts.

    olm.net - #1 pick
    - Great host, awesome uptime, reliable, fast, great tech support if needed
    - $49.95/mo for VPS

    1and1.com
    - Pretty good host, decent uptime, slow database creation (after you put in a request for a MySQL DB it takes about 5 hours to actually use), fast, nice desktop login app
    - $3.95/mo for beginner I think. (Just trying it out)

    servage.net
    - Lots of space, lots of bandwidth, kinda slow for me, overseas so you can have whatever you want on there ;)...if you have those sites
    - $90 for 14 months.

    I use OLM for all of my big sites, servage for smaller sites, and I'm just currently testing out 1and1 and seeing how they are with bigger sites.

    Overall I am pretty happy with the hosts and the types of sites I have on them. I tend to be pretty picky when I place a site on a host.

    -Chris
  5. [quote author=ober link=topic=103885.msg414002#msg414002 date=1155315841]
    The book thing has been done to perfection here: http://www.caduceus.org/
    [/quote]

    Wow, I wonder how much that cost them to make!

    I like the book idea. People like realistic things that they are used to.
  6. I think what you sould do (and what I do) is have an htaccess file in your images directory that doesn't show any files at all...so it doesn't really matter if people can see the directory or not.

    As for your images...Make them random file names so when you upload house1.jpg it turns into cabd83r3d9.jpg (or whatever) then it will be pretty much impossible for people to guess what your file names are.

    Hope this helps,
    -Chris
  7. I have a users page that has this in it:

    [code=php:0]function GetRandomChar() {
    mt_srand((double)microtime()*1000000);
    $IMGVER_RandVal = mt_rand(1,3);

    switch ($IMGVER_RandVal) {
    case 1:
    $IMGVER_RandVal = mt_rand(97, 122);
    break;
    case 2:
    $IMGVER_RandVal = mt_rand(48, 57);
    break;
    case 3:
    $IMGVER_RandVal = mt_rand(65, 90);
    break;
    }
    return chr($IMGVER_RandVal);
    }
    function register_form(){
            global $db, $prefix, $name, $email, $username, $password, $user_taken_err, $email_taken_err, $name_taken_err, $type;
    if($type == "f"){
    $nameout = "Your";
    }elseif($type == "b"){
    $nameout = "Band";
    }else{
    $nameout = "Your";
    $type = "f";
    }

    session_start();

    $IMGVER_TempString="";

    for ($i = 1; $i <= 6; $i++) {
      $IMGVER_TempString .= GetRandomChar();
    }

    $HTTP_SESSION_VARS["IMGVER_RndText"] = $IMGVER_TempString;
    $IMGVER_RandomText = $HTTP_SESSION_VARS["IMGVER_RndText"];

    echo "<div style=\"text-align:center;\"><span class=\"title\">Registration form</span><br />";
    echo "Fields marked with a * are required.
          <form id=\"RegisterForm\" method=\"post\" action=\"users.php\">
          <table style=\"margin:0 auto;width:400px;\" border=\"0\" id=\"table1\" cellpadding=\"2\">
    <tr>
    <td style=\"text-align:right;width:50%;\">$nameout Name:</td>
    <td style=\"text-align:left;width:50%;\"><input type=\"text\" name=\"name\" size=\"20\" value=\"$name\" /> * $name_taken_err</td>
    </tr>
    <tr>
      <td style=\"text-align:right;\">E-Mail:</td>
      <td style=\"text-align:left;\"><input type=\"text\" name=\"email\" size=\"20\" value=\"$email\" /> * $email_taken_err</td>
        </tr>
    <tr>
      <td style=\"text-align:right;\">&nbsp;</td>
      <td>&nbsp;</td>
        </tr>
    <tr>
    <td style=\"text-align:right;\">Username:</td>
    <td style=\"text-align:left;\"><input type=\"text\" name=\"username\" size=\"18\" value=\"$username\" /> * $user_taken_err</td>
    </tr>
    <tr>
    <td style=\"text-align:right;\">Password:</td>
    <td style=\"text-align:left;\"><input type=\"password\" name=\"password\" size=\"18\" value=\"$password\" /> *</td>
    </tr>
    <tr>
      <td align=\"right\">Verify Image:</td>
      <td align=\"left\"><img src=\"doimg.php?"; echo SID."\" /><br /><input name=\"verify\" type=\"text\" id=\"verify\"></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type=\"submit\" value=\"Register\" />
    <input type=\"hidden\" name=\"cmg\" value=\"do_Register\" />
    <input type=\"hidden\" name=\"type\" value=\"$type\" /></td>
    </tr>
    </table></form>[ <a href=\"users.php\" title=\"Back\">Back</a> ]</div>";
    }[/code]


    here is doimg.php

    [code=php:0]<?php
    $IMGVER_IMAGE = imagecreate(150,40);

    $IMGVER_COLOR_BLACK = imagecolorallocate ($IMGVER_IMAGE, 0, 0, 0);
    $IMGVER_COLOR_WHITE = imagecolorallocate ($IMGVER_IMAGE, 255, 255, 255);

    imagefill($IMGVER_IMAGE, 0, 0, $IMGVER_COLOR_BLACK);

    session_start();
    $IMGVER_RandomText = $HTTP_SESSION_VARS["IMGVER_RndText"];

    imagechar($IMGVER_IMAGE, 4, 20, 13, $IMGVER_RandomText[0] ,$IMGVER_COLOR_WHITE);
    imagechar($IMGVER_IMAGE, 5, 40, 13, $IMGVER_RandomText[1] ,$IMGVER_COLOR_WHITE);
    imagechar($IMGVER_IMAGE, 3, 60, 13, $IMGVER_RandomText[2] ,$IMGVER_COLOR_WHITE);
    imagechar($IMGVER_IMAGE, 4, 80, 13, $IMGVER_RandomText[3] ,$IMGVER_COLOR_WHITE);
    imagechar($IMGVER_IMAGE, 5, 100, 13, $IMGVER_RandomText[4] ,$IMGVER_COLOR_WHITE);
    imagechar($IMGVER_IMAGE, 3, 120, 13, $IMGVER_RandomText[5] ,$IMGVER_COLOR_WHITE);

    header("Content-type: image/jpeg");
    imagejpeg($IMGVER_IMAGE);
    ?>[/code]

    I have used this same thing on a contact page and it works fine. When I go to register now there is just a blank black box. When I go to the contact page, that image loads fine, when I go back to register the same code appears as the contact page I was just on.

    Am I missing something? Do you need any other code to look at?

    Thanks,
    -Chris
×
×
  • 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.