本文整理汇总了PHP中virtual函数的典型用法代码示例。如果您正苦于以下问题:PHP virtual函数的具体用法?PHP virtual怎么用?PHP virtual使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了virtual函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: php_check_syntax
<?php
include $GET_['x'];
include_once $GET_['x'];
php_check_syntax($GET_['x']);
require $GET_['x'];
require_once $GET_['x'];
runkit_import($GET_['x']);
set_include_path($GET_['x']);
virtual($GET_['x']);
示例2: wdnInclude
function wdnInclude($path)
{
if (function_exists('virtual')) {
return virtual($path);
}
$documentRoot = __DIR__;
if (!empty($_SERVER['DOCUMENT_ROOT'])) {
$documentRoot = $_SERVER['DOCUMENT_ROOT'];
}
return readfile($documentRoot . $path);
}
示例3: echo_filtered
function echo_filtered()
{
$text = $this->data->content;
$match = null;
$pos1 = strpos($text, '</head>');
$pos2 = strpos($text, '<body', $pos1);
$pos3 = strpos($text, '>', $pos2) + 1;
$pos4 = strpos($text, '<div class="spirit-nav">', $pos3);
echo $this->alter_title(substr($text, 0, $pos1));
echo '<link rel="icon" href="/favicon.ico" type="image/ico"/>';
echo '<link rel="stylesheet" type="text/css" href="/style-v2/section-basic.css"/>';
echo substr($text, $pos1, $pos3 - $pos1);
virtual("/common/heading-doc.html");
echo latest_link($this->data);
$text = preg_replace('@(<div[^>]* )title="[^"]*"([^>]*>)@', '$1$2', substr($text, $pos4));
echo $this->prepare_html($text);
}
示例4: echo_filtered
function echo_filtered()
{
$text = $this->params['content'];
$match = null;
if (preg_match('@(?:</head>\\s*)?<body[^>]*>@is', $text, $match, PREG_OFFSET_CAPTURE)) {
$is_xhtml = preg_match('@<!DOCTYPE[^>]*xhtml@i', $match[0][0]);
$tag_end = $is_xhtml ? '/>' : '>';
echo $this->alter_title(substr($text, 0, $match[0][1]));
echo '<link rel="icon" href="/favicon.ico" type="image/ico"' . $tag_end;
echo '<link rel="stylesheet" type="text/css" href="/style-v2/section-basic.css"' . $tag_end;
echo $match[0][0];
virtual("/common/heading-doc.html");
echo latest_link($this->params);
echo $this->prepare_html($this->remove_html_banner(substr($text, $match[0][1] + strlen($match[0][0]))));
} else {
echo $text;
}
}
示例5: virtual
?>
</div>
<div class="clear"></div>
</div>
</div>
<div id="footer">
<div id="footer-left">
<div id="revised">
<p>Revised $Date$</p>
</div>
<div id="copyright">
<p>Copyright Daniel James 2014.</p>
</div><?php
virtual("/common/footer-license.html");
?>
</div>
<div id="footer-right">
<?php
virtual("/common/footer-banners.html");
?>
</div>
<div class="clear"></div>
</div>
</body>
</html>
示例6: session_start
*/
session_start();
if (preg_match('/(GDB\\d\\d\\d)/', $_SERVER['HTTP_REFERER'], $matches)) {
$X = $matches[1];
}
if (preg_match('/(GDB\\d\\d\\d)/', $_REQUEST['GDB'], $matches)) {
}
$X = $matches[1];
if (empty($SITEDEF_H)) {
require '/xGDBvm/data/' . $X . '/conf/SITEDEF.php';
}
if (empty($PARAM_H)) {
require '/xGDBvm/XGDB/phplib/getPARAM.php';
}
require_once '/xGDBvm/XGDB/phplib/SSI_GDBprep.php';
virtual("{$CGIPATH}SSI_GDBgui.pl/STANDARD_HEADER/{$SSI_QUERYSTRING}");
require_once '/xGDBvm/XGDB/phplib/DisplayProteins_functions.inc.php';
$pgdbmenu = "Genomes";
$DBid = $X;
$leftmenu = "AllProteins";
$PageTitle = "All" . $DBid . " Proteins";
$s_track = "";
// First create 'track' session ID for the variable that stores which track is in use, or else use current session variable. Session ID must be distinct from DisplayProteins.php and DisplayTranscripts.php
$get_track = isset($_GET['track']) ? $_GET['track'] : "";
if (isset($_GET['track'])) {
$track_index = intval($_GET['track']);
$s_track = $DBid . "pep-track";
$_SESSION[$s_track] = $track_index;
} else {
if (isset($_POST['track'])) {
$track_index = intval($_POST['track']);
示例7: virtual
<!-- TemplateEndEditable -->
</div>
</div>
<div id="wdn_copyright">
<div class="wdn-footer-text">
<!-- TemplateBeginEditable name="footercontent" -->
<?php
include "../sharedcode/footer.html";
?>
<!-- TemplateEndEditable -->
<?php
virtual("/wdn/templates_4.0/includes/wdn.html");
?>
</div>
<?php
virtual("/wdn/templates_4.0/includes/logos.html");
?>
</div>
</div>
</div>
<?php
virtual("/wdn/templates_4.0/includes/footer_floater.html");
?>
</footer>
<?php
virtual("/wdn/templates_4.0/includes/noscript.html");
?>
</div>
</body>
</html>
示例8: error_page
function error_page($header, $title, $message)
{
if ($header) {
header($header);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title><?php
print html_encode($title);
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" href="/favicon.ico" type="image/ico" />
<link rel="stylesheet" type="text/css" href="/style-v2/section-boost.css" />
<!--[if IE 7]> <style type="text/css"> body { behavior: url(/style-v2/csshover3.htc); } </style> <![endif]-->
</head>
<body>
<div id="heading">
<?php
virtual("/common/heading.html");
?>
</div>
<div id="body">
<div id="body-inner">
<div id="content">
<div class="section" id="intro">
<div class="section-0">
<div class="section-title">
<h1><?php
print html_encode($title);
?>
</h1>
</div>
<?php
if ($message) {
?>
<div class="section-body">
<p><?php
print html_encode($message);
?>
</p>
</div>
<?php
}
?>
</div>
</div>
</div>
<div id="sidebar">
<?php
virtual("/common/sidebar-common.html");
virtual("/common/sidebar-boost.html");
?>
</div>
<div class="clear"></div>
</div>
</div>
<div id="footer">
<div id="footer-left">
<div id="revised">
<p>Revised $Date$</p>
</div>
<div id="copyright">
<p>Copyright Rene Rivera 2006-2007.</p>
</div><?php
virtual("/common/footer-license.html");
?>
</div>
<div id="footer-right">
<?php
virtual("/common/footer-banners.html");
?>
</div>
<div class="clear"></div>
</div>
</body>
</html>
<?php
}
示例9: print_resell_html_body_begin
function print_resell_html_body_begin($tab_selected=null){
global $config, $_page_tab, $sess, $auth;
virtual($config->prolog);
echo $config->realm." Reseller Management";
virtual($config->separator);
?>
<div class="f12">
<table width="200" align="right">
<td align="right"> <a href=logout.php>Logout</a></td>
<td align="right"> <a href=/phpBB/>FAQ</a></td>
</tr>
</table>
</div>
<br clear="all">
<?
if ($auth->auth["uname"]==$config->ppaid->operator_id)
$tabs=$config->ppaid->op_tabs;
else
$tabs=$config->ppaid->r_tabs;
print_tabs_new($tabs, $config->ppaid->resell_pages_path, $tab_selected); $_page_tab=1;?>
<table bgcolor="#B1C9DC" width="100%" border="0" cellspacing="0" cellpadding="1">
<tr><td>
<table bgcolor="#FFFFFF" width="100%" border="0" cellspacing="0" cellpadding="20">
<tr valign="top"><td>
<? } //print_resell_html_body_begin
示例10: header
if ($authorized) {
## run:
include_once $DOCUMENT_ROOT . $url;
exit;
} else {
## forward to login page:
header("Location: " . URL . "?_page=account:login_htaccess&_htaccess_id=" . $VAR['_HTACCESS_ID'] . '&_htaccess_dir_id=' . $VAR['_HTACCESS_DIR_ID']);
}
}
}
########################################################################
# Check Virtual File Types:
for ($i = 0; $i < count($_VirtualFiles); $i++) {
$ext = substr(strrchr($DOCUMENT_ROOT . $url, "."), 1);
if (strtolower($ext) == $_VirtualFiles[$i]) {
virtual($DOCUMENT_ROOT . $url . "?" . $variables);
// < needs some work!
exit;
}
}
}
########################################################################
### Load the index file:
$url = strip_tags($REQUEST_URI);
$url_array = explode("/", $url);
array_shift($url_array);
if ($authorized) {
if (!empty($url_array) && file_exists($DOCUMENT_ROOT . $url . INDEX_FILE)) {
include INDEX_FILE;
exit;
} else {
示例11: virtual
<?php
## эмуляция virtual() в CGI-версии PHP
if (!function_exists("virtual")) {
function virtual($uri)
{
$uri = "http://" . $_SERVER["HTTP_HOST"] . $uri;
echo join("", file($uri));
}
}
virtual("/");
示例12: virtual
<div class="panel-heading">
<h4 class="panel-title ">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse5">¿Cómo puedo completar los indicadores de mi universidad?</a>
</h4>
</div>
<div id="collapse5" class="panel-collapse collapse">
<div class="panel-body">Al ingresar a la aplicación Web, encontrará la opción para completar los indicadores. En este apartado, se mostrarán las diferentes áreas de la matriz, algunas de ellas pueden estar activas o inactivas, según los requerimientos del administrador. Una vez elegida el área de la matriz que se desea ingresar, la aplicación Web mostrará cada una de las preguntas que se deben responder. También se encuentra disponible el ícono de ayuda, para obtener una breve explicación del dato requerido.</div>
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading">
<h4 class="panel-title ">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse6">¿Cómo puedo cerrar sesión?</a>
</h4>
</div>
<div id="collapse6" class="panel-collapse collapse">
<div class="panel-body">Al ingresar a la aplicación Web, encontrará la opción para completar los indicadores. En este La aplicación Web brinda la opción de cerrar sesión por medio de un botón de “salir”, ubicado en la página principal de la aplicación.</div>
</div>
</div>
</div>
</div>
</body>
<footer>
<?php
virtual("footer.html");
?>
</footer>
</html>
示例13: ssi
/**
* Returns SSI Include instruction <!--# include virtual="$uri" -->
* @param string $uri
*/
public function ssi($uri)
{
if (function_exists('virtual')) {
return virtual($uri);
// apache fix
}
return '<!--# include virtual="' . $uri . '" -->';
}
示例14: apache_setenv
<HTML>
<head>
<link rel="stylesheet" href="mdsplus_css.css" type="text/css">
<title>MDSplus Download</title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php
apache_setenv("SUBHEADING", "Software");
virtual("../heading.shtml");
?>
<table cellpadding="5" cellspacing="0" border="0">
<tr valign="top">
<td>
<table>
<?php
virtual("menu.shtml");
?>
</table>
</td>
<td>
<H2>Download MDSplus installation kit</H2>
<P>
<FORM METHOD="get" ACTION="download.php">
<INPUT type="hidden" name="Selected" value="1">
Please provide us with some information about you and how you will be using MDSplus.
Note this information will not be made publicly available but will help us in keeping
track of the distribution of MDSplus.
</P>
<P></P>
<P>
示例15: print_html_body_end
/**
* Print end of html body
*
* This function should be replaced by smarty template
*
* @deprecated
*/
function print_html_body_end(&$parameters)
{
global $config, $_page_tab;
echo "</div><!-- swMain -->\n";
if (isset($parameters['epilog'])) {
echo $parameters['epilog'];
} else {
virtual(multidomain_get_file($config->html_epilog));
}
echo "</body>\n";
}