"; // ************************************************************************************************************************************************** // $presday = date("Y-m-d"); $result_set = mysqli_query($db, "SELECT * FROM site_settings WHERE name='theme_option' and start<>'1900-01-01' and start<='$presday' and end>='$presday' ORDER BY start DESC"); $myrow_set = mysqli_fetch_array($result_set); $theme = $myrow_set['value']; // //if ($result_set) echo "Read for themes in siteinfo ($theme)
"; //************************************************************************************************************************* // if (substr($theme,0,4) == "std-") { if (isset($_SESSION["valid_user"]) and $_SESSION["valid_user"] != "") { $infoname = $_SESSION['valid_user']; $result_set = mysqli_query($db, "SELECT * FROM site_user WHERE username='$infoname'"); $myrow_set = mysqli_fetch_array($result_set); $theme_set = $myrow_set['theme_pref']; if ($theme_set != "None") { $theme = $theme_set; } } } $info_script_nm = $_SERVER["SCRIPT_FILENAME"]; if (strpos($info_script_nm, "spe") > 0) { $result_set = mysqli_query($db, "SELECT * FROM site_sports WHERE game_date='$presday'"); // //if ($result_set) echo "Read for UofO theme in siteinfo
"; // testing ********************************************************************************************************************** // if (mysqli_num_rows($result_set) > 0) { while ($myrow_set = mysqli_fetch_array($result_set)) { // $myrow_set = mysqli_fetch_array($result_set); $tmp = $myrow_set['sport']; //echo "tmp=$tmp
"; if ($tmp != "UConn_Basketball_2019-20") $theme = "UofO"; } } } $_SESSION['site_theme'] = $theme; // Set Site Info Values from MySQL $info = 0; $info ++;$sv[$info] = "user_title_notes1"; $info ++;$sv[$info] = "user_title_notes2"; $info ++;$sv[$info] = "user_title_notes3"; $info ++;$sv[$info] = "user_title_notes_admin"; $info ++;$sv[$info] = "site_name"; $info ++;$sv[$info] = "hosted_on"; $info ++;$sv[$info] = "disp_join_msg"; $info ++;$sv[$info] = "web_email"; $info ++;$sv[$info] = "timezone"; $info ++;$sv[$info] = "url_name"; $info ++;$sv[$info] = "db_backup_to"; $info ++;$sv[$info] = "db_location"; $info ++;$sv[$info] = "site_uses_guess"; $info ++;$sv[$info] = "max_role"; $info ++;$sv[$info] = "recent_visitors"; $info ++;$sv[$info] = "improve_db_host"; $info ++;$sv[$info] = "improve_db_user"; $info ++;$sv[$info] = "improve_db_pass"; $info ++;$sv[$info] = "improve_db_name"; $info ++;$sv[$info] = "improve_sitedir"; $info ++;$sv[$info] = "mysqli_version"; //-------------------------------------was old name for mysqli $info ++;$sv[$info] = "error_log_location"; $info ++;$sv[$info] = "menu_size"; //$info ++;$sv[$info] = "xxx"; for ($i=1; $i<=$info; $i++) { $tmp = $sv[$i]; $result_set = mysqli_query($db, "SELECT * FROM site_settings WHERE name='$tmp'"); $myrow_set = mysqli_fetch_array($result_set); $_SESSION[$tmp] = $myrow_set['value']; } // Set Calculated Site Info Values $pw_key = "ASKSDFnsdfKEISDJAHDLDSDF1235UUUiidfsdf"; $_SESSION['pw_key'] = $pw_key; // Set Variables from SESSION values $siteprefix = substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'],"public_html")-strlen($_SERVER['SCRIPT_FILENAME'])); $sitename = $_SESSION['site_name']; $menu_size = $_SESSION['menu_size']; $webemail = $_SESSION['web_email']; $site_tz = $_SESSION['timezone']; $siteurl = $_SESSION['url_name']; $siteloc = $_SESSION['hosted_on']; $site_db_buto = $_SESSION['db_backup_to']; $site_db_locn = $_SESSION['db_location']; $fp_uses_guess = $_SESSION['site_uses_guess']; $tmpnames = $_SESSION['menu_names']; $max_role = $_SESSION['max_role']; $site_rec_visits = $_SESSION['recent_visitors']; //echo "in info, ms=$menu_size, mr=$max_role~
"; //*********************************************************************************************************************************** //$site_settings['site_db_name'] = $site_db_name; // Probably not used anyplace //$site_settings['site_db_user'] = $site_db_user; //$site_settings['site_db_pass'] = $site_db_pass; //$site_settings['site_db_host'] = $site_db_host; $_SESSION['site_db_name'] = $site_db_name; $_SESSION['site_db_user'] = $site_db_user; $_SESSION['site_db_pass'] = $site_db_pass; $_SESSION['site_db_host'] = $site_db_host; ?> 0) { $row = mysqli_fetch_array($result); $current_role = $row["role_name"]; $username = $row["username"]; $valid_user_id = $row["user_id"]; $p = $row["lastvisit"]; $_SESSION["user_lastvisit"] = $p; $t = date("Y-m-d H:i:s", time()); $sql = "update site_user set "; if ($pw_type != "AES") $sql .= "passwd=AES_ENCRYPT('$passwd', '$pw_key'), pw_type='AES', "; $sql .= "lastvisit='$t', prevvisit='$p' where username='$username'"; // $sql = "update site_user set passwd=AES_ENCRYPT('$passwd', '$pw_key'), pw_type='AES', lastvisit='$t', prevvisit='$p' where username='$username'"; // echo "pw_type=$pw_type
"; $result = mysqli_query($db, $sql); $valid_user = $username; $_SESSION["valid_user"] = $valid_user; $_SESSION["valid_user_id"] = $valid_user_id; $_SESSION["current_role"] = $current_role; if (!isset($_SESSION['internal_counter'])) { // $file_dat = "../../cdms/counter_int.dat"; $handle = fopen($file_dat,"r"); $count = fread($handle, filesize ($file_dat)); fclose($handle); $count = $count + 1; $handle = fopen($file_dat,"w"); fwrite($handle,"$count"); fclose($handle); $_SESSION['internal_counter'] = $count; } else { $count = $_SESSION['internal_counter']; } $handle = fopen($file_log,"a"); fwrite($handle,"$dts - User=$username, Role=$current_role, Txn=Login-Good, Count:$count, $passwd - IP:$remote, Agent=$agent\n"); fclose($handle); } else { $file_log = "../../cdms/counter_int.log"; $handle = fopen($file_log,"a"); fwrite($handle,"$dts - User=$username, Txn=Login-Failed, Count:$count, $passwd - IP:$remote, Agent=$agent\n"); fclose($handle); } ?>

Site

Welcome $valid_user"; $result = mysqli_query($db, "update site_user set dw='$dw', dh='$dh' where username='$valid_user'"); ?>

Please click here to view our terms of use.

"; } if ($viewed_privacy < $t) { // echo "Please click here to view our privacy statement.

"; } if ($pw == '*196BDEDE2AE4F84CA44C47D54D78478C7E2BD7B7' OR $pw == '29bad1457ee5e49e') { echo "Please click here to change your password.

"; } $menu_heading = ""; $result = mysqli_query($db, "SELECT * FROM site_menu_items WHERE menu_items_roles LIKE '%/$current_role/%' OR menu_items_users LIKE '%/$valid_user/%' ORDER BY menu_items_seq"); while ($row = mysqli_fetch_array($result)) { $items_heading = $row["menu_items_heading"]; $items_item = $row["menu_items_item"]; $items_url = $row["menu_items_url"]; if ($menu_heading != $items_heading) { echo "$items_heading Menu
"; $menu_heading = $items_heading; } if (strpos($items_url, "/tng/processlogin") > 0) $items_url = $items_url . "vu=" . $_SESSION['valid_user']; // if (strpos($items_url, "/cpg-1.5.18/login") > 0) { /* $tmp = "
"; echo "$tmp"; echo ""; echo ""; echo "