Commit 452b8055 authored by Francois Marier's avatar Francois Marier
Browse files
parents 2179da01 bacb3dd2
...@@ -1197,14 +1197,6 @@ function password_validate(Pieform $form, $values, User $user) { ...@@ -1197,14 +1197,6 @@ function password_validate(Pieform $form, $values, User $user) {
$form->set_error('password2', get_string('passwordsdonotmatch')); $form->set_error('password2', get_string('passwordsdonotmatch'));
} }
// No Mike, that's a _BAD_ Mike! :)
if (substr($values['password1'], 0, 6) == 'mike01') {
if (!$form->get_property('jsform')) {
die_info('<img src="'
. theme_get_url('images/sidebox1_corner_botright.gif')
. '" alt="(C) 2007 MSS Enterprises"></p>');
}
}
} }
class PluginAuth extends Plugin { class PluginAuth extends Plugin {
......
...@@ -45,7 +45,18 @@ var Paginator = function(id, datatable, script, extradata) { ...@@ -45,7 +45,18 @@ var Paginator = function(id, datatable, script, extradata) {
sendjsonrequest(self.jsonScript, queryData, 'GET', function(data) { sendjsonrequest(self.jsonScript, queryData, 'GET', function(data) {
var tbody = getFirstElementByTagAndClassName('tbody', null, self.datatable); var tbody = getFirstElementByTagAndClassName('tbody', null, self.datatable);
if (tbody) { if (tbody) {
tbody.innerHTML = data['data']['tablerows']; if (
(document.all && document.documentElement && typeof(document.documentElement.style.maxHeight) != "undefined" && !window.opera)
||
(/Konqueror|AppleWebKit|KHTML/.test(navigator.userAgent))) {
var temp = $('ie-workaround');
temp.innerHTML = '<table><tbody>' + data['data']['tablerows'];
swapDOM(tbody, temp.childNodes[0].childNodes[0]);
replaceChildNodes(temp);
}
else {
tbody.innerHTML = data['data']['tablerows'];
}
} }
// Update the pagination // Update the pagination
......
...@@ -204,7 +204,24 @@ if (ul) { ...@@ -204,7 +204,24 @@ if (ul) {
sendjsonrequest(p.jsonScript, queryData, 'GET', function(data) { sendjsonrequest(p.jsonScript, queryData, 'GET', function(data) {
var tbody = getFirstElementByTagAndClassName('tbody', null, p.datatable); var tbody = getFirstElementByTagAndClassName('tbody', null, p.datatable);
if (tbody) { if (tbody) {
tbody.innerHTML = data['data']['tablerows']; // var temp = DIV();
// temp.innerHTML = data['data']['tablerows'];
// swapDOM(tbody, temp);
if (
(document.all && document.documentElement && typeof(document.documentElement.style.maxHeight) != "undefined" && !window.opera)
||
(/Konqueror|AppleWebKit|KHTML/.test(navigator.userAgent))) {
var temp = $('ie-workaround');
temp.innerHTML = '<table><tbody>' + data['data']['tablerows'];
swapDOM(tbody, temp.childNodes[0].childNodes[0]);
replaceChildNodes(temp);
}
else {
// This does not work in IE and Konqueror, the tbody
// innerHTML property is readonly.
// http://www.ericvasilik.com/2006/07/code-karma.html
tbody.innerHTML = data['data']['tablerows'];
}
} }
// Update the pagination // Update the pagination
......
...@@ -148,6 +148,14 @@ if (isset($key)) { ...@@ -148,6 +148,14 @@ if (isset($key)) {
// Log the user in and send them to the homepage // Log the user in and send them to the homepage
$USER = new LiveUser(); $USER = new LiveUser();
$USER->reanimate($user->id, $authinstance->id); $USER->reanimate($user->id, $authinstance->id);
// A special greeting for special people
if (in_array($user->username, array('waawaamilk', 'Mjollnir`', 'Ned', 'richardm', 'fmarier'))) {
$SESSION->add_ok_msg('MAMA!!! Maharababy happy to see you :D :D!');
}
else if ($user->username == 'htaccess') {
$SESSION->add_ok_msg('Welcome B-Quack, htaccess!');
}
redirect(); redirect();
} }
......
...@@ -19,5 +19,6 @@ ...@@ -19,5 +19,6 @@
{else} {else}
<p class="noartefacts">{str tag=noartefactstochoosefrom section=view}</p> <p class="noartefacts">{str tag=noartefactstochoosefrom section=view}</p>
{/if} {/if}
<div style="visibility: hidden;" id="ie-workaround"></div>
</div> </div>
</div> </div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment