This class can be used to generate an RSS feed from the listing of messages in a given mailbox accessible via POP3 or IMAP protocols.
The class connects to a mail server to access a given mailbox using the PHP IMAP extension functions.
It retrieves the unread messages and uses the subject and from headers for the title and the message body for the description of an RSS feed that is stored in a class variable.
The class return the RSS feed as output of the current script or store it in a given file.
Create thumbnails and link pictures in new windows
Comments: This class is designed to ease the publication of images in html webpages that uses PHP.
1) With this class you can insert pictures in your web pages in one line (simlar to <IMG> tags).
2) The class automatically creates a link to the original image using javascript (displaying the selected picture in a new window with the size of the image) and presents a thumbnail in your page.
3) THIS CLASS DOES NOT NEED GD LIBRARY TO WORK, but if you have GD Library 2.0 or later installed it's possible to use the class to create thumbnails on the fly. The detection of the GD library is AUTOMATIC.
4) When GD Library 2.0 or later is not available, the image type is not supported by GD Library or simply when you want to decrease the execution time of your scripts, the class uses the original image as thumbnail and link, modifying its size on the IMGtag.
5) To protect your pictures, you can set up this class to use the images as CSS backgrounds of DIVtags that are creates automatically. In effect, a 100% transparent gif image (null.gif) is used to mask your DIVtag as an image, so visitors will save empty images on their disks.
Files:
1) imgpopup.class.php, containing the class definition.
2) imgpopup.php, for output the Pop Up Window Content.
3) img.php, for output the GD based Thumbnails.
4) imgpopup.js, JavaScript file containing de ImgPopUp Function.
5) null.gif, Transparent GIF used to mask image contents.
Extras:
1) test.php, examples and information about the use of the class.
2) misola.jpg, picture used in test.php (Thanks to Manuel Isola).
This PHP class can be used to generate a nice, template driven date picker in a pop-up window.
The class will automatically generate the required HTML and JavaScript code that will make a pop-up window appear to let the user choose a date from a calendar. The selected date will be passed to an user-specified control from the caller page.
Every aspect is customizable: the aspect of the date picker is template driven meaning you can completely alter how the date picker looks by changing the template and the related CSS file; the format in which the date to be returned is configurable; the date picker can be instructed to show a specific year/month/date by default; the first day of the week can be also set;
The date picker also supports localisation: in this version, beside the default english language file you can also choose between german and dutch.
The code is heavily documented so you can easily understand every aspect of it.
This class can be used to generate a gallery of pictures from image files contained in a given server folder.
It scans a given folder to list the files with GIF, PNG, JPEG and BMP extensions. Then it outputs HTML pages showing thumbnails of the images that were found. The full size images are opened in pop-up windows.
The width of the gallery pages, the number of images per row and the number of images per page are configurable.
The gallery shows buttons to advance to the next or previous pages.