quick_sql.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:1k
- <?php
- // +-------------------------------------------------------------+
- // | DeskPRO v [2.0.1 Production]
- // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
- // | Supplied by WTN-WDYL
- // | Nullified by WTN-WDYL
- // | Distribution via WebForum, ForumRU and associated file dumps
- // +-------------------------------------------------------------+
- // | DESKPRO IS NOT FREE SOFTWARE
- // +-------------------------------------------------------------+
- // | License ID : Full Enterprise License =) ...
- // | License Owner : WTN-WDYL Team
- // +-------------------------------------------------------------+
- // | $RCSfile: quick_sql.php,v $
- // | $Date: 2004/02/10 01:34:26 $
- // | $Revision: 1.8 $
- // +-------------------------------------------------------------+
- // | File Details:
- // | - User field internal maintenance.
- // +-------------------------------------------------------------+
- error_reporting(E_ALL ^ E_NOTICE);
- include "./../global.php";
- $_REQUEST['do'] = trim($_REQUEST['do']);
- ////////////////////////// UPDATE FIELD PRE CHOICES //////////////////////////
- if ($_REQUEST['do'] == "update_user_fields") {
- $preselect = serialize($variable);
- $db->query("UPDATE user SET userfield_select = '".mysql_escape_string($preselect)."'");
- $message = "Default fields saved";
- }
- ////////////////////////// CLOSE POP-UP / DISPLAY MESSAGE //////////////////////////
- if ($message != "") {
- echo "<center><b>$message</b></center>";
- } else {
- echo "Close form automatically";
- }
- ?>