本文整理汇总了PHP中Templates::Load方法的典型用法代码示例。如果您正苦于以下问题:PHP Templates::Load方法的具体用法?PHP Templates::Load怎么用?PHP Templates::Load使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Templates
的用法示例。
在下文中一共展示了Templates::Load方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<?php
}
if (isset($_GET["rcdata"])) {
print Templates::Load("templates/misc/rcdata_dump.php", array(""));
}
if (isset($_GET["rtbitmap"])) {
print Templates::Load("templates/misc/rtbitmap_dump.php", array(""));
}
if (isset($_GET["rtstring"])) {
print Templates::Load("templates/misc/rtstring_dump.php", array(""));
}
//check if we found the right section for dumping the resources
$sectionFound = false;
foreach (Binary::sections($binary) as $s) {
if ($va == $s["va"]) {
$sectionFound = true;
}
}
if (!$sectionFound && $va) {
print Common::Error("Error", "The section with VirtualAddress={$va} was not found");
}
示例2: ob_clean
</li>
</ul>
</div>
</div>
<p>
<?php
if ($op == "tools") {
if (Common::getString("fun") == "pdf") {
ob_clean();
}
print Templates::Load("templates/radare2/index.php", array(""));
} elseif ($op == "pefile") {
print Templates::Load("templates/pefile/index.php", array(""));
} elseif ($op == "results") {
print Templates::Load("templates/sandbox/index.php", array(""));
} elseif ($op == "screenshots") {
if (count($images)) {
foreach ($images as $img) {
?>
<center>
<a id="modal-<?php
echo $img;
?>
" href="#modal-container-<?php
echo $img;
?>
" role="button" class="btn" data-toggle="modal">
<p><?php
echo $img;
?>
示例3: number_format
?>
</td>
<td>
<a href="?report=<?php
echo $vars["md5"];
?>
&op=tools&app=monodis&fun=presources&id=<?php
echo $r["id"];
?>
"><?php
echo $r["name"];
?>
</a>
</td>
<td>
<?php
echo number_format($r["size"]);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<?php
if (strlen($id)) {
print Templates::Load("templates/mono/resource_dump.php", array_merge($vars, array("id" => $id)));
}
示例4: info
static function info($title, $description)
{
$html = Templates::Load("templates/website/info.php", array("title" => $title, "description" => $description));
return $html;
}
示例5: Error
static function Error($msg)
{
return Templates::Load("templates/website/error.php", array("msg" => $msg));
}
示例6: array
$html = Website::page("contact.html", array("md5" => $md5));
}
if (isset($_GET["samples"])) {
$html = Website::page("samples.php", array("md5" => $md5));
}
if (isset($_GET["analyze"])) {
$html = Website::page("analyze.php", array("md5" => $md5));
}
if (isset($_GET["submit"])) {
$html = Website::page("submit.php", array("md5" => $md5));
}
if (isset($_GET["report"])) {
$html = Website::page("report.php", array("md5" => $md5));
}
if (isset($_GET["image"])) {
$html = Templates::Load("templates/website/image.php", array("md5" => $md5));
}
if (isset($_GET["icon"])) {
$html = Templates::Load("templates/pefile/icon.php", array("md5" => $md5));
}
if (isset($_GET["bitmap"])) {
$html = Templates::Load("templates/pefile/bitmap.php", array("md5" => $md5));
}
if (!isset($html)) {
$html = Website::page("index.html", array("md5" => $md5));
}
print $html;
?>
示例7: array_merge
<?php
} else {
?>
<?php
echo $r["name"];
?>
<?php
}
$lastname = $r["name"];
?>
</td>
</tr>
<?php
if (strlen($pid) && $pid == $r["pid"] && !$processDumped) {
print "</table>";
print Templates::Load("templates/sandbox/process_pid.php", array_merge($vars, array("pid" => $pid)));
$processDumped = true;
if ($i < count($vars["processes"])) {
?>
<table class="table table-bordered">
<thead>
<tr>
<th>
#
</th>
<th>
Pid
</th>
<th>
<center>Action</center>
</th>
示例8: ob_clean
<?php
ob_clean();
print Templates::Load("templates/website/header.php", array(""));
?>
<!--
<html>
<head>
<style>
body{
font-family:courier-new;
color:lime;
background:black;
}
</style>
</head>
-->
<font size=+2>
<?php
$md5 = Common::getMD5("analyze");
if (!file_exists("uploads/{$md5}.bin")) {
print "ERROR - The sample '" . htmlentities($md5) . "' was not found";
return;
}
?>
Analyzing sample <a href="?report=<?php
echo $md5;
?>
"><?php
echo $md5;
?>
示例9: array
if (preg_match("/^radare2\\/(rabin2|rahash2)/", $app)) {
print Radare2::call($app, $fun, $binary);
}
if (preg_match("/^radare2\\/radare2/", $app)) {
$functions = Radare2::r2_functions($binary);
$codesize = Binary::codeSize($binary);
$entrypoint = Pefile::entrypoint($binary);
print Templates::Load("templates/art/drawing3.php", array("functions" => $functions, "codesize" => $codesize, "entrypoint" => $entrypoint, "md5" => $md5));
print Templates::Load("templates/radare2/r2_functions.php", array("functions" => $functions, "md5" => $md5));
}
if (preg_match("/^pefile/", $app)) {
print Pefile::call($fun, $binary);
}
if (preg_match("/^monodis/", $app)) {
if ($fun == "presources") {
print Templates::Load("templates/mono/presources.php", array("presources" => $presources, "binary" => $binary, "md5" => $md5));
} else {
print Mono::call($fun, $binary);
}
}
} else {
print "Binary not found.. removed?";
}
?>
</p>
</div>
</div>
</div>
</div>