當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Members::get_pseudo方法代碼示例

本文整理匯總了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');
    }
}
開發者ID:bsamel,項目名稱:bavn,代碼行數:15,代碼來源:add_year.php

示例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>
開發者ID:bsamel,項目名稱:bavn,代碼行數:31,代碼來源:page_profil.php

示例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');
    }
}
開發者ID:bsamel,項目名稱:bavn,代碼行數:19,代碼來源:change_password.php

示例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');
    }
}
開發者ID:bsamel,項目名稱:bavn,代碼行數:17,代碼來源:change_picture.php


注:本文中的Members::get_pseudo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。