{
$page->changeTpl('platal/changeLog.tpl');
- $clog = htmlentities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
+ $clog = pl_entities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
+ // url catch only (not all wiki syntax)
+ $clog = preg_replace(array(
+ '/((?:https?|ftp):\/\/(?:\.*,*[\w@~%$£µ&i#\-+=_\/\?;])*)/ui',
+ '/(\s|^)www\.((?:\.*,*[\w@~%$£µ&i#\-+=_\/\?;])*)/iu',
+ '/(?:mailto:)?([a-z0-9.\-+_]+@([\-.+_]?[a-z0-9])+)/i'),
+ array(
+ '<a href="\\0">\\0</a>',
+ '\\1<a href="http://www.\\2">www.\\2</a>',
+ '<a href="mailto:\\0">\\0</a>'),
+ $clog);
$clog = preg_replace('!(#[0-9]+(,[0-9]+)*)!e', 'bugize("\1")', $clog);
$clog = preg_replace('!vim:.*$!', '', $clog);
$page->assign('ChangeLog', $clog);
$_SESSION['password'] = $password = Post::v('response2');
XDB::execute('UPDATE auth_user_md5
- SET password={?}
- WHERE user_id={?}', $password,
- S::v('uid'));
+ SET password={?}
+ WHERE user_id={?}', $password,
+ S::v('uid'));
$log =& S::v('log');
$log->log('passwd', '');