diff -r dc08c70ca550 -r e2cb5f1432c8 install.php
--- a/install.php Sun Dec 02 15:27:21 2007 -0500
+++ b/install.php Sun Dec 02 16:00:10 2007 -0500
@@ -338,7 +338,7 @@
if ( $act_get )
return $decrypted_pass;
- $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+ $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
if ( !empty($_POST['crypt_data']) )
{
@@ -368,7 +368,7 @@
if ( $act_get )
return $key;
- $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+ $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
$key = $aes->gen_readymade_key();
return true;
}
@@ -381,7 +381,7 @@
$admin_pass = stg_decrypt_admin_pass(true);
$key = stg_generate_aes_key(true);
- $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+ $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
$key = $aes->hextostring($key);
$admin_pass = $aes->encrypt($admin_pass, $key, ENC_HEX);
@@ -461,7 +461,7 @@
{
$admin_pass = stg_decrypt_admin_pass(true);
$key = stg_generate_aes_key(true);
- $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+ $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
$key = $aes->hextostring($key);
$admin_pass = $aes->encrypt($admin_pass, $key, ENC_HEX);
$admin_user = mysql_real_escape_string($_POST['admin_user']);
@@ -826,6 +826,10 @@
$title = $lang->get('pophelp_admin_embed_php_title');
$content = $lang->get('pophelp_admin_embed_php_body');
break;
+ case 'url_schemes':
+ $title = $lang->get('pophelp_url_schemes_title');
+ $content = $lang->get('pophelp_url_schemes_body');
+ break;
default:
$title = 'Invalid topic';
$content = 'Invalid help topic.';
@@ -1021,6 +1025,7 @@
get('sysreqs_req_php'), $lang->get('sysreqs_req_desc_php') );
+ run_test('return version_compare(\'5.2.0\', PHP_VERSION, \'<\');', $lang->get('sysreqs_req_php5'), $lang->get('sysreqs_req_desc_php5'), true);
run_test('return function_exists(\'mysql_connect\');', $lang->get('sysreqs_req_mysql'), $lang->get('sysreqs_req_desc_mysql') );
run_test('return @ini_get(\'file_uploads\');', $lang->get('sysreqs_req_uploads'), $lang->get('sysreqs_req_desc_uploads') );
run_test('return is_apache();', $lang->get('sysreqs_req_apache'), $lang->get('sysreqs_req_desc_apache'), true);
@@ -1524,7 +1529,8 @@
name="urlscheme" value="ugly" id="ugly" />
name="urlscheme" value="short" id="short" />
-
+
+ get('website_field_urlscheme_helplink'); ?>
|
@@ -1554,7 +1560,7 @@
}
unset($_POST['_cont']);
require('config.new.php');
- $aes = new AESCrypt(AES_BITS, AES_BLOCKSIZE);
+ $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE);
if ( isset($crypto_key) )
{
$cryptkey = $crypto_key;
@@ -1579,7 +1585,7 @@
{
var frm = document.forms.login;
ret = true;
- if ( frm.admin_user.value.match(/^([A-z0-9 \\-\\.]+)$/) && !frm.admin_user.value.match(/^(?:(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$/) && frm.admin_user.value.toLowerCase() != \'anonymous\' )
+ if ( frm.admin_user.value.match(/^([^<>&\?\'"%\/]+)$/) && !frm.admin_user.value.match(/^(?:(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$/) && frm.admin_user.value.toLowerCase() != \'anonymous\' )
{
document.getElementById(\'s_user\').src = \'images/good.gif\';
}
@@ -1597,7 +1603,7 @@
document.getElementById(\'s_password\').src = \'images/bad.gif\';
ret = false;
}
- if(frm.admin_email.value.match(/^(?:[\\w\\d]+\\.?)+@(?:(?:[\\w\\d]\\-?)+\\.)+\\w{2,4}$/))
+ if(frm.admin_email.value.match(/^(?:[\\w\\d_-]+\\.?)+@(?:(?:[\\w\\d-]\\-?)+\\.)+\\w{2,4}$/))
{
document.getElementById(\'s_email\').src = \'images/good.gif\';
}