• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP hm函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: xcopy

 function xcopy($source, $dest, $permissions = 0755)
 {
     if (is_link($source)) {
         return symlink(readlink($source), $dest);
     }
     if (is_file($source)) {
         return copy($source, $dest);
     }
     if (!is_hm($dest)) {
         mkhm($dest, $permissions);
     }
     $hm = hm($source);
     while (false !== ($entry = $hm->read())) {
         if ($entry == '.' || $entry == '..') {
             continue;
         }
         $this->xcopy("{$source}/{$entry}", "{$dest}/{$entry}", $permissions);
     }
     $hm->close();
     return true;
 }
开发者ID:RedstoneAlmeida,项目名称:MapReset,代码行数:21,代码来源:Perms.php


示例2: hm_backtrace

function hm_backtrace($limit = 0)
{
    $new = array();
    $backtrace = debug_backtrace();
    array_shift($backtrace);
    foreach ($backtrace as $num => $val) {
        if ($val['function'] == 'do_action') {
            $new[$num] = reset($val['args']) . ' (via do_action)';
        } else {
            $new[$num] = array('function' => $val['function']);
        }
        if (!empty($val['line'])) {
            $new[$num]['line'] = $val['line'];
        }
        if (!empty($val['file'])) {
            $new[$num]['file'] = $val['file'];
        }
        if (!empty($val['class'])) {
            $new[$num]['class'] = $val['class'];
        }
    }
    hm($new);
}
开发者ID:humanmade,项目名称:hm-dev,代码行数:23,代码来源:hm-dev.debug.php


示例3: hm

hm("alive");
?>
:</td>
			<td>
			<select name="expire" style="width:150px">
			<?php 
foreach ($expires as $long => $name) {
    ?>
			<option value="<?php 
    h($long);
    ?>
"><?php 
    h($name);
    ?>
</option>
			<?php 
}
?>
			</select>
			</td>
		</tr>
		</tbody>
		<tr>
			<td colspan="2" align="center"><input type="submit" value="<?php 
hm("loginandrock");
?>
"/></td>
		</tr>
	</table>
	</form>
</div>
开发者ID:jango2015,项目名称:nette-mongodb-sandbox,代码行数:31,代码来源:index.php


示例4: h

    h($message);
    ?>
</p>
<?php 
}
?>

<?php 
if (!empty($_POST)) {
    ?>
<script language="javascript">
window.parent.frames["left"].location.reload();
</script>
<?php 
}
?>

<form method="post">
<?php 
hm("name");
?>
:<br/>
<input type="text" name="name" value="<?php 
h(x("name"));
?>
"/><br/>
<input type="submit" value="<?php 
hm("create");
?>
" />
</form>
开发者ID:jango2015,项目名称:nette-mongodb-sandbox,代码行数:31,代码来源:createDatabase.php


示例5: h

    }
}
?>
	</div>
	<div class="right"><?php 
h($admin);
?>
 | <a href="#" onclick="showManuals(this);return false;"><?php 
hm("manuals");
?>
 <span style="font-size:11px">▼</span></a> | <a href="<?php 
h(url("plugins.index"));
?>
" target="right">Plugins</a> |  <a href="<?php 
h($logoutUrl);
?>
" target="_top"><?php 
hm("logout");
?>
</a> | <?php 
render_select("language", rock_load_languages(), __LANG__, array("style" => "width:100px", "onchange" => "window.top.location='index.php?action=admin.changeLang&lang='+this.value"));
?>
  | <a href="<?php 
h(url("admin.about"));
?>
" target="right">RockMongo v<?php 
h(ROCK_MONGO_VERSION);
?>
</a></div>
	<div class="clear"></div>
</div>
开发者ID:abhilashlohar,项目名称:Housingmatters,代码行数:31,代码来源:top.php


示例6: render_theme_path

				<?php 
    }
    ?>
			</ul>
		</li>
		<?php 
}
?>
		<?php 
if ($showDbSelector) {
    ?>
		<li>
			<img src="<?php 
    render_theme_path();
    ?>
/images/database.png" align="absmiddle" width="14"/>
			<form id="selector" action="#" style="display:inline">
				<input type="text" name="db" id="db" />
				<input type="submit" value="<?php 
    hm("selectdb");
    ?>
">
			</form>
		</li>
		<?php 
}
?>
	</ul>
	<div style="height:40px"></div>
</div>
开发者ID:abhilashlohar,项目名称:Housingmatters,代码行数:30,代码来源:dbs.php


示例7: h

<input type="text" name="target" value="<?php 
h(x("target"));
?>
"/><br/>
<?php 
hm("removeifexists");
?>
<br/>
<input type="checkbox" name="remove_target" value="1" <?php 
if (x("remove_target")) {
    ?>
checked="checked"<?php 
}
?>
/><br/>
<?php 
hm("copyindexes");
?>
<br/>
<input type="checkbox" name="copy_indexes" value="1" <?php 
if (x("copy_indexes")) {
    ?>
checked="checked"<?php 
}
?>
/><br/>
<input type="submit" value="<?php 
hm("duplicate");
?>
"/>
</form>			
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:31,代码来源:collectionDuplicate.php


示例8: hm

	</table>
	<br/>
</div>
<div>
	<h3><?php 
hm("indexes");
?>
</h3>
	<?php 
hm("copyindexes");
?>
 <input type="checkbox" name="copy_indexes" value="1" <?php 
if (x("copy_indexes")) {
    ?>
checked="checked"<?php 
}
?>
/>
	<br/><br/>
</div>
<div>
	<h3><?php 
hm("confirm");
?>
</h3>
	<input type="submit" value="<?php 
hm("transfer");
?>
"/>
</div>
</form>
开发者ID:boosen,项目名称:rockmongo,代码行数:31,代码来源:dbTransfer.php


示例9: hm

?>
	<form method="post">
	<?php 
hm("username");
?>
:<br/>
	<input type="text" name="username" value="<?php 
h_escape(x("username"));
?>
"/><br/>
	<?php 
hm("password");
?>
:<br/>
	<input type="password" name="password"/><br/>
	<?php 
hm("confirm_pass");
?>
:<br/>
	<input type="password" name="password2"/><br/>
	<?php 
hm("readonly");
?>
<br/>
	<input type="checkbox" name="readonly" value="1"/><br/>
	<input type="submit" value="<?php 
hm("addreplace");
?>
"/>
	</form>
</div>
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:31,代码来源:addUser.php


示例10: h

		<td><?php 
    h($value["local_value"]);
    ?>
</td>
	</tr>
	<?php 
}
?>
</table>

<div class="gap"></div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th colspan="2"><a href="http://www.mongodb.org/downloads" target="_blank"><?php 
hm("build_info");
?>
</a> ({buildinfo:1})</th>
	</tr>
	<?php 
foreach ($buildInfos as $param => $value) {
    ?>
	<tr bgcolor="#fffeee">
		<td width="120" valign="top"><?php 
    h($param);
    ?>
</td>
		<td><?php 
    h($value);
    ?>
</td>
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:31,代码来源:index.php


示例11: h

    h($code);
    ?>
" <?php 
    if (x("lang") == $code || x("lang") == "" && __LANG__ == $code) {
        ?>
selected="selected"<?php 
    }
    ?>
 ><?php 
    h($lang);
    ?>
</option>
			<?php 
}
?>
			</select></td>
		</tr>
		</tbody>
		<tr>
			<td colspan="2" align="center"><input type="submit" value="<?php 
hm("loginandrock");
?>
"/></td>
		</tr>
	</table>
	</form>
	
	<?php 
hm("rockmongocredits");
?>
</div>
开发者ID:Briareos,项目名称:rockmongo,代码行数:31,代码来源:index.php


示例12: render_navigation

<h3><?php 
render_navigation($db);
?>
 &raquo; <?php 
hm("authentication");
?>
</h3>

<div class="operation">
	<a href="<?php 
h(url("db.auth", array("db" => $db)));
?>
" class="current">Users</a> |
	<a href="<?php 
h(url("db.addUser", array("db" => $db)));
?>
">Add User</a>
</div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th>ID</th>
		<th>User</th>
		<th>Read Only</th>
		<th>Operation</th>
	</tr>
	<?php 
foreach ($users as $user) {
    ?>
	<tr bgcolor="#fffeee">
		<td width="120" ><?php 
开发者ID:jango2015,项目名称:nette-mongodb-sandbox,代码行数:31,代码来源:auth.php


示例13: foreach

?>
">
	<table width="100%">
		<?php 
foreach ($logs as $log) {
    ?>
		<tr>
			<td valign="top">
				<div style="background-color:#efefef;margin-bottom:10px">
					<div style="border-bottom:1px #ccc solid"><?php 
    echo $log["time"];
    ?>
 [<a href="index.php?<?php 
    echo $log["query"];
    ?>
"><?php 
    hm("requery");
    ?>
</a>]</div>
					<div><?php 
    echo $log["params"]["criteria"];
    ?>
</div>
				</div>
			</td>
		</tr>
		<?php 
}
?>
	</table>
</div>
开发者ID:boosen,项目名称:rockmongo,代码行数:31,代码来源:queryHistory.php


示例14: hm_log

/**
 * Intelligently error_log the passed var.
 *
 * @access public
 * @param mixed $code
 * @return null
 */
function hm_log($code)
{
    error_log(hm($code, false));
}
开发者ID:newsapps,项目名称:hm-core,代码行数:11,代码来源:hm-core.debug.php


示例15: hm

<?php

function hm($v)
{
    return htmlspecialchars($v);
}
$debut = microtime();
for ($i = 0; $i < 10000; $i++) {
    echo hm('Lorem ipsum') . '<br />';
}
$fin = microtime();
file_put_contents('bench.txt', file_get_contents('bench.txt') . "\n" . ($fin - $debut));
$debut = microtime();
for ($i = 0; $i < 10000; $i++) {
    echo htmlspecialchars('Lorem ipsum') . '<br />';
}
$fin = microtime();
var_dump($fin - $debut);
file_put_contents('bench.txt', file_get_contents('bench.txt') . "\n" . 'NoAlias' . "\n" . ($fin - $debut));
$debut = microtime();
for ($i = 0; $i < 10000; $i++) {
    echo 'Lorem ipsum' . '<br />';
}
$fin = microtime();
var_dump($fin - $debut);
file_put_contents('bench.txt', file_get_contents('bench.txt') . "\n" . 'Nothing' . "\n" . ($fin - $debut));
开发者ID:xtrem-creative,项目名称:legacy_php-framework,代码行数:26,代码来源:bench.php


示例16: hm

hm("dropdatabase");
?>
</h3>

<div style="border:2px #ccc solid;margin-bottom:5px;background-color:#eeefff">
<?php 
hm("responseserver");
?>
	<div style="margin-top:5px">
		<?php 
h($ret);
?>
	</div>
</div>

<p>
	<input type="button" value="<?php 
hm("gotodbs");
?>
" onclick="window.location='<?php 
h(url("server.databases"));
?>
'"/>
</p>

<script language="javascript">
window.parent.frames["left"].location = "<?php 
h(url("admin.dbs"));
?>
";
</script>
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:31,代码来源:dropDatabaseResult.php


示例17: h

		<td align="center" valign="top"><?php 
    if (isset($index["unique"]) && $index["unique"]) {
        ?>
Y<?php 
    }
    ?>
</td>
		<td align="center" valign="top"><?php 
    if (!isset($index["key"]["_id"]) || count($index["key"]) != 1) {
        ?>
 <a href="<?php 
        h(url("collection.deleteIndex", array("db" => $db, "collection" => $collection, "index" => $index["name"])));
        ?>
" onclick="return window.confirm('<?php 
        hm("warningindex");
        ?>
 \'<?php 
        h($index["name"]);
        ?>
\'?');"><?php 
        hm("drop");
        ?>
</a><?php 
    }
    ?>
</td>
	</tr>
	<?php 
}
?>
</table>
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:31,代码来源:collectionIndexes.php


示例18: hm

    }
    ?>
</table>
<?php 
}
?>

<?php 
if (!empty($masters)) {
    ?>
<div class="gap"></div>

<table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
	<tr>
		<th colspan="2"><?php 
    hm("masters");
    ?>
 (<a href="<?php 
    h(url("collection.index", array("db" => "local", "collection" => "sources")));
    ?>
">local.sources</a>)</th>
	</tr>
	<?php 
    foreach ($masters as $master) {
        ?>
	<tr bgcolor="#cfffff">
		<td colspan="2"><?php 
        h($master["_id"]);
        ?>
</td>
	</tr>
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:31,代码来源:replication.php


示例19: render_navigation

<h3><?php 
render_navigation($db);
?>
 &raquo; <?php 
hm("repair_database");
?>
</h3>

<div style="border:2px #ccc solid;margin-bottom:5px;background-color:#eeefff">
<?php 
hm("response_from_server");
?>
:
	<div style="margin-top:5px">
		<?php 
h($ret);
?>
	</div>
</div>
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:19,代码来源:repairDatabase.php


示例20: hm

<?php

hm("about_content");
开发者ID:buraka1,项目名称:mlazarov-rockmongo,代码行数:3,代码来源:about.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP hm_get函数代码示例发布时间:2022-05-15
下一篇:
PHP history_log_event_special函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap