Guest User

Untitled

a guest
Sep 22nd, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class database_exception extends Exception
  15. {
  16. public function __construct($message)
  17. {
  18. parent::__construct($message);
  19. }
  20. }
  21.  
  22. class database extends PDO
  23. {
  24. public $_is_mysql;
  25.  
  26. public function __construct($connection = '', $user = '', $password = '', $clear = false)
  27. {
  28. global $_API;
  29.  
  30. if (!$connection) {
  31. $connection = $_API->GetProperty('C_ActiveSync_DBConnection');
  32. $user = $_API->GetProperty('C_ActiveSync_DBUser');
  33. $password = $_API->GetProperty('C_ActiveSync_DBPass');
  34. }
  35.  
  36. if (!$connection) {
  37. $db_path = str_replace('\\', '/', $_API->GetProperty('C_CalendarPath')) . 'activesync/db/';
  38. $db_name = $db_path . 'sync.db';
  39. _make_dir_tree($db_path);
  40. $connection = 'sqlite:' . $db_name;
  41. }
  42.  
  43. if (substr($connection, 0, 5) == 'mysql') {
  44. parent::__construct($connection, $user, $password);
  45. ....................................................................
  46. ........................................
  47. ..............
Add Comment
Please, Sign In to add comment