<commit_before><?php
/** Plugins Info Page
*
* Copyright (C) 2012 <NAME>
* Released under GNU GPL V2
* See LICENSE
*
*/ 
defined('_CREDLOCK') or die;
BTMain::checkSuperAdmin();
$plugin = new Plugins;

$plg = str_replace("/","",str_replace(".","",BTMain::getVar('plg')));
$plgtype = str_replace("/","",str_replace(".","",BTMain::getVar('type')));
global $notifications;


$notifications->setPageTitle("Plugin Info");

$path = array(array('name'=>'Plugins','url'=>'index.php?option=pluginInfo'),array('name'=>$plg,'url'=>"index.php?option=plgInfo&plg=$plg"));

$notifications->setBreadcrumb($path);


$details = $plugin->getPluginInfo($plg,$plgtype);

?>
<h1>Plugin <?php echo htmlspecialchars($plg);?></h1>

<h2>Details</h2>

<table class="table table-striped pluginDetails">
<tr><th>Status</th><td><?php echo Plugins::transStatus($details->status);?></td></tr>

<?php foreach ($details->info as $key=>$value){?>
<tr><th><?php echo $key;?></th><td><?php echo $value; ?></td></tr>
<?php } ?>
</table>
<div id='PluginReadme'>
<h2>Plugin Readme</h2>

<?php include "plugins/$plg/README.html"; ?>

</div><commit_msg>Amended Plugin.Readme to use the Plugin Path constant<commit_after><?php
/** Plugins Info Page
*
* Copyright (C) 2012 <NAME>
* Released under GNU GPL V2
* See LICENSE
*
*/ 
defined('_CREDLOCK') or die;
BTMain::checkSuperAdmin();
$plugin = new Plugins;

$plg = str_replace("/","",str_replace(".","",BTMain::getVar('plg')));
$plgtype = str_replace("/","",str_replace(".","",BTMain::getVar('type')));
global $notifications;


$notifications->setPageTitle("Plugin Info");

$path = array(array('name'=>'Plugins','url'=>'index.php?option=pluginInfo'),array('name'=>$plg,'url'=>"index.php?option=plgInfo&plg=$plg"));

$notifications->setBreadcrumb($path);


$details = $plugin->getPluginInfo($plg,$plgtype);

?>
<h1>Plugin <?php echo htmlspecialchars($plg);?></h1>

<h2>Details</h2>

<table class="table table-striped pluginDetails">
<tr><th>Status</th><td><?php echo Plugins::transStatus($details->status);?></td></tr>

<?php foreach ($details->info as $key=>$value){?>
<tr><th><?php echo $key;?></th><td><?php echo $value; ?></td></tr>
<?php } ?>
</table>
<div id='PluginReadme'>
<h2>Plugin Readme</h2>

<?php include CREDLOCK_PLUGIN__PATH."/$plg/README.html"; ?>

</div>
{'fraction_non_alphanumeric': 0.2503293807641634, 'fraction_numerical': 0.00966183574879227, 'mean_word_length': 7.7615384615384615, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4087876', 'n_tokens_mistral': 847, 'n_tokens_neox': 844, 'n_words': 142}