· 7 years ago · Jan 15, 2019, 09:02 PM
1<?php
2/*
3 *
4 * @ This file is created by http://DeZender.Net
5 * @ deZender (PHP5 Decoder for ionCube Encoder)
6 *
7 * @ Version : 3.5.0.0
8 * @ Author : DeZender
9 * @ Release on : 22.06.2018
10 * @ Official site : http://DeZender.Net
11 *
12 */
13
14if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)) {
15 echo '<p align=center><br><br><br><br><br><br><font size="6" color="#FF0000">ILLEGAL ACCESS !!<meta http-equiv="refresh" content="2; url=./index.php">';
16
17 exit();
18}
19
20$server = $_SERVER['SERVER_NAME'];
21$c = curl_init();
22curl_setopt($c, CURLOPT_URL, 'http://www.primadesain.com/verifydomains.php');
23curl_setopt($c, CURLOPT_TIMEOUT, 30);
24curl_setopt($c, CURLOPT_POST, 1);
25curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
26$postfields = 'svr=' . $server;
27curl_setopt($c, CURLOPT_POSTFIELDS, $postfields);
28$result = curl_exec($c);
29
30if ($result == 'fail') {
31 echo "<p style='font-family:Arial, Helvetica, sans-serif; margin-top:80px; font-size:16px; line-height:180%; letter-spacing:2px;' align='center'><img src='https://primadesain.com/images/block.png' width='90' height='90' /></br></br>You not have a license to use this script on this domain,<br>Please contact us to purchase a license.<br><strong><a href='http://www.primadesain.com'>www.primadesain.com</a></strong></p><br><p style='font-family:Arial, Helvetica, sans-serif; margin-top:30px; font-size:12px; line-height:180%; letter-spacing:2px;' align='center'>© 2009 - " . date('Y') . ' www.primadesain.com</p>';
32
33 exit();
34}
35
36class db_layout
37{
38 public $classname = 'db_layout';
39 public $db_name = null;
40 public $db_user = null;
41 public $db_password = null;
42 public $db_host = null;
43 public $db_link_ptr = null;
44 public $tables = null;
45 public $fields = null;
46}
47
48class db_mysql extends db_layout
49{
50 public $classname = 'db_mysql';
51 public $db_result = null;
52 public $db_affected_rows = null;
53 public $saved_results = array();
54 public $results_saved = 0;
55
56 public function error($where = '', $error, $errno)
57 {
58 echo (string) $where . '<br>';
59
60 exit($error . '<br>' . $errno);
61 }
62
63 public function error_msg()
64 {
65 return mysql_error();
66 }
67
68 public function PushResults()
69 {
70 $this->saved_results[$this->results_saved] = array($this->db_result, $this->db_affected_rows);
71 $this->results_saved++;
72 }
73
74 public function PopResults()
75 {
76 $this->results_saved--;
77 $this->db_result = $this->saved_results[$this->results_saved][0];
78 $this->db_affected_rows = $this->saved_results[$this->results_saved][1];
79 }
80
81 public function db_mysql($host, $user, $passwd, $db, $create = '')
82 {
83 $this->db_name = $db;
84 $this->db_user = $user;
85 $this->db_passwd = $passwd;
86 $this->db_host = $host;
87 $this->db_link_ptr = @mysql_connect($host, $user, $passwd) or $this->error('', mysql_error(), mysql_errno());
88 $this->dbhandler = @mysql_select_db($db);
89
90 if (!$this->dbhandler && $create == '1') {
91 @mysql_create_db($db, $this->db_link_ptr) or $this->error('imposible crear la base de datos.', mysql_error(), mysql_errno());
92 $this->dbhandler = @mysql_select_db($db);
93 }
94 }
95
96 public function reselect_db($db)
97 {
98 $this->dbhandler = @mysql_select_db($db);
99 }
100
101 public function closeDB()
102 {
103 @mysql_close($this->db_link_ptr);
104 }
105
106 public function create_table($tblName, $tblStruct)
107 {
108 if (is_array($tblStruct)) {
109 $theStruct = implode(',', $tblStruct);
110 } else {
111 $theStruct = $tblStruct;
112 }
113
114 @mysql_query('create table ' . $tblName . ' (' . $theStruct . ')') or $this->error('create table ' . $tblName . ' (' . $theStruct . ')', mysql_error(), mysql_errno());
115 }
116
117 public function drop_table($tblName)
118 {
119 @mysql_query('drop table if exists ' . $tblName) or $this->error('drop table ' . $tblName, mysql_error(), mysql_errno());
120 }
121
122 public function raw_query($sql_stat)
123 {
124 $this->db_result = @mysql_query($sql_stat) or $this->error($sql_stat, mysql_error(), mysql_errno());
125 $this->db_affected_rows = @mysql_num_rows($this->db_result);
126 }
127
128 public function count_records($table, $filter = '')
129 {
130 $this->db_result = @mysql_query('select count(*) as num from ' . $table . (($filter != '' ? ' where ' . $filter : '')));
131 $xx = @mysql_result($this->db_result, 0, 'num');
132
133 return $xx;
134 }
135
136 public function select($fields, $tables, $where = '', $order_by = '', $group_by = '', $having = '', $limit = '')
137 {
138 $sql_stat = ' select ' . $fields . ' from ' . $tables . ' ';
139
140 if (!empty($where)) {
141 $sql_stat .= 'where ' . $where . ' ';
142 }
143
144 if (!empty($group_by)) {
145 $sql_stat .= 'group by ' . $group_by . ' ';
146 }
147
148 if (!empty($order_by)) {
149 $sql_stat .= 'order by ' . $order_by . ' ';
150 }
151
152 if (!empty($having)) {
153 $sql_stat .= 'having ' . $having . ' ';
154 }
155
156 if (!empty($limit)) {
157 $sql_stat .= 'limit ' . $limit . ' ';
158 }
159
160 $this->db_result = @mysql_query($sql_stat) or $this->error($sql_stat, mysql_error(), mysql_errno());
161 $this->db_affected_rows = @mysql_num_rows($this->db_result);
162
163 return $sql_stat;
164 }
165
166 public function list_tables()
167 {
168 $this->db_result = @mysql_list_tables($this->db_name);
169 $this->db_affected_rows = @mysql_num_rows($this->db_result);
170
171 return $this->db_result;
172 }
173
174 public function describe($tablename)
175 {
176 $this->result = @mysql_query('describe ' . $tablename);
177 }
178
179 public function table_exists($tablename)
180 {
181 $this->pushresults();
182 $description = $this->describe($tablename);
183 $this->popresults();
184
185 if ($description) {
186 $exists = true;
187 } else {
188 $exists = false;
189 }
190
191 return $exists;
192 }
193
194 public function tablename($tables, $tbl)
195 {
196 return mysql_tablename($tables, $tbl);
197 }
198
199 public function insert_id()
200 {
201 return mysql_insert_id();
202 }
203
204 public function insert($table, $fields = '', $values = '')
205 {
206 $sql_stat = 'insert into ' . $table . ' ';
207.............................................................................
208.................................................
209....................