예제 #1
0
파일: wrapper.php 프로젝트: 4otaku/4otaku
 static function get_globals($get, $post)
 {
     self::$get = self::clean_globals($get, array());
     self::$post = self::clean_globals($post, array());
     if (isset($post['remember'])) {
         $md5 = md5(serialize($post));
         if (obj::db()->sql('select id from input_filter where md5 = "' . $md5 . '"', 2)) {
             unset($post);
         } else {
             obj::db()->insert('input_filter', array($md5, time()));
         }
     }
     unset($_GET, $_POST);
     return array(self::$get, self::$post);
 }
예제 #2
0
파일: art.php 프로젝트: 4otaku/4otaku
	function transfer($area,$id) {
		global $add_res;

		Check::rights();

		query::$post = array('id' => $id, 'sure' => 1, 'do' => array('art','transfer'), 'where' => $area);
		include_once('libs/input/common.php');
		$result = input__common::transfer(query::$post, false);
		if (!empty($result)) {
			$add_res['meta_error'] = $result;
		}
	}