<?php require_once 'require_module.php'; require_module('require_ex.php'); require_ex();
<?php if (isset($_SERVER['WWW'])) { $_SERVER['PHP_ROOT'] = $_SERVER['WWW']; } else { if (isset($_SERVER['HPHP_FACEBOOK_WWW'])) { $_SERVER['PHP_ROOT'] = $_SERVER['HPHP_FACEBOOK_WWW']; } else { die('$WWW or $HPHP_FACEBOOK_WWW needs to be set in your environment'); } } require_once $_SERVER['PHP_ROOT'] . '/flib/__flib.php'; flib_init(FLIB_CONTEXT_SCRIPT); require_module('employee/info'); require_module('employee/unixname'); $CodeErrorJS = $argv[1]; $SourceRoot = $argv[2]; $Command = isset($argv[3]) ? $argv[3] : null; $CmdPrefix = is_dir("{$SourceRoot}/.git") ? "git --work-tree={$SourceRoot} " : ""; $errors = json_decode(file_get_contents($CodeErrorJS), true); if (!$Command) { $CurEmail = get_email(posix_getlogin()); if (!$CurEmail) { die("Current user doesnt seem to have a facebook email address"); } } $emails = array(); $reporting = array('BadPHPIncludeFile', 'PHPIncludeFileNotFound', 'UseEvaluation', 'UseUndeclaredVariable', 'UseUndeclaredConstant', 'UnknownClass', 'UnknownBaseClass', 'UnknownObjectMethod', 'InvalidMagicMethod', 'UnknownFunction', 'BadConstructorCall', 'DeclaredVariableTwice', 'DeclaredConstantTwice', 'BadDefine', 'RequiredAfterOptionalParam', 'RedundantParameter', 'TooFewArgument', 'TooManyArgument', 'BadArgumentType', 'StatementHasNoEffect', 'UseVoidReturn', 'MissingObjectContext', 'MoreThanOneDefault', 'InvalidArrayElement', 'InvalidDerivation', 'ReassignThis', 'MissingAbstractMethodImpl', 'BadPassByReference'); $blames = array(); if ($Command != "--list") { $errs = array();
/** * D方法实例化数据库模型 * @param name 模型名称 * @param method 模型方法 * @author Colin <*****@*****.**> */ function D($name = null, $method = null) { if (empty($name)) { ShowMessage('D方法必须传递一个值'); } //查找分组 $explode = explode('/', $name); if (isset($explode[1]) && !empty($explode[1])) { //引入命名空间以及目录 $tables = $explode[1]; $name = require_module($explode[1], 'MODEL', $explode[0]); } else { $tables = $name; //引入命名空间以及目录 $name = require_module($name, 'MODEL'); } //文件目录 $filepath = APP_PATH . '/' . $name . Config('DEFAULT_MODEL_SUFFIX') . Config('DEFAULT_CLASS_SUFFIX'); //文件不存在 if (!file_exists(str_replace('\\', '/', $filepath))) { //创建系统模型 $obj = \MyClass\libs\ObjFactory::CreateSystemModel($tables); } else { //创建模型 带表名 $obj = \MyClass\libs\ObjFactory::CreateModel($name); } if (empty($method)) { return $obj; } else { return $obj->{$method}(); } }
<?php // Copyright 2004-present Facebook. All Rights Reserved. require_module('core/preparable'); require_module('core/sitevars'); require_module('core/utils'); require_module('entity/application'); require_module('entity/core'); require_module('entity/public_profile/fbpage'); require_module('fbpage/metapage'); require_module('http/uri'); // hello require_source('PagesAroundTheWeb.php');
<?php // #!/usr/local/bin/php-cgi require_once "./environment.php"; require_module("namelink"); $nametag = new NameTag(''); $description = "Mus musculus"; $nametag->reset($description); $description = $nametag->markup_html(); echo "{$description}<br>";
<?php require_module('http/curl');
<?php require_once $_SERVER['PHP_ROOT'] . '/lib/foo.php'; require_module('foo/bar'); class Foo extends Bar { public function foo() { foo_func(); } public static function bar() { $bar = new Bar(); return $bar->bar(); } } function bar_func() { return 1; }
<?php require_once 'require_module.php'; require_module('moda.php'); // note that xdebug traces include only function calls, // and the location printed for each function call is the // location at the call site. If require_ex() echo // directly, then the trace will not contain any mention // of require_ex.php. We need to have a function call inside // require_ex() itself, hence the introduction of internal_require_ex() // function require_ex() { internal_require_ex(); } function internal_require_ex() { echo "require_ex\n"; }