本文整理汇总了PHP中kekezu::check_login方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::check_login方法的具体用法?PHP kekezu::check_login怎么用?PHP kekezu::check_login使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kekezu
的用法示例。
在下文中一共展示了kekezu::check_login方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: appWorkReport
public static function appWorkReport($obj, $obj_id, $to_uid, $to_username, $desc, $report_type, $front_status = null, $origin_id = null, $user_type = null, $file_name = NULL, $reason = NULL, $is_hide = 1)
{
global $uid, $username, $kekezu, $_lang;
kekezu::check_login();
$transname = self::get_transrights_name($report_type);
if (CHARSET == 'gbk') {
$desc = kekezu::utftogbk($desc);
$to_username = kekezu::utftogbk($to_username);
$reason = kekezu::utftogbk($reason);
}
$report_obj = new Keke_witkey_report_class();
$report_obj->setObj($obj);
$report_obj->setObj_id($obj_id);
$report_obj->setUid($uid);
$report_obj->setUsername($username);
$report_obj->setUser_type($user_type);
$report_obj->setOn_time(time());
$report_obj->setOrigin_id($origin_id);
$report_obj->setTo_uid($to_uid);
$report_obj->setTo_username($to_username);
$report_obj->setReport_desc($desc);
$report_obj->setReport_type($report_type);
$report_obj->setFront_status($front_status);
$report_obj->setReport_file($file_name);
$report_obj->setReport_status(1);
$report_obj->setIs_hide($is_hide);
$report_obj->setReport_reason($reason);
$report_id = $report_obj->create_keke_witkey_report();
if ($report_id) {
return true;
} else {
return false;
}
}
示例2: intval
<?php
$id = intval($id);
$strUrl = 'index.php?do=seller&id=' . $id;
$arrView = array('goods', 'task', 'case', 'mark');
if (false === in_array($view, $arrView)) {
$view = 'goods';
}
if (!intval($id)) {
$arrSellerInfo = db_factory::get_one(sprintf('select * from %s a left join %s b on a.uid = b.uid where a.uid =%s', TABLEPRE . 'witkey_space', TABLEPRE . 'witkey_shop', intval($gUid)));
$arrSellerInfo['uid'] or kekezu::check_login();
} else {
$arrSellerInfo = db_factory::get_one(sprintf('select * from %s a left join %s b on a.uid = b.uid where a.uid =%s', TABLEPRE . 'witkey_space', TABLEPRE . 'witkey_shop', intval($id)));
$arrSellerInfo['uid'] or kekezu::show_msg(kekezu::lang("operate_notice"), "index.php?do=sellerlist", 2, "对不起,您访问的页面没找到!", "warning");
}
if ($arrSellerInfo['shop_backstyle']) {
$arrBackgroudStyle = unserialize($arrSellerInfo['shop_backstyle']);
}
if ($arrSellerInfo['skill_ids']) {
$arrSkill = explode(',', $arrSellerInfo['skill_ids']);
}
$strAddress = keke_shop_class::getUserAddress($id, 2, 1, 1, 0);
if ($arrSellerInfo['shop_name']) {
$shopTitle = $arrSellerInfo['shop_name'];
} else {
$shopTitle = $arrSellerInfo['username'] . "-的店铺";
}
if ($view == 'goods') {
if ($arrSellerInfo['seo_title']) {
$strPageTitle = $arrSellerInfo['seo_title'];
} else {
示例3: intval
<?php
kekezu::check_login();
$id = intval($id);
$gUid = intval($gUid);
$orderId = intval($orderId);
$strUrl = "index.php?do=gy&id=" . $id;
$step = strval(trim($step));
if (!$step) {
$step = 'step1';
}
$objServiceTime = new service_time_class();
$objServiceTime->validtaskstatus();
unset($objServiceTime);
$objGoodsTime = new goods_time_class();
$objGoodsTime->validtaskstatus();
unset($objGoodsTime);
$arrDisplaypro = CommonClass::getDistrictByPid('0', 'id,upid,name');
$arrTopIndustrys = $kekezu->_indus_p_arr;
$strExtTypes = kekezu::get_ext_type();
if ($orderId) {
$arrOrderInfo = db_factory::get_one(sprintf("select * from %switkey_order where order_id=%d", TABLEPRE, $orderId));
if (!$arrOrderInfo) {
kekezu::show_msg('订单不存在', 'index.php?do=goodslist', 3, '订单不存在', 'warning');
}
$arrServiceOrderInfo = db_factory::get_one(sprintf("select * from %switkey_service_order where order_id=%d", TABLEPRE, $orderId));
}
$reportUrl = $strUrl . '&orderId=' . $orderId . '&action=rights&objId=' . $orderId . '&objType=order&type=1&toUid=';
if ($id == $gUid) {
$reqPage = 'seller';
$arrBuyerInfo = kekezu::get_user_info($arrOrderInfo['order_uid']);
示例4: work_choose
public function work_choose($bid_id, $to_status, $trust_response = false)
{
global $kekezu, $_K;
global $_lang;
kekezu::check_login($url, $output);
$this->check_if_operated($bid_id, $to_status, $url, $output);
$task_info = $this->_task_info;
$status_arr = $this->get_work_status();
if ($this->set_bid_status($bid_id, $to_status)) {
if ($this->_task_status == 3) {
$arrOutTask = db_factory::get_one(sprintf("select * from %switkey_task where task_status=3 and task_id='%d'", TABLEPRE, $this->_task_id));
$TaskWorkCount = db_factory::execute(sprintf("select * from %switkey_task_bid where task_id='%d'", TABLEPRE, $this->_task_id));
$TaskWorkOutCount = db_factory::execute(sprintf("select * from %switkey_task_bid where task_id='%d' and bid_status=7", TABLEPRE, $this->_task_id));
if ($TaskWorkCount == $TaskWorkOutCount && $arrOutTask) {
$this->set_task_status(9);
return true;
}
}
if ($to_status == 7) {
$url = '<a href ="' . $_K['siteurl'] . '/index.php?do=task&id=' . $this->_task_id . '" target="_blank" >' . $this->_task_title . '</a>';
$bid_info = $this->get_task_work($bid_id);
$arr = array();
$arr['用户名'] = $bid_info['username'];
$arr['任务标题'] = $url;
$arr['网站名称'] = $kekezu->_sys_config['website_name'];
$arr['任务编号'] = $bid_info['task_id'];
$this->set_bid_status($work_id, $to_status);
keke_msg_class::notify_user($bid_info['uid'], $work_info['username'], 'task_unbid', '稿件淘汰', $arr);
return true;
}
if ($to_status == 4) {
$this->set_task_status(4);
$this->set_task_sp_end_time();
$bid_info = $this->get_task_work($bid_id);
$url = '<a href ="' . $_K['siteurl'] . '/index.php?do=task&id=' . $this->_task_id . '" target="_blank" >' . $this->_task_title . '</a>';
$v = array($_lang['task_id'] => $this->_task_id, $_lang['task_title'] => $url, $_lang['bid_cash'] => $bid_info['quote'], $_lang['work_status'] => $status_arr[$to_status]);
$this->notify_user("task_bid", $_lang['tender_bid'], $v, '1', $bid_info['uid']);
$feed_arr = array("feed_username" => array("content" => $bid_info['username'], "url" => "index.php?do=seller&id={$bid_info['uid']}"), "action" => array("content" => $_lang['success_bid_haved'], "url" => ""), "event" => array("content" => "{$this->_task_title}", "url" => "index.php?do=task&id={$this->_task_id}"));
kekezu::save_feed($feed_arr, $bid_info['uid'], $bid_info['username'], 'work_accept', $this->_task_info['task_id']);
$objProm = keke_prom_class::get_instance();
$objProm->create_prom_event('bid_task', $bid_info['uid'], $this->_task_id);
$objProm->create_prom_event('pub_task', $this->_task_info['uid'], $this->_task_id);
$this->plus_accepted_num($bid_info['uid']);
}
return true;
} else {
return $_lang['dtender_tender'] . $status_arr[$to_status] . $_lang['set_fail'];
}
}