Example #1
0
        $s_erreur = $_FILES['fichier']['name'] . ': ' . $lang_uploadile['err_size'] . ' ( ' . get_cfg_var('upload_max_filesize') . ' )';
    }
    if ($_FILES['fichier']['error'] == '2') {
        $s_erreur = $lang_uploadile['err_size'];
    }
    if ($_FILES['fichier']['error'] == '3') {
        $s_erreur = $lang_uploadile['err_4'];
    }
    if ($_FILES['fichier']['error'] == '4') {
        $s_erreur = $lang_uploadile['err_1'];
    } else {
        $s_erreur = $lang_uploadile['err_4'];
    }
    redirect(PLUGIN_URL, $s_erreur);
} else {
    generate_profile_menu(PLUGIN_NAME);
    ?>
	<div id="uploadile" class="blockform">
		<h2><span><?php 
    echo $lang_uploadile['titre_1'];
    ?>
</span></h2>
		<div class="box">
			<div class="inbox">
				<p style="margin: 5px"><?php 
    echo $lang_uploadile['info_1'];
    ?>
</p>
			</div>
		</div>
		<h2 class="block2"><span><?php 
Example #2
0
                            echo $lang_profile['Instructions'];
                            ?>
</p>
			</form>
		</div>
	</div>
<?php 
                        } else {
                            if ($section == 'admin') {
                                if (!$pun_user['is_admmod'] || $pun_user['g_moderator'] == '1' && $pun_user['g_mod_ban_users'] == '0') {
                                    message($lang_common['Bad request']);
                                }
                                $page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_common['Profile'], $lang_profile['Section admin']);
                                define('PUN_ACTIVE_PAGE', 'profile');
                                require PUN_ROOT . 'header.php';
                                generate_profile_menu('admin');
                                ?>
	<div class="blockform">
		<h2><span><?php 
                                echo pun_htmlspecialchars($user['username']) . ' - ' . $lang_profile['Section admin'];
                                ?>
</span></h2>
		<div class="box">
			<form id="profile7" method="post" action="profile.php?section=admin&amp;id=<?php 
                                echo $id;
                                ?>
&amp;action=foo">
				<div class="inform">
				<input type="hidden" name="form_sent" value="1" />
					<fieldset>
<?php 
Example #3
0
        $value = pun_htmlspecialchars($db->escape($value));
        $key = intval($key);
        if ($db->result($db->query("SELECT f_id FROM " . $db->prefix . "profile_field_entries WHERE f_id=" . $key . " AND u_id=" . $id))) {
            $db->query("UPDATE " . $db->prefix . "profile_field_entries SET value='" . $value . "' WHERE f_id=" . $key . " AND u_id=" . $id) or die(mysql_error());
        } else {
            $db->query("INSERT INTO " . $db->prefix . "profile_field_entries (value, f_id, u_id) VALUES ('{$value}', '" . $key . "', '" . $id . "')") or die(mysql_error());
        }
    }
    redirect("profile_fields.php?id={$id} ?>", "Extra profile fields updated.");
}
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . " / Profile fields";
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT . 'header.php';
include_once PUN_ROOT . 'include/parser.php';
$id = $id;
generate_profile_menu('fields');
?>

<div class="blockform">
	<h2><span style="float:right"><a href="javascript:history.go(-1)"><?php 
echo $lang_common['Go back'];
?>
</a></span><span>Change your custom profile fields</span></h2>
	<div class="box">
		<form method="post" action="profile_fields.php?action=update&amp;id=<?php 
echo $id;
?>
" onsubmit="return process_form(this)">
			<div class="inform">
			<fieldset>
			<legend>Custom fields</legend>