示例#1
0
文件: search.php 项目: mix376/biverr
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
$user = new user();
$gigs = new gigs();
$query = $_REQUEST['query'];
$rs = $gigs->gigs_search_list($query);
$i = 0;
?>
<!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" />
<title><?php 
echo SITE_TITLE;
?>
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<script type="text/javascript" src="javascript/init1.js"></script>
<script src="javascript/main.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
	/* this is just a simple reload; you can safely remove it; remember to remove it from the image too */
	function reloadCaptcha()
	{
		document.getElementById('captcha').src = document.getElementById('captcha').src+ '?' +new Date();
示例#2
0
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;
    $data_inbox['from_id'] = $data_user_tomail['user_id'];
    $data_inbox['to_id'] = $_SESSION['user_id'];
示例#3
0
<?php

session_start();
$gigs_id = $_REQUEST['id'];
include_once 'config/db_conn.php';
include_once 'db_config/db_catagory.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_gigs.php';
$gigs_obj = new gigs();
$catagory = new catagory();
$rs = $catagory->catagory_list();
$user = new user();
$rs_user = $user->user_list();
$rs_gigs = $gigs_obj->uniq_gigs_list('id', $gigs_id);
$data_gigs = mysql_fetch_array($rs_gigs);
$i = 0;
if ($_REQUEST['gigs_title'] != '') {
    $gigs_title = $_REQUEST['gigs_title'];
}
if ($_REQUEST['submit']) {
    $gigs = array();
    $gigs['gigs_title'] = $_REQUEST['gigs_title'];
    $gigs['catagory_id'] = $_REQUEST['catagory_id'];
    $gigs['user_id'] = $_SESSION['user_id'];
    $gigs['gigs_description'] = htmlentities($_REQUEST['gigs_description'], ENT_QUOTES);
    $gigs['gigs_keywords_tags'] = $_REQUEST['gigs_keywords_tags'];
    $gigs['gigs_maxi_days_to_comp'] = $_REQUEST['gigs_maxi_days_to_comp'];
    if ($_FILES['gigs_image']['name'] != '') {
        $gigs['gigs_image'] = date("ymdhi") . $_FILES['gigs_image']['name'];
    }
    $fldArray = array();
示例#4
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
$user = new user();
$gigs_obj = new gigs();
$gigs = array();
if ($_REQUEST['val'] == 'n') {
    $gigs['gigs_like'] = 'Unlike';
    ?>
			<img src="images/unlike.gif"  title="Unlike" onclick="like_click('y',<?php 
    echo $_REQUEST['id'];
    ?>
)" id="like" />
			<?php 
} elseif ($_REQUEST['val'] == 'y') {
    $gigs['gigs_like'] = 'Like';
    ?>
			<img src="images/like.gif"  title="Like" onclick="like_click('n',<?php 
    echo $_REQUEST['id'];
    ?>
)" id="like" />
			<?php 
}
$gigs['gigs_like_user_id'] = $_SESSION['user_id'];
$fldArray = array();
$fldArray['id'] = $_REQUEST['id'];
$rs_gigs_edit = $gigs_obj->dataUpdate('ninerr_gigs', $gigs, $fldArray);
//echo $_REQUEST['val'];
示例#5
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_admin_order_payment.php';
$user = new user();
$gigs = new gigs();
$rs_gigs = $gigs->uniq_gigs_list('gigs_title', $_POST['item_name']);
$data_gigs = mysql_fetch_array($rs_gigs);
$user_id = $_REQUEST['user_id'];
$admin_order_payment = new admin_order_payment();
if ($_POST) {
    $array_1 = array("order_status_date" => date('Y:m:d'));
    $array_m = array_merge($array_1, $_POST);
    $admin_order_payment->dataInsert('ninerr_admin_order_payment', $array_m);
    $fldArray = array("user_id" => $user_id);
    $dataArray = array("cleader_fund" => $_POST['mc_gross'], "withdraw_request" => "sucess");
    $admin_order_payment->dataUpdate('ninerr_user_transaction', $dataArray, $fldArray);
    reDirect('transaction.php?req=success');
}
示例#6
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
$user = new user();
$gigs = new gigs();
$gigs_like = 'Like';
$gigs_like_user_id = $_SESSION['user_id'];
$rs = $gigs->uniq_gigs_list_double('gigs_like', $gigs_like, 'gigs_like_user_id', $gigs_like_user_id);
$i = 0;
?>
<!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" />
<title><?php 
echo SITE_TITLE;
?>
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<script type="text/javascript" src="javascript/init1.js"></script>
<script src="javascript/main.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
	/* this is just a simple reload; you can safely remove it; remember to remove it from the image too */
	function reloadCaptcha()
	{
示例#7
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
$user = new user();
$gigs = new gigs();
$catagory_id = $_REQUEST['id'];
$rs = $gigs->uniq_gigs_list_user('user_id', $_SESSION['user_id']);
$i = 0;
if ($_REQUEST['action']) {
    $msg = "Action Succesfully changed.";
}
?>
<!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" />
<title><?php 
echo SITE_TITLE;
?>
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<script type="text/javascript" src="javascript/init1.js"></script>
<script src="javascript/main.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
	/* this is just a simple reload; you can safely remove it; remember to remove it from the image too */
示例#8
0
文件: users.php 项目: mix376/biverr
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_catagory.php';
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'];
}
示例#9
0
include_once 'db_config/db_user.php';
include_once 'db_config/db_order_payment.php';
include_once 'db_config/db_user_transaction.php';
include_once 'db_config/db_review.php';
$trans = new trans();
$review = new review();
$rs_trans = $trans->uniq_trans_list('user_id', $_SESSION['user_id']);
$data_trans = mysql_fetch_array($rs_trans);
$rs_trans_sum_pending_fund = $trans->sum_trans('pending_fund', $_SESSION['user_id']);
$data_trans_sum_pending_fund = mysql_fetch_array($rs_trans_sum_pending_fund);
$rs_trans_sum_withdraw = $trans->sum_trans('withdraw_request_ammount', $_SESSION['user_id']);
$data_trans_sum_withdraw = mysql_fetch_array($rs_trans_sum_withdraw);
$data_trans = mysql_fetch_array($rs_trans);
//echo $data_trans['pending_fund'];
$user = new user();
$gigs = new gigs();
$order_payment = new order_payment();
if ($_REQUEST['st']) {
    $rs = $order_payment->uniq_order_payment_list_double('buyer_id', $_SESSION['user_id'], 'order_status', $_REQUEST['st']);
} else {
    $rs = $order_payment->uniq_order_payment_list('buyer_id', $_SESSION['user_id']);
}
$rs_review_list_by = $review->review_list("review_by", $_SESSION['user_id']);
?>
<!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" />
<title><?php 
echo SITE_TITLE;
?>
示例#10
0
<?php

include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
$id = $_REQUEST['id'];
$gigs = new gigs();
$table = 'ninerr_gigs';
if ($_REQUEST['f'] == 'N') {
    $dataArray = array("gigs_featured" => "Y");
} else {
    $dataArray = array("gigs_featured" => "N");
}
$fldArray = array("id" => $id);
$gigs->dataUpdate($table, $dataArray, $fldArray);
reDirect('gigs.php');
示例#11
0
<?php

session_start();
include_once 'config/db_conn.php';
if (file_exists("install/install_biverr/index.php")) {
    reDirect('install/install_biverr/index.php');
}
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
$user = new user();
$gigs = new gigs();
/*For  Pagination */
$page = (int) (!isset($_GET["page"]) ? 1 : $_GET["page"]);
$page = $page == 0 ? 1 : $page;
$perpage = 10;
//limit in each page
$startpoint = $page * $perpage - $perpage;
/*---------------*/
/*		$gigs_data['gigs_title'] = '';
		$gigs_data['catagory_id'] = '';
		$fldArray['catagory_id'] = '';
		$orderArray['catagory_id'] = '';
		$orderArray['gigs_title'] = '';
		$extra=' ';
		$orderType='desc';
		$offset=0;
		$limit=20;
		$gigs->dataSelect('ninerr_gigs',$gigs_data,$fldArray,$extra,$orderArray,$orderType,$limit,$offset);*/
//$rs=$gigs->gigs_list();
if ($_REQUEST['tags'] != '') {
    $rs = $gigs->uniq_gigs_list_limit_like('gigs_keywords_tags', $_REQUEST['tags'], $startpoint, $perpage);
示例#12
0
文件: gigs.php 项目: mix376/biverr
<?php

include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
$user = new user();
$gigs = new gigs();
$rs_gigs = $gigs->gigs_list();
if (isset($_REQUEST['id'])) {
    $gigs->delete($_REQUEST['id']);
    //Echo "Gig Deleted!! <a href=\"gigs.php\">Go Back</a>";
    reDirect('gigs.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=utf-8" />
<title>Gigs - Admin </title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<script>
function confirmDelete(delUrl) {
  if (confirm("Are you sure you want to delete")) {
    document.location = delUrl;
  }
}
示例#13
0
文件: review.php 项目: mix376/biverr
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
include_once 'db_config/db_order_payment.php';
include_once 'db_config/db_user_transaction.php';
$trans = new trans();
$rs_trans = $trans->uniq_trans_list('user_id', $_SESSION['user_id']);
$data_trans = mysql_fetch_array($rs_trans);
$rs_trans_sum_pending_fund = $trans->sum_trans('pending_fund', $_SESSION['user_id']);
$data_trans_sum_pending_fund = mysql_fetch_array($rs_trans_sum_pending_fund);
$rs_trans_sum_withdraw = $trans->sum_trans('withdraw_request_ammount', $_SESSION['user_id']);
$data_trans_sum_withdraw = mysql_fetch_array($rs_trans_sum_withdraw);
$data_trans = mysql_fetch_array($rs_trans);
//echo $data_trans['pending_fund'];
$user = new user();
$gigs = new gigs();
$order_payment = new order_payment();
$rs = $order_payment->uniq_order_payment_list_double('buyer_id', $_SESSION['user_id'], 'order_id', $_REQUEST['orderid']);
$data = mysql_fetch_array($rs);
if ($_REQUEST['orderid'] == '') {
    reDirect('manage_order.php');
}
if ($_REQUEST['submit']) {
    $table = "ninerr_review";
    $dataArray = array("review_msg" => $_REQUEST['review_msg'], "order_id" => $_REQUEST['orderid'], "review" => $_REQUEST['review'], "review_by" => $_SESSION['user_id'], "gigs_id" => $_REQUEST['gigs_id'], "review_to" => $_REQUEST['review_to'], "reviewer_type" => "buyer");
    $order_payment->dataInsert($table, $dataArray);
    reDirect('manage_order.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">
示例#14
0
    if ($_REQUEST['gigs_keywords_tags'] == '') {
        $err_msg_keywords = "<li>Tag list must contain at least 3 tags.</li>";
    }
    if ($_FILES['gigs_image']['name'] == '') {
        $err_msg_image = "<li>Photo must be set.</li>";
    } else {
        $gigs = array();
        $gigs['gigs_date'] = date('y-m-d h:i:s');
        $gigs['gigs_title'] = $_REQUEST['gigs_title'];
        $gigs['catagory_id'] = $_REQUEST['catagory_id'];
        $gigs['user_id'] = $_SESSION['user_id'];
        $gigs['gigs_description'] = $_REQUEST['gigs_description'];
        $gigs['gigs_keywords_tags'] = $_REQUEST['gigs_keywords_tags'];
        $gigs['gigs_maxi_days_to_comp'] = $_REQUEST['gigs_maxi_days_to_comp'];
        $gigs['gigs_image'] = date("ymdhi") . $_FILES['gigs_image']['name'];
        $gigs_obj = new gigs();
        $rs_gigs = $gigs_obj->datainsert('ninerr_gigs', $gigs);
        $fileName = $_FILES['gigs_image']['name'];
        $fileSize = '2000';
        $fileTempName = $_FILES['gigs_image']['tmp_name'];
        $folderPath = 'gigsimg';
        $oldfileName = '';
        fileUpload($fileName, $oldfileName, $fileSize, $fileTempName, $folderPath, $maxSize = 5242880);
        reDirect('user_gigs.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>
示例#15
0
<?php

session_start();
include_once 'config/db_conn.php';
include_once 'db_config/db_gigs.php';
include_once 'db_config/db_user.php';
$user = new user();
$gigs = new gigs();
$catagory_id = $_REQUEST['id'];
$rs = $gigs->uniq_gigs_list('catagory_id', $catagory_id);
$i = 0;
?>
<!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" />
<title><?php 
echo SITE_TITLE;
?>
</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="javascript/jquery.min.js"></script>
<script type="text/javascript" src="javascript/jquery.simplemodal.js"></script>
<script type="text/javascript" src="javascript/init.js"></script>
<script type="text/javascript" src="javascript/init1.js"></script>
<script src="javascript/main.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
	/* this is just a simple reload; you can safely remove it; remember to remove it from the image too */
	function reloadCaptcha()
	{
		document.getElementById('captcha').src = document.getElementById('captcha').src+ '?' +new Date();