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

PHP virtual函数代码示例

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

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



在下文中一共展示了virtual函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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']);
开发者ID:QSC-PLT,项目名称:17eyes,代码行数:10,代码来源:fileinc4.php


示例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);
}
开发者ID:nbarry10,项目名称:wdntemplates,代码行数:11,代码来源:php.unlaffiliate_local.dwt.php


示例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);
 }
开发者ID:raffienficiaud,项目名称:website,代码行数:17,代码来源:boost_filter_boost_book_basic.php


示例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;
     }
 }
开发者ID:mariomulansky,项目名称:website,代码行数:18,代码来源:boost_filter_basic.php


示例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>
开发者ID:mariomulansky,项目名称:website,代码行数:30,代码来源:pull_requests.php


示例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']);
开发者ID:BrendelGroup,项目名称:xGDBvm,代码行数:31,代码来源:DisplayProteins.php


示例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>
开发者ID:Shaderpixel,项目名称:wdntemplates,代码行数:30,代码来源:php.unlaffiliate_debug.dwt.php


示例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 
}
开发者ID:mariomulansky,项目名称:website,代码行数:92,代码来源:boost_error_page.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">&nbsp;<a href=logout.php>Logout</a></td>
				<td align="right">&nbsp;<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
开发者ID:BackupTheBerlios,项目名称:sipums,代码行数:31,代码来源:page.php


示例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 {
开发者ID:hbustun,项目名称:agilebill,代码行数:31,代码来源:htaccess_index.php


示例11: virtual

<?php

## эмуляция virtual() в CGI-версии PHP
if (!function_exists("virtual")) {
    function virtual($uri)
    {
        $uri = "http://" . $_SERVER["HTTP_HOST"] . $uri;
        echo join("", file($uri));
    }
}
virtual("/");
开发者ID:ashikov,项目名称:book,代码行数:11,代码来源:virtual.php


示例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>
开发者ID:raguilar0,项目名称:REDIES,代码行数:30,代码来源:admin_FAQ.php


示例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 . '" -->';
 }
开发者ID:alexqwert,项目名称:kanon,代码行数:12,代码来源:controllerPrototype.php


示例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>
开发者ID:petermilne,项目名称:mdsshell,代码行数:31,代码来源:download.php


示例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";
}
开发者ID:BackupTheBerlios,项目名称:serweb-frmwrk,代码行数:18,代码来源:page.php


示例16: fopen

    // in this file cgienv.cgi
    $fh = fopen($sfile, 'r');
    // Open file for read
    $Data = fread($fh, filesize($sfile));
    // Read all data into variable
    fclose($fh);
    // close file handle
    $s_str = '/^#!.*/';
    // Search for shebang
    $Data = preg_replace($s_str, $shebang, $Data);
    // replace with new shebang
    $fh = fopen($sfile, 'w');
    // Open file for write
    fwrite($fh, $Data);
    // Write to file
    fclose($fh);
    // close file handle
    virtual("cgienv.cgi");
    // Run Perl script replaces
    // this page with new resource
    exit;
    // finished
}
//== Perl not installed                          // no: Inform user
print '<div id="main">';
print '<h2>&#187; CGI Enviroment</h2>';
print '<h3>Cannot Displaying CGI Environment</h3>';
print '<p>Perl not Installed</p>';
print '<p>If you wish to run Perl download the plugin from:</p>';
print '</div>';
include_once "includes/footer.php";
开发者ID:racontemoi,项目名称:chi_win,代码行数:31,代码来源:perl_envirnonment.php


示例17: sendFileVirtual

 /**
  * Send the requested file by apache web server via virtual function
  *
  * The ILIAS "data" directory must have a "virtual-data" symbolic link
  * Access to "virtual-data" should be protected by "Allow from env=ILIAS_CHECKED"
  * The auto-generated headers should be unset by Apache for the WebAccessChecker directory
  *
  * @access	public
  */
 public function sendFileVirtual()
 {
     /**
      * @var $ilLog ilLog
      */
     global $ilLog;
     header('Last-Modified: ' . date("D, j M Y H:i:s", filemtime($this->file)) . " GMT");
     header('ETag: "' . md5(filemtime($this->file) . filesize($this->file)) . '"');
     header('Accept-Ranges: bytes');
     header("Content-Length: " . (string) filesize($this->file));
     if ($this->getSendMimetype()) {
         header("Content-Type: " . $this->getMimeType());
     }
     if (!apache_setenv('ILIAS_CHECKED', '1')) {
         $ilLog->write(__METHOD__ . ' ' . __LINE__ . ': Could not set the environment variable ILIAS_CHECKED.');
     }
     if (!virtual($this->virtual_path)) {
         $ilLog->write(__METHOD__ . ' ' . __LINE__ . ': Could not perform the required sub-request to deliver the file: ' . $this->virtual_path);
     }
     exit;
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:30,代码来源:class.ilWebAccessChecker.php


示例18: output

 function output()
 {
     $this->rendered = true;
     if (file_exists($this->template)) {
         ob_start();
         include_once $this->template;
         $this->content_for_layout = ob_get_contents();
         ob_end_clean();
     }
     // Select and use a specified layout
     if (file_exists(APP_VIEWS . DS . 'layouts' . DS . $this->current_controller . '.phtml')) {
         // Use the specified layout
         ob_start();
         include_once APP_VIEWS . DS . 'layouts' . DS . $this->current_controller . '.phtml';
         $output = ob_get_contents();
         ob_end_clean();
     } elseif (file_exists(APP_VIEWS . DS . 'layouts' . DS . 'application.phtml')) {
         // Use the application.php template
         ob_start();
         include_once APP_VIEWS . DS . 'layouts' . DS . 'application.phtml';
         $output = ob_get_contents();
         ob_end_clean();
     } else {
         // Just spit it out
         $output = $this->content_for_layout;
     }
     // echo our output
     if ($this->cache == true) {
         $uri = $_SERVER['REQUEST_URI'] != '/' ? $_SERVER['REQUEST_URI'] : '/index';
         $filename = getcwd() . '/cache' . $uri . '.shtml';
         if (!file_exists(dirname($filename))) {
             mkdir(dirname($filename), 0777, true);
         }
         // Append ATX to the output
         $o = str_replace('<!-- atx -->', '<!--#include virtual="/cgi-bin/atx/in.cgi" -->', $output);
         $o .= '<!-- cached: ' . date('r') . ' -->';
         file_put_contents($filename, $o, LOCK_EX);
         logger('CACHED: ' . $filename);
     } else {
         if ($_SERVER['HTTP_HOST'] == 'www.sublimedirectory.com') {
             virtual("/cgi-bin/atx/in.cgi");
         }
     }
     echo $output;
     return true;
 }
开发者ID:esconsut1,项目名称:php-rails-clone,代码行数:46,代码来源:controller.php


示例19: header

<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/init.php';
if (!$user || !$user->isMember()) {
    header('HTTP/1.1 403 Forbidden');
    die;
}
if (!isset($_GET['id'])) {
    header('HTTP/1.1 400 Bad Request');
}
apache_setenv('PHP_AUTH', '1');
header('Content-Type: multipart/x-mixed-replace; boundary=--BoundaryString');
virtual('/cameras/' . intval($_GET['id']));
开发者ID:russss,项目名称:hackspace-foundation-sites,代码行数:13,代码来源:camera.php


示例20: virtual

<!DOCTYPE HTML>
<html lang="es">
<head>
  <?php 
virtual("usuario_header.php");
?>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>Gestión de Recursos</title>

  <meta name="description" content="Formulario Gestion de Recurso">
  <meta name="author" content="Luis Mata, José Slon, Michael Quirós, Ricardo Aguilar, Brandon Sardí">



</head>

<body ng-app="formApp">

  <div class="container-fluid">
    <!-- fila -->
    <div class="row">

      <!-- columna 1 -->

      <div class="col-md-1"> </div>

      <!-- columna 1 // -->
开发者ID:raguilar0,项目名称:REDIES,代码行数:31,代码来源:GR.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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