CF Image Hosting Script v1.3

A simple easy to use Image hosting script, which aims to make it easy to setup and maintain a image hosting site or a site for you to share your photos with your friends, family and collegues. With the social bookmarking links generated for each image, sharing your images or photos across the web couldn't be made any easier.

What's New

Here are some of the new features of 1.3:

Report Image
This allows your visitors to report any image that they find offensive or which violates your terms of service.

Disable Upload
This option is to disable image upload on the home page for all visitors, but allow the admin to upload when they logged in.

Private Image Upload
With this option you can allow your visitors to upload an image which will not appear in the gallery but will still allow them to share it across their social network and close friends.

URL Shortening
A helpful feature(option) which will allow your visitors to shorten the URL to there image.

Features:

  • Option to put a text only watermark on the images when viewed from any other site then yours(hotlink).
  • Option to show Image Details on the thumb page(exif data from the image)
  • Option to use your own URL Shortening(Yourls,bit.ly,tinyurl.com,is.gd)
  • The user can now pick one of the languages(below) to view the site in (if available) and the with the use of cookies it will remember the language of the users last visite.
  • Remote upload(Copy image from URL)
  • Forgot your password? feature
  • dynamic sitemap(for Google,bing)
  • 'Edit image' feature for the admin to change the description/title and the image privacy settings
  • Multi-Language support
    • Hungarian (1.3.8) by lsgtvik
    • Norwegian (1.3.7) by Marius
    • Polish (1.3.7) by Krzysztof Dmowski
    • Portuguese (Brazil) (1.3.7) by Luciano Bergesch
  • Report Image
  • Disable Upload
  • Private Image Upload
  • URL Shortener
  • Multiple Images Upload
  • Images which have not been viewed within (X)number of days are auto deleted.
  • Better Bandwidth Tracking and limiting
  • RSS Feed 10 Newest images added
  • Image Search
  • Contact Page
  • No MySQL database needed
  • Supports JPG, JPEG, PNG, BMP and GIF images.
  • Easy to customize.
  • Auto-generated social bookmarking buttons for each image
  • Validation of uploaded files by extension and mime type.
  • Easy to crawl links (with mod_rewrite support)
  • Public gallery for uploaded images
  • Admin area
  • Easy web setup no need to edit files
  • Ban IP address from uploading
  • Configurable Maximum upload image size
  • Image Bandwidth Tracking
  • Image Counter.
  • Image delete urls for user on upload.

Images


Updates

Update 1.3.83:

(10 February 2011)
  • *Fix A bug with saving of the databaes were it would reset the database.

Update 1.3.82:

(22 September 2010)
  • *Fix Remote File Inclusion Vulnerability ([SET_LANGUAGE]=[EV!L])

Update 1.3.81:

(16 august 2010)
  • fixed installer
  • fixed themes (css)
  • Hungarian (1.3.8) by lsgtvik
  • Miscellaneous fixes

Update 1.3.8:

(15 august 2010)
  • New option to put a watermark (text only) on the images when viewed from any other site then yours(hotlink).
  • New Polish language translated by: Krzysztof Dmowski
  • Miscellaneous fixes

Update 1.3.7:

(27 July 2010)
  • Added a new option to show Image Details on the thumb page(exif data from the image)
  • Added a new option to use your own URL Shortening(Yourls,bit.ly,tinyurl.com,is.gd)
  • The user can now pick one of the languages(below) to view the site in (if available) and the with the use of cookies it will remember the language of the users last visite.
    • Hungarian (1.3.8) by lsgtvik
    • Norwegian (1.3.7) by Marius
    • Portuguese (Brazil) (1.3.7) by Luciano Bergesch
  • Updated Site Themes (CSS)
  • Update to Admin layout
  • Is now licensed under GPL
  • Miscellaneous fixes

UPDATE 1.3.6

(4 July 2010)
  • Added remote upload(Copy Image from URL)
  • Added 'Edit image' feature for the admin to change the description/title and the image privacy settings
  • Added 'Forgot your password?' feature
  • Added dynamic sitemap(for Google,bing)
  • Fixed search page bug
  • Fixed AdSense bug
  • Updated to the Site Themes (css)
  • Updated english language

UPDATE 1.3.51

(29 June 2010)
*Added Translation Norwegian by Marius

UPDATE 1.3.5

(25 June 2010)
  • Update to the installer.
  • Added Multi-Language support
    (you can find the english language file in the language folder. If you translated into another language or have corrected typos, I would appreciate it if you would send us the translated file. I will be adding the ability for your users to pick a language, once there are more translates.)
  • Image links on the admin home page will now show you thumb on the image in the tooltip.
  • admin CSS file update.

UPDATE 1.3.4

(12 June 2010)
*Fixed a admin logon Vulnerability.

UPDATE 1.3.3

(10 June 2010)
*Hoping to have fixed the installer.

UPDATE 1.3.2

(31 May 2010)
*Fix the report function so search engine bots do not report all images.
*NOTICE: If a search engine bots has indexed the report page for a image this fix will not stop it reporting the image, but will stop all new image report page from being indexed

UPDATE 1.3.1:

(10 May 2010)
*Fix Remote File Inclusion Vulnerability

CF Image Hosting Mailing List

You can keep updated with the latest information about CF Image Hosting updates by joning our mailing list. you will only receive mail about updates to CF Image Hosting and we will not share your email address with any third parties.

Download & demo

Install/update instructions :

BEFORE UPDATING BACKUP YOUR DATA FOLDER IN THE UPLOAD FOLDER
Unzip all the files and upload them to your site, then navigate to your site where the installer script should run to check the file structure and setup the basic settings. If you encounter an error it will most likely be an error related to not being able to right to a file or a folder just follow the instructions to set permissions on the file or folder affected, if you encounter any other errors please try refreshing the page as sometimes this can help.

After the installer is done you will need to delete the install.php file from your server, then navigate to the admin page use admin as the username and password as the password to login, once you have logged in navigate to the settings page and edit settings to your liking.
Attention : CF Image Host Script 1.4 is now out!

Demo Admin Login

Please note that some of the sittings can not be changed in the demo.

Username : admin
Password : password

Online Demo : Removed
Please note:
The online demo my be running a newer(test) version of the script.

Download : CF Image hosting Version 1.3.83

Click here to lend your support to: CF Image Hosting Donation and make a donation at www.pledgie.com !


Old Versions

CF Image hosting Version 1.2
CF Image hosting Version 1.1
CF Image hosting Version 1.0.1

Like our script? Rate it at PHP > Hot Scripts
ScriptSearch.com
If you find any bugs please let me know or if you need any help please feel free to post a comment below and I will answer you as soon as possible.

388 Comments | Add your own
    1. Anton22
      29 Nov 10 03:43pm
      @Ishtar
      How did you do this?
      Reply
  1. Shaya
    28 Nov 10 04:36pm
    THERE ARE TOO MANY BUGS ON THIS SCRIPT!!!
    Reply
    1. Admin
      29 Nov 10 08:35pm
      @Shaya
      can you list the bugs?
      Reply
  2. Christian
    29 Nov 10 01:35pm
    Hey , it's there any way that at the end of uploading , the direct link will not be di="number" ?

    Because the forums don't recongise images without extensions.


    I hope you understood what I said , I'm waiting for your reply.
    Reply
    1. Admin
      29 Nov 10 08:33pm
      @Christian
      turn on mod_rewrite in settings and the will add .png to the end on the links
      Reply
      1. Christian
        30 Nov 10 03:42pm
        @Admin
        Well , it was already ON , but when I upload an image , the direct link is like: /?di=123123123 without .png / jpg or else.

        It is strange that , afterwards , if I go to the Gallery and click that image , the link will transform in /?di=12312312312.JPG /png or else.

        What can I do in order to automatically show with an extension?
      2. Admin
        30 Nov 10 08:03pm
        @Christian
        sorry about that to fix it you will need to open upload.php and find this line of code
        PHP:

        $imgurl    
        'http://'.$_SERVER['HTTP_HOST'].preg_replace('//([^/] ?)$/''/'$_SERVER['PHP_SELF']).'?di='.$newname;
         


        replace with :
        PHP:

        $imgurl    
        get_image_address($newname,'di');
         
    1. Omg
      29 Nov 10 07:10pm
      no admin response at all.. this script is dead!
      Reply
      1. Admin
        29 Nov 10 08:34pm
        @Omg
        to what?
        Reply
    2. Ishtar
      30 Nov 10 01:06am
      @Anton22
      To enable exif-support configure PHP with --enable-exif

      When I just restarted Apache and everything worked ;)
      Reply
    3. Ishtar
      30 Nov 10 01:08am
      BTW, this script is awesome. We're making a custom theme for it and I love how everything is CSS based, makes it so much easier to add themes too. No bugs whatsoever here, everything works as it should. Thanks admin!
      Reply
    4. Ishtar
      30 Nov 10 01:11am
      @admin One request though.. it would be nice to have multiple admin users. If the site gets "big" it may be hard to manage with a single account. Also, a more powerful db engine would be a nice addition. Again, if the site becomes popular, text-based dbs could become a problem... but I'll deal with that in time I guess ;)
      Reply
      1. Admin
        02 Dec 10 08:48am
        @Ishtar
        thank you..

        i am working on a mysql version of the script that will have multiple admin/users accounts but it's not going to be out any time soon sorry.
        Reply
    5. Soule
      01 Dec 10 04:53pm
      Hi,
      I tried your last version (even previous versions) and when launching it from my local host server I get the following error:
      Parse error: parse error in C:wampwwwServeur_Imagecf_image_host_v1.3.82index.php on line 346, which is the last line.
      This corresponds to some analysing error in parsing the code.
      Please could you tell me why I cannot use your instructions syntax?
      Is it in relation with "
      Reply
    6. Idream
      01 Dec 10 08:26pm
      Admin could you help me with your script?
      When i click a photo in the gallery it shows a blank page with.
      Reply
      1. Admin
        02 Dec 10 08:42am
        @Idream
        turn off Show Image Details in settings and see if that works..

        or

        enable exif-support in PHP http://www.php.net/manual/en/exif.setup.php
        Reply
    7. Richard
      03 Dec 10 06:28am
      This works great with my host http://www.pacifichost.com
      Reply
    8. Saeed
      03 Dec 10 05:36pm
      what is thesew errors? ?? please help me ....


      Warning: move_uploaded_file(upload/images/1112914012718.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/umzst/domains/umz-support.cz.cc/public_html/iupload/upload.php on line 130

      Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpZfaesk' to 'upload/images/1112914012718.jpg' in /home/umzst/domains/umz-support.cz.cc/public_html/iupload/upload.php on line 130

      Warning: Cannot modify header information - headers already sent by (output started at /home/umzst/domains/umz-support.cz.cc/public_html/iupload/upload.php:130) in /home/umzst/domains/umz-support.cz.cc/public_html/iupload/header.php on line 31

      Warning: Cannot modify header information - headers already sent by (output started at /home/umzst/domains/umz-support.cz.cc/public_html/iupload/upload.php:130) in /home/umzst/domains/umz-support.cz.cc/public_html/iupload/header.php on line 33

      Warning: Cannot modify header information - headers already sent by (output started at /home/umzst/domains/umz-support.cz.cc/public_html/iupload/upload.php:130) in /home/umzst/domains/umz-support.cz.cc/public_html/iupload/header.php on line 35

      Warning: Cannot modify header information - headers already sent by (output started at /home/umzst/domains/umz-support.cz.cc/public_html/iupload/upload.php:130) in /home/umzst/domains/umz-support.cz.cc/public_html/iupload/header.php on line 36

      Warning: Cannot modify header information - headers already sent by (output started at /home/umzst/domains/umz-support.cz.cc/public_html/iupload/upload.php:130) in /home/umzst/domains/umz-support.cz.cc/public_html/iupload/header.php on line 38
      Reply
      1. Admin
        06 Dec 10 10:04am
        @Saeed
        it may be that your host don't support the move_uploaded_file() function or it's a permissions issue with the image upload folder(upload/images)
        Reply
        1. Saeed
          11 Dec 10 12:55pm
          @Admin

          what will i do? upload/image permissions is 777 ?
      1. Fouce
        05 Dec 10 06:42am
        I am so sorry but I don not know why the content of page is empty, any help is appreciated! you can click here for more information:
        http://www.bpjw.net/img/?pm=16129153486815
        Reply
        1. Admin
          06 Dec 10 09:49am
          @Fouce
          turn off Show Image Details in settings and see if that works..

          or

          enable exif-support in PHP http://www.php.net/manual/en/exif.setup.php
          Reply
      2. Alejandro Olivera
        07 Dec 10 09:04am
        Admin

        Error trying to upload image from link

        There was an error: That file does not exist.
        There was an error: Sorry you can not find the image to load!
        Reply
        1. Admin
          07 Dec 10 10:35am
          @Alejandro Olivera
          can you let me know what the image addrress is so i can see if i can find the bug

          thanks
          Reply
          1. Alejandro Olivera
            07 Dec 10 11:08am
            @Admin

            Also problem with contacts page

            to send the email does not arrive and that will change my email.
      Information: Comments are closed. Please use the new forum

      Other Tools
      CF TextImage Class 1.0
      CF TextImage Class is a small but useful php script that can generates a image from a...
      CSS Font Style Generator
      This online tool allows you to experiment with the CSS font properties and text styles....
      HTML Encode Decode
      This tool can help with the 'escaping' of any text to its HTML special chars...
      Forum Topics
      Mod Rewrite Fehler
      Wenn ich in admin Panel die Funktion einstelle. Zeigt es mit diesen Fehler an . Warning: Invalid argument...
      Short Url Not Workig
      Warning: preg_match() [function.preg-match]: No ending delimiter '!' found in...
      password protection
      Hallo Ich verwende die Neuste CF Image Host 1.6.5 Version. Ist es möglich einen Passwortschutz...
      vertical banners
      Anyone know how i could put vertical banners on each side of the thumbnails on the thumbnail page? Thanks
      Link Shortener
      Ive recently added the adf.ly link shortener to this script which really works great, however in the thumbnail...