当前位置: 首页>>代码示例>>PHP>>正文


PHP user::uniq_user_list方法代码示例

本文整理汇总了PHP中user::uniq_user_list方法的典型用法代码示例。如果您正苦于以下问题:PHP user::uniq_user_list方法的具体用法?PHP user::uniq_user_list怎么用?PHP user::uniq_user_list使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在user的用法示例。


在下文中一共展示了user::uniq_user_list方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: user

<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_user.php';
$user = new user();
$rs_user = $user->uniq_user_list('user_id', $_SESSION['user_id']);
$data_user = mysql_fetch_array($rs_user);
if ($_REQUEST['submit']) {
    $user_data['user_fullname'] = $_REQUEST['user_fullname'];
    $user_data['user_primary_email'] = $_REQUEST['user_primary_email'];
    $user_data['user_paypal_account_email'] = $_REQUEST['user_paypal_account_email'];
    $user_data['user_desc'] = htmlspecialchars($_REQUEST['user_desc'], ENT_QUOTES);
    if ($_FILES['user_image']['name'] != '') {
        $user_data['user_image'] = date("ymdhi") . $_FILES['user_image']['name'];
    }
    $fldArray['user_id'] = $_SESSION['user_id'];
    $rs_user = $user->dataUpdate('ninerr_user', $user_data, $fldArray);
    $fileName = $_FILES['user_image']['name'];
    $fileSize = '2000';
    $fileTempName = $_FILES['user_image']['tmp_name'];
    $folderPath = 'userimg';
    $oldfileName = '';
    fileUpload($fileName, $oldfileName, $fileSize, $fileTempName, $folderPath, $maxSize = 5242880);
    reDirect('profile_edit.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:profile_edit.php

示例2: sentmail

<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_sentmail.php';
include_once 'db_config/db_inbox.php';
$sentmail = new sentmail();
$inboxmail = new inbox();
$to = $_REQUEST['to'];
$gig_id = $_REQUEST['gig_id'];
$user = new user();
$rs_user = $user->uniq_user_list('user_id', $_SESSION['user_id']);
$data_user = mysql_fetch_array($rs_user);
$rs_user_tomail = $user->uniq_user_list('user_name', 'sandip');
$data_user_tomail = mysql_fetch_array($rs_user_tomail);
//echo $data_user_tomail['user_primary_email'];
$gigs_obj = new gigs();
$rs_gigs = $gigs_obj->uniq_gigs_list('id', $gig_id);
$data_gigs = mysql_fetch_array($rs_gigs);
$rs_sentmail = $sentmail->uniq_sentmail_list('from_id', $_SESSION['user_id']);
$rs_inbox = $inboxmail->uniq_inbox_list('from_id', $_SESSION['user_id']);
if ($_REQUEST['submit']) {
    $data_senmail = array();
    $data_senmail['gigs_id'] = $gig_id;
    $data_senmail['to'] = $data_user_tomail['user_primary_email'];
    $data_senmail['from'] = $data_user['user_primary_email'];
    $data_senmail['sub'] = $_REQUEST['subject'];
    $data_senmail['body'] = $_REQUEST['body'];
    $data_senmail['attachment'] = $_FILES['attachment']['name'];
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:messages.php

示例3: sentmail

<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_sentmail.php';
include_once 'db_config/db_inbox.php';
$sentmail = new sentmail();
$inboxmail = new inbox();
$to = trim($_REQUEST['to'], ' ');
$gig_id = $_REQUEST['gig_id'];
$user = new user();
$rs_user = $user->uniq_user_list('user_id', $_SESSION['user_id']);
$data_user = mysql_fetch_array($rs_user);
$rs_user_tomail = $user->uniq_user_list('user_name', $to);
$data_user_tomail = mysql_fetch_array($rs_user_tomail);
$gigs_obj = new gigs();
$rs_gigs = $gigs_obj->uniq_gigs_list('id', $gig_id);
$data_gigs = mysql_fetch_array($rs_gigs);
if ($_REQUEST['submit']) {
    $data_senmail = array();
    $data_senmail['gigs_id'] = $gig_id;
    $data_senmail['to_id'] = $data_user_tomail['user_id'];
    $data_senmail['from_id'] = $_SESSION['user_id'];
    $data_senmail['sub'] = $_REQUEST['subject'];
    $data_senmail['body'] = $_REQUEST['body'];
    $data_senmail['attachment'] = $_FILES['attachment']['name'];
    $data_senmail['date_time'] = date('y-m-d h:i:s');
    $sentmail->dataInsert('ninerr_sentmail', $data_senmail);
    $data_inbox['gigs_id'] = $gig_id;
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:messages_details.php

示例4: user

include_once 'db_config/db_user.php';
include_once 'db_config/db_review.php';
$user = new user();
$review = new review();
$arr_var = explode('_', $_REQUEST['title']);
$gigs_title = str_replace('-', ' ', $arr_var[3]);
$gigs = new gigs();
$rs_gigs = $gigs->uniq_gigs_list('gigs_title', $gigs_title);
$i = 0;
$data = mysql_fetch_array($rs_gigs);
$catagory = new catagory();
$rs_catagory = $catagory->uniq_catagory_list('catagory_id', $data['catagory_id']);
$data_catagory = mysql_fetch_array($rs_catagory);
$rs_cat_gigs = $gigs->uniq_gigs_list('catagory_id', $data['catagory_id']);
$rs_others_gigs = $gigs->uniq_gigs_list('user_id', $data['user_id']);
$rs_uniq_user = $user->uniq_user_list('user_id', $data['user_id']);
$data_uniq_user = mysql_fetch_array($rs_uniq_user);
if ($_REQUEST['gigs_title'] != '') {
    $gigs_title = $_REQUEST['gigs_title'];
}
if ($_REQUEST['submit']) {
    $gigs_title = $_REQUEST['gigs_title'];
    $gig_category_id = $_REQUEST['gig_category_id'];
    $gigs_title = $_REQUEST['gigs_description'];
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:users.php

示例5:

<td width="20%">&nbsp;</td>
</tr>
</table>
</form>
</div>
</div>
<div class="results-bar" >
  <span > Search Results for <strong><?php 
echo $query;
?>
</strong></span>

</div>
<?php 
while ($data = mysql_fetch_array($rs)) {
    $rs_user = $user->uniq_user_list('user_id', $data['user_id']);
    $data_user = mysql_fetch_array($rs_user);
    ?>
<div class="tweet_bx">
<a href="users_<?php 
    echo $data_user['user_name'];
    ?>
_gigs_<?php 
    echo str_replace(' ', '-', $data['gigs_title']);
    ?>
">
<img src="gigsimg/<?php 
    if ($data['gigs_image']) {
        echo $data['gigs_image'];
    } else {
        echo 'no_img.jpg';
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:search.php

示例6:

        $data_gigs1 = mysql_fetch_array($rs_gigs1);
        ?>
            <tr  >
			 <td><?php 
        echo $k + 1;
        ?>
</td>
              <td><?php 
        echo $data_gigs1['gigs_title'];
        ?>
</td>
             
             
             
              <td><?php 
        $rs_user1 = $user->uniq_user_list("user_id", $data_review_list_by['review_to']);
        $data_user1 = mysql_fetch_array($rs_user1);
        echo $data_user1['user_name'] . "(" . $data_user1['user_primary_email'] . ")";
        ?>
</td>
              <td width="18%" colspan="3" align="center"><?php 
        echo $data_review_list_by['review'];
        ?>
</td>
            </tr>
            <?php 
        $k++;
    }
    ?>
  <tr height="100" >
              <td colspan="6" align="center">&nbsp;			 		  </td>
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:manage_order.php

示例7: sentmail

<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_sentmail.php';
include_once 'db_config/db_inbox.php';
$sentmail = new sentmail();
$inboxmail = new inbox();
$to = trim($_REQUEST['to'], ' ');
$gig_id = $_REQUEST['gig_id'];
$user = new user();
$rs_user = $user->uniq_user_list('user_id', $_SESSION['user_id']);
$data_user = mysql_fetch_array($rs_user);
$rs_user_tomail = $user->uniq_user_list('user_name', $to);
$data_user_tomail = mysql_fetch_array($rs_user_tomail);
$gigs_obj = new gigs();
$rs_gigs = $gigs_obj->uniq_gigs_list('id', $gig_id);
$data_gigs = mysql_fetch_array($rs_gigs);
if ($_REQUEST['submit']) {
    if ($_REQUEST['subject'] == '') {
        $err_msg_subject = "<li>Subject can't be blank.</li>";
    }
    if ($_REQUEST['body'] == '') {
        $err_msg_body = "<li>Body can't be blank.</li>";
    }
    if (strlen($_REQUEST['body']) < 4) {
        $err_msg_short_body = "<li>Body is too short (minimum is 4 characters).</li>";
    } else {
        $data_senmail = array();
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:new_messages.php

示例8: user

<?php

session_start();
echo $_REQUEST['code'];
include_once '../config/db_conn.php';
include_once '../db_config/db_user.php';
$user = new user();
$rs_uniq_user = $user->uniq_user_list('user_status', 'Inactive');
$data_uniq_user = mysql_fetch_array($rs_uniq_user);
echo $data_uniq_user['user_activation_code'];
$dataArray['user_status'] = 'Inactive';
$user->dataInsert('ninerr_user', $dataArray);
开发者ID:mix376,项目名称:biverr,代码行数:12,代码来源:index.php

示例9: shortDescription

									<td><?php 
    echo shortDescription($data_order['merchant_return_link'], 30);
    ?>
</td>
								</tr>
								<tr>
								<td>Payement Date</td>
									<td><?php 
    echo shortDescription($data_order['payment_date'], 30);
    ?>
</td>
								</tr>	
								<tr>
								<td>Buyer Name</td>
									<td><?php 
    $rs_buyer = $user->uniq_user_list('user_id', $data_order['buyer_id']);
    $data_buyer = mysql_fetch_array($rs_buyer);
    echo $data_buyer['user_name'];
    ?>
</td>
								</tr>
								<tr>
								<td>Seller Name</td>
									<td><?php 
    $rs_seller = $user->uniq_user_list('user_id', $data_order['seller_id']);
    $data_seller = mysql_fetch_array($rs_seller);
    echo $data_seller['user_name'];
    ?>
</td>
								</tr>
							<?php 
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:order_details.php

示例10: setcookie

session_start();
if ($_POST['email'] == $config['email']) {
    $_SESSION['username_email'] = $config['email'];
}
header('Cache-control: private');
// IE 6 FIX
if ($_POST['action'] == 'user_login') {
    $post_email = $_POST['email'];
    $post_password = $_POST['password'];
    // check username and password
    $rs_user = $user->user_login($post_email, $post_password);
    //echo $rs_user;
    if ($rs_user == 34) {
        // No error? Register the session & redirect the user to his/her 'Control Panel'
        $_SESSION['username_email'] = $post_email;
        $rs_user = $user->uniq_user_list('user_primary_email', $post_email);
        $data_user = mysql_fetch_array($rs_user);
        $_SESSION['user_id'] = $data_user['user_id'];
        $_SESSION['user_name'] = $data_user['user_name'];
        if ($_POST['remember_me']) {
            // set the cookies for 1 month
            setcookie("remember_me", true, time() + TIME_DIFF + 3600 * 24 * 30);
            setcookie("info", $user_id . ',' . md5($password), time() + TIME_DIFF + 3600 * 24 * 30);
        }
        echo 'OK';
        // this response is checked in 'process-login.js'
    } else {
        $auth_error = '<div id="notification_error"><strong>The login info is not correct.</strong></div>';
        echo $auth_error;
    }
}
开发者ID:mix376,项目名称:biverr,代码行数:31,代码来源:check_login.php


注:本文中的user::uniq_user_list方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。