"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htdocs/invite.php" between
impresscms-1.4.2_rc.tar.gz and impresscms-1.4.2.tar.gz

About: ImpressCMS is a Content Management System for easily building and maintaining a dynamic web site (a fork of XOOPS).

invite.php  (impresscms-1.4.2_rc):invite.php  (impresscms-1.4.2)
skipping to change at line 39 skipping to change at line 39
include 'header.php'; include 'header.php';
$stop = ''; $stop = '';
if (!icms::$security->check()) { if (!icms::$security->check()) {
$stop .= implode('<br />', icms::$security->getErrors()) . "<br />"; $stop .= implode('<br />', icms::$security->getErrors()) . "<br />";
} }
$icmsCaptcha = icms_form_elements_captcha_Object::instance(); $icmsCaptcha = icms_form_elements_captcha_Object::instance();
if (! $icmsCaptcha->verify()) { if (! $icmsCaptcha->verify()) {
$stop .= $icmsCaptcha->getMessage() . '<br />'; $stop .= $icmsCaptcha->getMessage() . '<br />';
} }
if (!checkEmail($email)) { if (!icms_core_DataFilter::checkVar($email, 'email')) {
$stop .= _US_INVALIDMAIL . '<br />'; $stop .= _US_INVALIDMAIL . '<br />';
} }
if (empty($stop)) { if (empty($stop)) {
$invite_code = substr(md5(uniqid(mt_rand(), 1)), 0, 8); $invite_code = substr(md5(uniqid(mt_rand(), 1)), 0, 8);
$sql = sprintf('INSERT INTO ' . icms::$xoopsDB->prefix('i nvites') . ' $sql = sprintf('INSERT INTO ' . icms::$xoopsDB->prefix('i nvites') . '
(invite_code, from_id, in vite_to, invite_date, extra_info) VALUES (invite_code, from_id, in vite_to, invite_date, extra_info) VALUES
(%s, %d, %s, %d, %s)', (%s, %d, %s, %d, %s)',
icms::$xoopsDB->quoteStri ng(addslashes($invite_code)), icms::$xoopsDB->quoteStri ng(addslashes($invite_code)),
is_object(icms::$user) ? icms::$user->getVar('uid') : 0, is_object(icms::$user) ? icms::$user->getVar('uid') : 0,
icms::$xoopsDB->quoteStri ng(addslashes($email)), icms::$xoopsDB->quoteStri ng(addslashes($email)),
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)