settings['stats']) { echo 'Stats not enabled.';exit; } $doLogin=false; $hash=md5($oi->settings['stats_user'].$oi->settings['stats_password']); if (empty($_SESSION['_oi_isLogged'])) $doLogin=true; elseif($_SESSION['_oi_isLogged']!=$hash) $doLogin=true; if ($doLogin) { if ($_SERVER['REQUEST_METHOD']=='POST') { if (empty($_POST['user_box'])) $ers['user']="User box is empty!"; elseif($_POST['user_box']!=$oi->settings['stats_user']) $ers['user']="Invalid user/password!"; if (empty($_POST['password_box'])) $ers['password']="Password box is empty!"; elseif($_POST['password_box']!=$oi->settings['stats_password']) $ers['password']="Invalid user/password!"; if (count($ers)==0) { $_SESSION['_oi_isLogged']=$hash;header("Location: stats.php");exit; } else echo ers($ers); } else { $_POST['user_box']=''; $_POST['password_box']=''; } echo showStyles(); echo "
OpenInviter Statistics | ||||||
Service | Users who imported contacts | Contacts imported | Users who sent messages | Messages sent | ||
".(isset($plugins['email'][$service])?$plugins['email'][$service]['name']:(isset($plugins['social'][$service])?$plugins['social'][$service]['name']:$service))." | {$details['total_imports']} | {$details['total_contacts']} | "; if (isset($messages_stats[$service])) { $total_sends+=$messages_stats[$service]['total_sends']; $total_messages+=$messages_stats[$service]['total_messages']; echo "{$messages_stats[$service]['total_sends']} | {$messages_stats[$service]['total_messages']} | "; } else echo "- | - | "; echo "
Total | {$total_imports} | {$total_contacts} | {$total_sends} | {$total_messages} |
";
foreach ($ers as $key=>$error)
$contents.="{$error} "; $contents.=" |