本文整理匯總了PHP中system::count_parametr方法的典型用法代碼示例。如果您正苦於以下問題:PHP system::count_parametr方法的具體用法?PHP system::count_parametr怎麽用?PHP system::count_parametr使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類system
的用法示例。
在下文中一共展示了system::count_parametr方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: die
<?php
die('<p style="font-size:36px;color:black;font-weight:bold;">404!</p>');
global $_str;
// check for crack!
if (isset($_GET['arhiv'])) {
system::count_parametr(3);
} else {
system::count_parametr(2);
}
// добавление новости
if (system::IsPost()) {
//echo "<pre>".print_r($_POST['FORM'],1)."</pre>";
$_str .= voting::set_voting();
}
$_str .= voting::get_vopros('/frontend/voting/vopros.php');
示例2: unset
if ($_arr) {
// устанавливаем свойства
$title->title = NAME_FIRMS . ' - ' . $_arr['title'];
$_arr['keywords'] != '' ? $title->keywords = $_arr['keywords'] : ($title->keywords = $_arr['title']);
$_arr['description'] != '' ? $title->description = $_arr['description'] : ($title->description = $_arr['title']);
$_arr['h1'] != '' ? $title->h1 = $_arr['h1'] : ($title->h1 = $_arr['title']);
}
/***************************************************************************************
***************************************************************************************/
global $_str;
// check for crack!
if (isset($_GET['page'])) {
system::count_parametr(4);
system::isset_numeric($_GET['page']);
} else {
system::count_parametr(3);
$_GET['page'] = 1;
}
// добавление новости
if (system::IsPost()) {
if (!captcha::check_captcha()) {
//выводим сообщение
Message::GetMessage(0, v::getI18n('message_error_captcha'));
} else {
// пишем в базу
Forms::MultyInsertForm('guestbook', 0);
// очищаем POST
unset($_POST);
// выводим мообщение
Message::GetMessage(1, v::getI18n('message_add_comment_to_guestbook'));
}