Name is ...
- PHP 5.3
.elgg-system-messages { | |
position: absolute; top: 0; left: 10px; right: 10px; | |
padding: 0; | |
max-width: none; | |
} | |
/* some styles borrowed from Twitter Bootstrap */ | |
.elgg-message { | |
background: #D9EDF7; | |
color: #3A87AD; |
# ignore IDE/hidden/OS cache files | |
.* | |
*~ | |
nbproject | |
nb-configuration.xml | |
Session.vim | |
*.tmproj | |
*.tmproject | |
tmtags | |
Thumbs.db |
#### Shib auth provides access control, attributes in $_SERVER | |
# | |
AuthType shibboleth | |
ShibRequireSession On | |
Require attrname VALUE1 | |
Require attrname VALUE2 | |
# optional | |
#ShibRedirectToSSL 443 |
<?php | |
namespace MrClay\Generics; | |
use Exception; | |
use InvalidArgumentException; | |
class TypedList extends \SplDoublyLinkedList | |
{ | |
/** |
<?php | |
/** | |
* Generate strings for testing truncation by bytes/characters | |
* | |
* E.g. paste this into a form field: | |
* "€€€€€.... 10....... 20....... 30....... 40....... 50....... 60....... 70....... 80......." | |
* | |
* If this is returned: "€€€€€.... 10....... 20...." you'll know the system is truncating to either | |
* 26 UTF-8 characters or 36 bytes (the five Euros comprise 15 bytes). | |
*/ |
<?php | |
elgg_register_plugin_hook_handler('creating', 'river', function ($h, $t, $v, $p) { | |
$time = time(); | |
// Bump "create" river item to top | |
// @todo should bump other action_types? | |
$dbprefix = elgg_get_config('dbprefix'); | |
update_data(" | |
UPDATE {$dbprefix}river |
<?php | |
/** | |
* This has been moved to a GitHub project: | |
* | |
* @link https://github.com/mrclay/elgg-url-sniffer | |
*/ |
<?php | |
namespace UFCOE; | |
/** | |
* Sniff the title of a web page by reading as few bytes as possible. | |
* | |
* Warning, this is blissfully unaware of character encodings so that it can be fast. It only returns a string | |
* if the markup appears ASCII compatible, but you could get back UTF-8, Windows-125*, ISO-8859-*, etc. | |
*/ |
<?php | |
namespace UFCOE; | |
/** | |
* Validate a Location HTTP header value. By default this allows | |
* most URLs that are in the same origin, but allows switching between HTTP/HTTPS. | |
* | |
* @todo tests, dummy! | |
*/ |