Advertisement
Guest User

Untitled

a guest
Feb 11th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 2.0.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 2011.01.05
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function agent_test() {
  15. global $agent;
  16.  
  17. $agent->close_buffering_( );
  18. }
  19.  
  20. function agent_error($e) {
  21. global $agent;
  22.  
  23. $agent->exitError_( $e );
  24. }
  25.  
  26. function agent_log($log_message) {
  27. }
  28.  
  29. function agent_db_query($sql) {
  30. $res = db_query( $sql );
  31.  
  32. if (!$res) {
  33. agent_error( new PleskFatalException( 'Unable to query the database: ' . mysql_error( ) . ' SQL: ' . $sql ) );
  34. }
  35.  
  36. return $res;
  37. }
  38.  
  39. function agent_make_sqlin(&$where, $filter_ids, $id_col) {
  40. if (!count( $filter_ids )) {
  41. return NULL;
  42. }
  43.  
  44. if (is_null( $where )) {
  45. $where = '(';
  46. } else {
  47. $where .= ' AND (';
  48. }
  49.  
  50. $where .= '(' . $id_col . ' in (';
  51. $opened = false;
  52.  
  53. foreach ($filter_ids as $id) {
  54. if ($opened) {
  55. $where .= ',';
  56. } else {
  57. $opened = true;
  58. }
  59.  
  60. $where .= $id;
  61. }
  62.  
  63. $where .= ')))';
  64. }
  65. ......................................
  66. ....................
  67. .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement