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


PHP jb_escape_html函数代码示例

本文整理汇总了PHP中jb_escape_html函数的典型用法代码示例。如果您正苦于以下问题:PHP jb_escape_html函数的具体用法?PHP jb_escape_html怎么用?PHP jb_escape_html使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: success_row

    function success_row($field, $value)
    {
        ?>
		<tr>
			<td><b><?php 
        echo $field;
        ?>
</b></td>
			<td><?php 
        echo str_replace("\n", '<br>', jb_escape_html($value));
        ?>
</td>
		</tr>
		<?php 
    }
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:15,代码来源:JBAppMarkup.php

示例2: parse_xml

 function parse_xml()
 {
     if (!$this->fp) {
         echo "File pointer failed to init.";
         return false;
     }
     $state = 0;
     while (!feof($this->fp)) {
         $chunk = fread($this->fp, 8192);
         // read in 8KB chunks
         if ($state == 0 && trim($chunk) == '') {
             continue;
             // scan until it reacheas something
         } elseif ($state == 0 && strpos($chunk, '<?xml') !== false) {
             // extract the encoding from the header
             preg_match('/encoding="([^"]+)"/i', $chunk, $m);
             $m[1] = strtoupper($m[1]);
             // PHP supports ISO-8859-1, US-ASCII and UTF-8.
             if ('ISO-8859-1' == $m[1] || 'US-ASCII' == $m[1] || 'UTF-8' == $m[1]) {
                 $this->parser_create($m[1]);
                 xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, $m[1]);
             } else {
                 $this->parser_create();
                 echo "<font color='red'>Warning: the parser does not support XML files encoded in " . jb_escape_html($m[1]) . " - please change the file to UTF-8.</font><br> ";
             }
             $chunk = preg_replace('#<\\?xml.+?>#i', '', $chunk);
             // remove the header(s) from the chunk
             $state = 1;
             //continue; // skip and begin processing from the next line
         } elseif ($state == 0) {
             // did not have any encoding header - UTF-8 is assumed
             $this->parser_create();
             $state = 1;
             // beging processing from this line
         }
         if (!xml_parse($this->parser, $chunk, feof($this->fp))) {
             //$this->error(sprintf('XML error at line %d column %d',
             //xml_get_current_line_number($this->parser),
             //xml_get_current_column_number($this->parser)));
             fclose($this->fp);
             return false;
         }
     }
 }
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:44,代码来源:JobsFillerXMLParser.php

示例3: JB_escape_html

 $ALM->list_cell_open();
 echo $ALM->get_open_link('apps.php?post_id=' . $row['post_id'], $extra_attr);
 echo JB_escape_html($row['data1']);
 echo $ALM->get_close_link();
 $ALM->list_cell_close();
 $ALM->list_cell_open();
 $sql2 = "SELECT * FROM users where ID='" . jb_escape_sql($row['user_id']) . "'";
 $result2 = JB_mysql_query($sql2) or die(mysql_error());
 $candidate_row = mysql_fetch_array($result2);
 $sql3 = "SELECT * FROM resumes_table where user_id='" . jb_escape_sql($row['user_id']) . "'";
 $result3 = JB_mysql_query($sql3) or die(mysql_error());
 $resume_row = mysql_fetch_array($result3);
 $sql4 = "SELECT * FROM posts_table where post_id='" . jb_escape_sql($row['post_id']) . "'";
 $result4 = JB_mysql_query($sql4) or die(mysql_error());
 $post_row = mysql_fetch_array($result4);
 $candidate_row['FormattedName'] = jb_escape_html(jb_get_formatted_name($candidate_row['FirstName'], $candidate_row['LastName']));
 $candidate_row['user_id'] = $candidate_row['ID'];
 // 'anon' If Y, then resume is anonumous and fields are restricted.
 // Here use $PForm to process the field restrictions
 $PForm->set_value('anon', $resume_row['anon']);
 if ($resume_row['anon'] == 'Y') {
     if (JB_ONLINE_APP_REVEAL_PREMIUM == 'YES' && $post_row['post_mode'] == 'premium') {
         $PForm->set_value('anon', 'N');
         // can show anonymous fields
     }
     if (JB_ONLINE_APP_REVEAL_STD == 'YES' && $post_row['post_mode'] != 'premium') {
         $PForm->set_value('anon', 'N');
         // can show anonymous fields
     }
     if (JB_ONLINE_APP_REVEAL_RESUME == 'YES' && $post_row['post_mode'] != 'premium') {
         $PForm->set_value('anon', 'N');
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:apps.php

示例4: JB_get_DynamicFormObject

 # Build resume list for each user.
 # Old version - keep back for backword compatibility.
 $RForm =& JB_get_DynamicFormObject(2);
 while ($resume_row = mysql_fetch_array($result2, MYSQL_ASSOC)) {
     $RForm->set_values($resume_row);
     $DATE = $RForm->get_template_value("DATE");
     $FORMATTED_DATE = JB_get_formatted_date($DATE);
     $NAME = $RForm->get_raw_template_value("RESUME_NAME");
     $resume_alert_list_html .= "<font face='arial' size='2'>{$FORMATTED_DATE} - " . strip_tags($NAME) . " </font><br>";
     $resume_alert_list_text .= "{$FORMATTED_DATE} : " . strip_tags($NAME) . " \r\n";
 }
 #############################################################################
 if (mysql_num_rows($result2) > 0) {
     // if we have anything to send?
     if ($VERBOSE == 'YES') {
         echo "Email Debug: Sending Email to: " . jb_escape_html(jb_get_formatted_name($user_row['FirstName'], $user_row['LastName'])) . " (" . $user_row['ID'] . ")<br> ";
     }
     $val = md5($user_row['Password'] . $user_row['ID']);
     $employer_link = JB_BASE_HTTP_PATH . JB_EMPLOYER_FOLDER . "alerts.php?id=" . $user_row['ID'] . "&key={$val}";
     #### Load in the html alert template
     $lang = $user_row['lang'];
     if ($lang == '') {
         $lang = JB_get_default_lang();
     }
     $e_result = JB_get_email_template(6, $lang);
     // html alert template
     $e_row = mysql_fetch_array($e_result);
     $EmailMessage = $e_row['EmailText'];
     $from = $e_row['EmailFromAddress'];
     $from_name = $e_row['EmailFromName'];
     $subject = $e_row['EmailSubject'];
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:resumealerts.php

示例5: jb_escape_html

	</div>
	<div style="float: right;">
	<a href="<?php 
echo JB_BASE_HTTP_PATH;
?>
"><?php 
echo $label['go_to_site_home'];
?>
</a>
<?php 
if (JB_CAT_RSS_SWITCH == 'YES') {
    ?>
	<p>

	<a href="<?php 
    echo JB_BASE_HTTP_PATH . "rss.php?cat=" . jb_escape_html($_REQUEST['cat']);
    ?>
"><img alt="RSS" src="<?php 
    echo JB_THEME_URL . 'images/rss_cat.png';
    ?>
" border="0" ></a> <?php 
    echo $label['rss_subscribe'];
    ?>
	</p>
<?php 
}
?>
	</div>
</div>

开发者ID:vinothtimes,项目名称:dchqtest,代码行数:29,代码来源:index-category.php

示例6: skill_matrix

    $sql = "REPLACE INTO skill_matrix (matrix_id, field_id, row_count) VALUES ('" . jb_escape_sql($_REQUEST['field_id']) . "', '" . jb_escape_sql($_REQUEST['field_id']) . "', '" . jb_escape_sql($_REQUEST['row_count']) . "') ";
    JB_mysql_query($sql) or die(mysql_error());
}
$sql = "Select * from skill_matrix WHERE field_id='" . jb_escape_sql($_REQUEST['field_id']) . "' ";
$result = JB_mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
?>

	<b>Number of rows:</b> <input type="text" size="3" name="row_count" value="<?php 
echo $row['row_count'];
?>
">
	<input type="hidden" name="matrix_id" value="<?php 
echo jb_escape_html($row['matrix_id']);
?>
">
	<input type="hidden" name="field_id" value="<?php 
echo jb_escape_html($_REQUEST['field_id']);
?>
">
	<input type="submit" name="submit" value="Save Changes"> (Note: The optimal number of rows is 4, more rows might require more CPU for searching)
	</form>

	<p>&nbsp;</p>
<center><input type="button" name="" value="Close" onclick="window.opener.location.reload();window.close()"></center>

<hr>
<h3>Preview of the Skill Matrix:</h3>
<?php 
echo @JB_display_matrix($_REQUEST['field_id']);
JB_admin_footer();
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:build_matrix.php

示例7: jb_escape_sql

// clear the session table
$sql = "DELETE FROM `jb_sessions` WHERE session_id='" . jb_escape_sql(session_id()) . "' ";
JB_mysql_query($sql) or die($sql . mysql_error());
unset($_SESSION['JB_ID']);
unset($_SESSION['JB_Domain']);
unset($_SESSION['JB_FirstName']);
unset($_SESSION['JB_LastName']);
unset($_SESSION['JB_Username']);
unset($_SESSION['Rank']);
unset($_SESSION['JB_Base']);
$page_title = JB_SITE_NAME;
JB_template_employers_outside_header($page_title);
?>
<h3 style="text-align: center;"><?php 
echo $label['employer_logout_ok'];
?>
</h3> 

<p style="text-align: center;">
<a href="<?php 
echo jb_escape_html(JB_BASE_HTTP_PATH);
?>
"><?php 
$label["employer_logout_home"] = str_replace("%SITE_NAME%", jb_escape_html(JB_SITE_NAME), $label["employer_logout_home"]);
echo $label['employer_logout_home'];
?>
</a>

</p>
<?php 
JB_template_employers_outside_footer();
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:logout.php

示例8: jb_escape_html

?>
</b></td></tr>
		<tr><td class="field_label"><?php 
echo $label["employer_request_details_from"];
?>
</td><td class="field_data"><input style="width: 100%" size="40" type='text' name='from' value='<?php 
echo jb_escape_html($from);
?>
'></td></tr>
		<tr><td class="field_label"><?php 
echo $label["employer_request_details_reply"];
?>
</td><td class="field_data"><input style="width: 100%" size="40" type='text' name='reply_to' value='<?php 
echo jb_escape_html($reply_to);
?>
'></td></tr>

		<tr><td class="field_data" colspan="2"><?php 
echo $label["employer_request_details_msg"];
?>
</td></tr>
		<tr><td class="field_data" colspan="2"><textarea style="width: 100%" name="message" rows="10" cols="40"><?php 
echo jb_escape_html($_REQUEST['message']);
?>
</textarea></td></tr>
		<tr><td class="field_data" colspan="2"><input class="form_submit_button" type="submit" name="submit" value="<?php 
echo $label["employer_request_send_button"];
?>
"></td></tr>
	</table>
</form>
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:employer-request-form.php

示例9: JB_place_subscription_invoice

            echo $error;
        } else {
            JB_place_subscription_invoice($_REQUEST['employer_id'], $_REQUEST['subscription_id']);
            $_REQUEST['new'] = '';
            $JBMarkup->ok_msg('New invoice added.');
        }
    }
    if ($_REQUEST['new'] != '') {
        ?>

	<form method="post" action="<?php 
        echo htmlentities($_SERVER['PHP_SELF']);
        ?>
?action=post" >
	<input type="hidden" name="new" value="<?php 
        echo jb_escape_html($_REQUEST['new']);
        ?>
">
	<input type="hidden" name="go" value="2">
	<table border="0"  cellSpacing="1" cellPadding="5" bgColor="#d9d9d9">

	<tr>

	<td> <b>Employer:</b> </td>
	<td colspan="2">
	<select name="employer_id">
	<option value="">[Select..]</option>
	<?php 
        $sql = "select * from employers order by Username";
        $result = JB_mysql_query($sql);
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:subscription_report.php

示例10: jb_escape_html

    </tr>
	 <tr>
      <td width="63" bgcolor="#EDF8FC" valign="top">
      <p style="float: right;"><font size="2" face="Arial"><b>Subject</b></font></td>
      <td width="286" bgcolor="#EDF8FC" valign="top">
      <font face="Arial">
      <input type="text" name="q_subj" size="39" value="<?php 
echo jb_escape_html($q_subj);
?>
" ></font></td>
      <td width="71" bgcolor="#EDF8FC" valign="top">
      <p style="float: right;"><b><font face="Arial" size="2">Message</font></b></td>
      <td width="299" bgcolor="#EDF8FC" valign="top">
      
      <input type="text" name="q_msg" size="28" value="<?php 
echo jb_escape_html($q_msg);
?>
"></td>
    </tr>
	 <tr>
      <td width="63" bgcolor="#EDF8FC" valign="top">
      <p style="float: right;"><font size="2" face="Arial"><b>Status</b></font></td>
      <td width="286" bgcolor="#EDF8FC" valign="top">
      <font face="Arial">
	  <select name="q_status">
		<option value='' <?php 
if ($_REQUEST['q_status'] == false) {
    echo ' selected ';
}
?>
></option>
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:email_queue.php

示例11: admin_language_form

function admin_language_form($lang_row = array())
{
    $edit_mode = false;
    $lang_img = '';
    if (sizeof($lang_row) != 0) {
        $edit_mode = true;
        $_REQUEST['lang_code'] = $lang_row['lang_code'];
        $_REQUEST['name'] = $lang_row['name'];
        $_REQUEST['jb_theme'] = $lang_row['jb_theme'];
        $_REQUEST['fckeditor_lang'] = $lang_row['fckeditor_lang'];
        $_REQUEST['lang_filename'] = $lang_row['lang_filename'];
        $lang_img = '<img src="' . JB_BASE_HTTP_PATH . 'lang_image.php?code=' . jb_escape_html($lang_row['lang_code']) . '">';
    }
    $disabled = '';
    if ($edit_mode) {
        $disabled = " disabled ";
    }
    ?>
<form enctype="multipart/form-data" method="post" action="<?php 
    echo htmlentities($_SERVER['PHP_SELF']);
    ?>
">
<input type="hidden" value="<?php 
    echo jb_escape_html($_REQUEST['action']);
    ?>
" name="action" >
<?php 
    if ($edit_mode) {
        ?>
	<input type="hidden" value="<?php 
        echo jb_escape_html($_REQUEST['lang_code']);
        ?>
" name="lang_code" >
	<?php 
    }
    ?>

<table border="0" cellSpacing="1" cellPadding="3" bgColor="#d9d9d9">
<tr bgcolor="#ffffff" ><td><font size="2">Language Name:</font></td><td><input size="30" type="text" name="name" value="<?php 
    echo jb_escape_html($_REQUEST['name']);
    ?>
"/> eg. English</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Language Code:</font></td><td><input <?php 
    echo $disabled;
    ?>
 size="2" type="text" name="lang_code" value="<?php 
    echo jb_escape_html($_REQUEST['lang_code']);
    ?>
"> eg. EN</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Language File:</font></td><td><select  name="lang_filename" ><option></option><?php 
    lang_file_options($_REQUEST['lang_filename']);
    ?>
</select><small>(To create a new language file: copy the lang/english.php file and change the name of the new file to the name of your language. eg. lang/dutch.php - Give permissions for writing to this file.)</small></td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Image:</font></td><td><?php 
    echo $lang_img;
    ?>
<input size="15" type="file" name="lang_image" value=""> <font size='1'>(Do not select if you want to keep the existing image)</font></td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">FCKEditor language file:</font></td><td><select  type="text" name="fckeditor_lang" ><option></option><?php 
    fck_lang_file_options($_REQUEST['fckeditor_lang']);
    ?>
</select></select><font size="2">(The FCKEditor is a HTML editor in the include/lib/fckeditor/ directory. The language files are located in fckeditor/editor/lang/)</a></td>
</tr>
<tr bgcolor="#ffffff"><td><font size="2">Language Theme:</font></td>
<td>
<select name='jb_theme'>
		<option value=''>[Select]</option>
		<?php 
    if ($_REQUEST['jb_theme'] == '') {
        $_REQUEST['jb_theme'] = JB_THEME;
    }
    JB_theme_option_list($_REQUEST['jb_theme']);
    ?>
	  </select>
</td>
</tr>
</table>
<input type="submit" name="submit" value="Submit">
</form>

<?php 
}
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:81,代码来源:language.php

示例12: jb_escape_html

<h3 style="text-align: center"><?php 
echo $label["employer_section_heading"];
?>
</h3> 
	<table style="margin-left: auto;  margin-right: auto;">
		<tr>
			<td style="text-align:center;"><b><?php 
echo $label["employer_flogin_emp"];
?>
</b>
				<form id="form1" method="post" target="_parent" action="login.php">
				<input type="hidden" name="page" value="<?php 
if ($_REQUEST['page'] == '') {
    $_REQUEST['page'] = $_SERVER['PHP_SELF'];
}
echo jb_escape_html($_REQUEST['page']);
?>
">
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="float: right;" valign="MIDDLE"><?php 
echo $label["employer_signup_member_id"];
?>
&nbsp;</td>
						<td valign="MIDDLE"><input name="username" type="text" id="username" size="12"></td>
					</tr>
					<tr>
						<td style="float: right;" valign="MIDDLE"  ><?php 
echo $label["employer_signup_password"];
?>
&nbsp;</td>
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:employer-login-form.php

示例13: jb_escape_html

    ?>
">($1 USD = x in this currency)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Currency Sign:</font></td><td><input <?php 
    echo $disabled;
    ?>
 size="1" type="text" name="sign" value="<?php 
    echo jb_escape_html($_REQUEST['sign']);
    ?>
">(eg. &#165;)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Currency Decimals:</font></td><td><input <?php 
    echo $disabled;
    ?>
 size="1" type="text" name="decimal_places" value="<?php 
    echo jb_escape_html($_REQUEST['decimal_places']);
    ?>
">(eg. 2)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Decimal Point:</font></td><td><input  size="1" type="text" name="decimal_point" value="<?php 
    echo jb_escape_html($_REQUEST['decimal_point']);
    ?>
">(eg. .)</td></tr>
<tr bgcolor="#ffffff" ><td><font size="2">Thousands Seperator:</font></td><td><input  size="1" type="text" name="thousands_sep" value="<?php 
    echo jb_escape_html($_REQUEST['thousands_sep']);
    ?>
">(eg. ,)</td></tr>
</table>
<input type="submit" name="submit" value="Submit">
</form>

	<?php 
}
JB_admin_footer();
开发者ID:vinothtimes,项目名称:phpdoc,代码行数:31,代码来源:currency.php

示例14: elseif

                } elseif ($req_status === false) {
                    // request was made, it is refused or waiting
                    echo "<p class='request_msg_sent_label'>";
                    //echo "<i>".$label["c_resume_hide"]."</i>";
                    echo $label["resume_display_request_sent"];
                    echo "</p>";
                } else {
                    // display a request button
                    ?>
					<p style="text-align:center">
					<i><?php 
                    echo $label["c_resume_hide"];
                    ?>
</i><br>
					<input  type="button" onclick="window.location='request.php?user_id=<?php 
                    echo jb_escape_html($data['user_id']);
                    ?>
'" value="<?php 
                    echo $label["resume_display_request"];
                    ?>
" >
					</p>
					<?php 
                }
            } else {
                // resume is not hidden!
            }
            $JBPage->output();
            $JBPage->increment_hits();
        }
    } else {
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:31,代码来源:search.php

示例15: JB_echo_cat_seo_fields

function JB_echo_cat_seo_fields($id, $url, $fname, $title, $desc, $keys, $dir_name)
{
    //$url = urldecode($url);
    preg_match("#/([^/]+)\$#D", urldecode($url), $m);
    $matched_file_name = $m[1];
    if (!JB_get_cat_id_from_url($matched_file_name, $form_id = 1)) {
        $amb = true;
        // the url is ambiguous
        echo " <font color='red'>{$url} [Warning: ambiguous filename, please choose a unique filename below]</font> ";
    } else {
        $amb = false;
    }
    if ($fname == '') {
        $fname = $matched_file_name;
    }
    $fname = JB_utf8_to_html($fname);
    ?>

	<br>
	<b>Path / File:</b> <?php 
    echo JB_BASE_HTTP_PATH . JB_MOD_REWRITE_DIR;
    ?>
<input name='file_<?php 
    echo $id;
    ?>
' size='40' <?php 
    if ($amb) {
        echo ' style="background-color:#FCDEC9;" ';
    }
    ?>
 type='text' value="<?php 
    echo jb_escape_html($fname);
    ?>
"><br>
	<b>Title:</b> <input name='title_<?php 
    echo $id;
    ?>
' size='80' type='text' value="<?php 
    echo jb_escape_html($title);
    ?>
"><br>
	<b>Description:</b> <input name='desc_<?php 
    echo $id;
    ?>
' size='80' type='text' value="<?php 
    echo jb_escape_html($desc);
    ?>
"><br>
	<b>Keywords:</b> <input name="keys_<?php 
    echo $id;
    ?>
" size='80' type='text' value="<?php 
    echo jb_escape_html($keys);
    ?>
"><br>

	<?php 
}
开发者ID:vinothtimes,项目名称:dchqtest,代码行数:58,代码来源:category.inc.php


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