Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
PK#L�[m���tmpl/default.phpnu�[���<?php
/**
* J!Dump
* @version $Id$
* @package jdump
* @copyright Copyright (C) 2006-2011 Mathias Verraes. All rights
reserved.
* @license GNU/GPL
* @link https://github.com/mathiasverraes/jdump
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en-gb" lang="en-gb" dir="ltr" >
<head>
<meta http-equiv="content-type" content="text/html;
charset=utf-8" />
<title>J!Dump - <?php echo
$this->application?></title>
<link href="<?php echo
DUMP_URL?>assets/css/general.css" rel="stylesheet"
type="text/css" />
<link href="<?php echo
DUMP_URL?>assets/css/component.css" rel="stylesheet"
type="text/css" />
<link rel="stylesheet" href="<?php echo
DUMP_URL?>assets/css/folder-tree-static.css"
type="text/css" />
<link rel="stylesheet" href="<?php echo
DUMP_URL?>assets/css/dump.css" type="text/css" />
<script type="text/javascript" src="<?php echo
DUMP_URL?>assets/js/mootools.js"></script>
<script type="text/javascript" src="<?php echo
DUMP_URL?>assets/js/joomla.javascript.js"></script>
<script type="text/javascript" src="<?php echo
DUMP_URL?>assets/js/folder-tree-static.js"></script>
<script type="text/javascript" src="<?php echo
DUMP_URL?>assets/js/dump.js"></script>
<script type="text/javascript">
window.addEvent('domready', function(){ var JTooltips = new
Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); });
var imageFolder = '<?php echo DUMP_URL?>assets/images/';
</script>
</head>
<body class="contentpane">
<fieldset class="dumpContainer">
<legend>Application: <?php echo
$this->application?></legend>
<br />
<a href="#" onclick="return false;"
id="dumpLocked" class="dumpLocked">Window is
locked</a>
<a href="#" onclick="dumpLockWindow();return false;"
id="dumpLock" class="dumpLock">Lock Window</a>
<a href="#" onclick="window.location.reload( true
);return false;" id="dumpRefresh"
class="dumpRefresh">Refresh</a>
<?php if( $this->closebutton ) {
?><a href="#" onclick="window.close();return
false;" class="dumpClose">Close Window</a><?php
} ?>
<?php if( $this->tree=='' ) {
?><br /><br />No dumped variables found.<br
/><?php
} else {
?><a href="#"
onclick="expandAll('dhtmlgoodies_tree');return false;"
class="dumpExpandAll">Expand all</a>
<a href="#"
onclick="collapseAll('dhtmlgoodies_tree');return
false;" class="dumpCollapseAll">Collapse
all</a><br /><br />
<ul id="dhtmlgoodies_tree"
class="dhtmlgoodies_tree"><?php
echo $this->tree
?></ul><?php
}?>
<br />
<a href='https://github.com/mathiasverraes/jdump'
target='_blank'
style='margin-right:10px;font-size:10px'>J!Dump v<?php echo
$this->version?></a>
</fieldset>
</body>
</html>PK#L�[x4�݈�view.raw.phpnu�[���<?php
/**
* J!Dump
* @version $Id$
* @package jdump
* @copyright Copyright (C) 2006-2011 Mathias Verraes. All rights
reserved.
* @license GNU/GPL
* @link https://github.com/mathiasverraes/jdump
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
JHTML::_('behavior.tooltip');
class DumpViewTree extends JViewLegacy
{
function display($tpl = null)
{
$mainframe = JFactory::getApplication(); $option =
JRequest::getCmd('option');
// we need to add these paths so the component can work in both site and
administrator
$this->addTemplatePath( dirname(__FILE__) . '/tmpl' );
// client information (site, administrator, ... )
jimport( 'joomla.application.helper' );
$client =
JApplicationHelper::getClientInfo($mainframe->getClientID());
// make sure we only show the component
JRequest::setVar( 'tmpl', 'component' );
// render tree and assign to template
$tree = $this->renderTree();
$this->assignRef('tree', $tree );
$this->assignRef( 'application', $client->name );
$this->assign( 'version', DUMP_VERSION );
$this->assign( 'closebutton', JRequest::getInt(
'closebutton', 1 ) );
parent::display($tpl);
}
function & renderTree() {
$mainframe = JFactory::getApplication(); $option =
JRequest::getCmd('option');
$output = '';
// get the nodes from the model
$nodes = $this->get('nodes');
// render the nodes to <ul><li...
foreach ( $nodes as $node ) {
$output .= $this->renderNode( $node );
}
return $output;
}
function renderNode( & $node ) {
switch ( $node['type'] ) {
case 'object':
case 'array':
return $this->renderObjArray( $node );
break;
case 'integer':
case 'float':
case 'double':
return $this->renderNumber( $node );
break;
case 'string':
return $this->renderString( $node );
break;
case 'null':
case 'resource':
return $this->renderNull( $node );
break;
case 'boolean':
return $this->renderBoolean( $node );
break;
case 'method':
return $this->renderMethod( $node );
break;
case 'methods':
case 'properties':
return $this->renderMethProp( $node );
break;
case 'message':
return $this->renderMessage( $node );
break;
default:
return $this->renderObjArray( $node );
break;
}
}
function renderObjArray( & $node ) {
global $node_id;
$children = count( $node['children'] );
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="a' . ++$node_id .
'">' ;
$output .= '<span class="dumpType"> [';
$output .= ( isset( $node['classname'] ) ?
$node['classname'] . ' ' : '' );
$output .= $node['type'];
$output .= ']</span> ';
$output .= $node['name'];
$output .= $this->renderSource( $node );
$output .= $children ? '' : ' =
<i>(empty)</i>';
$output .= '</a>';
if ( $children ) {
$output .= '<ul>';
foreach( $node['children'] as $child ) {
$output .= $this->renderNode( $child );
}
$output .= '</ul>';
}
$output .= '</li>';
return $output;
}
function renderNull( & $node ) {
global $node_id;
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="node_' .
++$node_id . '">' ;
$output .= '<span class="dumpType"> ['.
$node['type'] . ']</span> ';
$output .= $node['name'];
$output .= $this->renderSource( $node );
$output .= '</a>';
$output .= '</li>';
return $output;
}
function renderNumber( & $node ) {
global $node_id;
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="node_' .
++$node_id . '">' ;
$output .= '<span class="dumpType"> ['.
$node['type'] . ']</span> ';
$output .= $node['name'];
$output .= ' = ' . $node['value'];
$output .= $this->renderSource( $node );
$output .= '</a>';
$output .= '</li>';
return $output;
}
function renderBoolean( & $node ) {
global $node_id;
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="node_' .
++$node_id . '">' ;
$output .= '<span class="dumpType"> ['.
$node['type'] . ']</span> ';
$output .= $node['name'];
$output .= $this->renderSource( $node );
$output .= ' = ' . ( $node['value'] ?
'TRUE' : 'FALSE' );
$output .= $this->renderSource( $node );
$output .= '</a>';
$output .= '</li>';
return $output;
}
function renderString( & $node ) {
global $node_id;
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="node_' .
++$node_id . '">' ;
$output .= '<span class="dumpType"> ['.
$node['type'] . ']</span> ';
$output .= $node['name'];
$output .= ' = "' . nl2br(htmlspecialchars(
$node['value'] , ENT_QUOTES ) ). '"';
if ( isset($node['length']) ) { $output .= ' <span
class="dumpString">(Length =
'.intval($node['length']).')</span>'; }
$output .= $this->renderSource( $node );
$output .= '</a>';
$output .= '</li>';
return $output;
}
function renderMessage( & $node ) {
global $node_id;
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="node_' .
++$node_id . '">' ;
$output .=
'<i>'.$node['value'].'</i>';
$output .= $this->renderSource( $node );
$output .= '</a>';
$output .= '</li>';
return $output;
}
function renderMethod( & $node ) {
global $node_id;
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="node_' .
++$node_id . '">' . $node['name'] .
'</a>';
$output .= '</li>';
return $output;
}
function renderMethProp( & $node ) {
global $node_id;
$output = '';
$output .= '<li class="' . $node['type'] .
'.gif">';
$output .= '<a href="#" id="node_' .
++$node_id . '">' . $node['name'] .
'</a>';
if ( count( $node['children'] ) ) {
$output .= '<ul>';
foreach( $node['children'] as $child ) {
$output .= $this->renderNode( $child );
}
$output .= '</ul>';
}
$output .= '</li>';
return $output;
}
function & renderSource( & $node ) {
$mainframe = JFactory::getApplication(); $option =
JRequest::getCmd('option');
$params = JComponentHelper::getParams('com_dump');
$output = '';
if ($node['source'] &&
$params->get('showOrigin', 1))
{
// next line doesn't work - bug in J?
//$output .= JCommonHTML::ToolTip($node['source'],
'Source');
$tooltip = '<span
class="tool-title">Source</span><br />';
$tooltip .= '<span class="tool-text">' .
$node['source'] . '</span>';
$tooltip = htmlspecialchars($tooltip);
$output .= ' <span class="hasTip"
width="600px" title="'.$tooltip.'"><img
src="'.DUMP_URL.'assets/images/content.png"
alt="Tooltip" border="0" width="12"
height="12" /></span>';
}
return $output;
}
}
PK#L�[m���tmpl/default.phpnu�[���PK#L�[x4�݈�Cview.raw.phpnu�[���PK�&