Esempio n. 1
0
                $_POST['YourOffSet'] = "0";
            }
            if (!is_numeric($_POST['MinOffSet'])) {
                $_POST['MinOffSet'] = "00";
            }
            if ($_POST['MinOffSet'] < 0) {
                $_POST['MinOffSet'] = "00";
            }
            $_POST['YourOffSet'] = $_POST['YourOffSet'] . ":" . $_POST['MinOffSet'];
            $_SESSION['UserTimeZone'] = $_POST['YourOffSet'];
            $_SESSION['UserDST'] = $_POST['DST'];
            $NewDay = GMTimeStamp();
            $NewIP = $_SERVER['REMOTE_ADDR'];
            $_POST['Website'] = urlcheck($_POST['Website']);
            $_POST['iDBTimeFormat'] = convert_strftime($_POST['iDBTimeFormat']);
            $_POST['iDBDateFormat'] = convert_strftime($_POST['iDBDateFormat']);
            $querynewprofile = sql_pre_query("UPDATE \"" . $Settings['sqltable'] . "members\" SET \"Interests\"='%s',\"Title\"='%s',\"Website\"='%s',\"TimeZone\"='%s',\"DateFormat\"='%s',\"TimeFormat\"='%s',\"Gender\"='%s',\"DST\"='%s',\"LastActive\"=%i,\"BirthMonth\"=%i,\"BirthDay\"=%i,\"BirthYear\"=%i,\"RepliesPerPage\"=%i,\"TopicsPerPage\"=%i,\"MessagesPerPage\"=%i,\"IP\"='%s' WHERE \"id\"=%i", array($_POST['Interests'], $_POST['Title'], $_POST['Website'], $_POST['YourOffSet'], $_POST['iDBTimeFormat'], $_POST['iDBDateFormat'], $_POST['YourGender'], $_POST['DST'], $NewDay, $BirthMonth, $BirthDay, $BirthYear, $_POST['RepliesPerPage'], $_POST['TopicsPerPage'], $_POST['MessagesPerPage'], $NewIP, $_SESSION['UserID']));
            sql_query($querynewprofile, $SQLStat);
        }
    }
}
if ($_GET['act'] == "userinfo") {
    if ($_POST['update'] != "now") {
        $query = sql_pre_query("SELECT * FROM \"" . $Settings['sqltable'] . "members\" WHERE \"id\"=%i LIMIT 1", array($_SESSION['UserID']));
        $result = sql_query($query, $SQLStat);
        $num = sql_num_rows($result);
        $i = 0;
        $YourID = sql_result($result, $i, "id");
        $User1Email = sql_result($result, $i, "Email");
        $userinfoact = url_maker($exfile['profile'], $Settings['file_ext'], "act=userinfo", $Settings['qstr'], $Settings['qsep'], $prexqstr['profile'], $exqstr['profile']);
        $profiletitle = " " . $ThemeSet['TitleDivider'] . " User Info Editer";
Esempio n. 2
0
function get_time($matches)
{
    return date(convert_strftime($matches[1]));
}