. See AUTHORS to learn who helped make it become a reality. */#### #### #### #### #### #### #### #### #### #### include 'include.php'; // General variables $szRedirectLink = ""; $szDescription = ""; if( !isset($_POST['userConfig']) ) $_POST['userConfig'] = ""; if($_POST['userConfig'] == "UserConfiguration") { /*! * Update language setting !*/ if ((eregi("^[a-z]+$", $_POST['language'])) and (strlen($_POST['language']) == 2)) $_SESSION['language'] = $_POST['language']; else $_SESSION['language'] = 'en'; // default /*! * Update style setting !*/ if ((eregi("^[a-z]+$", $_POST['stylesheet']))) $_SESSION['stylesheet'] = $_POST['stylesheet']; else $_SESSION['stylesheet'] = 'phplogcon'; // default /*! * Update debug setting !*/ $_SESSION['debug'] = (isset($_POST['debug'])) ? 1 : 0; /*! * Update filter save setting !*/ $_SESSION['savefiltersettings'] = (isset($_POST['savefiltersettings'])) ? 1 : 0; if(_ENABLEUI == 1) { //Save filter settings to database $query = GetUserConfigArray(); for($i = 0; $i < count($query); $i++) db_exec($global_Con, $query[$i]); } } elseif($_POST['bookmarkConfig'] == "BookmarkDelete") { $delstr = explode("//", $_POST["favorites"]); $result = db_exec($global_Con, "SELECT UserLogin, PropValue FROM UserPrefs WHERE UserLogin LIKE '" . $_SESSION["usr"] . "' AND Name LIKE 'PHPLOGCON_favorites'"); $result = db_fetch_singleresult($result); $result = explode(",", $result["PropValue"]); $rowcntr = count($result); for($i = 0; $i < $rowcntr ; $i++) { if(stristr($result[$i], $delstr[1])) $delval = $i; } $delstr = ""; for($j = 0; $j < $rowcntr ; $j++) { if($j == $delval) continue; else { if($rowcntr == 2 || $j == ($rowcntr - 1)) $delstr .= $result[$j]; else $delstr .= $result[$j] . ","; } } db_exec($global_Con, "UPDATE UserPrefs SET PropValue='" . $delstr . "' WHERE UserLogin LIKE '" . $_SESSION["usr"] . "' AND Name LIKE 'PHPLOGCON_favorites'"); db_close($global_Con); } elseif($_POST['bookmarkConfig'] == "BookmarkAdd") { if( stristr($_POST["sitename"], "'") || stristr($_POST["sitename"], """) || stristr($_POST["url"], "'") || stristr($_POST["url"], """)) $szDescription = _MSGSitInvChr; else { $addstr = explode("http://", $_POST["url"]); if(isset($addstr[1])) $addstr[0] = $addstr[1]; $result = db_exec($global_Con, "SELECT UserLogin, PropValue FROM UserPrefs WHERE UserLogin LIKE '" . $_SESSION["usr"] . "' AND Name LIKE 'PHPLOGCON_favorites'"); $result = db_fetch_singleresult($result); if($result["PropValue"] == "") $addstr[0] = $result["PropValue"] . $addstr[0] . "|" . $_POST["sitename"]; else $addstr[0] = $result["PropValue"] . "," . $addstr[0] . "|" . $_POST["sitename"]; db_exec($global_Con, "UPDATE UserPrefs SET PropValue='" . $addstr[0] . "' WHERE UserLogin LIKE '" . $_SESSION["usr"] . "' AND Name LIKE 'PHPLOGCON_favorites'"); db_close($global_Con); } } $szRedirectLink = "user-config.php"; $szDescription = "Your Personal user settings have been updated"; ?> "; ?> Redirecting



".$szDescription."

"; echo "You will be redirected to this page in 1 second."; ?>