This should work with any phonecam phone where you can use your Pic Server URL in the phone's settings
If you use a caption with the pic, it will show too.
I have the script customized for pics,  3g2 Video files, and mp3 or midi audio files - but any media files that you can send via MMS will be saved!
It also works with multiple attachments in a single MMS message.

If you put an email address in the To field, your MMS message should get forwarded to that address (complete with all attachments).

All customizable variables are now only in the config.php - but it should work without any modifications (so you might want to test it before changing anything!).

There is also a style.css that you can edit to change the colors, text, etc ..
 
Thumbnails  are used on the main index page for all your images  (the thumbnails are cached in the cache directory). 
Video and audio files will be displayed as well, of course.

All media files/MMS attachments are saved to the media folder.
_______________________________________________________________________________
_______________________________________________________________________________




Instructions:
1. Upload all files and folders to any directory on your site.
2. chmod the cache and meida folders to 777
3. In your phone's settings for your Pic Server URL, use the URL/path to the send.php file. 
   For example, you can try my test site by sending to http://www.humpa.com/humpa_mms/send.php 
4. To see your pics/videos/etc, just point your browser to the index.php file!


_______________________________________________________________________________
_______________________________________________________________________________


Instructions for using the delete page.
**Important: You need to be able to use .htaccess!

1. Use the link in the delete folder to generate a username:password pair for the .htpasswd file. 
    NOTE: If you are using your own Windows server, you probably need to simply use plaintext for the username:password
2. Edit the delete/.htaccess file: You need the FULL server path to the .htpasswd file in the .htaccess file. Don't worry, I have included a file to help you get that info!
    Once you have uploaded all the files to your server, you can point your browser to the get_htaccess_info.php and you can simply Copy & Paste the code
    for the delete/.htaccess file (and the comments/.htaccess file)!!!
3. There will be a delete link under the pic/MMS message being displayed. The link is below the pic and aligned to the right.
     I have the link text as just a dot "." so it is not obtrusive - if anyone clicks on it, they will still need the username/password to delete, so don't worry.
     If you want to change the link, you can set that in the config.php too! You can even remove the delete link in the config.php


Instructions for using Comments.
In the config.php, set $allow_comments = "yes";
That should be it!!! But anyone will be able to comment by clicking on the Submit a Comment link under the pic/media.

If you want to restrict commenting to certain people, set $password_protect_comments to "yes" and they will need the username/password.

Instructions for using the restricted comments page.
In the config.php, set $password_protect_comments = "yes";

**Important: You need to be able to use .htaccess!

1. Use the link in the comments folder to generate a username:password pair for the .htpasswd file

2. Edit the .htaccess file: You need the FULL server path to the .htpasswd file in the .htaccess file!!!!
    Once you have uploaded all the files to your server, you can point your browser to the get_htaccess_info.php and you can simply Copy & Paste the code
    for the comments/.htaccess file (and the delete/.htaccess file)!!!

3. Click on the Submit a Comment link and login!!! 

Give users the username pasword so they can Post a Comment too!!!!

_______________________________________________________________________________
_______________________________________________________________________________

Upgrading from my previous Pic Server

If you were using my old Pic Server, you will need to upgrade.
I have changed the naming of the files. I am now using the full 4 characters for the year (2005 instead of 05) - I want this to work past 2099!!!

To upgrade, make sure you have uploaded all files and folders and chmod the media folder to 777.
Also, save everything in the "pics" and "videos" folder first - just in case!!!! Do not skip this step!
If you are using the old "pics" and "videos" folder, you don't need to edit the upgrade.php. 
But, if you've changed the name of the pics or videos folder, then you need to set them in the upgrade.php first!
That should be it - just point your browser to the upgrade.php and it will copy over and rename all your files.

_______________________________________________________________________________
_______________________________________________________________________________


**** Here is a list of the variables you can set/change in the config.php:

$your_name = "Mike"; // this will show up in an email, as who sent the phonecam image
$admin_email = "you@yoursite.com"; // This will show in the reply to/from field of a forwarded mms message. 
								// Also, if there is an error in the script, hopefully you will get an email sent here

$page_title = "My MMS Server"; // this will go in the html title tag. It will be the title that displays in the title bar of the browser


$time_offset = 0; // use a postive or negative number in seconds, or use 0 for no offset (ie, if your server's time is the same as yours, then use 0)

$allow_comments = "yes"; // this allows visitors to post a comment, set $password_protect_comments to "yes" if you want them to login first
$password_protect_comments = "no"; // "yes" will require a login in order to post a comment. $allow_comments must be "yes" also.

$delete_link_show = "yes"; // "yes" will show a delete link under the pic, and aligned all the way to the right. 
						// but don't worry, they cannot delete a pic without using a username/password
						
$delete_link_character = "."; // this is the character(s) that show as the link name for the delete link. 
						// If you want to make the link almost invisible, just use a dot "."  Otherwise, use something like "delete" or "Del" or whatever.

$shownum_media = 28; // maximum number of thumbnails per page

$thumb_width = 100; // set this to the thumbnail width you want

$display_image_max_size_h = 640; // set this to the max height allowed for a pic displayed 
								// pics are saved at the original size, this just affects the displaying of the pics
$display_image_max_size_w = 640; // set this to the max width allowed for a pic displayed
							// don't worry, image proportions will be maintained

// here is the path to the folder where your videos, pics, and sound will be saved - they are also saved if the mms message has a valid "To address" for email forwarding
// if you entered any text with you MMS, then the text is saved with the pic, video or sound and named the same with a txt extension
// you shouldn't have to change this value, but you can if you want to save your media files to another folder.
$path_to_media = "media/"; // see above comments



_______________________________________________________________________________
_______________________________________________________________________________

