// this is important for our plugin structure later on - the key on the array serves an an ordering method
ksort($CALL_ME_FUNCTIONS);
foreach($CALL_ME_FUNCTIONS as $key => $val) {
- error_log("checking callmefunction $key as $val");
+ //error_log("checking callmefunction $key as $val");
$callme = $val();
if($callme !== false) {
$callme();
// builds the tail structure
function gwvpmini_TailBuilder()
{
- echo "<br><br><hr><font size=\"-1\"><b><a href=\"http://github.com/takigama/GWVP\">GWVP</a></b> - <i>Copyright 2011, 2012 PJR - licensed under GPL</i></font>";
+ echo "<br><br><hr><font size=\"-1\"><b><a href=\"http://github.com/takigama/GWVP\">GWVP</a></b> - <i>Copyright 2011, 2012 PJR - <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a></i></font>";
}
function gwvpmini_emailToUserLink($email)
function gwvpmini_fourZeroThree()
{
error_log("403 called");
- header("HTTP/1.0 403 Permission Denied");
+ header("HTTP/1.1 403 Permission Denied");
}
function gwvpmini_fourZeroFour()
{
error_log("404 called");
- header("HTTP/1.0 404 No Such Thing");
+ header("HTTP/1.1 404 No Such Thing");
}
* @param array $atts Optional, additional key/value attributes to include in the IMG tag\r
* @return String containing either just a URL or a complete image tag\r
* @source http://gravatar.com/site/implement/images/php/\r
- */\r
+ */
+function gwvpmini_HtmlGravatar($email, $size, $htmlappend="")
+{
+
+ global $use_gravatar;
+
+
+ if($use_gravatar == false) return "";
+ return get_gravatar( $email, $size, 'mm', 'g', true)."$htmlappend";
+}
+\r
function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts = array() ) {\r
$url = 'http://en.gravatar.com/avatar/';\r
$url .= md5( strtolower( trim( $email ) ) );\r