Esempio n. 1
0
     }
     if ($monsel[1] == "null") {
         $monsel2 = 12;
     } else {
         $monsel2 = $monsel[1];
     }
     if ($yearsel[1] == "null") {
         $yearsel2 = date("Y") + 1;
     } else {
         $yearsel2 = $yearsel[1];
     }
     $fdate = $yearsel1 . "-" . $monsel1 . "-" . $daysel1 . " 00:00:00";
     $tdate = $yearsel2 . "-" . $monsel2 . "-" . $daysel2 . " 23:59:59";
     $head = "Посещённые сайты в период  " . $daysel1 . "/" . $monsel1 . "/" . $yearsel1 . " - " . $daysel2 . "/" . $monsel2 . "/" . $yearsel2;
     if (isset($user) && $user != "") {
         $accts = $BILL->GetUserUrlsByPeriod($uid, $fdate, $tdate, $sort);
     }
 }
 $year = date("Y");
 $month = date("m");
 $day = date("d");
 if (!isset($user)) {
     $user = "";
 }
 if (isset($mod) && $mod == "show") {
     $daysel1 = getdaysel($daysel[0]);
     $monsel1 = getmonthsel($monsel[0], $monthsof);
     $yearsel1 = getyearsel($GV["start_year"], $year, $yearsel[0]);
     $daysel2 = getdaysel($daysel[1]);
     $monsel2 = getmonthsel($monsel[1], $monthsof);
     $yearsel2 = getyearsel($GV["start_year"], $year, $yearsel[1]);