Ejemplo n.º 1
0
 }
 if ($foundmatch == 0) {
     $postsdefaultselected = 'selected="selected"';
 }
 if ($vbulletin->options['allowchangestyles']) {
     $stylecount = 0;
     if ($vbulletin->stylecache !== null) {
         $stylesetlist = construct_style_options();
     }
     $show['styleoption'] = iif($stylecount > 1, true, false);
 } else {
     $show['styleoption'] = false;
 }
 // get language options
 $languagelist = '';
 $languages = fetch_language_titles_array('', 0);
 if (sizeof($languages) > 1) {
     foreach ($languages as $optionvalue => $optiontitle) {
         $optionselected = iif($vbulletin->userinfo['saved_languageid'] == $optionvalue, 'selected="selected"', '');
         eval('$languagelist .= "' . fetch_template('option') . '";');
     }
     $show['languageoption'] = true;
 } else {
     $show['languageoption'] = false;
 }
 $bgclass1 = 'alt1';
 // Login Section
 $bgclass3 = 'alt1';
 // Messaging Section
 $bgclass3 = 'alt1';
 // Thread View Section
Ejemplo n.º 2
0
     require_once DIR . '/includes/class_userchangelog.php';
     $userchangelog = new vb_UserChangeLog($vbulletin);
     $userchangelog->set_execute(true);
     // get the user change list
     $userchange_list = $userchangelog->sql_select_by_userid($vbulletin->GPC['userid']);
     $haschangehistory = $db->num_rows($userchange_list) ? true : false;
 }
 // PROFILE SECTION
 unset($user['salt']);
 construct_hidden_code('olduser', sign_client_string(serialize($user)));
 //For consistent Edits
 print_table_header($vbphrase['profile'] . ($haschangehistory ? '<span class="smallfont">' . construct_link_code($vbphrase['view_change_history'], 'user.php?' . $vbulletin->session->vars['sessionurl'] . 'do=changehistory&amp;userid=' . $vbulletin->GPC['userid']) . '</span>' : ''));
 print_input_row($vbphrase['username'], 'user[username]', $user['username'], 0);
 print_input_row($vbphrase['password'], 'password');
 print_input_row($vbphrase['email'], 'user[email]', $user['email']);
 print_select_row($vbphrase['language'], 'user[languageid]', array('0' => $vbphrase['use_forum_default']) + fetch_language_titles_array('', 0), $user['languageid']);
 print_input_row($vbphrase['user_title'], 'user[usertitle]', $user['usertitle']);
 print_select_row($vbphrase['custom_user_title'], 'user[customtitle]', array(0 => $vbphrase['no'], 2 => $vbphrase['user_set'], 1 => $vbphrase['admin_set_html_allowed']), $user['customtitle']);
 print_input_row($vbphrase['personal_home_page'], 'user[homepage]', $user['homepage'], 0);
 print_time_row($vbphrase['birthday'], 'user[birthday]', $user['birthday'], 0, 1);
 print_select_row($vbphrase['privacy'], 'user[showbirthday]', array(0 => $vbphrase['hide_age_and_dob'], 1 => $vbphrase['display_age'], 3 => $vbphrase['display_day_and_month'], 2 => $vbphrase['display_age_and_dob']), $user['showbirthday']);
 print_textarea_row($vbphrase['signature'], 'user[signature]', $user['signature'], 8, 45);
 print_input_row($vbphrase['icq_uin'], 'user[icq]', $user['icq'], 0);
 print_input_row($vbphrase['aim_screen_name'], 'user[aim]', $user['aim'], 0);
 print_input_row($vbphrase['yahoo_id'], 'user[yahoo]', $user['yahoo'], 0);
 print_input_row($vbphrase['msn_id'], 'user[msn]', $user['msn'], 0);
 print_input_row($vbphrase['skype_name'], 'user[skype]', $user['skype'], 0);
 print_yes_no_row($vbphrase['coppa_user'], 'options[coppauser]', $user['coppauser']);
 print_input_row($vbphrase['parent_email_address'], 'user[parentemail]', $user['parentemail'], 0);
 if ($user['referrerid']) {
     $referrername = $db->query_first("SELECT username FROM " . TABLE_PREFIX . "user WHERE userid = {$user['referrerid']}");
Ejemplo n.º 3
0
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
log_admin_action();
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['check_vulnerable_passwords']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = $_POST['doreset'] ? 'reset' : 'check';
}
// checkable periods
$periods = array('0' => $vbphrase['over_any_period'], '259200' => construct_phrase($vbphrase['over_x_days_ago'], 3), '604800' => $vbphrase['over_1_week_ago'], '1209600' => construct_phrase($vbphrase['over_x_weeks_ago'], 2), '1814400' => construct_phrase($vbphrase['over_x_weeks_ago'], 3), '2592000' => $vbphrase['over_1_month_ago'], '5270400' => construct_phrase($vbphrase['over_x_months_ago'], 2), '7862400' => construct_phrase($vbphrase['over_x_months_ago'], 3), '15724800' => construct_phrase($vbphrase['over_x_months_ago'], 6));
// get language information
$languages = array(0 => '--', -1 => $vbphrase['default']);
$languages = array_merge($languages, fetch_language_titles_array('--', false));
// input
$vbulletin->input->clean_array_gpc('p', array('period' => TYPE_UINT, 'quantity' => TYPE_UINT, 'email' => TYPE_NOHTML, 'email_subject' => TYPE_NOHTML, 'email_from' => TYPE_NOHTML, 'languageid' => TYPE_INT));
// selected period
$period = $vbulletin->GPC['period'];
// count affected accounts
$total_affected = $vbulletin->db->query_first("\r\n\tSELECT COUNT(userid) AS total_affected\r\n\tFROM " . TABLE_PREFIX . "user\r\n\tWHERE password = MD5(CONCAT(MD5(username),salt)) " . ($period ? 'AND lastvisit < ' . (TIMENOW - $period) : '') . "\r\n");
$total_affected = !empty($total_affected) ? $total_affected['total_affected'] : 0;
// ########################################################################
if ($_POST['do'] == 'reset') {
    $vbulletin->input->clean_array_gpc('p', array('lastuser' => TYPE_UINT, 'reset' => TYPE_UINT, 'processed' => TYPE_UINT, 'email_errors' => TYPE_BOOL, 'reset_errors' => TYPE_BOOL, 'reset_on_error' => TYPE_BOOL, 'do_banned' => TYPE_UINT));
    $lastuser = $vbulletin->GPC['lastuser'];
    $reset = $vbulletin->GPC['reset'];
    $processed = $vbulletin->GPC['processed'];
    $reset_errors = $vbulletin->GPC['reset_errors'];
    $email_errors = $vbulletin->GPC['email_errors'];
Ejemplo n.º 4
0
    print_form_header('user', 'viewuser', 0, 0);
    construct_hidden_code('userid', $vbulletin->GPC['userid']);
    ?>
	<table cellpadding="0" cellspacing="0" border="0" width="<?php 
    echo $OUTERTABLEWIDTH;
    ?>
" align="center"><tr valign="top"><td>
	<table cellpadding="4" cellspacing="0" border="0" align="center" width="100%" class="tborder">
	<?php 
    // start main table
    require_once DIR . '/includes/functions_misc.php';
    // PROFILE SECTION
    print_table_header(construct_phrase($vbphrase['x_y_id_z'], $vbphrase['user'], $user['username'], $user['userid']));
    print_input_row($vbphrase['username'], 'user[username]', $user['username'], 0);
    print_input_row($vbphrase['email'], 'user[email]', $user['email'], 0);
    print_select_row($vbphrase['language'], 'user[languageid]', fetch_language_titles_array('', 0), $user['languageid']);
    print_input_row($vbphrase['user_title'], 'user[usertitle]', $user['usertitle']);
    print_yes_no_row($vbphrase['custom_user_title'], 'options[customtitle]', $user['customtitle']);
    print_input_row($vbphrase['home_page'], 'user[homepage]', $user['homepage'], 0);
    print_time_row($vbphrase['birthday'], 'birthday', $user['birthday'], 0, 1);
    print_textarea_row($vbphrase['signature'] . iif(can_moderate(0, 'caneditsigs'), '<br /><br />' . construct_link_code($vbphrase['edit_signature'], 'user.php?' . $vbulletin->session->vars['sessionurl'] . "do=editsig&amp;u={$user['userid']}")), 'signature', $user['signature'], 8, 45, 1, 0);
    print_input_row($vbphrase['icq_uin'], 'user[icq]', $user['icq'], 0);
    print_input_row($vbphrase['aim_screen_name'], 'user[aim]', $user['aim'], 0);
    print_input_row($vbphrase['yahoo_id'], 'user[yahoo]', $user['yahoo'], 0);
    print_input_row($vbphrase['msn_id'], 'user[msn]', $user['msn'], 0);
    print_input_row($vbphrase['skype_name'], 'user[skype]', $user['skype'], 0);
    print_yes_no_row($vbphrase['coppa_user'], 'options[coppauser]', $user['coppauser']);
    print_input_row($vbphrase['parent_email_address'], 'user[parentemail]', $user['parentemail'], 0);
    print_input_row($vbphrase['post_count'], 'user[posts]', $user['posts']);
    if ($user['referrerid']) {
        $referrername = $db->query_first("SELECT username FROM " . TABLE_PREFIX . "user WHERE userid = {$user['referrerid']}");
Ejemplo n.º 5
0
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
log_admin_action();
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['check_vulnerable_passwords']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = $_POST['doreset'] ? 'reset' : 'check';
}
// checkable periods
$periods = array('0' => $vbphrase['over_any_period'], '259200' => construct_phrase($vbphrase['over_x_days_ago'], 3), '604800' => $vbphrase['over_1_week_ago'], '1209600' => construct_phrase($vbphrase['over_x_weeks_ago'], 2), '1814400' => construct_phrase($vbphrase['over_x_weeks_ago'], 3), '2592000' => $vbphrase['over_1_month_ago'], '5270400' => construct_phrase($vbphrase['over_x_months_ago'], 2), '7862400' => construct_phrase($vbphrase['over_x_months_ago'], 3), '15724800' => construct_phrase($vbphrase['over_x_months_ago'], 6));
// get language information
$languages = array(0 => '');
$languages = array_merge($languages, fetch_language_titles_array('', 0));
// input
$vbulletin->input->clean_array_gpc('p', array('period' => TYPE_UINT, 'quantity' => TYPE_UINT, 'email' => TYPE_NOHTML, 'email_subject' => TYPE_NOHTML, 'email_from' => TYPE_NOHTML, 'languageid' => TYPE_UINT));
// selected period
$period = $vbulletin->GPC['period'];
// count affected accounts
$total_affected = $vbulletin->db->query_first("\n\tSELECT COUNT(userid) AS total_affected\n\tFROM " . TABLE_PREFIX . "user\n\tWHERE password = MD5(CONCAT(MD5(username),salt)) " . ($period ? 'AND lastvisit < ' . (TIMENOW - $period) : '') . "\n");
$total_affected = !empty($total_affected) ? $total_affected['total_affected'] : 0;
// ########################################################################
if ($_POST['do'] == 'reset') {
    $vbulletin->input->clean_array_gpc('p', array('lastuser' => TYPE_UINT, 'reset' => TYPE_UINT, 'processed' => TYPE_UINT, 'email_errors' => TYPE_BOOL, 'reset_errors' => TYPE_BOOL, 'reset_on_error' => TYPE_BOOL, 'do_banned' => TYPE_UINT));
    $lastuser = $vbulletin->GPC['lastuser'];
    $reset = $vbulletin->GPC['reset'];
    $processed = $vbulletin->GPC['processed'];
    $reset_errors = $vbulletin->GPC['reset_errors'];
    $email_errors = $vbulletin->GPC['email_errors'];