Advertisement
Guest User

Untitled

a guest
Feb 12th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 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 : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function redir($url) {
  15. print '<SCRIPT>';
  16. print '' . 'window.location=\'' . $url . '\'';
  17. print '</SCRIPT>';
  18. print 'exit';
  19. }
  20.  
  21. function test_default_pass() {
  22. $link = @mysql_connect( DBHOST, 'root', 'ispadmin' );
  23. $link2 = @mysql_connect( DBHOST, 'ispadmin', 'isp123' );
  24.  
  25. if (( $link || $link2 )) {
  26. return 0;
  27. }
  28.  
  29. return 1;
  30. }
  31.  
  32. function get_config($conf_id) {
  33. $result = sql_go( '' . 'SELECT value FROM config WHERE id=\'' . $conf_id . '\'' );
  34.  
  35. if (mysql_num_rows( $result ) != 0) {
  36. $value = mysql_result( $result, 0, 0 );
  37. }
  38.  
  39. mysql_free_result( $result );
  40. return $value;
  41. }
  42.  
  43. function saveConfigHistory($id, $oldValue, $newValue, $billing = 0) {
  44. sql_go( '
  45. INSERT INTO config_history
  46. SET
  47. config_key = \'' . $id . '\',
  48. old_value = \'' . $oldValue . '\',
  49. new_value = \'' . $newValue . '\',
  50. billing_config = \'' . $billing . '\',
  51. user_id = \'' . get_userid( ) . '\',
  52. instime = \'' . time( ) . '\'
  53. ' );
  54. }
  55.  
  56. function sql_login() {
  57. global $link;
  58.  
  59. $link = @mysql_connect( DBHOST, DBUSER, DBPASS );
  60.  
  61. if (!$link) {
  62. echo 'MySQL connect FAILED !!! : ' . mysql_error( );
  63. exit( );
  64. }
  65.  
  66. mysql_select_db( DBNAME );
  67.  
  68. if (MYSQL_CHARSET != '0') {
  69. sql_go( 'set names ' . MYSQL_CHARSET );
  70. }
  71.  
  72.  
  73. if (UTF8) {
  74. sql_go( 'set names UTF8' );
  75. }
  76.  
  77. }
  78.  
  79. function get_config_desc($id) {
  80. $data = '';
  81. $sql = sql_go( 'SELECT popis FROM config WHERE id = \'' . $id . '\' LIMIT 1' );
  82.  
  83. if (( $sql && mysql_num_rows( $sql ) )) {
  84. $data = trans( mysql_result( $sql, 0, 0 ) );
  85. }
  86.  
  87. return $data;
  88. }
  89. ...................................................
  90. ......................
  91. .........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement