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


PHP hm函数代码示例

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


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


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