source: branches/feature-module-update/html/admin/system/check.php @ 15080

Revision 15080, 700 bytes checked in by nanasess, 17 years ago (diff)

svn properties 設定

  • svn:mime-type - application/x-httpd-php; charset=UTF-8
  • svn:keywords - Id
  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
Line 
1<?php
2/*
3 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
4 *
5 * http://www.lockon.co.jp/
6 *
7 *      check.php 稼働・非稼働の切替
8 */
9require_once("../require.php");
10
11$conn = new SC_DbConn();
12
13// 認証可否の判定
14$objSess = new SC_Session();
15sfIsSuccess($objSess);
16
17// GET値の正当性を判定する
18if(sfIsInt($_GET['id']) && ($_GET['no'] == 1 || $_GET['no'] == 0)){
19    $sqlup = "UPDATE dtb_member SET work = ? WHERE member_id = ?";
20    $conn->query($sqlup, array($_GET['no'], $_GET['id']));
21} else {
22    // エラー処理
23    gfPrintLog("error id=".$_GET['id']);
24}
25
26// ページの表示
27$location = "Location: " . URL_SYSTEM_TOP . "?pageno=".$_GET['pageno'];
28header($location);
29?>
Note: See TracBrowser for help on using the repository browser.