当前位置: 首页>>代码示例>>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;未经允许,请勿转载。