mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 17:39:46 +01:00
Code cleanup. Extra debug info under Paths.
This commit is contained in:
parent
78665cd56d
commit
63527c4f19
@ -649,11 +649,11 @@ class mailout_main_ui extends e_admin_ui
|
||||
}
|
||||
|
||||
|
||||
function afterCopy($result, $copied)
|
||||
function afterCopy($result, $selected)
|
||||
{
|
||||
$num = array();
|
||||
$count = 0;
|
||||
foreach($copied as $tmp)
|
||||
foreach($selected as $tmp)
|
||||
{
|
||||
$num[] = ($result + $count);
|
||||
$count ++;
|
||||
|
@ -799,7 +799,8 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
global $e107;
|
||||
|
||||
$e107 = e107::getInstance();
|
||||
$sql = e107::getDb();
|
||||
|
||||
$text = "<table class='table table-striped table-condensed debug-footer' style='width:100%'>
|
||||
@ -845,16 +846,48 @@
|
||||
<td>SQL Language</td>
|
||||
<td>" . $sql->mySQLlanguage . "</td>
|
||||
</tr>
|
||||
|
||||
|
||||
";
|
||||
if($_SERVER['E_DEV'] == 'true')
|
||||
{
|
||||
$text .= "
|
||||
<tr>
|
||||
<td colspan='2'><pre>" . htmlspecialchars(print_r($e107, true)) . "</pre></td>
|
||||
<th colspan='2'><h2>e107 Object</h2></td>
|
||||
</tr>";
|
||||
|
||||
foreach($e107 as $key=>$val)
|
||||
{
|
||||
$text .= "
|
||||
<tr>
|
||||
<td>".$key."</td>
|
||||
<td><pre>" . htmlspecialchars(print_r($val, true)) . "</pre></td>
|
||||
</tr>";
|
||||
}
|
||||
}
|
||||
|
||||
$text .= "
|
||||
<tr>
|
||||
<th colspan='2'><h2>Registry</h2></td>
|
||||
</tr>";
|
||||
|
||||
$regis = e107::getRegistry('_all_');
|
||||
ksort($regis);
|
||||
$c = 0;
|
||||
foreach($regis as $key=>$val)
|
||||
{
|
||||
$id = "view-registry-".$c;
|
||||
|
||||
$text .= "<tr>
|
||||
<td>".$key."</td>
|
||||
<td><a href='#".$id."' class='btn btn-sm btn-default e-expandit'>View</a><div id='".$id."' class='e-hideme'>" . print_a($val,true). "</div></td>
|
||||
</tr>";
|
||||
$c++;
|
||||
|
||||
}
|
||||
|
||||
$text .= "
|
||||
|
||||
<tr>
|
||||
<th colspan='2'><h2>Session</h2></td>
|
||||
</tr>
|
||||
@ -871,6 +904,12 @@
|
||||
<td>" . $sess->getSaveMethod() . "</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Registry</td>
|
||||
<td>" . $sess->getSaveMethod() . "</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
|
@ -283,7 +283,7 @@ class user_mailout
|
||||
* @param $allow_edit is TRUE to allow user to change the selection; FALSE to just display current settings
|
||||
* @param $selectVals is the current selection information - in the same format as returned by returnSelectors()
|
||||
*
|
||||
* @return Returns HTML which is displayed in a table cell. Typically we return a complete table
|
||||
* @return array Returns HTML which is displayed in a table cell. Typically we return a complete table
|
||||
*/
|
||||
public function showSelect($allow_edit = FALSE, $selectVals = FALSE)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user