"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htdocs/misc.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).

misc.php  (impresscms-1.4.2_rc):misc.php  (impresscms-1.4.2)
skipping to change at line 201 skipping to change at line 201
$ymail = isset($ymail) ? icms_cor e_DataFilter::stripSlashesGPC(trim($ymail)) : ''; $ymail = isset($ymail) ? icms_cor e_DataFilter::stripSlashesGPC(trim($ymail)) : '';
} }
if (!isset($yname) || trim($yname) == '' || $ymail == '' if (!isset($yname) || trim($yname) == '' || $ymail == ''
|| !isset($fname) || trim($fname) == '' || !isset($fname) || trim($fname) == ''
|| !isset($fmail) || trim($fmail) == '') { || !isset($fmail) || trim($fmail) == '') {
redirect_header(ICMS_URL.'/misc.p hp?action=showpopups&type=friend&op=sendform',2,_MSC_NEEDINFO); redirect_header(ICMS_URL.'/misc.p hp?action=showpopups&type=friend&op=sendform',2,_MSC_NEEDINFO);
} }
$yname = icms_core_DataFilter::stripSlash esGPC(trim($_POST['yname'])); $yname = icms_core_DataFilter::stripSlash esGPC(trim($_POST['yname']));
$fname = icms_core_DataFilter::stripSlash esGPC(trim($_POST['fname'])); $fname = icms_core_DataFilter::stripSlash esGPC(trim($_POST['fname']));
$fmail = icms_core_DataFilter::stripSlash esGPC(trim($_POST['fmail'])); $fmail = icms_core_DataFilter::stripSlash esGPC(trim($_POST['fmail']));
if (!checkEmail($fmail) || !checkEmail($y mail) || preg_match('/[\\0-\\31]/', $yname)) { if (!icms_core_DataFilter::checkVar($fmai l, 'email') || !icms_core_DataFilter::checkVar($ymail, 'email') || preg_match('/ [\\0-\\31]/', $yname)) {
$errormessage = _MSC_INVALIDEMAIL 1.'<br />'._MSC_INVALIDEMAIL2.''; $errormessage = _MSC_INVALIDEMAIL 1.'<br />'._MSC_INVALIDEMAIL2.'';
redirect_header(ICMS_URL.'/misc.p hp?action=showpopups&amp;type=friend&amp;op=sendform',2,$errormessage); redirect_header(ICMS_URL.'/misc.p hp?action=showpopups&amp;type=friend&amp;op=sendform',2,$errormessage);
} }
$xoopsMailer = new icms_messaging_Handler (); $xoopsMailer = new icms_messaging_Handler ();
$xoopsMailer->setTemplate('tellfriend.tpl '); $xoopsMailer->setTemplate('tellfriend.tpl ');
$xoopsMailer->assign('SITENAME', $icmsCon fig['sitename']); $xoopsMailer->assign('SITENAME', $icmsCon fig['sitename']);
$xoopsMailer->assign('ADMINMAIL', $icmsCo nfig['adminmail']); $xoopsMailer->assign('ADMINMAIL', $icmsCo nfig['adminmail']);
$xoopsMailer->assign('SITEURL', ICMS_URL. '/'); $xoopsMailer->assign('SITEURL', ICMS_URL. '/');
$xoopsMailer->assign('YOUR_NAME', $yname) ; $xoopsMailer->assign('YOUR_NAME', $yname) ;
$xoopsMailer->assign('FRIEND_NAME', $fnam e); $xoopsMailer->assign('FRIEND_NAME', $fnam e);
 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)