Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- if (basename($_SERVER['SCRIPT_FILENAME']) == basename(__FILE__)) {
- 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">';
- exit();
- }
- $server = $_SERVER['SERVER_NAME'];
- $c = curl_init();
- curl_setopt($c, CURLOPT_URL, 'http://www.primadesain.com/verifydomains.php');
- curl_setopt($c, CURLOPT_TIMEOUT, 30);
- curl_setopt($c, CURLOPT_POST, 1);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- $postfields = 'svr=' . $server;
- curl_setopt($c, CURLOPT_POSTFIELDS, $postfields);
- $result = curl_exec($c);
- if ($result == 'fail') {
- 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>';
- exit();
- }
- class db_layout
- {
- public $classname = 'db_layout';
- public $db_name = null;
- public $db_user = null;
- public $db_password = null;
- public $db_host = null;
- public $db_link_ptr = null;
- public $tables = null;
- public $fields = null;
- }
- class db_mysql extends db_layout
- {
- public $classname = 'db_mysql';
- public $db_result = null;
- public $db_affected_rows = null;
- public $saved_results = array();
- public $results_saved = 0;
- public function error($where = '', $error, $errno)
- {
- echo (string) $where . '<br>';
- exit($error . '<br>' . $errno);
- }
- public function error_msg()
- {
- return mysql_error();
- }
- public function PushResults()
- {
- $this->saved_results[$this->results_saved] = array($this->db_result, $this->db_affected_rows);
- $this->results_saved++;
- }
- public function PopResults()
- {
- $this->results_saved--;
- $this->db_result = $this->saved_results[$this->results_saved][0];
- $this->db_affected_rows = $this->saved_results[$this->results_saved][1];
- }
- public function db_mysql($host, $user, $passwd, $db, $create = '')
- {
- $this->db_name = $db;
- $this->db_user = $user;
- $this->db_passwd = $passwd;
- $this->db_host = $host;
- $this->db_link_ptr = @mysql_connect($host, $user, $passwd) or $this->error('', mysql_error(), mysql_errno());
- $this->dbhandler = @mysql_select_db($db);
- if (!$this->dbhandler && $create == '1') {
- @mysql_create_db($db, $this->db_link_ptr) or $this->error('imposible crear la base de datos.', mysql_error(), mysql_errno());
- $this->dbhandler = @mysql_select_db($db);
- }
- }
- public function reselect_db($db)
- {
- $this->dbhandler = @mysql_select_db($db);
- }
- public function closeDB()
- {
- @mysql_close($this->db_link_ptr);
- }
- public function create_table($tblName, $tblStruct)
- {
- if (is_array($tblStruct)) {
- $theStruct = implode(',', $tblStruct);
- } else {
- $theStruct = $tblStruct;
- }
- @mysql_query('create table ' . $tblName . ' (' . $theStruct . ')') or $this->error('create table ' . $tblName . ' (' . $theStruct . ')', mysql_error(), mysql_errno());
- }
- public function drop_table($tblName)
- {
- @mysql_query('drop table if exists ' . $tblName) or $this->error('drop table ' . $tblName, mysql_error(), mysql_errno());
- }
- public function raw_query($sql_stat)
- {
- $this->db_result = @mysql_query($sql_stat) or $this->error($sql_stat, mysql_error(), mysql_errno());
- $this->db_affected_rows = @mysql_num_rows($this->db_result);
- }
- public function count_records($table, $filter = '')
- {
- $this->db_result = @mysql_query('select count(*) as num from ' . $table . (($filter != '' ? ' where ' . $filter : '')));
- $xx = @mysql_result($this->db_result, 0, 'num');
- return $xx;
- }
- public function select($fields, $tables, $where = '', $order_by = '', $group_by = '', $having = '', $limit = '')
- {
- $sql_stat = ' select ' . $fields . ' from ' . $tables . ' ';
- if (!empty($where)) {
- $sql_stat .= 'where ' . $where . ' ';
- }
- if (!empty($group_by)) {
- $sql_stat .= 'group by ' . $group_by . ' ';
- }
- if (!empty($order_by)) {
- $sql_stat .= 'order by ' . $order_by . ' ';
- }
- if (!empty($having)) {
- $sql_stat .= 'having ' . $having . ' ';
- }
- if (!empty($limit)) {
- $sql_stat .= 'limit ' . $limit . ' ';
- }
- $this->db_result = @mysql_query($sql_stat) or $this->error($sql_stat, mysql_error(), mysql_errno());
- $this->db_affected_rows = @mysql_num_rows($this->db_result);
- return $sql_stat;
- }
- public function list_tables()
- {
- $this->db_result = @mysql_list_tables($this->db_name);
- $this->db_affected_rows = @mysql_num_rows($this->db_result);
- return $this->db_result;
- }
- public function describe($tablename)
- {
- $this->result = @mysql_query('describe ' . $tablename);
- }
- public function table_exists($tablename)
- {
- $this->pushresults();
- $description = $this->describe($tablename);
- $this->popresults();
- if ($description) {
- $exists = true;
- } else {
- $exists = false;
- }
- return $exists;
- }
- public function tablename($tables, $tbl)
- {
- return mysql_tablename($tables, $tbl);
- }
- public function insert_id()
- {
- return mysql_insert_id();
- }
- public function insert($table, $fields = '', $values = '')
- {
- $sql_stat = 'insert into ' . $table . ' ';
- .............................................................................
- .................................................
- ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement