# HG changeset patch
# User Dan
# Date 1183863988 14400
# Node ID 84b56303cab5dd39f66c592801fe965c2ca1b7fe
# Parent 3dea509d88ae1d1399a52ca2f5f43461d2a3dc4a
Bugfixes: Login system properly handles blank password situation (returns ""); fading button now works right with relative URLs
diff -r 3dea509d88ae -r 84b56303cab5 includes/rijndael.php
--- a/includes/rijndael.php Sat Jul 07 22:54:20 2007 -0400
+++ b/includes/rijndael.php Sat Jul 07 23:06:28 2007 -0400
@@ -744,6 +744,8 @@
function encrypt($text, $key, $return_encoding = ENC_HEX)
{
+ if ( $text == '' )
+ return '';
if ( $this->mcrypt && $this->blockSizeInBits == mcrypt_module_get_algo_block_size(eval('return MCRYPT_RIJNDAEL_'.$this->keySizeInBits.';')) )
{
$iv_size = mcrypt_get_iv_size($this->mcrypt, MCRYPT_MODE_ECB);
@@ -800,6 +802,8 @@
function decrypt($text, $key, $input_encoding = ENC_HEX)
{
+ if ( $text == '' )
+ return '';
switch($input_encoding)
{
case ENC_BINARY:
@@ -997,7 +1001,8 @@
}
function encrypt($str, $key) {
- if ($str == "") {
+ if ($str == "")
+ {
return "";
}
$v = $this->str2long($str, true);
diff -r 3dea509d88ae -r 84b56303cab5 includes/template.php
--- a/includes/template.php Sat Jul 07 22:54:20 2007 -0400
+++ b/includes/template.php Sat Jul 07 23:06:28 2007 -0400
@@ -28,12 +28,7 @@
* @var string
*/
- var $fading_button = '
-
-
- ';
+ var $fading_button = '';
function __construct()
{
@@ -47,6 +42,13 @@
$this->plugin_blocks = Array();
$this->theme_loaded = false;
+ $fading_button = '
+
+
+ ';
+
$this->theme_list = Array();
$this->named_theme_list = Array();
$e = $db->sql_query('SELECT theme_id,theme_name,enabled,default_style FROM '.table_prefix.'themes WHERE enabled=1 ORDER BY theme_order;');