本文整理汇总了PHP中Members::get_pseudo方法的典型用法代码示例。如果您正苦于以下问题:PHP Members::get_pseudo方法的具体用法?PHP Members::get_pseudo怎么用?PHP Members::get_pseudo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Members
的用法示例。
在下文中一共展示了Members::get_pseudo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
session_start();
if (!isset($_SESSION['login'])) {
header('location: acceuil.php');
} else {
include_once '../../class/Members.php';
$member = new Members($_SESSION['login']);
if ($member->get_year() >= 5) {
header('location: ../settings.php?tooold=1');
} else {
$member->add_a_year($member->get_pseudo());
header('location: ../settings.php?yearchanged=1');
}
}
示例2: Members
<link href='http://fonts.googleapis.com/css?family=Chewy' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>
</head>
<body>
<?php
include "../nav.php";
?>
<header>
<!-- informations du profil -->
<?php
$member = new Members($page_name);
$user = new Members($_SESSION['login']);
?>
<div class="profile">
<p><?php
echo $member->get_pseudo();
?>
</p>
</div>
<div class="profile">
<?php
echo '<img src="' . $member->get_picture() . '" width="150" height="150" alt="My pic"/>';
?>
</div>
<div class="profile">
<p><?php
echo $member->get_year();
echo $member->get_department();
?>
</p>
<p>Articles : </p>
示例3: header
<?php
session_start();
if (!isset($_SESSION['login'])) {
header('location: accueil.php');
}
include_once "..\\..\\class\\Members.php";
//On traite le membre en question
$member = new Members($_SESSION['login']);
if (strcmp($_POST['old_password'], $member->get_password()) != 0) {
header('location: ../settings.php?wrongpassword=1');
} else {
if (strcmp($_POST['new_password1'], $_POST['new_password2']) != 0) {
header('location: ../settings.php?wrongconfirmation=1');
} else {
$member->set_member_password($member->get_pseudo(), $_POST['new_password1']);
header('location: ../settings.php?passwordchanged=1');
}
}
示例4: header
<?php
session_start();
if (!isset($_SESSION['login'])) {
header('location: ../../accueil.php');
} else {
if (isset($_FILES['picture'])) {
$extension = strrchr($_FILES['picture']['name'], '.');
include_once '../../class/Members.php';
$member = new Members($_SESSION['login']);
move_uploaded_file($_FILES['picture']['tmp_name'], "../picture/" . $member->get_id() . $extension);
$member->set_member_picture($member->get_pseudo(), "./picture/" . $member->get_id() . $extension);
header('location: ../settings.php?photochanged=1');
} else {
header('location: ../settings.php?nopicture=1');
}
}