/source/gl/right/i.php
http://prosporous.googlecode.com/ · PHP · 43 lines · 36 code · 0 blank · 7 comment · 10 complexity · 95a3f939d11dd5cad01bc6e5f40b7669 MD5 · raw file
- <?php
- /* * ??????UTF-8???.
- * Created on 2010-9-18
- *
- * @author EXT <isrn@qq.com>
- *
- */
- include ('../../includes/global.php');
- include ('../global.php');
- include ("../power.php");
- $dbcfg = Sys::Gp(array('dbcfg', 'sevenel'));
- $id = $_POST['id'];
- $tree_id = $_POST['tid'];
- $wyyz = array('xr', 'r', 'c', 'd', 'u', 'b', 'q', 'xt', 'pz');
- foreach ($wyyz as $value) {
- $temp[$value] = $_POST[$value];
- }
- $_POST['cfg'] = json_encode($temp);
- $_POST['at'] = time();
- if ($id != 0) {
- if (Du('sevenel', 'rtp', $_POST, 'id', $id, 1)) ja('????');
- //??????????
- if ($_SESSION['userinfo']['user'] != '') {
- $tmp = Dgd(array(
- 'db' => 'd_sevenel',
- 'tn' => 'rtp',
- 'cd' => " id = '" . $_SESSION['userinfo']['rcfg'] . "' ",
- 'limit' => 1
- ));
- if ($_SESSION['userinfo']['user'] == 'admin') {
- $_SESSION['rcg'] = 'A';
- } else {
- $_SESSION['rcg'] = json_decode($tmp['cfg'],true);
- }
- }
- } else {
- if (Di('sevenel', 'rtp', $_POST)) ja('????');
- }
- ?>
- <script>
- n=parent.tabs.getActiveTab();
- parent.tabs.remove(n);
- </script>