auLib

From auWiki
Jump to: navigation, search

The auLib package is meant to give me a common set of functions to use when working on multiple websites, and also avoid having multiple copies of essentially the same code.

The auLib package is available for download as new layout classes from the track7 scripts page. It requires PHP 5, but could be modified to use PHP 4 if you know some php.

The first site up on the auLib classes was track7 in January 2007. That ordeal was both the first test of the library as well as a lot of tuning to the functions they contain. They will likely continue to be changed as they are used for more and more sites.

Files Included

Sites Using auLib

Releases

0.5.0

not yet released

  • auForm Use HTML 5 input types and required attribute (will no longer validate as XHTML 1.1 but should work correctly in XHTML browsers)
  • auFormButtons Add $cancel parameter.
  • auFormNumber Support non-integer step values.
  • auDB Show smarter page links for split queries.
  • auPage Alow custom general script name in Scripts().
  • Avoid PHP warnings.

0.4.0

released 1 february, 2011

  • auFile Support transparent backgrounds on resize
  • auFile Convert GIF uploads to PNG (optional via new parameter)
  • auFile Set extension correctly for PNG uploads
  • auUser now uses SHA512 for password hashes. This increases the length of password hashes from 48 to 96 characters, so make sure you have room in your database. Optional overridable function UpdatePassword has been added to re-hash users passwords at login with SHA512 if they were on SHA1.
  • auLib fix split() to explode().
  • auUser don't send redirect header for ajax logins.
  • auSend introduced.
  • auText change SmartDate and SmartTime to format same-year like 2nd instead of 02nd.
  • auPage switch from XHTML 1.1 to HTML 5
  • auPage include general.js if it exists, even if there isn't a more specific js file.
  • auFormFieldSet add contents parameter.

0.3.1

released 18 Feb 2009, updated 22 Jan 2011

  • auFile Set extension correctly for PNG uploads

0.3.0

  • auForm add support for arrays as field names.
  • auText add PhoneFormat.
  • auForm add defaultonly option.
  • auText handle one-line code samples better.
  • auText add assumeP option to BB2HTML.
  • auLib switch comments to phpdoc format.
  • auForm add some abstract classes for common functions.
  • auForm add generic Add function.
  • auForm support multiple fields on the same row.
  • auText use htmlspecialchars to convert to html and html_entity_decode to convert back.
  • auDB fixed mysqli implementations for queries other than select.
  • auFeed handle special characters.
  • auFeed include atom:link tag.
  • auFile check file uploads for errors (images only).
  • auText add Diff.
  • auUser add $homepage protected variable.

0.2.1

released 01 Oct 2007, updated 22 Jan 2011

  • auFile Set extension correctly for PNG uploads

0.2.0

  • auDB now has 3 more files:
    • auDB.base.php - base class that actual auDB classes (including the one in auDB.mysql.php) extend.
    • auDB.mysqli-obj.php - implementation using object interface to PHP's MySQL improved functions.
    • auDB.mysqli-proc.php - implementation using procedural interface to PHP's MySQL improved functions.
  • auFile fix to resizing in SaveUploadImage.
  • auPage fix Show404 to not show a blank page.
  • auTimer fix possible rounding errors.
  • auText, auFeed support UTF-8 by default instead of ISO-8859-1.
  • auPage add Scripts.

0.1.1

updated 22 Jan 2011

  • auFile Set extension correctly for PNG uploads

0.1.0

  • auDB public variables are now declared public instead of var.
  • auFeed added.
  • auFile fixes in SaveUploadImage.
  • auForm various typos fixed.
  • auPage charset changed from iso-8859-1 to utf-8.
  • auText now uses htmlentities instead of htmlspecialchars; fix handling of [head] and [subhead] in BB2HTML; allow links to #id in FixLink.

0.0.1

updated 22 Jan 2011

  • auFile Set extension correctly for PNG uploads

0.0.0

  • Initial release.