Mar
11
2010
0

Simple class for extract browser info

This is my little class for extract information from the browser with $_SERVER['HTTP_USER_AGENT'].

Is very simple to use and can extract the browser name, minor version, and the platform name.

Click HERE for see the code of this class

download
Size: 1.42 KB
Hits : 9

Written by Davide in: Library,php,scripts | Tags: , ,
Jan
29
2010
0

Class Cat_Cache revision 1

I found in my class for cache data an error that return incorrect value if the cache isn’t in the cache directory. This error return improperly a boolean true value instead of false.

I correct the error with a new version of the class.
Click HERE for see the code of this class

download
Size: 4.9 KB
Hits : 21

Written by Davide in: Library,php,scripts | Tags: , , ,
Jul
29
2009
0

MooSkype 1.1

New version of moo-skype

  • Add var ajaxProxy for set ajax proxy
  • Add css file for style the skype buttom

Add onLine example :

VIEW THE EXAMPLE FILE

download

Size: 68.42 KB
Hits : 17


Written by Davide in: Library,javascript,mootools,scripts | Tags: , , ,
Jul
10
2009
0

Secure image capcha revisited

I found a nice script http://www.phpcaptcha.org/ for made form capcha named secureimage and add some code for have random background and font for the capcha image

Here are the class modification that I made on the class:

- Porting the class for use in php5
- Remove the define for images: SI_IMAGE_JPEG, SI_IMAGE_PNG, SI_IMAGE_GIF
- Add define for ttf font path SI_PATH_TTF_FONTS
- Add define for gd font path SI_PATH_GD_FONTS
- Add define for random background imagess path SI_PATH_BACKGROUND
- Add define for audio path SI_PATH_AUDIO
- Add define for wordlist path SI_PATH_WORDS
- Set static var for $charset
- Add var $automatic_random for enable / disable random font and background image
- Add var $lang_wordlist for have wordlist for any language
- Delete var $wordlist_file: the file now is on SI_PATH_WORDS.’wordlist-’.$lang_wordlist.’.txt’
- Add var $use_random_bg_image for set random extraction for the background image
- Modify var $gd_font_file: now can set only filename
- Modify var $gd_font_file: now can set only filename
- Modify var $audio_path: now can set only filename
- Add options array to the constructor function: $img = new Securimage(array(‘automatic_random’=>false,’lang_wordlist’=>’it’));
- Add generic function for set var in the class: (void)setOption($name, $value);
- Add generic function for set var in the class: (void)setBgImage(‘/path-to-my-bg-image/image-name.jpg’);
- Modify function show() and added the code for have random background and font in the class
- Added function getRandom() for charge random files

download
Size: 846.85 KB
Hits : 54

Written by Davide in: Library,php,scripts | Tags: , , ,

Theme: TheBuckmaker.com Magazine Style Templates