• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP json_success函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中json_success函数的典型用法代码示例。如果您正苦于以下问题:PHP json_success函数的具体用法?PHP json_success怎么用?PHP json_success使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: index

 public function index()
 {
     $u = new SwfUpload();
     $t = new Thumbnail();
     $u->files = $_FILES;
     //设置file数组。(只能单张)
     //请记住先检测,再上传
     $r = $u->check();
     if ($r === true && ($r = $u->upload())) {
         //            echo_log($r);
         if (!isset($r['error'])) {
             // 生成200的缩略图
             $t->setSrcImg($r['savePath']);
             $height = $t->getImgHeight();
             $width = $t->getImgWidth();
             if ($this->savePicture($r['saveName'], $r['title'], $width, $height)) {
                 // 生成小的缩略图
                 $t->setDstImg($r['savePath'] . '_' . THUMBNAIL_WIDTH_SMALL);
                 $t->createImg(THUMBNAIL_WIDTH_SMALL);
                 // 生成打的缩略图
                 $t->setSrcImg($r['savePath']);
                 $t->setDstImg($r['savePath'] . '_' . THUMBNAIL_WIDTH_LARGE);
                 $t->createImg(THUMBNAIL_WIDTH_LARGE);
                 $rt = array('thumbUrl' => $r['saveName'], 'title' => $r['title'], 'width' => $width, 'height' => $height);
                 json_success($rt);
             } else {
                 json_failure('图片信息入库异常');
             }
         } else {
             json_failure($r['error']);
         }
     } else {
         json_failure($r['error']);
     }
 }
开发者ID:bennylii,项目名称:waterfall,代码行数:35,代码来源:UploadAction.class.php


示例2: update

 public function update()
 {
     $idx = user()->getIdx();
     if ($idx) {
         $meta = new PhilgoMeta();
         $stamp = $meta->get("attend.complete.{$idx}");
         if ($stamp) {
             // 1 분 이내에 중복 신청이 안되도록 한다.
             if ($stamp < time() - 60) {
                 // 총 포인트가 10만 점이 넘지 않도록 한다.
                 $point = $meta->get("total.event.point.{$idx}");
                 if ($point > 100000) {
                     json_success(array('code' => -40470, 'message' => "한도 초과: 포인트는 50,000 점까지만 획득 가능합니다."));
                 }
                 global $sys;
                 $d = array('idx_member' => $idx, 'idx_member_from' => $idx, 'point' => 77, 'idx_post' => 0, 'etc' => 'point event 2016-01-26');
                 $sys->point->update($d);
                 $meta->set("attend.complete.{$idx}", time());
                 $meta->set("total.event.point.{$idx}", $point + 77);
                 json_success(array('code' => 0, 'message' => "OK"));
             } else {
                 $left = 60 - (time() - $stamp);
                 json_success(array('code' => -40450, 'message' => "너무 빠른 포인트 증가 시도입니다. {$left} 초 남았음."));
             }
         } else {
             json_success(array('code' => -40449, 'message' => "출석 이벤트를 완료하십시오."));
         }
     } else {
         json_success(array('code' => -40104, 'message' => "로그인을 하십시오."));
     }
 }
开发者ID:thruthesky,项目名称:overframe,代码行数:31,代码来源:Point.php


示例3: runAjax

 public function runAjax()
 {
     $in = http_input();
     $table = $in['table'];
     $in['rows'] = $this->db->rows("SELECT * FROM  {$table}");
     json_success($in);
 }
开发者ID:thruthesky,项目名称:overframe,代码行数:7,代码来源:ItemList.php


示例4: search

 /**
  * 搜索需求
  */
 public function search()
 {
     $key = get_query('key');
     if (empty($key)) {
         this . getList();
     }
     $list = $this->pM->search($key, LIST_PPN, get_query('p', 1));
     json_success(array('isEnd' => empty($list), 'list' => $list));
 }
开发者ID:bennylii,项目名称:waterfall,代码行数:12,代码来源:PictureAction.class.php


示例5: collect

 /**
  *
  *
  * @note 호출 예: http://philgo.org/?module=overframe&action=index&model=philgo.attend.collect&idx_member=test1016&session_id=a4c4d294aa2a91f25c326ae36d16d941&page=front&mobile=false&platform=isNotCordova
  *
  */
 public function collect()
 {
     $my_idx = user()->getID();
     $ret = array();
     for ($i = 9; $i >= 0; $i--) {
         $date = date('Ymd', time() - 60 * 60 * 24 * $i);
         $row = $this->row("user_id={$my_idx} AND date={$date}");
         $row['ymd'] = preg_replace('/([0-9]{4})([0-9]{2})([0-9]{2})/', "\$1-\$2-\$3 ", $date);
         $ret[] = $row;
     }
     json_success($ret);
 }
开发者ID:thruthesky,项目名称:overframe,代码行数:18,代码来源:Attend.php


示例6: execute_ajax_action

/**
 * Выполнение ajax действия
 * 
 * @param AjaxClassProvider $provider
 */
function execute_ajax_action(AbstractAjaxAction $action = null)
{
    /* Для безопасности не будем писать детали обработки */
    if (!$action) {
        json_error('Действие не опеределено');
    }
    $result = $action->execute();
    $result = $result ? $result : 'Ошибка выполнения действия';
    if ($result instanceof AjaxSuccess) {
        json_success($result->getJsParams());
    }
    json_error($result);
}
开发者ID:ilivanoff,项目名称:www,代码行数:18,代码来源:AjaxTools.php


示例7: edit

 /**
  *
  * @return void
  */
 public function edit()
 {
     if ($this->input->is_ajax_request()) {
         if (($domain = $this->input->post("domain")) !== NULL && $this->auth->has_right(Auth::ADMIN, $domain)) {
             if ($domain !== "<new>" && !($this->data["domain"] = $this->domains_model->get($domain)) instanceof PA_DB_Domain) {
                 json_success($this->data["domain"]);
             }
             //add_js( "domains_edit", true );
             $this->load->view('forms/domain_edit', $this->data);
             return;
         }
         json_access_denied();
     }
     redirect($this->router->default_controller);
 }
开发者ID:j0inty,项目名称:postfixadmin-ng,代码行数:19,代码来源:Domains.php


示例8: collect

 /**
  *
  *
  * @note HTTP 입력 변수로 condition 값이 들어오며 적절한 처리를 하여 JSON 으로 리턴한다.
  *
  * 내부적으로는 Entity::search() 를 사용하므로 where, limit, offset, page, order_by, fields 의 값을 그대로 사용 할 수 있다.
  *
  *
  *  &entity=데이터베이스 테이블
  *  &where=의 값은 entity->search() 의 where SQL 컨디션과 동일
  *  &order_by=SQL ORDER BY 컨디션
  *  &limit=, &offset=, &page= 의 값은 entity::search() 의 것과 동일
  *
  * @return JSON 내부의 동작은 entity::search() 의 것과 동일하지만, 결과는 JSON 으로 리턴한다.
  *
  * @code 쿼리 예제
  * http://philgo.org/?module=overframe&action=index&model=entity.crud.collect&entity=data&order_by=id%20ASC&fields=id,finish,name&where=id%3E3&limit=3
  * @endcode
  */
 public function collect()
 {
     $in = http_input();
     $o['fields'] = isset($in['fields']) ? $in['fields'] : '*';
     $o['where'] = isset($in['where']) ? $in['where'] : null;
     $o['order_by'] = isset($in['order_by']) ? $in['order_by'] : 'id DESC';
     $o['limit'] = isset($in['limit']) ? $in['limit'] : 10;
     $o['page'] = isset($in['page']) ? $in['page'] : 1;
     $o['offset'] = isset($in['offset']) ? $in['offset'] : 0;
     $entity_name = $in['entity'];
     $node = node($entity_name);
     $entities = $node->search($o);
     $data = array();
     foreach ($entities as $e) {
         $data[] = $e->getRecord();
     }
     json_success($data);
 }
开发者ID:thruthesky,项目名称:overframe,代码行数:37,代码来源:Crud.php


示例9: array

        $identifier = $icao == "" ? $iata : $icao;
        $github = new \Github\Client();
        $github->authenticate($GITHUB_ACCESS_TOKEN, NULL, Github\Client::AUTH_HTTP_TOKEN);
        $issues = $github->api('search')->issues("repo:{$GITHUB_USER}/{$GITHUB_REPO} in:title {$identifier}");
        if (count($issues['items']) > 0) {
            // Existing issue, add comment
            $issue_number = $issues['items'][0]['number'];
            $result = $github->api('issue')->comments()->create($GITHUB_USER, $GITHUB_REPO, $issue_number, array('body' => $body));
        } else {
            // New issue
            $result = $github->api('issue')->create($GITHUB_USER, $GITHUB_REPO, array('title' => $subject, 'body' => $body, 'labels' => array('airport')));
            $issue_number = $result['number'];
        }
        if (TRUE) {
            $message = "Edit submitted for review on Github: Issue {$issue_number}, {$result['html_url']}";
            json_success(array("apid" => $apid, "message" => $message));
        } else {
            json_error("Could not submit edit for review, please contact <a href='/about'>support</a>.");
        }
    }
    exit;
}
if (!$dbname) {
    $dbname = "airports";
}
$sql = "SELECT * FROM " . mysql_real_escape_string($dbname) . " WHERE ";
if ($action == "LOAD") {
    // Single-airport fetch
    $sql .= " apid=" . mysql_real_escape_string($apid);
    $offset = 0;
} else {
开发者ID:ezekieltech,项目名称:openflights,代码行数:31,代码来源:apsearch.php


示例10: invoke_patients

    public function invoke_patients()
    {
        $active = isset($_GET['active']) ? $_GET['active'] : "1";
        //SELECT ALL //////////////////////////////////
        if (get('do') == 'viewall') {
            if (PAGINATION_TYPE == 'Normal') {
                $result = $this->patients_model->SelectAll(RECORD_PER_PAGE, $active);
                //Accept get url  e.g (index.php?id=1&cat=2...)
                $paging = pagination($this->patients_model->CountRow(), RECORD_PER_PAGE, '' . H_ADMIN . '&view=patients&do=viewall&active=' . $active);
            } else {
                $result = $this->patients_model->SelectAll(NULL, $active);
            }
            include APP_FOLDER . '/views/admin/patients/View.php';
        }
        //EXPORT ////////////////////////////////////////////////////
        if (get('do') == 'export') {
            $result = $this->patients_model->SelectAll(NULL, $active);
            include APP_FOLDER . '/views/admin/patients/Export.php';
        } elseif (get('do') == 'export2') {
            $rows = $this->patients_model->SelectOne(get('id'));
            include APP_FOLDER . '/views/admin/patients/Export2.php';
        } elseif (get('do') == 'autosearch') {
            $qstring = post('qstring');
            if (strlen($qstring) > 0) {
                $autosearch = $this->patients_model->AutoSearch(trim($qstring), 10, 'first_name');
                echo ' <div class=widget><ul class="list-group">';
                foreach ($autosearch as $srow) {
                    echo '<span class="searchheading"><a href="' . H_ADMIN . '&view=patients&id=' . $srow->id . '&do=details"><li class="list-group-item">' . $srow->first_name . ' ' . $srow->last_name . '</li></a>
	</span>';
                }
                echo '</ul></div>';
            }
        } elseif (get('do') == 'add') {
            include APP_FOLDER . '/views/admin/patients/Add.php';
        } elseif (get('do') == 'addpro') {
            if ($_POST) {
                //form validation
                if (post('first_name') == '') {
                    json_error('Pleas enter First Name!');
                } elseif (post('last_name') == '') {
                    json_error('Please enter Last Name!');
                } elseif (post('phone') == '') {
                    json_error('Please enter Phone!');
                } elseif (post('email') == '') {
                    json_error('Please enter Email!');
                } elseif (post('source') == '') {
                    json_error('Please select Source!');
                } else {
                    $this->patients_model->Insert(post('first_name'), post('last_name'), post('phone'), post('email'), post('source'), post('notes'));
                    json_send('' . H_ADMIN . '&view=patients&do=viewall&msg=add');
                    json_success('Process Completed');
                }
            }
        } elseif (get('do') == 'update') {
            $rows = $this->patients_model->SelectOne(get('id'));
            //check if patient have card
            $have_card = patient_have_card(get('id'));
            include APP_FOLDER . '/views/admin/patients/Update.php';
        } elseif (get('do') == 'updatepro') {
            if ($_POST) {
                //form validation
                if (post('id') == '') {
                    json_error('The field id cannot be empty!');
                } elseif (post('first_name') == '') {
                    json_error('Please enter First Name!');
                } elseif (post('last_name') == '') {
                    json_error('Please enter Last Name!');
                } elseif (post('phone') == '') {
                    json_error('Please enter Phone!');
                } elseif (post('email') == '') {
                    json_error('Please enter Email!');
                } elseif (post('source') == '') {
                    json_error('Please select Source!');
                } else {
                    $this->patients_model->Update(post('first_name'), post('last_name'), post('phone'), post('email'), post('source'), post('notes'), post('active'), post('id'));
                    json_send('' . H_ADMIN . '&view=patients&id=' . post('id') . '&do=details&msg=update');
                    json_success('Process Completed');
                }
            }
        } elseif (get('do') == 'details') {
            $rows = $this->patients_model->SelectOne(get('id'));
            //check if patient have card
            $have_card = patient_have_card(get('id'));
            include APP_FOLDER . '/views/admin/patients/Details.php';
        } elseif (get('do') == 'truncate') {
            $this->patients_model->TruncateTable('' . H_ADMIN . '&view=patients&do=viewall&msg=truncate');
            include APP_FOLDER . '/views/admin/patients/View.php';
        } elseif (get('do') == 'delete') {
            $dfile = get('dfile');
            if (get('id') and $dfile == '') {
                $del = $this->patients_model->Delete(get('id'), '' . H_ADMIN . '&view=patients&do=viewall&msg=delete');
            } elseif (get('id') and $dfile != '' and get('fdel') == '') {
                delete_files(UPLOAD_PATH . get('dfile'));
                delete_files(THUMB_PATH . get('dfile'));
                $del = $this->patients_model->Delete(get('id'), '' . H_ADMIN . '&view=patients&do=viewall&msg=delete');
            } elseif (get('id') and $dfile != '' and get('fdel') != '') {
                delete_files(UPLOAD_PATH . get('dfile'));
                delete_files(THUMB_PATH . get('dfile'));
                send_to('' . H_ADMIN . '&view=patients&id=' . get('id') . '&do=update&msg=delete');
            }
//.........这里部分代码省略.........
开发者ID:fcdeveloper,项目名称:globalreachrx,代码行数:101,代码来源:patients.php


示例11: hotspot_delete

 /**
  * Deletes a hotspot by its uuid
  * @param string $uuid
  */
 public function hotspot_delete($uuid = '')
 {
     validate_team_read(get_team_id());
     $hotspot = validate_hotspot_uuid($uuid);
     activity_delete_hotspot($hotspot->id);
     $this->Hotspot->delete($hotspot->id);
     json_success("Hotspot deleted successfully.");
 }
开发者ID:gitanton,项目名称:cono-rest,代码行数:12,代码来源:hotspots.php


示例12: forgot_password

 /**
  * @note: !!! Draft !!!
  * @return type
  */
 public function forgot_password()
 {
     if ($this->input->is_ajax_request() && $this->auth->type == Auth::ANONYMOUS) {
         $this->load->model("auth_model");
         if (($emailaddress = $this->input->post("emailaddress")) !== NULL && $this->auth_model->reset_password_request($emailaddress)) {
             json_success(TRUE, lang("welcome_index_password_forget_request_success"));
         }
         json_error(FALSE, lang("welcome_index_password_forget_request_failed"));
     }
     redirect($this->router->class);
 }
开发者ID:j0inty,项目名称:postfixadmin-ng,代码行数:15,代码来源:Welcome.php


示例13: json_error

<?php

require_once 'AjaxTools.php';
$programmId = RequestArrayAdapter::inst()->int('id');
$errorMsg = null;
if (is_numeric($programmId)) {
    GymManager::getInstance()->deleteProgramm($programmId);
} else {
    $errorMsg = 'Не передан id программы';
}
if ($errorMsg) {
    json_error($errorMsg);
} else {
    json_success('success');
}
开发者ID:ilivanoff,项目名称:www,代码行数:15,代码来源:GymDelProgramm.php


示例14: json_success

            if (mysql_affected_rows() == 1) {
                json_success(array("apid" => $apid, "message" => "Airport successfully edited."));
            } else {
                json_error("Editing airport failed:", $sql);
            }
        }
    } else {
        $subject = "OpenFlights: Airport edit";
        $body = "New edit submitted by " . $_SESSION['name'] . " (" . $_SESSION['email'] . "):\n{$sql}\n\nExisting airport information:\n" . implode("\n", $duplicates);
        $headers = "From: [email protected]\r\nTo: [email protected]\r\nReply-To: " . $_SESSION['email'];
        if (isset($_POST["unittest"])) {
            echo $headers . "\n\n" . $body;
            exit;
        }
        if (mail($email, $subject, $body, $headers)) {
            json_success(array("apid" => $apid, "message" => "Edit submitted for review.  If you have registered an e-mail address, you will be notified when the edit is reviewed."));
        } else {
            json_error("Could not submit edit for review, please contact <a href='/about'>support</a>.");
        }
    }
    exit;
}
if (!$dbname) {
    $dbname = "airports";
}
$sql = "SELECT * FROM " . mysql_real_escape_string($dbname) . " WHERE ";
if ($action == "LOAD") {
    // Single-airport fetch
    $sql .= " apid=" . mysql_real_escape_string($apid);
    $offset = 0;
} else {
开发者ID:petabytekr,项目名称:openflights,代码行数:31,代码来源:apsearch.php


示例15: meeting_delete

 /**
  * Deletes a project by its uuid
  * @param string $uuid
  */
 public function meeting_delete($uuid = '')
 {
     $meeting = validate_meeting_uuid($uuid, true);
     activity_delete_meeting($meeting->id);
     $this->Meeting->delete($meeting->id);
     json_success("Message deleted successfully.");
 }
开发者ID:gitanton,项目名称:cono-rest,代码行数:11,代码来源:meetings.php


示例16: array

                        $withdrawals[] = array("txid" => $row_transfer_withdrawal_a["txid"], "time" => $row_transfer_withdrawal_a["filing_time_u"], "amount" => api_sc_format($row_transfer_withdrawal_a["amount"]));
                    } else {
                        $withdrawals[] = array("txid" => crypte_transaction($row_transfer_withdrawal_a["txid"]), "time" => $row_transfer_withdrawal_a["filing_time_u"], "amount" => api_sc_format($row_transfer_withdrawal_a["amount"]));
                    }
                }
                json_success($withdrawals);
            }
        }
        if ($query[2] == "addresses") {
            $withdrawal_addresses = array();
            $slt_transfer_withdrawal_address_a = "SELECT * FROM transfer_withdrawal_address WHERE user = '{$user_id}'";
            $rlt_transfer_withdrawal_address_a = mysql_query($slt_transfer_withdrawal_address_a);
            while ($row_transfer_withdrawal_address_a = mysql_fetch_assoc($rlt_transfer_withdrawal_address_a)) {
                $withdrawal_addresses[] = array("id" => $row_transfer_withdrawal_address_a["id"], "address" => $row_transfer_withdrawal_address_a["address"], "group" => $row_transfer_withdrawal_address_a["group"], "type" => $row_transfer_withdrawal_address_a["type"]);
            }
            json_success($withdrawal_addresses);
        }
        json_error("Unknown call.");
    }
    json_error("Unknown call.");
}
json_error("Unknown call.");
function check_authentification()
{
    global $query, $db, $logged_in, $user_id, $user_email, $user_row;
    $userdata = (string) base64_decode($query[0]);
    $logged_in = false;
    $found = false;
    if (!$found) {
        if ($userdata[7] == ":") {
            foreach ($query as $i => $value) {
开发者ID:rhartness,项目名称:slc24,代码行数:31,代码来源:api.php


示例17: stdClass

    SELECT
        wp.pool_username AS username,
        wp.pool_password AS password,
        p.id AS id,
        p.url AS url

    FROM worker_pool wp, pool p

    WHERE wp.worker_id = :worker
      AND wp.pool_id = p.id
      AND wp.enabled
      AND p.enabled

    ORDER BY wp.priority DESC
');
$q->execute(array(':worker' => $worker_id));
$rows = $q->fetchAll();
$q->closeCursor();
$request = new stdClass();
$request->params = array();
$request->method = "getwork";
$request->id = "json";
foreach ($rows as $row) {
    $response = place_json_call($request, $row['url'], $row['username'], $row['password'], $headers);
    if (is_object($response) && is_object($response->result)) {
        set_lp_header($headers, $row['id'], $row['url']);
        process_work($pdo, $worker_id, $row['id'], $response, $response->id);
        json_success($response->result, $json->id);
    }
}
json_error("No enabled pools responded to the work request.", $json->id);
开发者ID:neofutur,项目名称:Bitcoin-mining-proxy,代码行数:31,代码来源:index.php


示例18: ajaxFileFinish

 public function ajaxFileFinish()
 {
     sys()->log("ajaxFileFinish() : id=" . $this->in['id']);
     if ($code = data($this->in['id'])->finish()) {
         json_error($code, "failed to finish file");
     } else {
         json_success(array('id' => $this->in['id']));
     }
 }
开发者ID:thruthesky,项目名称:overframe,代码行数:9,代码来源:Data.php


示例19: team_invite

 /**
  *
  * @SWG\Api(
  *   path="/team/{uuid}/invite",
  *   description="API for team actions",
  * @SWG\Operation(
  *    method="POST",
  *    type="Response",
  *    summary="Invite a user to a team.  You can only invite people who are not already on your team.",
  * @SWG\Parameter(
  *     name="uuid",
  *     description="UUID of the team",
  *     paramType="path",
  *     required=true,
  *     type="string"
  *     ),
  * @SWG\Parameter(
  *     name="email",
  *     description="The email address of the user you would like to invite",
  *     paramType="form",
  *     required=true,
  *     type="string"
  *     )
  *   )
  * )
  *
  * Invites a user to a team
  * @param string $uuid
  */
 private function team_invite($uuid = '')
 {
     $this->load->library('form_validation');
     $this->load->helper('notification');
     /* Only the team owner can invite people */
     $team = validate_team_uuid($uuid, true);
     validate_team_read($team->id);
     /* Validate that they are the team owner */
     validate_team_owner($team->id, get_user_id());
     /* Validate that they have a valid subscription and can add a team */
     validate_user_add(get_user_id());
     $this->form_validation->set_rules('email', 'Email', 'required|trim|xss_clean|valid_email');
     if ($this->form_validation->run() == FALSE) {
         json_error('There was a problem with your submission: ' . validation_errors(' ', ' '));
     } else {
         $email = $this->post('email', TRUE);
         /* Look to see if there is an existing invite and resend it */
         $invite = $this->Team_Invite->get_for_email_team($email, $team->id);
         $invite_id = 0;
         if ($invite && !$invite->user_id) {
             $invite_id = $invite->id;
             $key = $invite->key;
         } else {
             $key = random_string('unique');
             $invite_id = $this->Team_Invite->add(array('email' => $email, 'team_id' => $team->id, 'key' => $key));
         }
         notify_team_invite($invite_id, get_user_id());
         json_success("User invited successfully", array('invite_id' => $invite_id, 'email' => $email, 'key' => $key));
     }
 }
开发者ID:gitanton,项目名称:cono-rest,代码行数:59,代码来源:teams.php


示例20: json_error

             json_error(LANG_ADMIN_INVALID_PASSWORD);
         } else {
             if ($haccess->user_exist_checker($username, H_SYSTEM_ACCESS) === false) {
                 json_error(LANG_ADMIN_INVALID_USERNAME);
             } else {
                 if ($haccess->account_activation($username, H_SYSTEM_ACCESS) === false) {
                     json_error(LANG_ADMIN_INVALID_ACTIVATION);
                 } else {
                     $login = $haccess->HezeLogin($username, $password, H_SYSTEM_ACCESS);
                     if ($login === false) {
                         json_error(LANG_ADMIN_ERROR);
                     } else {
                         $_SESSION[H_USER_SESSION] = $login;
                         $haccess->UpdateLastLogin(date('Y-m-d'), $_SERVER['REMOTE_ADDR'], $haccess->UserID());
                         json_send(H_ADMIN);
                         json_success('Logging in');
                         exit;
                     }
                 }
             }
         }
     }
 } elseif (get('do') == 'logout') {
     $haccess->log_out_access(H_LOGIN);
 } elseif (get('do') == 'delete') {
     $dfile = get('dfile');
     if (get('userid') and $dfile == '') {
         $del = $haccess->Delete(get('userid'), '' . H_ADMIN . '&view=hsys_users&do=viewall&msg=delete');
     } elseif (get('userid') and $dfile != '' and get('fdel') == '') {
         delete_files(UPLOAD_PATH . get('dfile'));
         delete_files(THUMB_PATH . get('dfile'));
开发者ID:fcdeveloper,项目名称:globalreachrx,代码行数:31,代码来源:system_users.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP json_url函数代码示例发布时间:2022-05-15
下一篇:
PHP json_str_iconv函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap