Archive for March, 2006

Send a Text Message

March 12, 2006 - 6:08 pm Comments Off on Send a Text Message

  • Send Message to Eric’s Cell Phone (it’s free-try it!):

    < ?php ################################################################ # Mail-it Now! Upload2Server 1.5.1                             # # Script written by: Matthieu Biscay                           # # Web: http://www.skyminds.net/source/                         # # Contact: http://www.skyminds.net/contact/                    # # Copyright SkyMinds.Net. All rights reserved.                 # # This script is linkware. Please leave this header here.      # # For commercial use or custom version contact us.             # ################################################################ // ---------------------------------- EDIT HERE --------------------------------- // /* Your email where the results of the contact form will be sent to. */ $dest = "7078120376@tmomail.net"; /* The full path to your upload directory. This will appear in the email you'll get so that you can retrieve the uploaded files easily. */ $up_full = ""; /* The relative path to your upload directory from this script. This is an important settings : if the files are not uploaded, chances are that this is not set properly. Configuration example : if this file is at www.domain.net/contact.php and your upload directory is www.domain.net/upload/, the setting should be : $up_dir = "./upload/"; */ $up_dir = "./upload/"; /*  The number of upload fields you want on the form. Put 0 if you don't want any. */ $UploadNum = "0"; /*Host mail functions. Possible values are 0 or 1. See below: 0 is for most hosts (default value). 1 is for Online.Net (Online). */ $online_isp = "0"; // --------------------------------------------------------------------------------- // if(isset($_POST["submit"])) { // ------------------------ Fields Verification Process ------------------------- // $Nada = ''; $From = 'blog@ep.com'; $Msg  = $_POST['Msg']; $Name = $_POST['From']; if(empty($From)) { $Nada.="Email field is empty ! "; } if(empty($Msg)) { $Nada.="Message field is empty ! "; } $noway = "$Nada" ; if(empty($Nada) && eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$",$From)) { $ok = TRUE; } elseif(!empty($Nada) && eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$",$From)) { $ok = FALSE; } else { $ml = "Your email address is invalid ! "; $ok = FALSE; } // ------------------------------------------------------------------------- // // ----------------------------- Upload Files ------------------------------ // $status    = ''; $new_name  = ''; $uploaded  = ''; $get_files = ''; $all_names = ''; for($i=0;$i { $name=$_FILES["fileup"]["name"][$i]; $temp=$_FILES["fileup"]["tmp_name"][$i]; $size=$_FILES["fileup"]["size"][$i]; $type=$_FILES["fileup"]["type"][$i]; if($size > 0)
    {
    global $up_dir, $all_names;
    $length    = 16;
    $key_chars = ‘abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789’;
    $rand_max  = strlen($key_chars) – 1;
    for ($i = 0; $i < $length; $i++) { $rand_pos  = rand(0, $rand_max); $rand_key[] = $key_chars{$rand_pos}; } $rand_pass = implode('', $rand_key); $boom = strlen($Msg) * strlen($From); $timer = time()* rand(0, $boom); $timer =  $timer . '-' .  $rand_pass; $new_name = $timer . "-" . $name; $new_name = str_replace(" ","_",$new_name); @move_uploaded_file($temp, $up_dir . $new_name); $all_names.= "$new_name\n"; } } // ------------------------------------------------------------------------- // // ----------------------------- Upload Messages --------------------------- // if(empty($all_names)) { $status   = "No files uploaded."; $uploaded = "No files sent."; } else { $status    = "File(s) successfully uploaded."; $uploaded  = "Yes !\nFiles:"; $get_files = "\nGet the file(s): $up_full"; } //--------------------------------------------------------------------------- // // ----------------------------- Mail Builder ------------------------------ // if($ok == "TRUE") { $referer = $_SERVER["HTTP_REFERER"]; $subject = "ep.com"; $body.="\n"; if(count($_POST)) { while(list($key, $val) = each($_POST)) { $body.="$key : $val\n"; } } $body.="\n"; $body.="$all_names\n"; $body.="$get_files\n"; if($online_isp == "1") { if(!email("feedback",$dest,$sujet,$body)) { print "An error occured during mail delivery "; } } else { $header  = ''; $header.= 'From: "' . $Name . '" <' . $From . ">\r\n”;
    $header.= ‘Reply-To: “‘ . $Name . ‘” < ' . $From . ">\r\n”;
    $header.= “X-Mailer: PHP/” . phpversion();
    if(!mail($dest, $subject, $body, $header ))
    {
    print “An error occured during mail delivery

    “;
    }
    }
    // ————————————————————————- //
    // —————————- Success Message —————————- //
    ?>




    < ?php } // ------------------------------------------------------------------------- // else { // ----------------------------- Error Message ----------------------------- // ?>


    Your message could not be processed properly. Please enter your name and a message to send.
    GO BACK


    < ?php // ------------------------------------------------------------------------- // } } else { $num = 0; $upload_box = ''; while($num < $UploadNum) { $num++; $upload_box.= "    File $num:

    –>


    Message:
  • Spring Tease

    March 10, 2006 - 2:07 pm 2 Comments

    Wow! Wow wow wow wow wow. It’s such a nice today here today. According to weather reports, it is now a warm, slightly-overcast 72 degree day in New York city. It was like a new awakening–as if the entire city had been hybernating and today, everything and everyone broke out of their respective cocoons just today. All of a sudden, there were about 5 times as many people on the street, dozens of people walking their dogs, couples walking hand-in-hand in the park by my work. (I decided to grab a sandwich and eat my lunch there today, along with a hundred-something other people.) Today was the first day in months that you could actually go outside without a coat and not freeze. I definitely wish it would stay like this for a couple months at least. Summers are so balmy, so hot–it’s miserable. Forget Autumn in New York, Spring’s where it’s at!

    Morning Commute…

    March 8, 2006 - 11:08 pm 2 Comments

    The weather here has been wonderful lately, so I decided to take some pictures during my walk to the subway station… OK, so don’t expect anything too spectacular, but withour further ado, I present pictures of (our small part of) Astoria (clink on the thumbnail to go to the album):

    Astoria Houses

    I just remembered that I also took some pictures walking to work in Manhattan–two strange things happened, though; somebody hit a payphone with their car, and there was a fire in the middle of the street!

    Dead Payphone

    another lazy weekend..

    March 5, 2006 - 12:18 am 1 Comment

    Well, not much too exciting has happened lately… We’re still slowly enhancing our web site, and working on Jabba’s new blog too.

    Candice and I just finished watching the first season of ‘Lost’ (over the past 2 weeks, mind you; not just this weekend.) We’re addicted–that’s all I can say. Is it me, (only a few of you out there might actually what I’m talking about) or does John Locke bear a stricking resemblance to Mr. Kindrick? 😀
    There seems to be a lot of good TV shows on recently.. I remember not too long ago (a couple years, maybe) everything on the tube was complete crap, but I think things took a good turnaround for the industry. Keep it coming, guys! Like I need more reasons to sit on my butt and stare at the wall, though…

    introducing……

    March 1, 2006 - 8:32 am 2 Comments

    jabbathepug.com! eric and i finally got our act together and made a page for our little guy! the link is over on the right under ‘other blogs’…so visit! there’s not much there now, but we’re workin’ on it.