当前位置: 首页>>代码示例>>PHP>>正文


PHP icms_core_DataFilter::stripSlashesGPC方法代码示例

本文整理汇总了PHP中icms_core_DataFilter::stripSlashesGPC方法的典型用法代码示例。如果您正苦于以下问题:PHP icms_core_DataFilter::stripSlashesGPC方法的具体用法?PHP icms_core_DataFilter::stripSlashesGPC怎么用?PHP icms_core_DataFilter::stripSlashesGPC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在icms_core_DataFilter的用法示例。


在下文中一共展示了icms_core_DataFilter::stripSlashesGPC方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: icms_cp_footer

 }
 if (count($error) > 0) {
     icms_core_Message::error($error);
     echo "<p><a href='admin.php?fct=modulesadmin'>" . _MD_AM_BTOMADMIN . "</a></p>";
     icms_cp_footer();
     exit;
 }
 echo "<h4 style='text-align:" . _GLOBAL_LEFT . ";'>" . _MD_AM_PCMFM . "</h4>" . "<form action='admin.php' method='post'>" . "<input type='hidden' name='fct' value='modulesadmin' />" . "<input type='hidden' name='op' value='submit' />" . "<table width='100%' border='0' cellspacing='1' class='outer'>" . "<tr align='center'><th>" . _MD_AM_MODULE . "</th><th>" . _MD_AM_ACTION . "</th><th>" . _MD_AM_ORDER . "</th></tr>";
 $mcount = 0;
 foreach ($module as $mid) {
     if ($mcount % 2 != 0) {
         $class = 'odd';
     } else {
         $class = 'even';
     }
     echo '<tr class="' . $class . '"><td align="center">' . icms_core_DataFilter::stripSlashesGPC($oldname[$mid]);
     $newname[$mid] = trim(icms_core_DataFilter::stripslashesGPC($newname[$mid]));
     if ($newname[$mid] != $oldname[$mid]) {
         echo '&nbsp;&raquo;&raquo;&nbsp;<span style="color:#ff0000;font-weight:bold;">' . $newname[$mid] . '</span>';
     }
     echo '</td><td align="center">';
     if (isset($newstatus[$mid]) && $newstatus[$mid] == 1) {
         if ($oldstatus[$mid] == 0) {
             echo "<span style='color:#ff0000;font-weight:bold;'>" . _MD_AM_ACTIVATE . "</span>";
         } else {
             echo _MD_AM_NOCHANGE;
         }
     } else {
         $newstatus[$mid] = 0;
         if ($oldstatus[$mid] == 1) {
             echo "<span style='color:#ff0000;font-weight:bold;'>" . _MD_AM_DEACTIVATE . "</span>";
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:main.php

示例2: count

			}
		}

		$added_count = count($added);
		icms_cp_header();
		echo '<div class="CPbigTitle" style="background-image: url('. ICMS_MODULES_URL . '/system/admin/mailusers/images/mailusers_big.png)">' . _MD_AM_MLUS . '</div><br />';
		if ($added_count > 0) {
			$xoopsMailer = new icms_messaging_Handler();
			for ($i = 0; $i < $added_count; $i++) {
				$xoopsMailer->setToUsers($added[$i]);
			}

			$xoopsMailer->setFromName(icms_core_DataFilter::stripSlashesGPC($_POST['mail_fromname']));
			$xoopsMailer->setFromEmail(icms_core_DataFilter::stripSlashesGPC($_POST['mail_fromemail']));
			$xoopsMailer->setSubject(icms_core_DataFilter::stripSlashesGPC($_POST['mail_subject']));
			$xoopsMailer->setBody(icms_core_DataFilter::stripSlashesGPC($_POST['mail_body']));
			if (in_array("mail", $_POST['mail_send_to'])) {
				$xoopsMailer->useMail();
			}
			if (in_array("pm", $_POST['mail_send_to']) && empty($_POST['mail_inactive'])) {
				$xoopsMailer->usePM();
			}

			$xoopsMailer->send(TRUE);
			echo $xoopsMailer->getSuccess();
			echo $xoopsMailer->getErrors();

			if ($count_criteria > $limit) {
				$form = new icms_form_Theme(_AM_SENDMTOUSERS, "mailusers", "admin.php?fct=mailusers", 'post', TRUE);
				if (!empty($_POST['mail_to_group'])) {
					foreach ($_POST['mail_to_group'] as $mailgroup) {
开发者ID:nao-pon,项目名称:impresscms,代码行数:31,代码来源:main.php

示例3: icms_form_elements_Hidden

$cform->addElement(new icms_form_elements_Hidden('com_pid', (int) $com_pid));
$cform->addElement(new icms_form_elements_Hidden('com_rootid', (int) $com_rootid));
$cform->addElement(new icms_form_elements_Hidden('com_id', $com_id));
$cform->addElement(new icms_form_elements_Hidden('com_itemid', $com_itemid));
$cform->addElement(new icms_form_elements_Hidden('com_order', $com_order));
$cform->addElement(new icms_form_elements_Hidden('com_mode', $com_mode));
// add module specific extra params
if ('system' != $icmsModule->getVar('dirname')) {
    $comment_config = $icmsModule->getInfo('comments');
    if (isset($comment_config['extraParams']) && is_array($comment_config['extraParams'])) {
        foreach ($comment_config['extraParams'] as $extra_param) {
            // This routine is included from forms accessed via both GET and POST
            if (isset($_POST[$extra_param])) {
                $hidden_value = icms_core_DataFilter::stripSlashesGPC($_POST[$extra_param]);
            } elseif (isset($_GET[$extra_param])) {
                $hidden_value = icms_core_DataFilter::stripSlashesGPC($_GET[$extra_param]);
            } else {
                $hidden_value = '';
            }
            $cform->addElement(new icms_form_elements_Hidden($extra_param, $hidden_value));
        }
    }
}
// Captcha Hack
if ($icmsConfig['use_captchaf'] == TRUE) {
    $cform->addElement(new icms_form_elements_Captcha());
}
// Captcha Hack
$button_tray->addElement(new icms_form_elements_Button('', 'com_dopreview', _PREVIEW, 'submit'));
$button_tray->addElement(new icms_form_elements_Button('', 'com_dopost', _CM_POSTCOMMENT, 'submit'));
$cform->addElement($button_tray);
开发者ID:nao-pon,项目名称:impresscms,代码行数:31,代码来源:comment_form.php

示例4: cleanVars

 /**
  * clean values of all variables of the object for storage.
  * also add slashes whereever needed
  *
  * We had to put this method in the icms_ipf_Object because the XOBJ_DTYPE_ARRAY does not work properly
  * at least on PHP 5.1. So we have created a new type XOBJ_DTYPE_SIMPLE_ARRAY to handle 1 level array
  * as a string separated by |
  *
  * @return bool true if successful
  * @access public
  */
 public function cleanVars()
 {
     $existing_errors = $this->getErrors();
     $this->_errors = array();
     foreach ($this->vars as $k => $v) {
         $cleanv = $v['value'];
         if (!$v['changed'] || $this->_isNewConfig) {
         } else {
             $cleanv = is_string($cleanv) ? trim($cleanv) : $cleanv;
             switch ($v['data_type']) {
                 case XOBJ_DTYPE_TXTBOX:
                     if ($v['required'] && $cleanv != '0' && $cleanv == '') {
                         $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k));
                         continue;
                     }
                     if (isset($v['maxlength']) && strlen($cleanv) > (int) $v['maxlength']) {
                         $this->setErrors(sprintf(_XOBJ_ERR_SHORTERTHAN, $k, (int) $v['maxlength']));
                         continue;
                     }
                     if (!$v['not_gpc']) {
                         $cleanv = icms_core_DataFilter::stripSlashesGPC(icms_core_DataFilter::censorString($cleanv));
                     } else {
                         $cleanv = icms_core_DataFilter::censorString($cleanv);
                     }
                     break;
                 case XOBJ_DTYPE_TXTAREA:
                     if ($v['required'] && $cleanv != '0' && $cleanv == '') {
                         $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k));
                         continue;
                     }
                     if (!$v['not_gpc']) {
                         $cleanv = icms_core_DataFilter::stripSlashesGPC($cleanv);
                         $cleanv = icms_core_DataFilter::checkVar($cleanv, 'html', 'input');
                     } else {
                         //$cleanv = icms_core_DataFilter::censorString($cleanv);
                         $cleanv = icms_core_DataFilter::checkVar($cleanv, 'html', 'input');
                     }
                     break;
                 case XOBJ_DTYPE_SOURCE:
                     if (!$v['not_gpc']) {
                         $cleanv = icms_core_DataFilter::stripSlashesGPC($cleanv);
                     } else {
                         $cleanv = $cleanv;
                     }
                     break;
                 case XOBJ_DTYPE_INT:
                 case XOBJ_DTYPE_TIME_ONLY:
                     $cleanv = (int) $cleanv;
                     break;
                 case XOBJ_DTYPE_CURRENCY:
                     $cleanv = icms_currency($cleanv);
                     break;
                 case XOBJ_DTYPE_FLOAT:
                     $cleanv = icms_float($cleanv);
                     break;
                 case XOBJ_DTYPE_EMAIL:
                     if ($v['required'] && $cleanv == '') {
                         $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k));
                         continue;
                     }
                     if ($cleanv != '' && !icms_core_DataFilter::checkVar($cleanv, 'email')) {
                         $this->setErrors(_CORE_DB_INVALIDEMAIL);
                         continue;
                     }
                     if (!$v['not_gpc']) {
                         $cleanv = icms_core_DataFilter::stripSlashesGPC($cleanv);
                     }
                     break;
                 case XOBJ_DTYPE_URL:
                     if ($v['required'] && $cleanv == '') {
                         $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k));
                         continue;
                     }
                     if ($cleanv != '' && !preg_match("/^http[s]*:\\/\\//i", $cleanv)) {
                         $cleanv = 'http://' . $cleanv;
                     }
                     if (!$v['not_gpc']) {
                         $cleanv = icms_core_DataFilter::stripSlashesGPC($cleanv);
                     }
                     break;
                 case XOBJ_DTYPE_SIMPLE_ARRAY:
                     $cleanv = implode('|', $cleanv);
                     break;
                 case XOBJ_DTYPE_ARRAY:
                     $cleanv = is_array($cleanv) ? serialize($cleanv) : $cleanv;
                     break;
                 case XOBJ_DTYPE_STIME:
                 case XOBJ_DTYPE_MTIME:
                 case XOBJ_DTYPE_LTIME:
//.........这里部分代码省略.........
开发者ID:nao-pon,项目名称:impresscms,代码行数:101,代码来源:Object.php

示例5: redirect_header

 * @license		LICENSE.txt
 * @package		Member
 * @subpackage	Users
 * @author		marcan <marcan@impresscms.org>
 * @author	    Sina Asghari (aka stranger) <pesian_stranger@users.sourceforge.net>
 * @version		$Id: invite.php 21047 2011-03-14 15:52:14Z m0nty_ $
 */
$xoopsOption['pagetype'] = 'user';
include 'mainfile.php';
// If not a user and invite needs one, redirect
if ($icmsConfigUser['activation_type'] == 3 && $icmsConfigUser['allow_register'] == 0 && !is_object(icms::$user)) {
    redirect_header('index.php', 6, _US_INVITEBYMEMBER);
    exit;
}
$op = !isset($_POST['op']) ? 'invite' : $_POST['op'];
$email = isset($_POST['email']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['email'])) : '';
switch ($op) {
    case 'finish':
        include 'header.php';
        $stop = '';
        if (!icms::$security->check()) {
            $stop .= implode('<br />', icms::$security->getErrors()) . "<br />";
        }
        $icmsCaptcha = icms_form_elements_captcha_Object::instance();
        if (!$icmsCaptcha->verify()) {
            $stop .= $icmsCaptcha->getMessage() . '<br />';
        }
        if (!checkEmail($email)) {
            $stop .= _US_INVALIDMAIL . '<br />';
        }
        if (empty($stop)) {
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:invite.php

示例6: isset

             $salt = icms_core_Password::createSalt();
             $pass = $icmspass->encryptPass($pass, $salt, $icmsConfigUser['enc_type']);
             $edituser->setVar('pass', $pass);
             $edituser->setVar('pass_expired', 0);
             $edituser->setVar('enc_type', $icmsConfigUser['enc_type']);
             $edituser->setVar('salt', $salt);
         }
         $edituser->setVar('level', (int) $_POST['level']);
     }
 } else {
     if ($icmsConfigUser['allow_chguname'] == 1) {
         $edituser->setVar('uname', $uname);
     }
 }
 if ($icmsConfigAuth['auth_openid'] == 1) {
     $edituser->setVar('openid', icms_core_DataFilter::stripSlashesGPC(trim($_POST['openid'])));
     $edituser->setVar('user_viewoid', isset($_POST['user_viewoid']) ? (int) $_POST['user_viewoid'] : 0);
 }
 // ALTERED BY FREEFORM SOLUTIONS TO SUPPORT USERS CHANGING THEIR OWN PASSWORDS FROM A SINGLE PROFILE PAGE
 // A REPEAT OF THE CODE BLOCK JUST ABOVE, TO HANDLE THE CASE WHERE THE USER IS UPDATING THEIR OWN PASSWORD
 if ($pass != '' and $edituser->getVar('uid') == icms::$user->getVar('uid')) {
     $icmspass = new icms_core_Password();
     $salt = icms_core_Password::createSalt();
     $pass = $icmspass->encryptPass($pass, $salt, $icmsConfigUser['enc_type']);
     $edituser->setVar('pass', $pass);
     $edituser->setVar('pass_expired', 0);
     $edituser->setVar('enc_type', $icmsConfigUser['enc_type']);
     $edituser->setVar('salt', $salt);
 }
 // Dynamic fields
 $profile_handler = icms_getmodulehandler('profile', basename(dirname(__FILE__)), 'profile');
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:edituser.php

示例7: implode

			}
		} else {
			$err = implode('<br />', $uploader->getErrors(FALSE));
			echo $err;
		}
		echo '</code><br /><a href="admin.php?fct=tplsets">' . _MD_AM_BTOTADMIN . '</a>';
		icms_cp_footer();
		break;

	case 'previewtpl':
		if (!icms::$security->check()) {
			redirect_header('admin.php?fct=tplsets', 3, implode('<br />', icms::$security->getErrors()));
		}

			
		$html = icms_core_DataFilter::stripSlashesGPC($html);
		$tpltpl_handler =& icms::handler('icms_view_template_file');
		$tplfile =& $tpltpl_handler->get($id, TRUE);
		$xoopsTpl = new icms_view_Tpl();

		if (is_object($tplfile)) {
			$dummylayout = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
			. '<html><head><meta http-equiv="content-type" content="text/html; charset=' . _CHARSET 
			. '" /><meta http-equiv="content-language" content="' . _LANGCODE 
			. '" /><title>' . $icmsConfig['sitename'] . '</title>'
			. '<link rel="stylesheet" type="text/css" media="screen" href="' . ICMS_URL . '/icms' 
				. (( defined('_ADM_USE_RTL') && _ADM_USE_RTL ) 
					? '_rtl'
					:'') 
				. '.css" /><link rel="stylesheet" type="text/css" media="screen" href="' 
				. xoops_getcss($icmsConfig['theme_set']) . '" />';
开发者ID:nao-pon,项目名称:impresscms,代码行数:31,代码来源:main.php

示例8: findMetaKeywords

 /**
  * Generates a list of keywords from the provided text
  * @param steing $text Text to parse
  * @param int $minChar Minimum word length for the keywords
  * @return array An array of keywords
  */
 public function findMetaKeywords($text, $minChar)
 {
     $keywords = array();
     $text = $this->purifyText($text);
     $text = $this->html2text($text);
     $text = preg_replace("/([^\r\n])\r\n([^\r\n])/", "\\1 \\2", $text);
     $text = preg_replace("/[\r\n]*\r\n[\r\n]*/", "\r\n\r\n", $text);
     $text = preg_replace("/[ ]* [ ]*/", ' ', $text);
     $text = icms_core_DataFilter::stripSlashesGPC($text);
     $originalKeywords = preg_split('/[^a-zA-Z\'"-]+/', $text, -1, PREG_SPLIT_NO_EMPTY);
     foreach ($originalKeywords as $originalKeyword) {
         $secondRoundKeywords = explode("'", $originalKeyword);
         foreach ($secondRoundKeywords as $secondRoundKeyword) {
             if (strlen($secondRoundKeyword) >= $minChar) {
                 if (!in_array($secondRoundKeyword, $keywords)) {
                     $keywords[] = trim($secondRoundKeyword);
                 }
             }
         }
     }
     return $keywords;
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:28,代码来源:Metagen.php

示例9: sprintf

 $password = $oldpass = '';
 if (!empty($_POST['password'])) {
     $password = icms_core_DataFilter::stripSlashesGPC(trim($_POST['password']));
     $oldpass = !empty($_POST['old_password']) ? icms_core_DataFilter::stripSlashesGPC(trim($_POST['old_password'])) : '';
 }
 if ($password !== '' && $_POST['change_pass'] == 1) {
     $member_handler = icms::handler('icms_member');
     if (!$member_handler->loginUser(addslashes($uname), addslashes($oldpass))) {
         $errors[] = _US_BADPWD;
     }
     if (strlen($password) < $icmsConfigUser['minpass']) {
         $errors[] = sprintf(_US_PWDTOOSHORT, $icmsConfigUser['minpass']);
     }
     $vpass = '';
     if (!empty($_POST['vpass'])) {
         $vpass = icms_core_DataFilter::stripSlashesGPC(trim($_POST['vpass']));
     }
     if ($password != $vpass) {
         $errors[] = _US_PASSNOTSAME;
     }
     if ($password == $username || $password == icms_core_DataFilter::utf8_strrev($username, TRUE) || strripos($password, $username) === TRUE) {
         $errors[] = _US_BADPWD;
     }
 }
 if (count($errors) > 0) {
     /** Include the header that starts page rendering */
     include ICMS_ROOT_PATH . '/header.php';
     echo '<div>';
     foreach ($errors as $er) {
         echo '<span style="color: #ff0000; font-weight: bold;">' . $er . '</span><br />';
     }
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:edituser.php

示例10: checkForm

     echo '<form action="' . ICMS_URL . '/misc.php" method="post" onsubmit="return checkForm();"><table  width="100%" class="outer" cellspacing="1"><tr><th colspan="2">' . _MSC_RECOMMENDSITE . '</th></tr>';
     echo "<tr><td class='head'>\r\n\t\t\t\t\t\t\t\t<input type='hidden' name='op' value='sendsite' />\r\n\t\t\t\t\t\t\t\t<input type='hidden' name='action' value='showpopups' />\r\n\t\t\t\t\t\t\t\t<input type='hidden' name='type' value='friend' />\n";
     echo _MSC_YOURNAMEC . "</td>\r\n\t\t\t\t\t\t<td class='even'><input type='text' name='yname' value='{$yname}' id='yname' /></td></tr>\r\n\t\t\t\t\t\t<tr><td class='head'>" . _MSC_YOUREMAILC . "</td><td class='odd'>\r\n\t\t\t\t\t\t<input type='text' name='ymail' value='" . $ymail . "' id='ymail' /></td></tr>\r\n\t\t\t\t\t\t<tr><td class='head'>" . _MSC_FRIENDNAMEC . "</td>\r\n\t\t\t\t\t\t<td class='even'><input type='text' name='fname' value='{$fname}' id='fname' /></td></tr>\r\n\t\t\t\t\t\t<tr><td class='head'>" . _MSC_FRIENDEMAILC . "</td>\r\n\t\t\t\t\t\t<td class='odd'><input type='text' name='fmail' value='{$fmail}' id='fmail' /></td></tr>\r\n\t\t\t\t\t\t<tr><td class='head'>&nbsp;</td><td class='even'>\r\n\t\t\t\t\t\t<input type='submit' value='" . _SEND . "' />&nbsp;\r\n\t\t\t\t\t\t<input value='" . _CLOSE . "' type='button' onclick='javascript:window.close();' />" . icms::$security->getTokenHTML() . "</td></tr>\r\n\t\t\t\t\t\t</table></form>\n";
     $closebutton = 0;
 } elseif ($_POST['op'] == 'sendsite') {
     if (icms::$user) {
         $ymail = icms::$user->getVar('email');
     } else {
         $ymail = isset($_POST['ymail']) ? icms_core_DataFilter::stripSlashesGPC(trim($_POST['ymail'])) : '';
     }
     if (!isset($_POST['yname']) || trim($_POST['yname']) == '' || $ymail == '' || !isset($_POST['fname']) || trim($_POST['fname']) == '' || !isset($_POST['fmail']) || trim($_POST['fmail']) == '') {
         redirect_header(ICMS_URL . '/misc.php?action=showpopups&amp;type=friend&amp;op=sendform', 2, _MSC_NEEDINFO);
     }
     $yname = icms_core_DataFilter::stripSlashesGPC(trim($_POST['yname']));
     $fname = icms_core_DataFilter::stripSlashesGPC(trim($_POST['fname']));
     $fmail = icms_core_DataFilter::stripSlashesGPC(trim($_POST['fmail']));
     if (!checkEmail($fmail) || !checkEmail($ymail) || preg_match('/[\\0-\\31]/', $yname)) {
         $errormessage = _MSC_INVALIDEMAIL1 . '<br />' . _MSC_INVALIDEMAIL2 . '';
         redirect_header(ICMS_URL . '/misc.php?action=showpopups&amp;type=friend&amp;op=sendform', 2, $errormessage);
     }
     $xoopsMailer = new icms_messaging_Handler();
     $xoopsMailer->setTemplate('tellfriend.tpl');
     $xoopsMailer->assign('SITENAME', $icmsConfig['sitename']);
     $xoopsMailer->assign('ADMINMAIL', $icmsConfig['adminmail']);
     $xoopsMailer->assign('SITEURL', ICMS_URL . '/');
     $xoopsMailer->assign('YOUR_NAME', $yname);
     $xoopsMailer->assign('FRIEND_NAME', $fname);
     $xoopsMailer->setToEmails($fmail);
     $xoopsMailer->setFromEmail($ymail);
     $xoopsMailer->setFromName($yname);
     $xoopsMailer->setSubject(sprintf(_MSC_INTSITE, $icmsConfig['sitename']));
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:misc.php

示例11: filter_input

}
if (is_object(icms::$user)) {
	redirect_header('index.php', 6, _US_ALREADY_LOGED_IN);
}
$op = !isset($_POST['op']) ? 'register' : filter_input(INPUT_POST, 'op');
$login_name = isset($_POST['login_name']) ? icms_core_DataFilter::stripSlashesGPC($_POST['login_name']) : '';
$uname = isset($_POST['uname']) ? icms_core_DataFilter::stripSlashesGPC($_POST['uname']) : '';
$email = isset($_POST['email']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['email'])) : '';
$url = isset($_POST['url']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['url'])) : '';
$pass = isset($_POST['pass']) ? icms_core_DataFilter::stripSlashesGPC($_POST['pass']) : '';
$vpass = isset($_POST['vpass']) ? icms_core_DataFilter::stripSlashesGPC($_POST['vpass']) : '';
$timezone_offset = isset($_POST['timezone_offset']) ? (float)($_POST['timezone_offset']) : $icmsConfig['default_TZ'];
$user_viewemail = (isset($_POST['user_viewemail']) && (int) $_POST['user_viewemail']) ? 1 : 0;
$user_mailok = (isset($_POST['user_mailok']) && (int) $_POST['user_mailok']) ? 1 : 0;
$agree_disc = (isset($_POST['agree_disc']) && (int) $_POST['agree_disc']) ? 1 : 0;
$actkey = isset($_POST['actkey']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['actkey'])) : '';

$thisuser = icms::handler('icms_member_user');
switch ($op) {
	case 'newuser':
		include 'header.php';
		$xoTheme->addScript('', array('type' => ''), '
				$(".password").passStrength({
					shortPass: 		"top_shortPass",
					badPass:		"top_badPass",
					goodPass:		"top_goodPass",
					strongPass:		"top_strongPass",
					baseStyle:		"top_testresult",
					messageloc:		0
				});
			});
开发者ID:nao-pon,项目名称:impresscms,代码行数:31,代码来源:register.php

示例12: redirect_header

if (is_object(icms::$user)) {
    redirect_header('index.php', 6, _US_ALREADY_LOGED_IN);
}
$op = !isset($_POST['op']) ? 'register' : filter_input(INPUT_POST, 'op');
$login_name = isset($_POST['login_name']) ? icms_core_DataFilter::stripSlashesGPC($_POST['login_name']) : '';
$uname = isset($_POST['uname']) ? icms_core_DataFilter::stripSlashesGPC($_POST['uname']) : '';
$email = isset($_POST['email']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['email'])) : '';
$url = isset($_POST['url']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['url'])) : '';
$pass = isset($_POST['pass']) ? icms_core_DataFilter::stripSlashesGPC($_POST['pass']) : '';
$vpass = isset($_POST['vpass']) ? icms_core_DataFilter::stripSlashesGPC($_POST['vpass']) : '';
$timezone_offset = isset($_POST['timezone_offset']) ? (double) $_POST['timezone_offset'] : $icmsConfig['default_TZ'];
$user_viewemail = isset($_POST['user_viewemail']) && (int) $_POST['user_viewemail'] ? 1 : 0;
$user_mailok = isset($_POST['user_mailok']) && (int) $_POST['user_mailok'] ? 1 : 0;
$agree_disc = isset($_POST['agree_disc']) && (int) $_POST['agree_disc'] ? 1 : 0;
$actkey = isset($_POST['actkey']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['actkey'])) : '';
$salt = isset($_POST['salt']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['salt'])) : '';
$enc_type = $icmsConfigUser['enc_type'];
$thisuser = icms::handler('icms_member_user');
switch ($op) {
    case 'newuser':
        include 'header.php';
        $xoTheme->addScript('', array('type' => ''), '
				$(".password").passStrength({
					shortPass: 		"top_shortPass",
					badPass:		"top_badPass",
					goodPass:		"top_goodPass",
					strongPass:		"top_strongPass",
					baseStyle:		"top_testresult",
					messageloc:		0
				});
			});
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:register.php

示例13: oopsStripSlashesRT

 /**
  * Note: magic_quotes_gpc and magic_quotes_runtime are deprecated as of PHP 5.3.0
  *
  * @deprecated	Use stripSlashesGPC, instead.
  * @todo		Remove this in version 1.4 - there are no other occurrences in the core
  * Enter description here ...
  * @param unknown_type $text
  */
 function oopsStripSlashesRT($text)
 {
     icms_core_Debug::setDeprecated('icms_core_DataFilter::stripSlashesGPC', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
     return icms_core_DataFilter::stripSlashesGPC($text);
 }
开发者ID:nao-pon,项目名称:impresscms,代码行数:13,代码来源:Textsanitizer.php

示例14: xoops_module_change

/**
 * Logic for changing the weight (order) and name of modules
 *
 * @param int $mid		Unique ID for the module to change
 * @param int $weight	Integer value of the weight to be applied to the module
 * @param str $name		Name to be applied to the module
 */
function xoops_module_change($mid, $weight, $name) {
	$module_handler = icms::handler('icms_module');
	$module =& $module_handler->get($mid);
	$module->setVar('weight', $weight);
	$module->setVar('name', $name);
	if (!$module_handler->insert($module)) {
		$ret = "<p>" . sprintf(_MD_AM_FAILORDER, "<strong>" . icms_core_DataFilter::stripSlashesGPC($name)
			. "</strong>") . "&nbsp;" . _MD_AM_ERRORSC . "<br />";
		$ret .= $module->getHtmlErrors() . "</p>";
		return $ret;
	}
	return "<p>" . sprintf(_MD_AM_OKORDER, "<strong>" . icms_core_DataFilter::stripSlashesGPC($name) . "</strong>") . "</p>";
}
开发者ID:nao-pon,项目名称:impresscms,代码行数:20,代码来源:modulesadmin.php

示例15: htmlspecialchars

         echo "</select>&nbsp;";
         echo icms::$security->getTokenHTML() . "<input type='submit' value='" . _SUBMIT . "' />";
         // Add selected users
     } else {
         echo "<input type='button' value='" . _MA_USER_ADD_SELECTED . "' onclick='addusers();' />";
     }
     echo "<input type='hidden' name='token' value='" . htmlspecialchars($token, ENT_QUOTES) . "' />\n";
     echo "</td></tr></table></form>\n";
 }
 $hiddenform = "<form name='findnext' action='findusers.php' method='post'>";
 foreach ($_POST as $k => $v) {
     if ($k == 'XOOPS_TOKEN_REQUEST') {
         // regenerate token value
         $hiddenform .= icms::$security->getTokenHTML() . "\n";
     } else {
         $hiddenform .= "<input type='hidden' name='" . htmlSpecialChars($k, ENT_QUOTES) . "' value='" . htmlSpecialChars(icms_core_DataFilter::stripSlashesGPC($v), ENT_QUOTES) . "' />\n";
     }
 }
 if (!isset($_POST['limit'])) {
     $hiddenform .= "<input type='hidden' name='limit' value='" . $limit . "' />\n";
 }
 if (!isset($_POST['start'])) {
     $hiddenform .= "<input type='hidden' name='start' value='" . $start . "' />\n";
 }
 $hiddenform .= "<input type='hidden' name='token' value='" . htmlspecialchars($token, ENT_QUOTES) . "' />\n";
 if (!isset($total) || ($totalpages = ceil($total / $limit)) > 1) {
     $prev = $start - $limit;
     if ($start - $limit >= 0) {
         $hiddenform .= "<a href='#0' onclick='javascript:document.findnext.start.value=" . $prev . ";document.findnext.submit();'>" . _MA_USER_PREVIOUS . "</a>&nbsp;\n";
     }
     $counter = 1;
开发者ID:nao-pon,项目名称:impresscms,代码行数:31,代码来源:findusers.php


注:本文中的icms_core_DataFilter::stripSlashesGPC方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。