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


PHP unsanitize_string函数代码示例

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


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

示例1: stringShorter

function stringShorter($str, $len = 0)
{
    $len = (int) $len;
    $unsanaprotit = unsanitize_string(ucfirst($str));
    $protit_len = strlen($unsanaprotit);
    if ($protit_len >= $len) {
        echo substr($unsanaprotit, 0, $len) . '...';
    } else {
        echo substr($unsanaprotit, 0, $len);
    }
}
开发者ID:centaurustech,项目名称:base-system,代码行数:11,代码来源:header.php

示例2: unsanitize_string

   <div id="inbox" class="head_content temp">
   <?php 
if ($_GET['type'] != 'edit') {
    ?>
       <h3>Make update on <?php 
    echo unsanitize_string($sel_project_detail['projectTitle']);
    ?>
</h3>
   <?php 
} else {
    $sel_project_id = mysql_fetch_assoc($con->recordselect("SELECT * FROM projectupdate WHERE projectupdateId='" . $_GET['projectId'] . "'"));
    $sel_project_name = mysql_fetch_assoc($con->recordselect("SELECT * FROM projectbasics WHERE projectId='" . $sel_project_id['projectId'] . "'"));
    ?>
 
          <h3>Edit update on <?php 
    echo unsanitize_string($sel_project_name['projectTitle']);
    ?>
</h3>
   <?php 
}
?>
   </div>
   <div class="wrapper">
        <div class="tabs_content_bg">
            <div class="tab_content">
            <?php 
if ($_GET['type'] = 'edit') {
    $sel_projectupdateinfo = mysql_fetch_assoc($con->recordselect("SELECT * FROM projectupdate WHERE projectupdateId='" . $_GET['projectId'] . "'"));
}
?>
            <form action="<?php 
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:projectupdate.tpl.php

示例3: unsanitize_string

			<?php 
                }
                ?>
			 
			 <?php 
            }
            ?>
             
             
             
             </center></td>
			<td ><div class="protit"><a title="Click here to view project detail" href="javascript:void(0);" onclick="javascript:openPopup('<?php 
            echo $sel_project_all["projectId"];
            ?>
');"><?php 
            echo unsanitize_string(ucfirst($sel_project_all['projectTitle']));
            ?>
</a></div></td>
			<td ><?php 
            echo $project_category['categoryName'];
            ?>
</td>
			<td  ><div class="shrtblrb"><?php 
            echo $sel_project_all['shortBlurb'];
            ?>
</div></td>
			<td ><div ><?php 
            echo $sel_project_all['projectLocation'];
            ?>
</div></td><!--class="proloc"-->
			<td class="icon" width="7%">
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:project_accept.tpl.php

示例4: unsanitize_string

    }
    ?>
 > <?php 
    echo $word;
    ?>
 </option>
                            <?php 
}
?>
                        </select>
                    <div class="clear"></div>
               </div>
                <div class="attribute_box">
                    <h6>Biography</h6>
                    <textarea class="" cols="40" id="user_biography" name="biography" rows="20"><?php 
echo unsanitize_string($result['biography']);
?>
</textarea>
                    <p>We suggest a short bio. If it's 300 characters or less it'll look great on your profile.</p>
                    <div class="clear"></div>
               </div>
               
               <div class="attribute_box">
                    <h6>Websites</h6>
                    <input type="text" id="jquery-tagbox-text" class="website" />
                    <span class="input-tip">
						<table class="tbl-website-width tbl-website" width="79%" align="right">
								<?php 
while ($website_res_field = mysql_fetch_assoc($website_res)) {
    echo "<tr><td>";
    echo "<font size='2'>" . $website_res_field['siteUrl'] . "</font>";
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:editprofile.tpl.php

示例5: while

            <td width="8%" align="center">Status</td>			
            <td width="18%" align="center">Date</td>							
		  </tr>
		  </thead>
		  <tbody>
			<?php 
if ($query[0] > 0) {
    while ($checkedornot = mysql_fetch_assoc($query[1])) {
        ?>
		  <tr>
		  <?php 
        $project_category = mysql_fetch_array($con->recordselect("SELECT * FROM categories WHERE categoryId ='" . $checkedornot['projectCategory'] . "'"));
        ?>
			
			<td><?php 
        echo unsanitize_string(ucfirst($checkedornot['projectTitle']));
        ?>
</td>
			<td><?php 
        echo $project_category['categoryName'];
        ?>
</td>
			<td><?php 
        echo '$' . $checkedornot['amount'];
        ?>
</td>
            <td><?php 
        echo '$' . $checkedornot['commission'];
        ?>
</td>
			<td><?php 
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:project_payment_details.tpl.php

示例6: Slug

    	<a href="<?php 
echo SITE_URL . 'browseproject/' . $projectBasic['projectId'] . '/' . Slug($projectBasic['projectTitle']) . '/';
?>
" >
	        <h3><?php 
echo unsanitize_string(ucfirst($projectBasic['projectTitle']));
?>
</h3>
        </a>
        <p id="marginbottom30">by
        	<a href="<?php 
echo SITE_URL . 'profile/' . $projectByUser['userId'] . '/' . Slug($projectByUser['name']) . '/';
?>
" >
        		<?php 
echo unsanitize_string(ucfirst(trim($projectByUser['name'])));
?>
        	</a>
        </p>
    </div>
   <div class="wrapper ">
        <div class="tabs_content_bg">
                <div class="tab_content">
                	<div class="tabs_left">
                    	<div class="tabs_left_pledge">
							<div class="tout_checkout">
							<h1>Check out with Paypal</h1>
							</div>
							<div class="pledges__checkout_summary">
								<dl>
									<dt>Pledge amount</dt>
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:paypalInfo.tpl.php

示例7: unsanitize_string

        if ($fundingAmount != NULL && $fundingAmount > 0) {
            $value = $project_detail['rewardedAmount'];
            $max = $project_detail['fundingGoal'];
        }
        $scale = 1.0;
        if (!empty($max) && $max != 0) {
            $percent = $value * 100 / $max;
        } else {
            $percent = 0;
        }
        if ($percent > 100) {
            $percent = 100;
        }
        ?>
	<p class="textnormal-b"> <?php 
        echo unsanitize_string(ucfirst($project_detail["shortBlurb"]));
        ?>
	<div class="spaser3"></div>
	<p><div class="percentbar content-slider-percentbar">
    	<div style="width:<?php 
        echo round($percent * $scale);
        ?>
%;"></div>
    </div></p>
   <div class="staffpicks-rating textnormal-b">
	  <ul>
		<?php 
        if ($fundingAmount != NULL && $fundingAmount > 0) {
            $value1 = $project_detail['rewardedAmount'];
            $max1 = $project_detail['fundingGoal'];
        }
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:content_ajax.php

示例8: while

        ?>
</h2><h6><a href="#">Top ↑</a></h6>
                    <div class="clear"></div>
                        <?php 
        $sel_faq_questionanswer = $con->recordselect("SELECT * FROM `faqquestionanswer` WHERE faqCategoryId='" . $selSubTitle1['faqCategoryId'] . "'");
        while ($selFaqQuestionAnswer = mysql_fetch_assoc($sel_faq_questionanswer)) {
            ?>
                            <h3 id="<?php 
            echo Slug($selFaqQuestionAnswer['faqQuestion']);
            ?>
"><?php 
            echo unsanitize_string($selFaqQuestionAnswer['faqQuestion']);
            ?>
</h3>
                            <p><?php 
            echo unsanitize_string($selFaqQuestionAnswer['faqAnswer']);
            ?>
</p>
                       <?php 
        }
        ?>
 
                </li>
				<?php 
    }
    ?>
                <?php 
}
?>
                <div class="flclear"></div>
            </div>
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:faqresult.tpl.php

示例9: unsanitize_string

                ?>
" alt="<?php 
                echo $sel_user_data23['name'];
                ?>
" width="40" height="40"></a></div>
                    <div  class="secondleft"> <span class="username"><a href="<?php 
                echo SITE_MOD . 'user/message.php?id=' . $sel_message23['senderId'] . '&projectId=' . $sel_message23['projectId'];
                ?>
"><?php 
                echo $sel_user_data23['name'];
                ?>
</a></span> <span class="usermessage"><a class="target" href="<?php 
                echo SITE_MOD . 'user/message.php?id=' . $sel_message23['senderId'] . '&projectId=' . $sel_message23['projectId'];
                ?>
"><?php 
                $unsanamsg = unsanitize_string(ucfirst($sel_message23['message']));
                $msg_len = strlen($unsanamsg);
                if ($msg_len > 50) {
                    echo substr($unsanamsg, 0, 50) . '...';
                } else {
                    echo substr($unsanamsg, 0, 50);
                }
                ?>
					 </a></span> </div>
                  </li>
                  <?php 
            }
        }
        $limit_count = $limit_count + 1;
    }
    ?>
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:header.php

示例10: unsanitize_string

                                $html_content .= '<a title="' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '" href="' . SITE_URL . 'category/' . $sel_starproject_cat['categoryId'] . '/' . Slug($sel_starproject_cat['categoryName']) . '/' . '">' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '</a>';
                            } else {
                                $html_content .= '<a title="' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '" href="javascript:void(0);">
                                                        ' . unsanitize_string(ucfirst($sel_starproject_cat['categoryName'])) . '
                                                    </a>';
                            }
                            $html_content .= '</li>
                                            <img src="' . SITE_IMG . 'location.png" />
                                            <li>
                                            	<a title="' . unsanitize_string(ucfirst($sel_starproject['projectLocation'])) . '" href="' . SITE_URL . 'city/' . $sel_starredproject1['projectId'] . '/' . Slug($sel_starproject['projectLocation']) . '/' . '">
													' . unsanitize_string(ucfirst($sel_starproject['projectLocation'])) . '
                                                </a>
                                            </li>
                                            <div class="clear"></div>
                                        </ul>
                                        <p>' . unsanitize_string(ucfirst($sel_starproject['shortBlurb'])) . '</p>';
                            $chktime_cur = time();
                            if ($sel_starproject['projectEnd'] <= $chktime_cur) {
                                $html_content .= '<h4 class="sticker">';
                                if ($sel_starproject['rewardedAmount'] >= $sel_starproject['fundingGoal']) {
                                    $html_content .= 'SUCCESSFUL!';
                                } else {
                                    $html_content .= 'FUNDING UNSUCCESSFUL';
                                }
                                $html_content .= '</h4>';
                            }
                            $html_content .= '<div class="clear"></div>';
                            if ($fundingAmount != NULL && $fundingAmount > 0) {
                                $value = $sel_starproject['rewardedAmount'];
                                $max = $sel_starproject['fundingGoal'];
                            }
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:ajax.profile.php

示例11: unsanitize_string

?>
                </a>
				</div>
                <div class="project_profile_right1">
                <a title="<?php 
echo unsanitize_string($sel_project_detail['projectTitle']);
?>
" href="<?php 
echo SITE_URL;
?>
browseproject/<?php 
echo $sel_project_detail['projectId'] . '/' . Slug($sel_project_detail['projectTitle']) . '/';
?>
">
                	<?php 
echo unsanitize_string($sel_project_detail['projectTitle']);
?>
                </a>
                
                <?php 
/*?><h6>By <?php echo $sel_project_user['name'] ?></h6><?php */
?>
                <h6>By <?php 
echo $sel_creator_name1['name'];
?>
</h6>
                
                <p>Funding ends <?php 
echo date('l M d\\, h:ia ', $sel_project_detail['projectEnd']);
?>
 EDT</p>
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:message.tpl.php

示例12: time

            }
            $content .= '</a>
								</div>';
            $chktime_cur = time();
            if ($sel_project2['projectEnd'] <= $chktime_cur) {
                if ($sel_project2['rewardedAmount'] >= $sel_project2['fundingGoal']) {
                    $content .= '<div class="project-pledged-successful">SUCCESSFUL!</div>';
                } else {
                    $content .= '<div class="project-pledged-empty"></div>';
                }
            } else {
                $content .= '<div class="project-pledged-empty"></div>';
            }
            $content .= '<div class="spaser-small"></div>
								
								<div class="spaser1 display_descraption">' . unsanitize_string(ucfirst($sel_project2['shortBlurb'])) . '</div>
															
								<div class="spaser-small"></div>
								<div class="gray-line"></div>';
            $fundingAmount = (isset($sel_project2['fundingGoal']) or !empty($sel_project2['fundingGoal'])) ? $sel_project2['fundingGoal'] : 0;
            if ($fundingAmount != NULL && $fundingAmount > 0) {
                $value = $sel_project2['rewardedAmount'];
                $max = $sel_project2['fundingGoal'];
            }
            $scale = 1.0;
            if (!empty($max) && $max != 0) {
                $percent = $value * 100 / $max;
            } else {
                $percent = 0;
            }
            if ($percent > 100) {
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:ajax.search.php

示例13: unsanitize_string

            ?>
">
                            <?php 
            echo unsanitize_string(ucfirst($sel_backedproject1['projectTitle']));
            ?>
                        </a>
                        <?php 
        } else {
            if ($sel_backprojectacceptedterms['accepted'] == '3') {
                ?>
                        <a title="<?php 
                echo unsanitize_string(ucfirst($sel_backedproject1['projectTitle']));
                ?>
" href="#">
                            <?php 
                echo unsanitize_string(ucfirst($sel_backedproject1['projectTitle']));
                ?>
                        </a>
                        <?php 
            }
        }
        ?>
                        <h6><?php 
        echo date('M d', $sel_backedproject1['backingTime']);
        ?>
</h6>
                        <div class="clear"></div>
                    </div>
                    
                    <div class="backed_ammount backed_ammount1">
                       	<?php 
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:rewardhistory.tpl.php

示例14: date

                            </a>
                            
                            <h6><?php 
            echo date('M d', $sel_message['messageTime']);
            ?>
</h6>
                            
                            <div class="clear"></div>
                        </div>
                        <div class="clm2">
                            <h5><?php 
            echo unsanitize_string(ucfirst($sel_project_detail1['projectTitle']));
            ?>
</h5>
                            <p><?php 
            echo unsanitize_string($sel_message['message']);
            ?>
</p>
                        </div>
                         <div class="clm3">
                            <h4><?php 
            echo $sel_message_count['countreply'];
            // echo $sel_message['messageId'];
            ?>
</h4>
                        </div>
                     
                       
                	<div class="clear"></div>
                     
            	</div>
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:inbox.tpl.php

示例15: ucfirst

        ?>
                    <li><a title="<?php 
        echo ucfirst(unsanitize_string($row['categoryName']));
        ?>
" href="<?php 
        echo SITE_URL;
        ?>
category/<?php 
        echo $row['categoryId'] . '/' . Slug($row['categoryName']) . '/';
        ?>
" 
					<?php 
        if (isset($_GET['catId']) && ($_GET['catId'] != NULL && !isset($titlename)) && $_GET['catId'] == $row['categoryId']) {
            echo "class='active'";
        }
        ?>
><?php 
        echo ucfirst(unsanitize_string($row['categoryName']));
        ?>
</a></li>
                <?php 
    }
    ?>
            
        </div>
        <?php 
}
?>
	
      </ul>
</div>
开发者ID:centaurustech,项目名称:base-system,代码行数:31,代码来源:index.tpl.php


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