Skip to content

Commit

Permalink
Update forum_stats.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rica-carv authored Jan 14, 2025
1 parent 77b64c2 commit d5966ba
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions e107_plugins/forum/forum_stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
$sc = e107::getScBatch('stats', 'forum');

// $sc['TOTAL_POSTS']= 5000000;
// var_dump ($sc);
// require_once(e_PLUGIN.'forum/forum_class.php'); // Really needed ? No call to the class is made....
$gen = e107::getDate();

Expand All @@ -71,8 +70,6 @@
$sql->select('forum_post', 'post_datestamp', 'post_datestamp > 0 ORDER BY post_datestamp ASC LIMIT 0,1', 'default');
$fp = $sql->fetch();
$fp = is_array($fp) ? $fp : array();
// var_dump ($row);
// var_dump ($fp);

// $sc->setVars(array('open_ds' => ((int) varset($fp['post_datestamp']))));
$SCvars_0['open_ds'] = (int) varset($fp['post_datestamp']);
Expand Down Expand Up @@ -263,7 +260,7 @@
<tr><td style='width: 50%; text-align: right;'><b>".LAN_FORUM_6007.":</b>&nbsp;&nbsp;</td><td style='width: 50%;'>{$avg_row_len}</td></tr>
</table>");
*/ // Templates are always defined in the template file, by default.... No need for this hardcode
//var_dump ($SCvars_0);

$sc->setVars($SCvars_0);
$text_0 = $tp->parseTemplate($template['text_0'], true, $sc);

Expand Down Expand Up @@ -622,9 +619,6 @@
$captions = array('0'=>LAN_FORUM_6000, '1'=>LAN_FORUM_0011, '2'=>LAN_FORUM_6010, '3'=>LAN_FORUM_0010, '4'=>LAN_FORUM_6011, '5'=>LAN_FORUM_6012);
$orderedtabs = array_replace(array_flip($taborder), $captions);

// var_dump ($taborder);
// var_dump ($orderedtabs);

if(deftrue('BOOTSTRAP'))
{
// $tabs = array();
Expand Down Expand Up @@ -660,8 +654,6 @@
e107::breadcrumb($breadarray); // assign to {---BREADCRUMB---}

// $text = "<div id='forum-stats'>". $text . e107::getForm()->tabs($tabs)."</div>";
// var_dump ($template['tab_start']);
// var_dump (isset($template['tab_start']));
// $text = ($template['start']??"<div id='forum-stats'>"). $text . $frm->tabs($tabs, array("scroll" => true)).($template['end']??"</div>"); // Template is always defined, it is loaded from plugin first, so defaults are always there
$text .= $template['start']. $text . $frm->tabs($tabs, array("scroll" => true)).$template['end'];
}
Expand Down Expand Up @@ -697,8 +689,6 @@
// $ns -> tablerender(LAN_FORUM_6013, $text, 'forum-stats');

$sc->setVars($fstatsSCvars);
//var_dump ($text);
//var_dump ($sc);

echo $ns->tablerender(LAN_FORUM_6013, $tp->parseTemplate($text, true, $sc), 'forum-stats');
// }
Expand Down

0 comments on commit d5966ba

Please sign in to comment.