// GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------- // // ------------------------------------------------------------------------ // configuration file // ------------------------------------------------------------------------ $ignore_messages = false; $lvc_include_dir = 'include/'; $lvc_config_file = 'config.inc.php'; include $lvc_include_dir . $lvc_config_file; // ------------------------------------------------------------------------ // library file // ------------------------------------------------------------------------ include $lvc_include_dir . 'library.inc.php'; $gDb = new Db(); if (!$gDb->DbConnect($lvc_db_host, $lvc_db_user, $lvc_db_password, $lvc_db_database)) { echo connexion_error($lvm_connexion_error); } elseif ($img == 'img_last_months' || $img == 'img_year_per_day' || $img == 'img_day_per_hour') { echo insert_cached_image('<mod-' . $img . ' cache=' . ${'lvc_delay_' . $img} . ' generate=1>'); } else { // calculate cache delay $gData = archive_month((int) $month, $year, 'vph, vpj'); $is_archived = $gData[0] != NO_ARCHIVE; $cache_delay = $is_archived ? $lvc_delay_archive_month : $lvc_delay_current_month; if ($img == 'img_visitors_per_hour' || $img == 'img_visitors_per_day') { echo insert_cached_image('<mod-' . $img . ' cache=' . $cache_delay . ' year=' . $year . ' month=' . $month . ' generate=1 archive=' . $is_archived . '>'); } }
// (at your option) any later version. // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------- // // ------------------------------------------------------------------------ // MODULE: daily_stats // ------------------------------------------------------------------------ echo '<A NAME="daily_stats"></A>'; echo insert_cached_module('<mod-daily_stats cache=' . $lvc_delay_daily_stats . '>'); // ------------------------------------------------------------------------ // MODULE: last_visitors // ------------------------------------------------------------------------ echo '<A NAME="last_visitors"></A>'; echo insert_cached_module('<mod-last_visitors cache=' . $lvc_delay_last_visitors . '>'); // ------------------------------------------------------------------------ // IMAGE: visitors per hour // ------------------------------------------------------------------------ echo '<A NAME="img_per_hour"></A>'; echo insert_cached_image('<mod-img_day_per_hour generate=0>'); // ------------------------------------------------------------------------ // MODULE: top_day_referer // ------------------------------------------------------------------------ echo '<A NAME="top_day_referer"></A>'; echo insert_cached_module('<mod-top_day_referer cache=' . $lvc_delay_top_day_referer . '>');
echo '<A NAME="top_os"></A>'; echo insert_cached_module('<mod-top_os cache=' . $cache_delay . ' year=' . $year . ' month=' . $month . ' archive=' . $is_archived . '>'); echo "</TD>\n"; echo "<TD VALIGN='top' WIDTH='33%'>\n"; // ------------------------------------------------------------------------ // MODULE: top_agent // ------------------------------------------------------------------------ echo '<A NAME="top_agent"></A>'; echo insert_cached_module('<mod-top_agent cache=' . $cache_delay . ' year=' . $year . ' month=' . $month . ' archive=' . $is_archived . '>'); echo "</TD></TR>\n"; echo "</TABLE>\n"; // ------------------------------------------------------------------------ // IMAGE: visitors per hour // ------------------------------------------------------------------------ echo '<A NAME="img_per_hour"></A>'; echo insert_cached_image('<mod-img_visitors_per_hour year=' . $year . ' month=' . $month . ' generate=0>'); echo "<TABLE BORDER='0' CELLSPACING='0' CELLPADDING='0' WIDTH='100%'>\n"; echo "<TR><TD VALIGN='top' WIDTH='50%'>\n"; // ---------------------------------------------------------------------------- // MODULE: top_referer // ---------------------------------------------------------------------------- echo '<A NAME="top_referer"></A>'; echo insert_cached_module('<mod-top_referer cache=' . $cache_delay . ' year=' . $year . ' month=' . $month . ' archive=' . $is_archived . '>'); echo "</TD>\n"; echo "<TD VALIGN='top' WIDTH='50%'>\n"; // ---------------------------------------------------------------------------- // MODULE: top_domain // ---------------------------------------------------------------------------- echo '<A NAME="top_domain"></A>'; echo insert_cached_module('<mod-top_domain cache=' . $cache_delay . ' year=' . $year . ' month=' . $month . ' archive=' . $is_archived . '>'); echo "</TD></TR>\n";
// but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------- // // ------------------------------------------------------------------------ // MODULE: calendar // ------------------------------------------------------------------------ echo '<A NAME="calendar"></A>'; echo insert_cached_module('<mod-calendar cache=' . $lvc_delay_calendar . '>'); // ------------------------------------------------------------------------ // IMAGE: year per day // ------------------------------------------------------------------------ echo '<A NAME="img_year_per_day"></A>'; if ($ypd == 1) { echo insert_cached_image('<mod-img_year_per_day generate=0>'); } else { echo "<CENTER>"; echo " " . html_link('./?view=year&ypd=1', html_image('images/' . ICON_GRAPH)) . " "; echo html_link('./?view=year&ypd=1', '<B>' . $lvm_year_per_day . '</B>'); echo "</CENTER>"; } // ------------------------------------------------------------------------ // IMAGE: last months // ------------------------------------------------------------------------ echo '<A NAME="img_last_months"></A>'; echo insert_cached_image('<mod-img_last_months generate=0>');