This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Url Signing Helper Class | |
* | |
* @author Paul Ferrett <paul.ferrett@servicecentral.com.au> | |
* @license http://opensource.org/licenses/gpl-license.php GNU Public License | |
*/ | |
class UrlSigning { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ABN and ACN Validator Class | |
* @author Paul Ferrett, 2009 (http://www.paulferrett.com) | |
*/ | |
class AbnValidator { | |
/** | |
* Return true if $number is a valid ABN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get the average pixel colour from the given file using Image Magick | |
* | |
* @param string $filename | |
* @param bool $as_hex Set to true, the function will return the 6 character HEX value of the colour. | |
* If false, an array will be returned with r, g, b components. | |
*/ | |
function get_average_colour($filename, $as_hex_string = true) { |
OlderNewer