/source/gl/right/i.php

http://prosporous.googlecode.com/ · PHP · 43 lines · 36 code · 0 blank · 7 comment · 10 complexity · 95a3f939d11dd5cad01bc6e5f40b7669 MD5 · raw file

  1. <?php
  2. /* * ??????UTF-8???.
  3. * Created on 2010-9-18
  4. *
  5. * @author EXT <isrn@qq.com>
  6. *
  7. */
  8. include ('../../includes/global.php');
  9. include ('../global.php');
  10. include ("../power.php");
  11. $dbcfg = Sys::Gp(array('dbcfg', 'sevenel'));
  12. $id = $_POST['id'];
  13. $tree_id = $_POST['tid'];
  14. $wyyz = array('xr', 'r', 'c', 'd', 'u', 'b', 'q', 'xt', 'pz');
  15. foreach ($wyyz as $value) {
  16. $temp[$value] = $_POST[$value];
  17. }
  18. $_POST['cfg'] = json_encode($temp);
  19. $_POST['at'] = time();
  20. if ($id != 0) {
  21. if (Du('sevenel', 'rtp', $_POST, 'id', $id, 1)) ja('????');
  22. //??????????
  23. if ($_SESSION['userinfo']['user'] != '') {
  24. $tmp = Dgd(array(
  25. 'db' => 'd_sevenel',
  26. 'tn' => 'rtp',
  27. 'cd' => " id = '" . $_SESSION['userinfo']['rcfg'] . "' ",
  28. 'limit' => 1
  29. ));
  30. if ($_SESSION['userinfo']['user'] == 'admin') {
  31. $_SESSION['rcg'] = 'A';
  32. } else {
  33. $_SESSION['rcg'] = json_decode($tmp['cfg'],true);
  34. }
  35. }
  36. } else {
  37. if (Di('sevenel', 'rtp', $_POST)) ja('????');
  38. }
  39. ?>
  40. <script>
  41. n=parent.tabs.getActiveTab();
  42. parent.tabs.remove(n);
  43. </script>