Stefan Gabos web developer extraordinaire
Monthly Archives: September 2011
Sep
2011
Zebra_Form, version 2.7.4 now available
- fixed another bug that would make date validation impossible in certain scenarios;
- minor updates to the JavaScript code;
Sep
2011
Zebra_Accordion, version 1.0 now available
Zebra_Accordion is a tiny (2KB minified) accordion plugin for jQuery. It transforms a basic definition list, without requiring any other specific markup, into a small-footprint, easily configurable, fully customizable, cross-browser accordion widget, useful for better organizing larger groups of content.
Sep
2011
Zebra_Dialog, version 1.1.1 now available
In version 1.1.1 a bug was fixed where the script would sometimes "forget" to clear the semi-transparent overlay; thanks to Jack Everson for reporting;
Sep
2011
Zebra_Pagination, version 1.2.1 now available
In version 1.2.1 a bug was fixed that appeared in version 1.2, that would remove all query string parameters from the URL, except the page-related one; thanks to kumbing for reporting; also, when method is "url", the link to the first page does not include the "page" parameter anymore, in order to avoid duplicate content; previously this was true only for when method was "get";
Sep
2011
Zebra_Pagination, version 1.2 now available
In version 1.2 the link to the first page does not include the "page" parameter anymore, in order to avoid duplicate content - thanks to Sebi Popa for suggesting; also some optimizations were made in the code;
Sep
2011
Zebra_Form, version 2.7.3 now available
- fixed a bug where dates having the day < 10 would not pass validation; thanks to Dev for reporting;
- fixed a bug where Zebra_TransForm was incorrectly initialized and was transforming controls on the entire page rather than just the current form’s controls;
- fixed a bug that made impossible to set custom classes for the actual <form> tag, through the form’s constructor method; thanks to Sebi Popa for reporting;
- fixed a bug that would cause the script to trigger a warning when a select control would have [] (square brackets) in its name but the multiple attribute was not also set;
- fixed an issue that allowed malicious users to submit arbitrary values instead of the ones defined at the form’s creation, for select controls, checkboxes and radio buttons; the severity of the issue was low as the submitted values were still filtered for cross-site scripting (XSS) attempts, so no real harm could be done; thanks for PunKeel for reporting;
- previously, the library would rely on information available in the $_FILES super-global for determining an uploaded file’s mime type, which, as it turns out, is determined by the file’s extension, representing a potential security risk; now, for PHP versions 5.3.0+ compiled with the “php_fileinfo” extension, the uploaded file’s mime type is determined using PHP’s finfo_file function; thanks to DaveK for reporting;
- now the script throws a JavaScript error if the JavaScript function required by a custom validation doesn’t exists; previously, it would silently ignore the fact;
- updated the Zebra_DatePicker to version 1.1.2
- updated documentation to reflect the recent changes in the Zebra_Image library
Sep
2011
Zebra_DatePicker, version 1.1.2 now available
In version 1.1.2 a bug was fixed where unavailable months and years could also be clicked, potentially sending the user to a month with no selectable dates;
Sep
2011
Zebra_Image, version 2.2 now available
In version 2.2 a new property is now available: png_compression, which determines the compression level of PNG files; this value of this property is ignored for PHP versions older than 5.1.2; thanks to Julien for suggesting; another new property is sharpen_images which, when enabled, will instruct the script to apply a "sharpen" filter to the resulting images; can be very useful when creating thumbnails but should be used only when creating thumbnails; the sharpen filter relies on PHP's imageconvolution function which is available only for PHP version 5.1.0+, and will leave the images unaltered for older versions; new cropping options were added: TOPCENTER, TOPRIGHT, MIDDLELEFT, MIDDLERIGHT, BOTTOMLEFT, BOTTOMCENTER, BOTTOMRIGHT; thanks to flam for suggesting; entire logic behind the resize method was rewritten; a bug was fixed where the script would generate warnings if the chmod function was disabled via PHP configuration options; now it will not generate the warning but instead will set a value for the script's error property; also, a bug was fixed where if one would resize a transparent image and in the process would convert it to a JPEG (no transparency) and the resize method's background_color argument was set to -1, the resulted image's background color would be black; now it is white, as described in the documentation; thanks to Julien for reporting;
Sep
2011
Zebra_Database version 2.6 now available
In version 2.6 the name of "get_columns" method was changed to "get_table_columns" as it returned the number of columns in a given table, and a new "get_columns" method was added which takes as argument a resource and returns the number of columns in the given resource; some clarifications in the documentation were also made;



I am a 32 year old web developer working from Bucharest, Romania. I am coding since I was 14 and I am extremely passionate about it. For the server side of things I use PHP/MySQL while on the front-end I write valid HTML 5, nice CSS and lots of JavaScript code using jQuery.