-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b1e601
commit e0f7af4
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | ||
|
||
/** | ||
* @author Ivan Tcholakov <[email protected]>, 2015 | ||
* @license The MIT License, http://opensource.org/licenses/MIT | ||
*/ | ||
|
||
if (!function_exists('gravatar')) { | ||
|
||
// This helper function has been added here for compatibility with PyroCMS. | ||
function gravatar($email = '', $size = 50, $rating = 'g', $url_only = false, $default = false) { | ||
|
||
$ci = & get_instance(); | ||
$ci->load->library('gravatar'); | ||
|
||
if (@ (string) $default == '') { | ||
$default = null; | ||
} | ||
|
||
$gravatar_url = $ci->gravatar->get($email, $size, $default, null, $rating); | ||
|
||
if ($url_only) { | ||
return $gravatar_url; | ||
} | ||
|
||
return '<img src="'.$gravatar_url.'" alt="Gravatar" class="gravatar" />'; | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>403 Forbidden</title> | ||
</head> | ||
<body> | ||
|
||
<p>Directory access is forbidden.</p> | ||
|
||
</body> | ||
</html> |